On Fri, Jan 03, 2025 at 01:21:05PM +0000, Chris Novakovic wrote: > On 03/01/2025 10:40, Lluís Batlle i Rossell wrote: > > here is a patch I used to be able to netboot Raspberry Pi (2B in my case). > > Their bootcode.bin expects a proxy DHCP like for PXE, but it doesn't want a > > filename+sname/tftp_name to fetch a file, but instead it requests DHCP > > Option 66 (TFTP Server) to try to download a wide set of files. > > I don't understand why this patch is necessary - I've netbooted a range of > Raspberry Pis (3B, 3B+, 4B), both with and without proxy DHCP, using the > options that currently exist in Dnsmasq. The most important one is > > dhcp-option=option:tftp-server,<TFTP_IP>
Hm maybe I didn't know how to use it then? I looked at the code and it seemed to me that the case of proxy dhcp 1) didn't look at requested options at all and 2) didn't add any user supplied dhcp-option, because it ends sooner than all that: https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=blob;f=src/rfc2131.c;h=9d8fd10f39c7b4262c6e3c51b42d5f7127f788d1;hb=HEAD#l1038 See in line 1038 how, in case of proxy, it returns before checking the requested options. Line 1010 is new from december (commit 7199531ff1), --dhcp-option-pxe, that I didn't know about when I wrote the patch. I could use --dhcp-option-pxe probably now that it exists. > To netboot old (<= 3B+) Raspberry Pis you'll also need Raspberry PI Zero,1,2 do not have any boot rom, so one usually uses an up-to-date bootcode.bin in SD card, so they don't suffer any of the problems due to 'old rom'. Ok then my patch may be ignored now than --dhcp-option-pxe exists. But I cannot understand how proxy DHCP and regular dhcp-option could work for you before. Regards, Lluís. _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss