Skip to content
jonsmirl edited this page Mar 18, 2012 · 10 revisions
Get the code...
git clone git://github.com/jonsmirl/lpc31xx-uboot.git
cd lpc31xx-uboot

Setup the environment (in .bashrc)...
export CROSS_COMPILE=arm-linux-gnueabi-
export ARCH=arm

Configure it...
make EA3131_config

Build it...
make
make u-boot.img
cat spl/u-boot-spl.bin u-boot.img >bootme.bin

Making the SD card

sudo fdisk -c=dos -u=cylinders /dev/sdi

Note that the first partition was created out of order Device Boot Start End Blocks Id System /dev/sdi1 3 8 2976 b W95 FAT32 /dev/sdi2 1 2 961 df BootIt /dev/sdi3 9 1008 496000 83 Linux

Copy the spl+uboot combo to the SD Card... sudo dd if=bootme.bin of=/dev/sdi2 bs=512

Copy the kernel....

Copy the file system.... cd /dev/sdi3 tar xpSf /home/apps/florida/lpc31xx-openwrt/bin/lpc313x/openwrt-lpc313x-rootfs.tar.gz

Eject the parent drive - force everything to flush to the card Give it a spin and see if it works.

Clone this wiki locally