Running the kernel on the board, from a dev PC
In order to test modifications on the kernel sources without rebuilding the entire SDK,
it can be helpful to just recompile the kernel and configure uboot to boot the kernel directly from the development PC. Here is how to do this.
Configuring the dev PC
- Install and run TFTP Server (instructions for Fedora can be found here http://llbb.wordpress.com/2007/06/14/installing-tftp-on-fedora/)
- Take note of the served folder (typically /var/lib/tftpboot)
Preparing the new kernel image
- Navigate to the /trunk/linux-kernel folder.
- If you have made significant modifications to the kernel defconfig file for the annotator pro
(annpro_defconfig), start by cleaning the kernel sources by using the command "make clean".
- ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- make V=1 uImage
- Copy the image saved as trunk/linux-kernel/arch/arm/boot/uImage to the served tftp folder.
Configuring the Annotator Pro Board
- Power up the board and stop uboot autoboot by pressing a key when prompted.
- Set an IP address for the board by typing setenv ipaddr XXX.XXX.XXX.XXX where XXX is the new ip for the board
- Set the netmask for the board by typing setenv netmask XXX.XXX.XXX.XXX where XXX is the new netmask for the board
- Set the development PC server ip (of the PC running tftp server) by typing setenv serverip XXX.XXX.XXX.XXX where XXX is the server ip address
- Set the new boot command that will instruct the board to load the image file from tftpboot and boot it: setenv bootcmd "tftpboot; bootm"
- Save the new configurations by typing saveenv.
- Reboot the board.