This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-AM62P-LP: Flash Linux to eMMC using SD Card

Part Number: SK-AM62P-LP

Tool/software:

Hi,

I am trying to do flashing Linux to eMMC using sd card by using below commands

Boot Switch in sd card boot mode

U-Boot # printenv partitions
uuid_disk=${uuid_gpt_disk};name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}

U-Boot # setenv uuid_gpt_disk 4e42d27d-8f56-4952-9e47-8f8b34260a90
U-Boot # setenv uuid_gpt_rootfs eddd2fba-6351-42df-8779-53a02d99c2cc
U-Boot # gpt write mmc 0 ${partitions} /* <device num> is device index obtained from mmc list for eMMC */

=> mmc part
=> mmc dev 0 1
=> fatload mmc 1 ${loadaddr} tiboot3.bin
=> mmc write ${loadaddr} 0x0 0x400
=> fatload mmc 1 ${loadaddr} tispl.bin
=> mmc write ${loadaddr} 0x400 0x1000
=> fatload mmc 1 ${loadaddr} u-boot.img
=> mmc write ${loadaddr} 0x1400 0x2000

=> mmc partconf 0 1 1 1
=> mmc bootbus 0 2 0 0

Boot switch changed from sd card boot mode to emmc boot mode and unmounting the SD card.

=> setenv mmcdev 0
=> setenv bootpart 0:1
=> boot

but it is not booting and we are getting the below errors:

=> boot
switch to partitions #0, OK
mmc0(part 0) is current device
SD/MMC found on device 0
Can't set block device
Can't set block device
## Error: "main_cpsw0_qsgmii_phyinit" not defined
Can't set block device
Can't set block device
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
No FDT memory address configured. Please configure
the FDT address via "fdt addr <address>" command.
Aborting!
Bad Linux ARM64 Image magic!
switch to partitions #0, OK
mmc0(part 0) is current device
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
No EFI system partition
No EFI system partition
Failed to persist EFI variables
BootOrder not defined
EFI boot manager: Cannot load any image
starting USB...
Bus usb@31100000: generic_phy_get_bulk : no phys property
Register 1000840 NbrPorts 1
Starting the controller
USB XHCI 1.10
scanning bus usb@31100000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
ethernet@8000000port@1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
am65_cpsw_nuss_port ethernet@8000000port@1: phy_startup failed
am65_cpsw_nuss_port ethernet@8000000port@1: am65_cpsw_start end error
missing environment variable: pxeuuid
Retrieving file: pxelinux.cfg/01-1c-63-49-22-4f-24

I have checked below e2e threads :

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1346743/am625-emmc-boot-failed/5133532#5133532

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1343571/sk-am62b-p1-sk-am62b-p1/5127114#5127114

Based on these threads i tried the command => ls mmc 0:1 

ls mmc 0:2 but we are getting this as output.

=> ls mmc 0:1
=> ls mmc 0:2
** Invalid partition 2 **
Couldn't find partition mmc 0:2

Kindly help me to rectify this. 

Regards,

Veerapandiyan V