Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Mar 2018 12:58:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 226365] ppc64: Loader: Unable to load two kernels
Message-ID:  <bug-226365-8@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 226365
           Summary: ppc64: Loader: Unable to load two kernels
           Product: Base System
           Version: CURRENT
          Hardware: powerpc
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: breno.leitao@gmail.com

I am not able to load two kernels in the loader. If I want to load a newer
kernel, I need to unload the first one, otherwise it gets in the OFW trap.
Example:


>> FreeBSD/powerpc Open Firmware boot block
   Boot path:   /vdevice/v-scsi@2000/disk@8000000000000000
   Boot loader: /boot/loader
   Boot volume:   /vdevice/v-scsi@2000/disk@8000000000000000:2
Consoles: Open Firmware console=20=20

FreeBSD/powerpc64 Open Firmware loader, Revision 0.1
(Sun Feb 18 22:29:36 CET 2018 root@free8)
Memory: 8388608KB
Booted from: /vdevice/v-scsi@2000/disk@8000000000000000

Loading /boot/defaults/loader.conf
/boot/kernel/kernel data=3D0x129ebb0+0x4ccf90 syms=3D[0x8+0x16d370+0x8+0x16=
98ac]
/boot/entropy size=3D0x1000

Hit [Enter] to boot immediately, or any other key for command prompt.


Type '?' for a list of commands, 'help' for more detailed help.
OK load /boot/kernel.old/kernel
/boot/kernel.old/kernel data=3D0x129db60+0x4ccf60=20=20

( 700 ) Program Exception [ 0 ]


    R0 .. R7           R8 .. R15         R16 .. R23         R24 .. R31
0000000032fc6a70   0000000002c04000   0000000000000000   000000005f690000=
=20=20=20
0000000002c46a70   00000000000001b4   0000000000000000   0000000000008000=
=20=20=20
0000000000000000   000000000344bca4   0000000002c46ad8   0000000002c72080=
=20=20=20
000000000000005c   0000000002c442dc   0000000002c46adc   0000000000000000=
=20=20=20
ffffffffffffffef   0000000000fd0000   0000000000000000   0000000000fd0000=
=20=20=20
0000000000000000   0000000000000000   0000000000007fff   0000000002c69fc0=
=20=20=20
00000000000001fa   0000000000000000   0000000002c46b1c   0000000000000000=
=20=20=20
0000000002c46a88   0000000000000000   0000000002c46adc   00000000000001fa=
=20=20=20

    CR / XER           LR / CTR          SRR0 / SRR1        DAR / DSISR
        88020028   0000000002c3b20c   0000000002c02328   0000000000000000=
=20=20=20
0000000000000000   0000000002c2f160   0000000000083000           00000000=
=20=20=20


Since the loader is claiming a specific memory area from the OFW, it does n=
ot
fit both kernel. We should, either, ask for more memory for the newer kerne=
l,
or, reuse the same memory as used in the first kernel.

--=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-226365-8>