View source for Booting the Neo FreeRunner from SD via U-Boot
From Openmoko
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Templates used on this page:
Here are the steps described to boot your system from an SD card.
Get a fresh 2.6.20.2 kernel and apply the patches from the OpenMoko projekt.
alphaone@elara openmoko $ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.2.tar.bz2 alphaone@elara openmoko $ tar -xjf linux-2.6.20.2.tar.bz2 alphaone@elara openmoko $ cd linux-2.6.20.2 alphaone@elara linux-2.6.20.2 $ svn co http://svn.openmoko.org/trunk/src/target/kernel/patches alphaone@elara linux-2.6.20.2 $ quilt -a push
Now download the defconfig from http://svn.openmoko.org/trunk/oe/packages/linux/linux-gta01/defconfig-2.6.20.2-fic-gta01 and tweak the kernel in any way you want (be sure to build MMC/SD card support into the kernel). When done build the kernel and follog the steps in Bootloader#Creating_bootable_images.
Mount your SD card somewhere and put your image on it
elara openmoko # mount /dev/mmcblk0p1 /dev/moko elara openmoko # tar -C /mnt/moko/ -xvzf openmoko-devel-image-fic-gta01-20070313022035.rootfs.tar.gz
Now we also want the kernel on there
elara openmoko # cp uImage /mnt/moko/boot/
Start uboot in bootmenu mode and add the following entry via serial console:
GTA01Bv3 # setenv menu_4 Boot from SD: setenv bootargs root=/dev/mmcblk0p1 rootdelay=5 console=ttySAC,115200 console=tty0 loglevel=8 \${mtdparts}\; mmcinit\; ext2load mmc 0 0x32000000 /boot/uImage\; bootm 0x32000000 GTA01Bv3 # saveenv
Power off your device, insert the SD card and boot into the boot menu. You should have an entry called "Boot from SD" which does exactly that. :-)