Skip to content
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

software/bios: Add option to obtain IP address from DHCP server #899

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Meet909
Copy link

@Meet909 Meet909 commented Apr 28, 2021

That PR allows to obtain IP address automatically from DHCP server using eth_dhcp command.
That command is only available when with_dhcp argument is set in litex/soc/integration/soc.py.
dhcp_get_ip function in litex/soc/software/bios/boot.c invokes dhcp_resolve function with MAC address as parameter.
That PR is associated with litex-hub/litex-boards#206.

@jluebbe
Copy link
Contributor

jluebbe commented Apr 28, 2021

Is there a way to generate a reproducible MAC address based on some information in the FPGA or SPI-NOR? For example a serial number?

@mithro
Copy link
Collaborator

mithro commented Apr 28, 2021

@jluebbe -- Depends on the FPGA and board, some FPGAs have a "device DNA" that could potentially be used to randomly generate a MAC address. Some FPGA boards have an EEPROM with a MAC address encoded in them (like the Numato Opsis), others have an EEPROM embedded in the Ethernet PHY.

@tmichalak tmichalak requested a review from enjoy-digital April 29, 2021 14:24
@enjoy-digital
Copy link
Owner

Thanks @MateuszKosmala, this is a very interesting feature. I'll try to review it very soon.

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

Successfully merging this pull request may close these issues.

4 participants