Date: Fri, 19 Apr 2019 15:29:57 -0400 From: Lee D <embaudarm@gmail.com> To: Ian Lepore <ian@freebsd.org> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: What code loads kernel modules at boot? Message-ID: <CANC_bnPhsuzA4%2BVEAJ6vSVt28f8=r4DLSda1o6t1MhYjXwLWBg@mail.gmail.com> In-Reply-To: <173b3741db8be891cff8b7005b2058a416d43115.camel@freebsd.org> References: <CANC_bnNog192=sAgw6uu7J_oJMPLGyMa57y-eXNxHv_g-KMvOw@mail.gmail.com> <173b3741db8be891cff8b7005b2058a416d43115.camel@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 17, 2019 at 11:04 PM Ian Lepore <ian@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANC_bnPhsuzA4%2BVEAJ6vSVt28f8=r4DLSda1o6t1MhYjXwLWBg>