On Sat, Aug 29, 2020, at 6:34 AM, Warner Losh wrote:
> 
> 
> On Sat, Aug 29, 2020 at 5:25 AM Michal Meloun <meloun.mic...@gmail.com> wrote:
> > Yeah, sorry. Local symbols are not available for netbooted kernel :(.
> > And i csan confirm that problem is cause by using sbuf_cpy() on sbuf
> > allocated by sbuf_new_for_sysctl() (thus with drain handler) in
> > device_sysctl_handler(). But pure replacing sbuf_cpy() by sbuf_cat()
> > gives me another panic:
> > panic: Assertion (sb->s_flags & SBUF_INCLUDENUL) == 0 failed at
> > /usr2/Meloun/git/pmap/sys/kern/subr_bus.c:4936
> > (still as respose for sysctl dev.cpu)
> 

By the way, on powerpc*, we have a little hack in place to be able to load 
symbols even when loader isn't in use -- in petitboot, if you provide a second 
copy of the kernel as the initrd, it will be used at runtime to load symbols. 
(the powerpc code has special probing to skip attaching the initrd as a md 
device if it looks like an ELF file)

And on powerpc32, you can actually netboot loader instead of netbooting the 
kernel (with a little dhcpd magic) and get symbols loaded the "normal" way.

-- 
  Brandon Bergren
  bdra...@freebsd.org
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to