Date: Tue, 18 Nov 2014 21:10:02 -0700 From: Warner Losh <imp@bsdimp.com> To: d@delphij.net Cc: "freebsd-arch@FreeBSD.org Arch" <freebsd-arch@freebsd.org>, Slawa Olhovchenkov <slw@zxy.spb.ru> Subject: Re: kernel linker: Overriding a driver shipped with kernel via module? Message-ID: <7F7BC412-A7E3-4848-B284-92C3FB7EC1DE@bsdimp.com> In-Reply-To: <546BEB66.6050909@delphij.net> References: <546A8191.3090208@delphij.net> <20141118124544.GA95731@zxy.spb.ru> <20141119001510.GM24601@funkthat.com> <20141119002718.GP9763@zxy.spb.ru> <20141119003632.GN24601@funkthat.com> <546BEB66.6050909@delphij.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_BC8DC997-BA9E-4704-8ECE-49E27B8D31E4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Nov 18, 2014, at 5:59 PM, Xin Li <delphij@delphij.net> wrote: > It would be, however, a win if we could strip down the kernel > significantly and only load the _required_ modules that are sufficient > to support the kernel to start /etc/rc, where we can load additional > modules on demand (via devd for instance) because this would reduce > I/O at loader stage. I think we need to teach loader to determine > which storage drivers and possibly NFS and network devices to load. For years on my laptop, I ran a stripped kernel and only loaded ata.ko and friends from the boot loader (I can=92t recall if I had to compile = in syscons and atakbd or if I loaded them). I dynamically loaded the rest, but the way I did it was extremely hackish and ugly (I used nomatch stuff that I added to whenever I found new hardware to a file I always appended to). You don=92t need to load any network junk for the laptop case in the = boot loader unless you are a weird mutant that networks boots the stuff. Warner --Apple-Mail=_BC8DC997-BA9E-4704-8ECE-49E27B8D31E4 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJUbBgaAAoJEGwc0Sh9sBEANdgP/1w2Uel3V0k9PfFKl/gAXUnU 7OP0o8VoY0PGJvvJI7MbBrKdj9/jffk+pO/xev6p2sSvjTjHp4k/woGcUhaerkpR BGUjGvZfOoYn5eycSkddbZPqiT2BKG8g8bSrSq7dMfDpj97Gn74ZLnvgQzhHTFt/ LoRt7z60L3ITn+4339JymhjLRG+UmMjuDlGzPHUwNE+2EcCpdXj8WSxvACFiEpVv nrBO9RZdBkvJy0f3husxwhMu/aktFILkY/XdtQr5x8xCFoxvqE/eoWJuSXwBhla3 RaZKpPtF/nURFpfwlzExDxZvFipxqbpxuV7pJj0HkSowaQbZhSR9+QtDy58nfBjD OOdMapQ3G88mvLF+rvH3TDIaHFMx9p3rMP1PKPaIddTf2GWG+fxPXE3uiwXcOtCB OvWa7MFksGpm1J1iUWy+VYjXm2Wc0fLqQDrTDwA2giZ/Ha7y6awPrVjdex/03hlH sb2G2VoNjJGjuEhEIRR1TtmJvPdhEFj7tfnG8PmzRqZ89nf0mrVMO1adhNZdDhkk Tjkpwu97S57h2BL/mZJPm9Oq5/9Ol1bhRWC7lq2tBS75nnGhhk6lXURhaWvmSbAT AOqL9U/LzprCAKaaA8fMgPa1sZljgku4KtF7OM3NUGMrD/qhyzxL/13sqVRkub/v NjgHeIcRz3J+ExD2rNer =DRs+ -----END PGP SIGNATURE----- --Apple-Mail=_BC8DC997-BA9E-4704-8ECE-49E27B8D31E4--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7F7BC412-A7E3-4848-B284-92C3FB7EC1DE>