-
Couldn't load subscription status.
- Fork 199
Use --local-ip argument in SoC configuration #425
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
base: master
Are you sure you want to change the base?
Conversation
|
Hi and sorry for the delay. So something like: @@ -109,7 +114,11 @@ def main():
if "leds" in board.soc_capabilities:
soc_kwargs.update(with_led_chaser=True)
if "ethernet" in board.soc_capabilities:
- soc_kwargs.update(with_ethernet=True)
+ soc_kwargs.update(
+ with_ethernet = True,
+ eth_ip = args.local_ip,
+ remote_ip = args.remote_ip,
+ )
if "pcie" in board.soc_capabilities:
soc_kwargs.update(with_pcie=True)
if "spiflash" in board.soc_capabilities:Looks easier and uses already existing code |
… instead of 'configure_ethernet'
|
@trabucayre Thank you for the suggestion, I have changed it to be implemented that way & tested it out. I also removed now-unused code due to this change. |
|
Looks good, the only thing (but maybe too time consuming) is to check if all targets have correct |
|
@trabucayre I did a quick scan through of the targets in litex-boards, looks like many of them don't use From my understanding, the current approach in this repo is to allow the board to setup ethernet with default values, and then manually overriding the |
|
I'm agree this PR improves readability, but I think I will trying to modify all targets to be coherent and creating a PR to discuss this point with @enjoy-digital |
See #424.
This PR takes the '--local-ip' argument into consideration when generating the SoC.
New 'netboot' command output: