Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Mar 2017 02:11:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 217512] boot2 is unable to load kernel directly
Message-ID:  <bug-217512-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217512

            Bug ID: 217512
           Summary: boot2 is unable to load kernel directly
           Product: Base System
           Version: 11.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: misc
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: mark@uncommon.com

Loading a kernel directly using boot2 causes the invalid-opcode fault like =
the
following:

int=3D00000006  err=3D00000000  efl=3D00010046  eip=3Dc0300000
eax=3D002ff000  ebx=3D000213d0  ecx=3D00000000  edx=3Da030ff1e
esi=3D00018504  edi=3D0008eb78  ebp=3D0008ebc8  esp=3D0000940b
cs=3D0008  ds=3D0010  es=3D0010    fs=3D0010  gs=3D0010  ss=3D0010
cs:eip=3Dff ff ff ff ff ff ff ff-7f 00 00 00 00 00 00 00
       00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00
ss:esp=3D36 80 0d 07 90 00 00 01-e9 ba fc ff ff aa ac 84
       c0 0f 84 86 00 00 00 a8-80 74 f2 88 c5 b0 3d aa
BTX halted

This is using a GENERIC unmodified amd64 kernel (installed from HD from DVD=
 iso
source (11p1) and trying /boot/kernel/kernel at boot: prompt. SAS/SATA drive
environment. Tested both MBR and GPTBOOT versions of boot2 (/boot/boot and
/boot/gptboot)-no joy.

/boot/loader works with no problem as well as just press [return] at the
prompt.

We need this feature to be working in our secure server environments (bypas=
sing
the loader and directly booting a highly customized, self contained kernel).

RE: boot(8) man page, 'it is possible to dispense with the third stage
altogether'.  However, hitting a key and specifying '/boot/kernel/kernel'
results in hard stop (impossible to reboot with crtl-alt-del) after BTX hal=
ted
message--requires power cycle.  Booting '/boot/loader' works ok.

Thanks in advance.

-Mark

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217512-8>