Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleTarget (U-Boot)
mmc dev 0
mmc rescan
mmc dev 1

fatload mmc 0 ${loadaddr} MLO
mmc write ${loadaddr} 0x100 0x100
echo $filesize
# In the following command, take the hex value from the above command, divide it by 0x200, and round up to the nearest whole number
mmc write ${loadaddr} 0x2000x100 0x100#FILESIZE#

fatload mmc 0 ${loadaddr} u-boot.img
echo $filesize
# In the following command, take the hex value from the above command, divide it by 0x200, and round up to the nearest whole number
mmc write ${loadaddr} 0x300 0x1300#FILESIZE#

Flashing the boot loader from Linux

...

Code Block
titleTarget (Linux)
dd if=/run/media/mmcblk0p1/MLO of=/dev/mmcblk1 seek=256 count=256
dd if=/run/media/mmcblk0p1/MLO of=/dev/mmcblk1 seek=512 count=256
dd if=/run/media/mmcblk0p1/u-boot.img of=/dev/mmcblk1 seek=768 count=4864

Flashing the root filesystem

...