EMMC boot Procedure : Legends: Target Term Host Term Target Uboot Term When device is running in SD card boot : 1. Erase the EMMC fully from Uboot prompt. # mmc dev 0 0 switch to partitions #0, OK mmc0(part 0) is current device # mmc read ${loadaddr} 0x7fffffff 1 MMC read: dev # 0, block # 2147483647, count 1 ... MMC: block number 0x80000000 exceeds max(0xe90000) 0 blocks read: ERROR # mmc erase 0 0xe90000 MMC erase: dev # 0, block # 0, count 15269888 ... 15269888 blocks erased: OK This will erase the primary partition Erase the secondary partition if aany... # mmc dev 0 2 switch to partitions #2, OK mmc0(part 2) is current device # mmc erase 0 0x4000 MMC erase: dev # 0, block # 0, count 16384 ... 1set6384 blocks erased: OK Now Emmc is erased. Boot or Power cycle From Host pc transfer tiboot3.bin, tispl.bin u-boot.img to opt folder in Target To create Opt folder in Target : Once target is booted.Type these in Target terminal. # CD // # mkdir opt # ls # ifconfig eth0 to see the directories listed. Under Host Terminal: To transfer File to Target, tiboot3.bin, tispl.bin u-boot.img- Take a copy from booted SD card tisdk-default-image-am62xx-evm.tar.xz is available under the SDK installed Dir/ filesystem Connect the Lan cable between Traget and Host # sudo scp tiboot3.bin root@192.168.27.2://opt here 192.168.27.2 is target IP and 192.168.27.1 is base IP. Similarly copy tispl.bin u-boot.img and Linux file system # sudo scp tispl.bin root@192.168.27.2://opt # sudo scp u-boot.img root@192.168.27.2://opt # sudo scp tisdk-default-image-am62xx-evm.tar.xz root@192.168.27.2://opt Now all the required files are copied into the Target. In Target : # ls -l /dev/mmcblk* brw-rw---- 1 root disk 179, 32 Nov 18 18:55 /dev/mmcblk0 brw-rw---- 1 root disk 179, 64 Aug 10 22:07 /dev/mmcblk0boot0 brw-rw---- 1 root disk 179, 96 Aug 10 22:07 /dev/mmcblk0boot1 crw------- 1 root root 237, 0 Aug 10 22:07 /dev/mmcblk0rpmb brw-rw---- 1 root disk 179, 0 Aug 10 22:07 /dev/mmcblk1 brw-rw---- 1 root disk 179, 1 Aug 10 22:07 /dev/mmcblk1p1 brw-rw---- 1 root disk 179, 2 Aug 10 22:07 /dev/mmcblk1p2 This will list the partitions available in SD card and eMMC. # echo 0 > /sys/block/mmcblk0boot0/force_ro Copy the files to emmc boot sector: # dd if=tiboot3.bin of=/dev/mmcblk0boot0 seek=0 # dd if=tispl.bin of=/dev/mmcblk0boot0 seek=1024 # dd if=u-boot.img of=/dev/mmcblk0boot0 seek=5120 # fdisk /dev/mmcblk0 Command window will open: Enter “p” to display current partitions enter “d” first to delete existing partitions Enter “n” to create a new partition Now give the default values Enter “w” to write the partition table to disk and exit Now check the partition table. # ls -l /dev/mmcblk0* brw-rw---- 1 root disk 179, 32 Nov 16 02:02 /dev/mmcblk0 brw-rw---- 1 root disk 179, 64 Nov 16 02:01 /dev/mmcblk0boot0 brw-rw---- 1 root disk 179, 96 Nov 16 01:44 /dev/mmcblk0boot1 brw-rw---- 1 root disk 179, 33 Nov 16 02:02 /dev/mmcblk0p1 crw------- 1 root root 237, 0 Nov 16 01:44 /dev/mmcblk0rpmb # sudo mkfs.ext4 /dev/mmcblk0p1 // Create ext4 filesystem. If in case of problem : unmount the device # sudo umount /dev/mmcblk0p1 # sudo mkfs.ext4 /dev/mmcblk0p1 then copy the rootfile system. # mkdir -p /mnt/temp # mount -t ext4 /dev/mmcblk0p1 /mnt/temp # cd /mnt/temp # tar xf //opt/ # cd .. # umount temp # reboot In: serial@2800000 Out: serial@2800000 Err: serial@2800000 Hit any key to stop autoboot: 2 stop in uboot prompt In the Uboot term : => mmc partconf 0 1 1 1 => mmc bootbus 0 2 0 0 In: serial@2800000 Out: serial@2800000 Err: serial@2800000 Hit any key to stop autoboot: 2 In the Uboot term : ==> setenv mmcdev 0 => setenv bootpart 0 => saveenv Power cycle, remove the SD , boot the linux from eMMC.