SBC-EC9100 User Manual
Embest Technology Co. Ltd
|
http://www.embest-tech.com
23
3.2.3
Compile and Burn the Images to EMMC
$ cd $HOME/S4_Sourcecode/u-boot
$ make distclean
$make embest_fsl_ec9100_emmc_defconfig
$make
When the compilation finished, it will generate a
u-boot.imx
under path $HOME/S4_Sourcecode/u-boot. Copy
the file to SD Card:
, first, you need to boot up the system from SD card. Then, type the following command on the
system which already running on SD card to format and burn EMMC.
1
.
Prepare the EMMC partition
$ sudo dd if=/dev/zero of=/dev/mmcblk1 bs=1K count=1
$ echo -e " o\nn\np\n1\n20480\n+64M\na\nt\nc\nn\np\n2\n151552\n\nw\n " | fdisk /dev/mmcblk1
$ sudo mkfs.vfat /dev/mmcblk1p1
$ sudo mkfs.ext4 /dev/mmcblk1p2
$ sudo fdisk /dev/mmcblk1 –l
2
.
Burn the u-boot.imx (for emmc) to EMMC use dd command
$ sudo dd if=u-boot.imx of=/dev/mmcblk1 bs=512 seek=2 conv=fsync
3
.
Enable boot from EMMC user partition
$ sudo echo 56 > /sys/block/mmcblk1/device/boot_config
4
.
Check whether the enable operation work
$ sudo cat /sys/block/mmcblk1/device/boot_info
If the operation works, it will print the following info:
boot_partition:0x78;
BOOT_ACK:1 - Boot acknowledge sent during boot operation
BOOT_PARTITION-ENABLE: 7 - User area enabled for boot
Now the U-boot is burned to EMMC