EBC Installing U-Boot Source

From eLinux.org
Jump to: navigation, search

thumb‎ Embedded Linux Class by Mark A. Yoder

Openlogo-50.png


DAS U-boot

Is needs to be updated...

These instructions came from Robert C Nelson's eewiki.net and the U-boot partitioning layout page.

Download

While we're at it, let's get the boot loader we'll be using. It takes some 40 seconds.

host$ cd ~/BeagleBoard
host$ git clone git://git.denx.de/u-boot.git
host$ cd u-boot/
host$ git checkout v2014.07 -b tmp

U-Boot Patches

host$ wget -c https://raw.githubusercontent.com/eewiki/u-boot-patches/master/v2014.07/0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch
host$ patch -p1 < 0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch
patching file include/configs/am335x_evm.h

Compile

Now configure and build. The first time takes some 1.5 minutes. After that it's only 5 seconds or so.

host$ source ~/crossCompileEnv.sh 
host$ make distclean
host$ make am335x_evm_config
host$ make

Install

All you have to do is copy two files to the Bone and install them, but it isn't working for me.

host$ scp MLO u-boot.img root@192.168.7.2:.

Install on the device you booted from.

bone$ dd if=MLO of=/dev/mmcblk0p0 count=1 seek=1 conv=notrunc bs=128k
bone$ dd if=u-boot.img of=/dev/mmcblk0p0 count=2 seek=1 conv=notrunc bs=384k

or install on the other device. Here if you are running from the SD card this will install on the eMMC.

bone$ dd if=MLO of=/dev/mmcblk1p0 count=1 seek=1 conv=notrunc bs=128k
bone$ dd if=u-boot.img of=/dev/mmcblk1p0 count=2 seek=1 conv=notrunc bs=384k

Once installed you are ready for u-boot work.




thumb‎ Embedded Linux Class by Mark A. Yoder