Hi,
I am having some issues with "Flashing Linux to eMMC" Flash Linux to eMMC (ti.com)
I believe I am following the instructions correctly. The only minor issue is the renaming of the file u-boot-am64xx-evm.img to u-boot.img.
I have included most of the steps and their responses below.
I'm not sure what is wrong, but I don't even get bootloader when booting to eMMC.
I set the switches to 11010010 00000000 for eMMC boot. (As shown here: AM64x MCU+ SDK: EVM Setup (ti.com))
I would imagine that I would at least get bootloader, by copying (tiboot3.bin, tispl.bin and u-boot.img) to /dev/mmcblk0boot0
I don't know how to trouble shoot the issue any further.
Thank you,
############################################################################################################################################################
# BOOT FROM eMMC
############################################################################################################################################################
root@am64xx-evm:~# ls -l /dev/mmcblk*
brw-rw---- 1 root disk 179, 32 Mar 1 20:26 /dev/mmcblk0
brw-rw---- 1 root disk 179, 64 Mar 1 20:26 /dev/mmcblk0boot0
brw-rw---- 1 root disk 179, 96 Mar 1 20:26 /dev/mmcblk0boot1
brw-rw---- 1 root disk 179, 33 Mar 1 20:26 /dev/mmcblk0p1
crw------- 1 root root 240, 0 Mar 1 20:26 /dev/mmcblk0rpmb
brw-rw---- 1 root disk 179, 0 Mar 1 20:26 /dev/mmcblk1
brw-rw---- 1 root disk 179, 1 Mar 1 20:26 /dev/mmcblk1p1
brw-rw---- 1 root disk 179, 2 Mar 1 20:26 /dev/mmcblk1p2
root@am64xx-evm:~# echo 0 > /sys/block/mmcblk0boot0/force_ro
root@am64xx-evm:~# mv u-boot-am64xx-evm.img u-boot.img
root@am64xx-evm:~# dd if=tiboot3.bin of=/dev/mmcblk0boot0 seek=0
763+1 records in
763+1 records out
390826 bytes (391 kB, 382 KiB) copied, 0.044665 s, 8.8 MB/s
root@am64xx-evm:~# dd if=tispl.bin of=/dev/mmcblk0boot0 seek=1024
1375+1 records in
1375+1 records out
704484 bytes (704 kB, 688 KiB) copied, 0.0758318 s, 9.3 MB/s
root@am64xx-evm:~# dd if=u-boot.img of=/dev/mmcblk0boot0 seek=5120
1610+1 records in
1610+1 records out
824412 bytes (824 kB, 805 KiB) copied, 0.0790146 s, 10.4 MB/s
root@am64xx-evm:~# fdisk /dev/mmcblk0
Welcome to fdisk (util-linux 2.37.4).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
This disk is currently in use - repartitioning is probably a bad idea.
It's recommended to umount all file systems, and swapoff all swap
partitions on this disk.
Command (m for help): p
Disk /dev/mmcblk0: 14.82 GiB, 15913189376 bytes, 31080448 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x21e6df44
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 2048 31080447 31078400 14.8G 83 Linux
Command (m for help): n
All space for primary partitions is in use.
Command (m for help): d
Selected partition 1
Partition 1 has been deleted.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p):
Using default response p.
Partition number (1-4, default 1):
First sector (2048-31080447, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-31080447, default 31080447):
Created a new partition 1 of type 'Linux' and of size 14.8 GiB.
Partition #1 contains a ext4 signature.
Do you want to remove the signature? [Y]es/[N]o: Y
The signature will be removed by a write command.
Command (m for help): w
The partition table has been altered.
Syncing disks.
root@am64xx-evm:/# ls -l /dev/mmcblk0*
brw-rw---- 1 root disk 179, 0 Apr 28 17:48 /dev/mmcblk0
brw-rw---- 1 root disk 179, 32 Apr 28 17:42 /dev/mmcblk0boot0
brw-rw---- 1 root disk 179, 96 Apr 28 17:42 /dev/mmcblk0boot1
brw-rw---- 1 root disk 179, 1 Apr 28 17:48 /dev/mmcblk0p1
crw------- 1 root root 240, 0 Apr 28 17:42 /dev/mmcblk0rpmb
root@am64xx-evm:/# mkfs.ext4 /dev/mmcblk0p1
mke2fs 1.46.5 (30-Dec-2021)
Discarding device blocks: done
Creating filesystem with 3884800 4k blocks and 972944 inodes
Filesystem UUID: bf704f5c-7e8c-4f3f-baa1-2e6b11a9aa32
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
root@am64xx-evm:/home# mount /dev/mmcblk0p1 /mnt/mmcblk0p1/
root@am64xx-evm:/home# tar xf tisdk-default-image-am64xx-evm.tar.xz -C /mnt/mmcblk0p1/
root@am64xx-evm:/home# ls /mnt/mmcblk0p1/
bin boot dev etc home include init lib linuxrc lost+found media mnt opt proc run sbin sys tmp usr var www
root@am64xx-evm:/home# umount /mnt/mmcblk0p1/
*** REBOOT ***
In: serial@2800000
Out: serial@2800000
Err: serial@2800000
Unidentified board claims AM64-EVM in eeprom header
Net: eth0: ethernet@8000000port@1
Hit any key to stop autoboot: 0
=> mmc partconf 0 1 1 1
=> mmc bootbus 0 2 0 0
Set to BOOT_BUS_WIDTH = 0x2, RESET = 0x0, BOOT_MODE = 0x0
*** POWER OFF ***
*** SET SWITCHES to eMMC Boot ***
*** POWER ON ***
Nothing.