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

dhcp: doesn't seem to set serverip like other u-boot builds? #34

Open
colemickens opened this issue Jul 30, 2022 · 5 comments
Open

dhcp: doesn't seem to set serverip like other u-boot builds? #34

colemickens opened this issue Jul 30, 2022 · 5 comments

Comments

@colemickens
Copy link

colemickens commented Jul 30, 2022

edit: (I hate that "enter" in the title box will just post an empty issue, this has been a github thing for years and I still trigger it sometimes, sorry)

will send the actual content as a separate post for the sake of email users.

@colemickens
Copy link
Author

When I issue dhcp on a VisionFive u-boot build, it gets a lease, but:

  1. the router doesn't really recognize it, it sees the client but doesn't acknowledge that it gave it an IP?
  2. I can see the u-boot client get an IP, presumably via DHCP response, but it doesn't set serverip. I (confirmed minutes ago) have Raspberry Pi clients that dhcp/tftp boot into u-boot and then further PXE boot into linux. So they're getting the correct tftp/pxe information from my router, yet...
VisionFive #dhcp
Speed: 1000, full duplex
BOOTP broadcast 1
DHCP client bound to address 192.168.63.253 (109 ms)
*** ERROR: `serverip' not set
Cannot autoload with TFTPGET

@colemickens
Copy link
Author

I do also apologize, I don't really know u-boot's code or your changes enough to know if this is even something that would be board specific or not. However, based on all docs I've read, just calling dhcp should normally result in serverip being set.

@colemickens
Copy link
Author

Is this maybe related?

  • Enable NET_RANDOM_ETHADDR for temporary solution, because micrel_ksz8xxx
    driver does not support DM_ETH yet, so cannot read MAC address directly.

ref: 4992090

@colemickens
Copy link
Author

note, I also had to do this:

setenv pxefile_addr_r 0x88200000

which hopefully would be set for me

@colemickens
Copy link
Author

The PROXY_DHCP setting was the culprit. I did manage to get a build of Tow-Boot working that netboots properly from my network like other tow-boot/upstream u-boot builds do.

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

No branches or pull requests

1 participant