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.
Dear Experts
As title description, we change phy chip on our TDA4 board.
but ethernet failure in u-boot, and return error message "Net: Could not get PHY for ethernet@46000000: addr 0"
we use phy chip "KSZ9031RNX", and make sure build this driver into our u-boot.
boot message as below :
U-Boot SPL 2020.01-dirty (Jan 18 2021 - 17:28:10 +0800)
SYSFW ABI: 3.1 (firmware rev 0x0014 '20.8.5--v2020.08b (Terrific Lla')
Trying to boot from MMC2
Loading Environment from MMC... *** Warning - No MMC card found, using default e nvironment
Starting ATF on ARM64 core...
NOTICE: BL31: v2.3():07.01.00.004-1-g52c334fc3-dirty
NOTICE: BL31: Built : 18:17:14, Nov 19 2020
U-Boot SPL 2020.01-dirty (Jan 18 2021 - 17:26:35 +0800)
SYSFW ABI: 3.1 (firmware rev 0x0014 '20.8.5--v2020.08b (Terrific Lla')
Trying to boot from MMC2
i2c_write: error waiting for data ACK (status=0x116)
Error reading output register
U-Boot 2020.01-dirty (Jan 18 2021 - 17:26:35 +0800)
SoC: J721E SR1.0
Model: Texas Instruments K3 J721E SoC
Board: J721EX-PM2-SOM rev E7
DRAM: 4 GiB
not found for dev hbmc-mux
Flash: 0 Bytes
MMC: sdhci@4f80000: 0, sdhci@4fb0000: 1
Loading Environment from MMC... OK
In: serial@2800000
Out: serial@2800000
Err: serial@2800000
Net: Could not get PHY for ethernet@46000000: addr 0
am65-cpsw:phy_connect() failed
No ethernet found.
Hit any key to stop autoboot: 0
=>
=>
mii info
PHY 0x04: OUI = 0x0885, Model = 0x22, Rev = 0x02, 10baseT, HDX
=> mii device
MII devices: 'ethernet@46000000'
Current device: 'ethernet@46000000'
=> mii read 0 0
Error reading from the PHY addr=00 reg=00
=> mii read 1 0
Error reading from the PHY addr=01 reg=00
=> mii read 2 0
Error reading from the PHY addr=02 reg=00
=> mii read 3 0
Error reading from the PHY addr=03 reg=00
=> mii read 4 0
1140
=>
EVB works when PHY addr = 0, but our board works on PHY addr = 4
This problems should be "phy id" assignment in u-boot.
How to I modify this item in u-boot source code?
Many Thanks
Gibbs