Part Number:AM3359
Tool/software: Linux
Hi,
I'm use the beagleboneblack and my sdk version is ti-processor-sdk-linux-am335x-evm-03.02.00.05, linux version is 4.4.32-gadde2ca9f8.
I want to write ti-sdk to eMMC using sd-card for booting the beaglebone from eMMC.
I read the post : https://e2e.ti.com/support/arm/sitara_arm/f/791/p/503009/2070502#pi316653=1
And I follow the process Kemal R. Shakir said in above post.
1. Prepare a SD card either with the create-sdcard.sh script
2. Run the BBB from the SD card (hold the USR button when powering the board up)
3. ssh into the board:
# ssh root@172.20.0.111
4. The eMMC is /dev/mmcblk1. Format it this way:
4.01. fdisk /dev/mmcblk1
4.02. o - this clears the existing partitions
4.03. p - this lists all partition tables on the card (there should be none)
4.04. n - create a new partition
4.05. p - primary partition
4.06. 1 - partition number
4.07. 2048 - default value for the first sector
4.08. +16M - last sector / partition size
4.09. t - change the partition type (select partition 1)
4.10. e - change tha partition type to "W95 FAT16 (LBA)"
4.11. a - set the bootable flag for the selected partition (1)
4.12. n - create a new partition
4.13. p - primary partition
4.14. 2 - partition number
4.15. hit Enter to choose the default (next available) value for the first sector
4.16. hit Enter to choose the default (last) value for the last sector
4.17. p - this lists all partition tables on the card (there should be two)
4.18. w - write all the above changes to disk
4.19. umount /dev/mmcblk1p1; mkfs.vfat -F 16 /dev/mmcblk1p1 - format the first partition
4.20. umount /dev/mmcblk1p2; mkfs.ext4 /dev/mmcblk1p2 - format the second partition
5. Copy the {MLO,u-boot.img,uEnv.txt} files to the first partition:
# mkdir boot
# mount /dev/mmcblk1p1 boot
# cp {MLO,u-boot.img,uEnv.txt} boot
# umount boot
6. Copy the root file system to the second partition:
# mkdir root
# mount /dev/mmcblk1p2 root
# tar -xf tisdk-rootfs-image-am335x-evm.tar.gz -C root
# umount root
7. Shutdown the BBB, remove the SD card and start it from the eMMC.
I have some question this process about 5.
There is no uEnv.txt file when i make sd-card using create-sdcard.sh.
Can i copy only two file {MLO, uEnv.txt} in boot folder? Can i use the two file{MLO, uEnv.txt} without any settings for eMMC in sdcard?
Plus, Is there any way to automate the copying process ? (=Can I run this copy process automatically just by inserting sdcard?)