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-AM62B-P1: DFU flash error

Part Number: SK-AM62B-P1

Tool/software:

Hi ,

Good Day!

Im trying to boot the device using DFU and to copy the images to EMMC, followed the instruction in software-dl.ti.com/.../Flash_via_DFU.html

what im currently changed to binaries are mentioned below 

# added CONFIG_BOOTCOMMAND="setenv dfu_alt_info_flashenv uEnv.txt ram 0x82000000 0x10000000; setenv dfu_alt_info ${dfu_alt_info_flashenv}; dfu 0 ram 0; env import -t ${loadaddr} $filesize; run user_commands;" in am62x_evm_a53_defconfig
# added CONFIG_ENV_IS_NOWHERE=y  CONFIG_BOOTDELAY=0 in am62x_evm_a53_defconfig
# changed to UBOOT_MACHINE_R5=am62x_evm_r5_usbdfu_defconfig in rules.make
#build the binaries copyed dfu flash bin path

attaching dfu log below, dfu is not fetching uEnv.txt whats the issue ?, in this am62xx-evm/gp directory when i run the script its create this while .

#host $ sudo python3 dfu_flash.py -d am62xx-evm -t gp
2024-08-10 16:36:21 INFO: Starting the flashing tool
2024-08-10 16:36:21 INFO: Validating the requirements before flashing...
2024-08-10 16:36:21 INFO: Validated the CLI arguments and the paths to the DFU boot binaries
2024-08-10 16:36:21 INFO: Parsing the flash configuration file {/homek/DFU_flash/bin/am62xx-evm/gp/flash-files.cfg}...
2024-08-10 16:36:21 INFO: Found 4 flash images
<<DFU_FLASH_CONF
------- ---------------------------------------------------- ------- -------- ----- ----------
    Alt Path                                                    Size   Offset Media Attributes
------- ---------------------------------------------------- ------- -------- ----- ----------
tiboot3 /home/DFU_flash/bin/am62xx-evm/gp/tiboot3.bin  311122      0x0 EMMC  raw,1,-   
  tispl /home/DFU_flash/bin/am62xx-evm/gp/tispl.bin   1182891  0x80000 EMMC  raw,1,-   
u-boot /home/DFU_flash/bin/am62xx-evm/gp/u-boot.img   966147 0x280000 EMMC  raw,1,-   
   uEnv /home/DFU_flash/bin/am62xx-evm/gp/uEnv.txt        147 0x380000 EMMC  raw,1,-   
------- ---------------------------------------------------- ------- -------- ----- ----------
DFU_FLASH_CONF
2024-08-10 16:36:21 INFO: Found 4 boot images
<<DFU_BOOT_CONF
---------- ---------------------------------------------------- -------
       Alt Path                                                    Size
---------- ---------------------------------------------------- -------
bootloader /home/DFU_flash/bin/am62xx-evm/gp/tiboot3.bin  311122
tispl.bin /home/DFU_flash/bin/am62xx-evm/gp/tispl.bin   1182891
u-boot.img /home/DFU_flash/bin/am62xx-evm/gp/u-boot.img   966147
  uEnv.txt /home/DFU_flash/bin/am62xx-evm/gp/uEnv.txt        177
---------- ---------------------------------------------------- -------
DFU_BOOT_CONF
2024-08-10 16:36:21 INFO: Number of USB DFU devices detected: 1
2024-08-10 16:36:21 INFO: Starting flashing for 1 identified devices
2024-08-10 16:36:21 INFO: Spawning 1 parallel processes
2024-08-10 16:36:22 INFO:             1-9 Sent! /home/DFU_flash/bin/am62xx-evm/gp/tiboot3.bin
2024-08-10 16:36:25 INFO:             1-9 Sent! /home/DFU_flash/bin/am62xx-evm/gp/tispl.bin
2024-08-10 16:36:30 INFO:             1-9 Sent! /home/DFU_flash/bin/am62xx-evm/gp/u-boot.img
2024-08-10 16:36:56 ERROR:             1-9 Aborting!! Max iterations reached. DFU device not listening for `uEnv.txt`
2024-08-10 16:36:56 INFO: Flashed 0 out of 1 identified devices successfully..

attaching the boot log

U-Boot SPL 2023.04 (Aug 09 2024 - 19:31:43 +0530)

SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.8--v09.02.08 (Kool Koala)')

SPL initial stack usage: 13408 bytes

Trying to boot from DFU

##########################################################DOWNLOAD ... OK

Ctrl+C to exit ...

Authentication passed

Authentication passed

Authentication passed

Loading Environment from nowhere... OK

init_env from device 10 not supported!

Authentication passed

Authentication passed

Starting ATF on ARM64 core...
 
NOTICE:  BL31: v2.10.0(release):v2.10.0-367-g00f1ec6b87-dirty

NOTICE:  BL31: Built : 16:09:05, Feb  9 2024
 
U-Boot SPL 2023.04 (Aug 09 2024 - 19:31:54 +0530)

SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.8--v09.02.08 (Kool Koala)')

SPL initial stack usage: 1856 bytes

MMC: no card present

** Bad device specification mmc 1 **

Couldn't find partition mmc 1:1

Error: could not access storage.

Trying to boot from DFU

####DOWNLOAD ... OK

Ctrl+C to exit ...

Authentication passed

Authentication passed
 
 
U-Boot 2023.04 (Aug 09 2024 - 19:31:54 +0530)
 
SoC:   AM62X SR1.0 HS-FS

Model: Texas Instruments AM625 SK

EEPROM not available at 80, trying to read at 81

Board: AM62B-SKEVM-P1 rev A

DRAM:  no bloblist found!2 GiB

Core:  72 devices, 32 uclasses, devicetree: separate

MMC:   mmc@fa10000: 0, mmc@fa00000: 1

Loading Environment from nowhere... OK

In:    serial

Out:   serial

Err:   serial

Net:   eth0: ethernet@8000000port@1

Hit any key to stop autoboot:  0 

MMC: no card present

SD/MMC found on device 1

MMC: no card present

** Bad device specification mmc 1 **

Couldn't find partition mmc 1

Can't set block device

MMC: no card present

** Bad device specification mmc 1 **

Couldn't find partition mmc 1

Can't set block device

MMC: no card present

** Bad device specification mmc 1 **

## Error: "main_cpsw0_qsgmii_phyinit" not defined

MMC: no card present

** Bad device specification mmc 1 **

Couldn't find partition mmc 1:2

Can't set block device

MMC: no card present

** Bad device specification mmc 1 **

Couldn't find partition mmc 1:2

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

MMC: no card present

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-1f-d9-bc

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

Retrieving file: pxelinux.cfg/00000000

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

Retrieving file: pxelinux.cfg/0000000

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

Retrieving file: pxelinux.cfg/000000

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

Retrieving file: pxelinux.cfg/00000

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

Retrieving file: pxelinux.cfg/0000

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

Retrieving file: pxelinux.cfg/000

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

Retrieving file: pxelinux.cfg/00

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

Retrieving file: pxelinux.cfg/0

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

Retrieving file: pxelinux.cfg/default-arm-k3-am62x

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

Retrieving file: pxelinux.cfg/default-arm-k3

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

Retrieving file: pxelinux.cfg/default-arm

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

Retrieving file: pxelinux.cfg/default

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

Config file not found

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

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

=> 

 

regards,

-RJ