> Date: Fri, 22 Sep 2023 23:19:30 +0000 > From: Klemens Nanni <k...@openbsd.org> > > Does the tiny kexec kernel actually need network, bio(4) or HID devices? > octeon/BOOT does not have any of this.
Well, we do need the USB keyboard stuff to allow users to type at the bootloader prompt no? The USB mouse is clearly not needed, even on a RAMDISK kernel. That's an oversight. I'm not sure about trimming the pseudo-device stuff. The fact that you need that etherip line suggests that something is fishy. I think I would keep the loop line instead since that is what we do on the floppy kernels for i386 and amd64. The wsmux needs to be kept as well of course. Dropping the INET6 and NFSCLIENT options seems safe. > Looks like too much of powerpc64/RAMDISK remained, but I might be missing > some obvious difference between these platforms. > > The Raptor CS Blackbird used for the re-upgrade prevention diff still boots > with this smaller config. > > I'm just curious, this diff shows what I mean and doesn't fix anything. > > Index: sys/arch/powerpc64/conf/BOOT > =================================================================== > RCS file: /cvs/src/sys/arch/powerpc64/conf/BOOT,v > retrieving revision 1.9 > diff -u -p -r1.9 BOOT > --- sys/arch/powerpc64/conf/BOOT 8 Jan 2022 05:40:19 -0000 1.9 > +++ sys/arch/powerpc64/conf/BOOT 22 Sep 2023 20:36:20 -0000 > @@ -15,9 +15,7 @@ option MINIROOTSIZE=16384 > option FFS > option FFS2 > option MSDOSFS > -option INET6 > option EXT2FS > -option NFSCLIENT > option CRYPTO > > config bsd root on rd0a swap on rd0b > @@ -52,19 +50,8 @@ uk* at scsibus? # unknown S > # USB devices > uhub* at usb? # USB Hubs > uhub* at uhub? # USB Hubs > -uhidev* at uhub? # Human Interface Devices > -uhid* at uhidev? # USB generic HID support > -ukbd* at uhidev? # USB keyboard > -wskbd* at ukbd? mux 1 > -ums* at uhidev? # USB mouse > -wsmouse* at ums? mux 0 > umass* at uhub? # USB Mass Storage devices > > -pseudo-device loop 1 > -pseudo-device vlan > -pseudo-device trunk > -pseudo-device bpfilter 1 > +pseudo-device etherip # pulls ether in kernel > pseudo-device rd 1 > -pseudo-device bio 1 > pseudo-device kexec > -pseudo-device wsmux 2 > >