====== Questions & Answers ======
===== How to install and boot firmware from eMMC memory? =====
This same image (file ''sdcard.img'') created by the Buildroot (see [[litesom:buildroot|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:
- build firmware as described on [[litesom:buildroot|Quick start]].
- configure liteboard boot switches to "Boot from SD card" mode (see [[litesom:boot_switches|Liteboard boot switches configuration]]),
- boot liteboard with firmware compiled in the first step,
- copy to USB stick ''sdcard.img'' file generated in the first step,
- insert USB stick to the liteboard USB A socket,
- mount USB stick,
- copy ''sdcard.img'' file to eMMC memory (''/dev/mmcblk1''),
- configure liteboard boot switches to "Boot from eMMC memory" mode (see [[litesom:boot_switches|Liteboard boot switches configuration]]),
**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