What code loads kernel modules at boot?

Lee D embaudarm at gmail.com
Fri Apr 19 19:31:08 UTC 2019


On Wed, Apr 17, 2019 at 11:04 PM Ian Lepore <ian at freebsd.org> wrote:
>
> The bulk of the module-loading code (the arch-independent part of it)
> is in src/stand/common/module.c.  There is also archsw.arch_loadaddr,
> which figures out where to put the modules (handling arch-specific
> things like alignment requirements).
>
> For some reason, I thought Zynq used u-boot.  That would allow using
> either ubldr or the arm uefi loader (depending on how old the u-boot
> is); those are just flavors of loader(8) that would get you module
> handling and all the other loader goodness.
>
> -- Ian
>

I think I sent this incorrectly the first time, so here it is again.

Zynq does indeed have u-boot as a booting method, but back when I
started this project I made the decision to write my own boot loader
for various reasons (expediency and customization).  So I am not using
u-boot or loader(8), and have to prepare everything for the kernel
startup myself.

Lee


More information about the freebsd-hackers mailing list