Skip to content

Add VC707 board example #198

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add VC707 board example #198

wants to merge 1 commit into from

Conversation

jrrk2
Copy link

@jrrk2 jrrk2 commented Mar 8, 2024

Here is an example, based on KC705, adapted for VC707 which uses the same PHY but hardwired for SGMII.

Feel free to ignore since this board is not available anymore.

@kavyash15
Copy link

Have you tested code in board ?

@jrrk2
Copy link
Author

jrrk2 commented Jan 3, 2025

I have this board but only the most rudimentary test was carried out, i would not have submitted the pull request untested. However with the passage of time i do not know if it would still work with the latest Vivado.

@kavyash15
Copy link

kavyash15 commented Jan 3, 2025

I am working on modifying the code for a different board, so I wanted to know about the testing cases and scenarios that can be done to test working of the modified code. When I connected the board directly to the PC using ethernet and used netcat comand as mentioned( after entering the command i gave "hi" input and pressed enter) it was blank and it did not echo back the message i sent.

@jrrk2
Copy link
Author

jrrk2 commented Jan 3, 2025

Depending on the MAC address of your board, you might have to set up a static route from the chosen IP to the chosen MAC address. You can use the route add command on Linux for this, if you have Windows I don't know how to do it. You might find it helpful to have Wireshark running to snoop on any traffic and try to figure out what is happening. My modification is totally specific to the exact PHY on the VC707, check what PHY you have, one of the existing projects might be closer to what you have.

@kavyash15
Copy link

The board has KSZ9031RNX PHY( datasheet: https://ww1.microchip.com/downloads/en/DeviceDoc/00002117F.pdf ), but it didnot seem to have a MAC address as far as I refered datasheets. Should we need to configure the MAC address ourselves
Screenshot from 2025-01-03 15-37-53
?

@kavyash15
Copy link

I am using Nexys Video fpga board for reference, and it says it responds to ARP requests, but after i statically route, it ain't responding to the ARP messages

@jrrk2
Copy link
Author

jrrk2 commented Jan 3, 2025

Yes, the MAC address needs to be set manually or from an EEPROM which is hardware dependent. Linux will not generate ARP messages if a static route is present already.

@kavyash15
Copy link

yes the MAC address for the fpga board is set already in the code, Is there any way to route the mac address ? isnt the route add command used to route ip address?

@alexforencich
Copy link
Owner

My recommendation is to slap an ILA on the RX side of the MAC and see what's going on there.

@jrrk2
Copy link
Author

jrrk2 commented Jan 4, 2025

there is more than one type of routing table, to associate an IP with a particular MAC address you can use:

arp -s address hw_addr

this is assuming that your ethernet card is on the same subnet

@kavyash15
Copy link

Thanks!, i set it up, but it aint replying back, so will use ila

@kavyash15
Copy link

@jrrk2 @alexforencich thankyou so much for your help, it works now !!! I have not added mdio functionality though but it echo back packets

@jrrk2
Copy link
Author

jrrk2 commented Jan 7, 2025

well done, the MDIO functionality is optional as most PHYs default to autonegotiation, however you can detect additional conditions such as the cable being unplugged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants