[SLOF] [PATCH v3 0/8] Support network booting with pxelinux.cfg files
Thomas Huth
thuth at redhat.com
Sat May 26 16:06:00 AEST 2018
When booting a Linux kernel via network, it's sometimes more convenient
to load the kernel and initrd separately instead of having to create
a joint kernel + initrd file. The most common "standard" for doing such
network boots are the so-called pxelinux.cfg config files, initially
introduced by the PXELINUX bootloader on x86, but nowadays also used
on ppc64 by petitboot for example. So let's support booting via these
config files in SLOF, too!
v3:
- Addressed Alexey's review feedback from v2
v2:
- Added support for UUID-based file names (last two patches)
- Addressed Greg's feedback from v1
Thomas Huth (8):
libnet: Pass ip_version via struct filename_ip
libc: Add the snprintf() function
libnet: Put code for determing TFTP error strings into a separate
function
libnet: Add functions for downloading and parsing pxelinux.cfg files
libnet: Wire up pxelinux.cfg network booting
libnet: Add support for DHCPv4 options 209 and 210
slof: Add a helper function to get the contents of a property in C
code
libnet: Support UUID-based pxelinux.cfg file names
include/helpers.h | 4 +
lib/libc/include/stdio.h | 1 +
lib/libc/stdio/Makefile.inc | 2 +-
lib/libc/stdio/snprintf.c | 28 +++++
lib/libnet/Makefile | 2 +-
lib/libnet/dhcp.c | 33 ++++++
lib/libnet/netload.c | 189 +++++++++++++++++++--------------
lib/libnet/ping.c | 14 ++-
lib/libnet/pxelinux.c | 248 ++++++++++++++++++++++++++++++++++++++++++++
lib/libnet/pxelinux.h | 33 ++++++
lib/libnet/tftp.c | 105 ++++++++++++++++++-
lib/libnet/tftp.h | 14 ++-
slof/helpers.c | 30 +++++-
13 files changed, 608 insertions(+), 95 deletions(-)
create mode 100644 lib/libc/stdio/snprintf.c
create mode 100644 lib/libnet/pxelinux.c
create mode 100644 lib/libnet/pxelinux.h
--
1.8.3.1
More information about the SLOF
mailing list