lwip on nios
Hi,
I have a custom board with a Marvell 88E1512 ethernet transceiver
I am using Quartus 18.1 and have tried many configurations of connecting the tse to the nios.
I can get the lwip to come up and start to work.
I can run it in both static ip and hdcp mode.
in static it gets stuck at- (static)
[ethernet] PHY INFO: Interface: 0 Waiting for PHY
[ethernet] PHY INFO: [PHY ID] 0x0 141 dd1
[ethernet] PHY INFO: Issuing PHY Reset
[ethernet] PHY INFO: Waiting on PHY link...
[ethernet] PHY INFO: PHY link detected, allowing network to start.
[ethernet] Using Ethernet MAC address 00:07:ed:ff:68:b0 for interface: 0
[ethernet] Static IP Address for interface 0 192.168.1.120
Waiting for link... OK
[ethernet] Acquired IP address via DHCP client for interface: e0
[ethernet] IP address : 192.168.1.120
[ethernet] Subnet : 255.255.255.0
[ethernet] Gateway : 192.168.1.1
[lwip_eth0] up
Starting socket test interface.
socket returns 16
Binding socket
Listening for socket
Waiting for new client
If I watch this on wireshark on a dedicated port on the back of my pc with no other connections, I see transactions but none of them have my ip address as specified in ethernet.c 192.168.1.120
If I change to dhcp with *use_dhcp = 1; in ethernet.c
I get
[ethernet] PHY INFO: Interface: 0 Waiting for PHY
[ethernet] PHY INFO: [PHY ID] 0x0 141 dd1
[ethernet] PHY INFO: Issuing PHY Reset
[ethernet] PHY INFO: Waiting on PHY link...
[ethernet] PHY INFO: PHY link detected, allowing network to start.
[ethernet] Using Ethernet MAC address 00:07:ed:ff:68:b0 for interface: 0
[ethernet] Starting get IP via DHCP for interface 0
Waiting for link... OK
[LwIP] Start DHCP request...
[LwIP] Waiting for DHCP IP address...
If I watch this on wireshark on a dedicated port on the back of my pc with no other connections, I see transactions but none of them have my mac address as specified in ethernet.c
mac_addr[0] = 0x00;
mac_addr[1] = 0x07;
mac_addr[2] = 0xED;
mac_addr[3] = 0xFF;
mac_addr[4] = 0x68;
mac_addr[5] = 0xB0 + iface;
I have seen instances where I connect it to the network with a dhcp server and it is broadcasting with an ip of 0.0.0.0
If I start the emulator the traffic on wireshark does change; but searching for my mac or ip yields no results.
Intel/Altera is no help they just tell me to change everything every time I ask a question. With every version of Altera there are more and more incompatibilities.
I fear that this is something at the qsys connection level.
I have provided the qsys as is because I have tried so many versions, but I am not an expert on the sgdma or the tse and how they all interact.
This is in Quartus 18.1
I would really like to make some progress on this.
If anyone can please help that would be great.
I'm not sure where to even look anymore
Thanks,
Martin