From b812419f4a40400e9d54dab6c04fefc081817f63 Mon Sep 17 00:00:00 2001 From: Kelvin Lawson Date: Mon, 1 Aug 2011 01:11:34 +0100 Subject: [PATCH] README: Add instructions for creating armv7a boards. --- ports/armv7a/README | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ports/armv7a/README diff --git a/ports/armv7a/README b/ports/armv7a/README new file mode 100644 index 0000000..eaa4f2e --- /dev/null +++ b/ports/armv7a/README @@ -0,0 +1,12 @@ +CROSS_COMPILE=/opt/arm-2009q3/bin/arm-none-eabi- +export CROSS_COMPILE + +qemu-system-arm -M realview-pb-a8 -serial stdio -kernel build/kern2.elf + +Following are the steps to add new board under armv7a port: +1. Create a directory under ports/armv7a with name +2. Add linker.ld in ports/armv7a/ (similar to the one in ports/armv7a/pb-a8) +3. Add arm_pic.h, arm_timer.h, and arm_uart.h in ports/armv7a/ (similar to the one in ports/armv7a/pb-a8) +4. Add .c files in ports/armv7a/ to implement the board specific functions expected in arm_pic.h, arm_timer.h, and arm_uart.h +5. Add Makefile in ports/armv7a/ (similar to the one in ports/armv7a/pb-a8) to build board specific objects corresponding to the .c files added in step 4. +5. To build atomthreads for board use following command "make BOARD=" with ports/armv7a as current directory.