Friday, July 12, 2013

uboot - For beagleboard XM

The configuration for BeagleBoard and BeagleBoard-xM is omap3_beagle. The configuration for BeagleBone is am335x_evm.
To rebuild:
  • Install ARM cross-compiler. On Ubuntu:
    • sudo opkg install gcc-arm-linux-gnueabi
  • git clone git://git.denx.de/u-boot.git && cd u-boot
  • ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make am335x_evm_config|omap3_beagle_config
  • ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make
Typical boot process for BeagleBoard using U-Boot includes two U-Boot phases:
  1. The BeagleBoard ROM bootloader first loads a file called "MLO" from the SD card. This requires special formatting of the SD card and copying of the "MLO" file to the SD card. The "MLO" file is provided by U-Boot's Secondary Program Loader (SPL) functionality. It is placed into the u-boot folder upon build.
  2. The U-Boot SPL configures the off-chip memory and then loads the full U-Boot. The file is typically called "u-boot.img" and SPL will typically look for it in the root folder of a FAT partition, but other options are possible
 Note: It seems that the latest u-boot clone from denx packaged with the latest buildroot supplies 'SPL' support in the menuconfig. From what I understand SPL ( named MLO ) now replaces xloader as the second stage bootloader after the OMAP 1st stage loader in ROM. Long story short enable SPL (MLO) support from u-boot and build with the omap3_beagle defconfig and everything works just fine!

serial boot: http://elinux.org/BeagleBoard#USB-to-Serial_Converter 

No comments: