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-AM64B: Cannot complete the boot process of Linux via Ethernet.

Part Number: SK-AM64B

Tool/software:

Hi there,

I cannot boot  Linux on a SK-AM64B board via Ethernet.

After editing am64x_evm_r5_defconfig adding CONFIG_NET_RANDOM_ETHADDR=y, as suggested here:
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1398069/sk-am64b-u-boot-spl-no-ethernet-found/5442075#5442075
I was finally able to load and run U-Boot.

Anyway the dtb/Linux loading process keeps on failing and I fall back into U-boot console. Here's the log I get:

U-Boot SPL 2024.04-dirty (Sep 30 2024 - 11:51:07 +0200)
Resetting on cold boot to workaround ErrataID:i2331
Please resend tiboot3.bin in case of UART/DFU boot
resetting ...

U-Boot SPL 2024.04-dirty (Sep 30 2024 - 11:51:07 +0200)
SYSFW ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
EEPROM not available at 0x50, trying to read at 0x51
SPL initial stack usage: 13392 bytes
Trying to boot from eth device
Loading Environment from MMC... MMC Device 0 not found
*** Warning - No MMC card found, using default environment


Warning: ethernet@8000000port@2 (eth1) using random MAC address - c6:15:3d:fa:45:0b
eth1: ethernet@8000000port@2
ethernet@8000000port@2 Waiting for PHY auto negotiation to complete.... done
link up on port 2, speed 100, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
DHCP client bound to address 192.168.2.44 (1020 ms)
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.44
Filename 'tispl.bin'.
Load address: 0x82000000
Loading: #################################################################
         #################################################################
         #################################################################
         #####  0 Bytes
         720.7 KiB/s
done
Bytes transferred = 1023695 (f9ecf hex)
Authentication passed
Authentication passed
Loading Environment from MMC... MMC Device 0 not found
*** Warning - No MMC card found, using default environment

init_env from device 4 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
I/TC:
I/TC: OP-TEE version: 4.2.0-dev (gcc version 13.3.0 (GCC)) #1 Fri Apr 12 09:51:21 UTC 2024 aarch64
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
I/TC: Primary CPU initializing
I/TC: GIC redistributor base address not provided
I/TC: Assuming default GIC group status and modifier
I/TC: SYSFW ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
I/TC: HUK Initialized
I/TC: Activated SA2UL device
I/TC: Enabled firewalls for SA2UL TRNG device
I/TC: SA2UL TRNG initialized
I/TC: SA2UL Drivers initialized
I/TC: Primary CPU switching to normal world boot

U-Boot SPL 2024.04-dirty (Sep 30 2024 - 11:53:12 +0200)
SYSFW ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
Trying to boot from eth device
Loading Environment from nowhere... OK

Warning: ethernet@8000000port@2 (eth1) using random MAC address - 6a:90:70:32:75:38
eth1: ethernet@8000000port@2
ethernet@8000000port@2 Waiting for PHY auto negotiation to complete... done
link up on port 2, speed 100, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
DHCP client bound to address 192.168.2.45 (1093 ms)
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.45
Filename 'u-boot.img'.
Load address: 0x82000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         ######  0 Bytes
         394.5 KiB/s
done
Bytes transferred = 1359207 (14bd67 hex)
Authentication passed
Authentication passed


U-Boot 2024.04-dirty (Sep 30 2024 - 11:53:12 +0200)

SoC:   AM64X SR2.0 HS-FS
Model: Texas Instruments AM642 SK
Board: AM64B-SKEVM rev A
DRAM:  2 GiB
Core:  89 devices, 31 uclasses, devicetree: separate
NAND:  0 MiB
MMC:   mmc@fa00000: 1
Loading Environment from nowhere... OK
In:    serial@2800000
Out:   serial@2800000
Err:   serial@2800000
Failed to probe prueth driver
Net:   eth0: ethernet@8000000port@1, eth1: ethernet@8000000port@2
Hit any key to stop autoboot:  0
MMC: no card present
MMC: no card present
** Bad device specification mmc 1 **
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!
Scanning for bootflows in all bootdevs
Seq  Method       State   Uclass    Part  Name                      Filename
---  -----------  ------  --------  ----  ------------------------  ----------------
Scanning global bootmeth 'efi_mgr':
MMC: no card present
No EFI system partition
No EFI system partition
Failed to persist EFI variables
Scanning bootdev 'mmc@fa00000.bootdev':
MMC: no card present
MMC: no card present
MMC: no card present
MMC: no card present
No bootdevs for 'mmc0'
Bus usb@f400000: Register 2000840 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb@f400000 for devices... 1 USB Device(s) 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
link up on port 2, speed 100, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
DHCP client bound to address 192.168.2.37 (1004 ms)
Scanning bootdev 'port@1.bootdev':
missing environment variable: pxeuuid
Retrieving file: pxelinux.cfg/01-70-ff-76-1f-43-a4
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/01-70-ff-76-1f-43-a4'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/C0A80225
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/C0A80225'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/C0A8022
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/C0A8022'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/C0A802
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/C0A802'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/C0A80
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/C0A80'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/C0A8
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/C0A8'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/C0A
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/C0A'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/C0
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/C0'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/C
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/C'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/default-arm-k3-am64x
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/default-arm-k3-am64x'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/default-arm-k3
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/default-arm-k3'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/default-arm
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/default-arm'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/default
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/default'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Scanning bootdev 'port@2.bootdev':
missing environment variable: pxeuuid
Retrieving file: pxelinux.cfg/01-70-ff-76-1f-43-a4
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/01-70-ff-76-1f-43-a4'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/C0A80225
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/C0A80225'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/C0A8022
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/C0A8022'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/C0A802
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/C0A802'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/C0A80
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/C0A80'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/C0A8
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/C0A8'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/C0A
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/C0A'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/C0
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/C0'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/C
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/C'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/default-arm-k3-am64x
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/default-arm-k3-am64x'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/default-arm-k3
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/default-arm-k3'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/default-arm
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/default-arm'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Retrieving file: pxelinux.cfg/default
link up on port 2, speed 100, full duplex
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'pxelinux.cfg/default'.
Load address: 0x80100000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Scanning bootdev 'port@1.bootdev':
link up on port 2, speed 100, full duplex
BOOTP broadcast 1
DHCP client bound to address 192.168.2.37 (4 ms)
*** Warning: no boot file name; using 'C0A80225.img'
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'C0A80225.img'.
Load address: 0x82000000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
Scanning bootdev 'port@2.bootdev':
link up on port 2, speed 100, full duplex
BOOTP broadcast 1
DHCP client bound to address 192.168.2.37 (5 ms)
*** Warning: no boot file name; using 'C0A80225.img'
Using ethernet@8000000port@2 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.37
Filename 'C0A80225.img'.
Load address: 0x82000000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
am65_cpsw_nuss_port ethernet@8000000port@2: RX dma free_pkt failed -22
No more bootdevs
---  -----------  ------  --------  ----  ------------------------  ----------------
(0 bootflows, 0 valid)
=>

How can I make u-boot properly launch Linux?