piserver icon indicating copy to clipboard operation
piserver copied to clipboard

Update config.h

Open JamesOBenson opened this issue 1 year ago • 2 comments

Add support for newer Pi with MAC-addresses that start with 28:cd:c1, 2c:cf:67, 3a:35:41

Fixes issue #166

JamesOBenson avatar Apr 22 '24 19:04 JamesOBenson

Unfortunately this fix is not working for me, I still don't see the newer clients, is there something else I've missed?

I checked out the PR, rebuilt the package, installed the package, rebooted the server and reconfigured the DHCP.

But my Raspberry Pi's with OUI 2c:cf:67 still get the response:

DHCPDISCOVER(eth1) 2c:cf:67:b3:4a:14 no address available

Or to be more clear, PiServer does not create the folder for TFTP for that device get a bootloader.

Any help is greatly appreciated!

It's sad that Raspberry Pi does not maintain this project properly, it is actually a very nice and tailored solution.

HackXIt avatar Feb 12 '25 12:02 HackXIt

Ok, I managed to fix it. piserver.cpp was missing the following for dnsmasq to hand out an IP Address:

fs << "pxe-service=tag:piserver,0,\"Raspberry Pi Boot\"" << endl;

// ADD THIS
fs << "dhcp-vendorclass=set:piserver,PXEClient" << endl;

for (auto &kv : _hosts)
{
    if (kv.second->distro())
    {
        fs << "dhcp-host="+kv.second->mac()+",set:piserver" << endl;
    }
}

With that in place, the client successfully showed up in the GUI and I could successfully boot my RPi4.. Hoooraaay.

Please for the love of god, somebody update this repo.

HackXIt avatar Feb 12 '25 12:02 HackXIt