Hello,
I am working on a custom board with AM3359, eMMC and KSZ9021 PHY. Beacuse I have no source to boot my board (eMMC is empty) I am running uboot-spl and uboot via JTAG to start uboot and boot the board from ethernet. I am using the latest (at this moment) TI Linux SDK 7.00.00.00 and u-boot-2013.10-ti2013.12.01.
I was able to run that PHY on my board under StarterWare, which I used for trimming skew parameters of PHY and to test communication. The register skew values I found are written (and checked) to PHY in function board_eth_init(bd_t *bis) in /board/ti/am335x/board.c .
The problem is that under u-boot ethernet does not work, I compiled U-boot with debug and I receive messages:
U-Boot# dhcp
Trying cpsw
link up on port 0, speed 100, full duplex
BOOTP broadcast 1
DHCPHandler: got packet: (src=59787, dst=1900, len=133) state: 3
Filtering pkt = -1
DHCPHandler: got packet: (src=59786, dst=1900, len=133) state: 3
Filtering pkt = -1
DHCPHandler: got packet: (src=5353, dst=5353, len=95) state: 3
Filtering pkt = -1
DHCPHandler: got packet: (src=5353, dst=5353, len=95) state: 3
Filtering pkt = -1
DHCPHandler: got packet: (src=5353, dst=5353, len=409) state: 3
Filtering pkt = -1
DHCPHandler: got packet: (src=5353, dst=5353, len=95) state: 3
Filtering pkt = -1
DHCPHandler: got packet: (src=5353, dst=5353, len=95) state: 3
Filtering pkt = -1
BOOTP broadcast 2
DHCPHandler: got packet: (src=59787, dst=1900, len=133) state: 3
Filtering pkt = -1
DHCPHandler: got packet: (src=59786, dst=1900, len=133) state: 3
Filtering pkt = -1
after 10 tries I see the following messages:
Retry count exceeded; starting again
Initial value for argc=3
Final value for argc=3
Trying usb_ether
<== devctl 80
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC c4:ed:ba:7b:ea:2e
HOST MAC de:ad:be:af:00:00
rndis_register: configNr = 0
rndis_set_param_dev: configNr = 0
rndis_set_param_vendor: configNr = 0
rndis_set_param_medium: configNr = 0, 0 0
RNDIS ready
gadget D+ pullup on
ERROR: The remote end did not respond in time.
at ether.c:2388/usb_eth_init()
FAIL
Initial value for argc=3
Final value for argc=3
Trying cpsw
link up on port 0, speed 100, full duplex
BOOTP broadcast 1
DHCPHandler: got packet: (src=61449, dst=1900, len=133) state: 3
Filtering pkt = -1
The problem is that I can't see any signals, either rx or tx, on RGMII bus, while RX_CLK=25MHz, TX_CLK=10MHz.
Any hint, please?
Best Regards,
Kamil