Page MenuHomeFreeBSD

stand/i386: build a specific loader for PXE boot
AbandonedPublic

Authored by khorben_defora.org on Oct 10 2023, 4:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 7, 9:27 PM
Unknown Object (File)
Mon, Oct 7, 9:27 PM
Unknown Object (File)
Mon, Oct 7, 9:04 PM
Unknown Object (File)
Sep 11 2024, 6:15 AM
Unknown Object (File)
Sep 1 2024, 5:19 PM
Unknown Object (File)
Aug 13 2024, 3:15 PM
Unknown Object (File)
Aug 1 2024, 12:44 AM
Unknown Object (File)
Jul 22 2024, 9:08 AM
Subscribers

Details

Reviewers
emaste
imp
manu
Summary

The current PXE loader does not work since it became too big. This change creates a dedicated loader for use when booting over PXE, with support removed for the FAT and EXT2 filesystems, as well as for GZIP and BZIP2 compression. This new loader still defaults to the same interpreter as the regular loader.

It is then possible to boot the kernel over TFTP or NFS again.

This is meant as a possible alternative to D41750, and relevant to PR #257018.

Test Plan

In /usr/local/etc/dhcpd.conf: (isc-dhcp44-server package)

next-server 192.168.2.1;
filename "FreeBSD/boot/pxeboot";
option root-path "nfs://192.168.2.1/tftpboot/FreeBSD/amd64";

In /etc/inetd.conf:

tftp  dgram   udp     wait    root    /usr/libexec/tftpd      tftpd -l -s /tftpboot

In /tftpboot/FreeBSD/boot:

-rw-r--r--  1 root    wheel   415744 Sep  5 21:11 pxeboot

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

So now that we build a smaller loader in general, do we need to build another loader for this?

In D42146#1052635, @imp wrote:

So now that we build a smaller loader in general, do we need to build another loader for this?

I don't think so; the latest loader works for me, thank you.