This is an old revision of the document!


Questions & Answers

This same image (file ``sdcard.img``) created by the Buildroot (see Quick start) can be installed on liteSOM eMMC memory.

Below you can find list of steps required it install and boot liteSOM from eMMC memory:

  1. build firmware as described on Quick start.
  2. configure liteboard boot switches to “Boot from SD card” mode (see Liteboard boot switches configuration),
  3. boot liteboard with firmware compiled in the first step,
  4. copy to USB stick sdcard.img file generated in the first step,
  5. insert USB stick to the liteboard USB A socket,
  6. mount USB stick,
  7. copy sdcard.img file to eMMC memory (/dev/mmcblk1),
  8. configure liteboard boot switches to “Boot from eMMC memory” mode (see Liteboard boot switches configuration),

Show steps 5…7

Step no. 5

[  166.513081] usb 1-1: new high-speed USB device number 2 using ci_hdrc
[  166.755810] usb-storage 1-1:1.0: USB Mass Storage device detected
[  166.773805] scsi host0: usb-storage 1-1:1.0
[  167.853525] random: crng init done
[  167.876991] scsi 0:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 2
[  167.906527] sd 0:0:0:0: [sda] 8212480 512-byte logical blocks: (4.20 GB/3.92 GiB)
[  167.915863] sd 0:0:0:0: [sda] Write Protect is off
[  167.924621] sd 0:0:0:0: [sda] No Caching mode page found
[  167.930288] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  167.959291]  sda: sda1
[  167.975830] sd 0:0:0:0: [sda] Attached SCSI removable disk

Step no. 6

# mkdir /mnt/usb
# mount /dev/sda1 /mnt/usb/

Step no. 7

# dd if=/mnt/usb/sdcard.img  of=/dev/mmcblk1 bs=4M
21+0 records in
21+0 records out
# sync

  • litesom/buildroot/qa.1561387593.txt.gz
  • Last modified: 2019/06/24 14:46
  • by piotr.figlarek