Uboot Settings

In u-boot
– setenv ubifsargs ‘setenv bootargs console=${console} ${optargs} root=ubi0:rootfs ubi.mtd=4 rw rootfstype=ubifs’
– setenv nandboot ‘echo Booting from nand …; run ubifsargs; nand read ${loadaddr} 280000 400000; bootm ${loadaddr}’
– setenv optargs ‘init=/init omapdss.def_disp=dvi omapfb.mode=dvi:1024x768MR-24@60’
– saveenv

flash kernel

  • Put kernel into SD card first partition, VFAT format. Named as “uImage.bin” (you can check here as SD card reference)
  • mmcinit # or mmc init (depends on your u-boot)
  • run loaduimage
  • nand erase 280000 400000
  • nand write ${loadaddr} 280000 400000

flash rootfs

  • untar the tarball into SD card second partition.
  • put your android_beagle.ubi image into /media//home/root/
  • boot from SD
  • flash_eraseall /dev/mtd4
  • nandwrite /dev/mtd4 android-beagle.ubi
    You can use “./my_flash” after booting from SD card as well.