* your mileage may vary

Monday, 26 January 2015

Steps to build MLO and u-boot on the Beaglebone Black (BBB)

Build instructions for MLO and u-boot on BBB.  It takes about 10minutes max.  No need to have cross compile environment set up.  Based on the good work of Robert Nelson


  • git clone git://git.denx.de/u-boot.git
  • cd u-boot/
  • git checkout v2015.01 -b tmp
  • wget -c https://raw.githubusercontent.com/eewiki/u-boot-patches/master/v2015.01/0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch
  • patch -p1 < 0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch
  • make ARCH=arm distclean
  • make ARCH=arm am335x_evm_defconfig
  • make ARCH=arm
if you are running a kernel after Oct/2014, copy the files to the beginning of the SD card using dd (assumes SD = mmcblk0)

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

No comments:

Post a Comment