[Bug 264267] UEFI Booting on Azure Generation 2 VMs crashes

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 06 Jun 2022 21:09:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264267

--- Comment #13 from Michael Baptist <mbaptist.opensource@gmail.com> ---
(In reply to Mark Johnston from comment #12)

I've seen output like the trademark, and copyright in init_main.c get output,
however its "random" (to me) as to how much makes it to the console before its
crashes.

Adding in some additional printfs I can trace that the system made it into
mi_startup and iterating over the sysinit calls.

message buffer initialization
---<<BOOT>>---
exiting hammer time
mistartup!

   0xffffffff80a61090(0)... done.
   0xffffffff80a877f0(0)... done.
   0xffffffff806acdb0(0)... done.
   0xffffffff805f6050(0xffffffff80f1aa68)... done.
   0xffffffff805f6050(0xffffffff80f1b540)... done.
   0xffffffff805f6050(0xffffffff80f1b550)... done.

Continues to dump addresses and some of them print to console like
trademark/copyright and so forth.

 0xffffffff805d8500(0xffffffff80f62200)... FreeBSD is a registered trademark of
The FreeBSD Foundation.
done.

@@ -305,6 +306,7 @@ mi_startup(void)
 #endif

                /* Call function */
+               printf("   %p(%p)... ", (*sipp)->func, (*sipp)->udata);
                (*((*sipp)->func))((*sipp)->udata);
+               printf("done.\n");


I haven't been able to get DDB and VERBOSE_SYSINIT working so I've just got
addrs and not symbol lookups to print. There is code already there to do symbol
look ups.

options         DDB                     # Support DDB.
options         VERBOSE_SYSINIT=1       # Support debug.verbose_sysinit, off by

-- 
You are receiving this mail because:
You are the assignee for the bug.