TI的fae及各位大侠好:
目前基于am3354平台,进行系统u-boot和kernel升级;
将原有的u-boot 2012 升级为u-boot 2020.01,目前已成功烧录启动u-boot-spl.bin和u-boot.img,但是ping不通,帮忙看下啥原因?
但是测试网络模块,ping和tftp不通过,网口的两个led指示灯都正常显示,使用逻辑分析仪步骤mdc和mdio数据,也存在时钟和数据。
lan8720a,使用rmii模式,引脚配置和初始化也成功,在u-boot阶段使用mii和mdio命令,也可以正常读取寄存器数值。
u-boot阶段的开机logo如下(添加有测试打印):
board_init_f start
early_system_init start
set_uart_mux_conf
enable_uart0_pin_mux
<debug_uart> spl.c spl_early_init
spl_early_init
board.c spl_early_init
early_system_init end
board_early_init_f
set_mux_conf_regs
imac pin mux init
scale_vcores
scale_vcores_generic
scale_vcores_generic okay
zq1500_gpio_init start
zq1500_gpio_init end
sdram_init func 1st
sdram_init func 2nd
board_init_f end
board_init_r
>>SPL: board_init_r()
TLB table from 8fffc000 to 90000000
spl_init
spl_board_init
preloader_console_init
U-Boot SPL 2020.01-dirty (Oct 12 2021 - 15:15:11 +0800)
Trying to boot from UART
CCCxyzModem - CRC mode, 1(SOH)/746(STX)/0(CAN) packets, 4 retries
Loaded 763280 bytes
Jumping to U-Boot
loaded - jumping to U-Boot...
U-Boot 2020.01-dirty (Oct 12 2021 - 15:15:11 +0800)
CPU : AM335X-GP rev 2.1
Model: TI AM335x EVM
DRAM: 256 MiB
enable_caches 1st
dcache_enable 2nd
mmu_setup 1st
mmu_setup 2nd
mmu_setup 3rd
mmu_setup 4th
enable_caches 2nd
board_init
WDT: Started with servicing (60s timeout)
NAND: 512 MiB
MMC: OMAP SD/MMC: 0
Loading Environment from FAT... <ethaddr> not set. Validating first E-fuse MAC
Net: phy.c phy_probe
phy.c genphy_config_advert
phy_write 1st start
phy_write 1st
phy_write 2nd start
phy_write 2nd
phy.c genphy_restart_aneg
phy_write 4th
eth0: ethernet@4a100000
Hit any key to stop autoboot: 0
ping测试日志如下:
=> setenv ipaddr 192.168.7.235
=> setenv gatewayip 192.168.7.1
=> setenv serverip 192.168.7.47
=> setenv netmask 255.255.255.0
=> ping 192.168.7.1
link up on port 0, speed 100, full duplex
Using ethernet@4a100000 device
Abort
ping failed; host 192.168.7.1 is not alive
mii打印信息
=> mii info
PHY 0x00: OUI = 0x01F0, Model = 0x0F, Rev = 0x01, 100baseT, FDX
=> mii read 0x0 0x0
3100
=> mii read 0x0 0x2
0007
=> mii read 0x0 0x4
0DE1
mdio打印信息
=> mdio list
ethernet@4a100000:
0 - SMSC LAN8710/LAN8720 <--> ethernet@4a100000
逻辑分析仪捕捉mdc和mdio数据截图如下:

