Date: Tue, 9 Oct 2012 12:05:59 GMT From: Ralf Wenk <IZ-FreeBSD0701@hs-karlsruhe.de> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/172550: stage booting via grub and loader does not work any more after revision 241053 Message-ID: <201210091205.q99C5xv3043233@red.freebsd.org> Resent-Message-ID: <201210092230.q99MURPU043718@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 172550
>Category: kern
>Synopsis: stage booting via grub and loader does not work any more after revision 241053
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Oct 09 22:30:26 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Ralf Wenk
>Release: FreeBSD 10.0-CURRENT i386
>Organization:
Hochschule Karlsruhe, University of Applied Sciences
>Environment:
FreeBSD IZ-T193196065251a 10.0-CURRENT FreeBSD 10.0-CURRENT #23: Fri Oct 5 12:36:19 CEST 2012 root@IZ-T193196065251a:/usr/obj/usr/src/sys/E4300 i386
>Description:
loader(8) does not find the kernel any more after revision 241053.
The message shown is "can't load 'kernel'".
Comparing the show-command output between a loader build at Sep 3 2012 and
Oct 5 2012 shows that a lot of variables (e.g. "kernelname") are missing.
>How-To-Repeat:
This machine uses multiboot with grub as bootloader.
The menuentry in grub.cf for FreeBSD which used to work is
menuentry "FreeBSD, via /boot/loader (on /dev/sda7[a])" {
# set root=(hd0,7,a)
set root=(hd0,7)
kfreebsd /boot/loader
}
The partition layout as shown by gpart is:
# gpart show
=> 63 312581745 ada0 MBR (149G)
63 674667 1 linux-data (329M)
674730 1110 - free - (555k)
675840 1536000 2 ntfs (750M)
2211840 5130 - free - (2.5M)
2216970 65529135 3 ntfs [active] (31G)
67746105 244830600 4 ebr (116G)
312576705 5103 - free - (2.5M)
=> 0 244830600 ada0s4 EBR (116G)
0 65529135 1 linux-data (31G)
65529135 7823655 1040146 linux-swap (3.7G)
73352790 65529135 1164331 freebsd (31G)
138881925 105948675 - free - (50G)
=> 0 65529072 ada0s7 BSD (31G)
0 65529072 1 freebsd-ufs (31G)
#
>Fix:
Reverting revision 241053 fixes the problem.
I just build loader with the pre 241053 versions of sys/boot/common/disk.c,
sys/boot/common/disk.h and sys/boot/i386/libi386/biosdisk.c and it worked again
as expected.
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210091205.q99C5xv3043233>
