Other Parts Discussed in Thread: TMDX654IDKEVM
Hello,
I am using a AM65x_GP_EVM with SR1.0, I am attempting to use PRU ICSSG2 port 0 to use the PRU/RTU firmware binaries to load data over U-boot. I am following a similar process to this:
https://software-dl.ti.com/processor-sdk-linux/esd/AM65X/latest/exports/docs/linux/Foundational_Components/U-Boot/UG-Network.html#sample-script-for-am65-sr1
Except what I do, is I load the PRU/RTU firmware over ethernet, and place them into flash, then on a power cycle I load them from flash onto the remote processors.
Something like this:
Connected over CPSW, I load the eth-fw binaries into flash memory:
sf probe tftp $loadaddr am65x-pru0-prueth-fw.elf setenv pru0_prueth_size 0x${filesize} sf update $loadaddr 0x3500000 $pru0_prueth_size tftp $loadaddr am65x-rtu0-prueth-fw.elf setenv rtu0_prueth_size 0x${filesize} sf update $loadaddr 0x3700000 $rtu0_prueth_size saveenv
I then reboot, and connect to ICSSG port 0, and run the following to load the eth-fw over rproc:
sf probe rproc init sf read $loadaddr 0x3500000 $pru0_prueth_size rproc load 10 $loadaddr $pru0_prueth_size rproc start 10 sf read $loadaddr 0x3700000 $rtu0_prueth_size rproc load 11 $loadaddr $rtu0_prueth_size rproc start 11 setenv ipaddr 192.168.20.20 setenv netmask 255.255.255.0 setenv serverip 192.168.20.1 ping 192.168.20.19
I then get the following when I ping:
=> ping 192.168.20.20 am65_cpsw_nuss_port ethernet@46000000port@1: K3 CPSW: rflow_id_base: 2 ethernet@46000000port@1 Waiting for PHY auto negotiation to complete......... TIMEOUT ! am65_cpsw_nuss_port ethernet@46000000port@1: phy_startup failed am65_cpsw_nuss_port ethernet@46000000port@1: am65_cpsw_start end error prueth icssg2-eth: RX dma flow id bad, expected 0, actual 2 prueth icssg2-eth: RX mgm dma flow id bad, expected 1, actual 3 prueth icssg2-eth: Error or no response from firmware 0 prueth icssg2-eth: Error sending port speed/duplex cmd link up on port 0, speed 100, full duplex Using icssg2-eth device ARP Retry count exceeded; starting again prueth icssg2-eth: Error or no response from firmware 0 prueth icssg2-eth: Error executing firmware shutdown cmd ping failed; host 192.168.20.20 is not alive
Over Wireshark is see ARP broadcasts even coming from the PHY, and my PC replies, but it still just errors out. I have seen on other posts that this works with SR1.0, why am I getting these "no response" errors and ARP failures?
Thanks,
Ben