Re: Early kernel boot log?

From: Johannes Lundberg <johalun0_at_gmail.com>
Date: Thu, 9 Aug 2018 10:26:06 +0100
On Thu, Aug 9, 2018 at 9:29 AM Konstantin Belousov <kostikbel_at_gmail.com>
wrote:

> On Thu, Aug 09, 2018 at 08:54:31AM +0100, Johannes Lundberg wrote:
> > Hi
> >
> > So I believe the reason I'm not seeing and printf output in dmesg is that
> > it is too early in some functions.
> > For example
> > machdep.s
> >  getmemsize()
> >  add_efi_map_entries()
> >  etc
> >
> > However, these functions do contain debug printf statements so if they're
> > logging to somewhere, where/how can I see this?
> >
> > I also tried booting in bhyve too see if I could get any output via
> serial
> > console but nothing there either.
> Disable efi console, only leaving comconsole around, then set
> debug.late_console=0
> in loader.
>

Thanks for the tip. I found the comment in machdep.c that explains this
now.
However, running in bhyve with
console="comconsole" (not needed in bhyve I guess?)
debug.late_console=0

Boot hangs after
Booting...
output.
Caused by late_console=0.



> >
> > printfs in cpu_startup() does give me output in dmesg.
> >
> > Cheers
> > _______________________________________________
> > freebsd-current_at_freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "
> freebsd-current-unsubscribe_at_freebsd.org"
>
Received on Thu Aug 09 2018 - 07:26:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:17 UTC