NetBSD Problem Report #34936
From jam@sou.nerv.org Sun Oct 29 01:30:45 2006
Return-Path: <jam@sou.nerv.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 197CD63B8CA
for <gnats-bugs@gnats.NetBSD.org>; Sun, 29 Oct 2006 01:30:45 +0000 (UTC)
Message-Id: <20061029013030.7B212E462E@fs.localdomain>
Date: Sun, 29 Oct 2006 10:30:30 +0900 (JST)
From: jam@pobox.com
Reply-To: jam@pobox.com
To: gnats-bugs@NetBSD.org
Subject: grub degraded?
X-Send-Pr-Version: 3.95
>Number: 34936
>Category: pkg
>Synopsis: grub-0.97nb6 cannot boot xen although nb5 could
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: jmmv
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 29 01:35:00 +0000 2006
>Closed-Date: Sun Dec 17 19:22:39 +0000 2006
>Last-Modified: Sun Dec 17 19:25:00 +0000 2006
>Originator: Jam
>Release: NetBSD 4.99.3
>Organization:
personal
>Environment:
System: NetBSD fs 4.99.3 NetBSD 4.99.3 (sou) #0: Sun Oct 1 00:23:50 JST 2006 jam@fs:/usr/src/sys/arch/i386/compile/sou i386
Architecture: i386
Machine: i386
>Description:
GRUB 0.97nb6 does not works correctly. See following dialogue.
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-lik e line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> root (hd0,0,a)
Filesystem type is ufs2, partition type 0xa9
grub> kernel (hd0,0,a)/xen.gz
Error 13: Invalid or unsupported executable format
grub> kernel (hd0,0,a)/xen
Error 13: Invalid or unsupported executable format
grub> quit
GRUB 0.97nb5 could work fine by recognizing xen.gz as Multiboot-elf.
In addition, both GRUB 0.97nb5 and 0.97nb6 cannot read NetBSD 4
Multiboot kernel. :(
>How-To-Repeat:
Install /usr/pkgsrc/sysutils/xenkernel30.
Copy /usr/pkg/xen3-kernel/xen.gz to /
Copy kernel/netbsd-XEN3_DOM0.gz to /
Add following item into /grub/menu.lst
title Xen / NetBSD (hd0a, vga)
root(hd0,0,a)
kernel (hd0,0,a)/xen.gz dom0_mem=128m
module (hd0,0,a)/netbsd-XEN3_DOM0.gz root=/dev/hda0 ro console=tty0
Reboot machine and try to start from Xen in GRUB menu.
>Fix:
I don't know it.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->jmmv
Responsible-Changed-By: joerg@netbsd.org
Responsible-Changed-When: Mon, 30 Oct 2006 14:00:50 +0000
Responsible-Changed-Why:
Julio chnaged the native kernel and I can reproduce that problem.
I can't reproduce the xen.gz issue.
From: Kazushi (Jam) Marukawa <jam@pobox.com>
To: gnats-bugs@NetBSD.org, jmmv@NetBSD.org, pkg-manager@netbsd.org,
pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org, joerg@netbsd.org
Cc:
Subject: Re: pkg/34936 (grub-0.97nb6 cannot boot xen although nb5 could)
Date: Tue, 31 Oct 2006 20:06:19 +0900
On Oct 30, 14:00, joerg@netbsd.org wrote:
> Subject: Re: pkg/34936 (grub-0.97nb6 cannot boot xen although nb5 could)
> Synopsis: grub-0.97nb6 cannot boot xen although nb5 could
>
> Responsible-Changed-From-To: pkg-manager->jmmv
> Responsible-Changed-By: joerg@netbsd.org
> Responsible-Changed-When: Mon, 30 Oct 2006 14:00:50 +0000
> Responsible-Changed-Why:
> Julio chnaged the native kernel and I can reproduce that problem.
> I can't reproduce the xen.gz issue.
Thanks for the reply. I am not sure why but I experienced following
after the first send-pr. I also cannot reproduce the xen.gz issue on
another machine that can read .gz file correctly whenever. :(
1. grub-nb6 command doesn't recognize both xen.gz and xen (ungzipped).
2. actual grub-nb6 boot loader CAN recognize xen but not xen.gz.
3. grub-nb5 boot loader recognize xen but not xen.gz
4. grub-nb5 boot loader on ANOTHER MACHINE recognize both xen.gz and xen.
I guess grub-nb6 boot loader will recognize both too on this machine.
I used following programs.
- grub-nb5
- grub-nb6
- xenkernel30-3.0.3
- xentools30-3.0.3
Are there any other packages related to this issue?
Thanks,
-- Kazushi Marukawa
From: Kazushi (Jam) Marukawa <jam@pobox.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/34936
Date: Sat, 25 Nov 2006 11:54:56 +0900
Please close this PR because of following reasons. Thanks.
1. I reported xen didn't boot from grub-0.97nb6. This is
not correct. Both could boot xen (after ungzipping).
I'm still having difficulties between old machine (can
boot from XXX.gz) and new machine (cannot boot from
XXX.gz) though. This should be another story, so please
close this PR.
2. I also reported that newer NetBSD 4 kernel couldn't boot
from GRUB. It was not correct. Newer multiboot kernel
could boot by *NOT* specifying "--type=netbsd"
I specified wrong parameter since the info said to do so.
Please modify grub.info like below to help others.
Then, close this PR please. Thanks.
diff -au ./docs/grub.info.orig ./docs/grub.info
--- ./docs/grub.info.orig 2005-05-08 12:00:05.000000000 +0900
+++ ./docs/grub.info 2006-11-25 11:45:30.000000000 +0900
@@ -881,10 +881,15 @@
2. Load the kernel with `kernel' (*note kernel::). You should append
the ugly option `--type=netbsd', if you want to load an ELF
- kernel, like this:
+ kernel for NetBSD 3.X and former, like this:
grub> kernel --type=netbsd /netbsd-elf
+ Or if you want to load an multiboot kernel for NetBSD 4.X and
+ latter, like this:
+
+ grub> kernel /netbsd-multiboot
+
3. Run `boot' (*note boot::).
For now, however, GRUB doesn't allow you to pass kernel parameters,
State-Changed-From-To: open->closed
State-Changed-By: jmmv@netbsd.org
State-Changed-When: Sun, 17 Dec 2006 19:22:39 +0000
State-Changed-Why:
I have fixed the grub documentation as you suggested. Can you please send
patch-ah to the grub developers? Thank you.
From: "Julio M. Merino Vidal" <jmmv@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/34936 CVS commit: pkgsrc/sysutils/grub
Date: Sun, 17 Dec 2006 19:21:43 +0000 (UTC)
Module Name: pkgsrc
Committed By: jmmv
Date: Sun Dec 17 19:21:43 UTC 2006
Modified Files:
pkgsrc/sysutils/grub: MESSAGE Makefile distinfo
Added Files:
pkgsrc/sysutils/grub/patches: patch-ah
Log Message:
Make it clear how to boot a Multiboot-enabled kernel. Per suggestion in
PR pkg/34936. Bump PKGREVISION to 7.
To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 pkgsrc/sysutils/grub/MESSAGE
cvs rdiff -r1.45 -r1.46 pkgsrc/sysutils/grub/Makefile
cvs rdiff -r1.20 -r1.21 pkgsrc/sysutils/grub/distinfo
cvs rdiff -r0 -r1.4 pkgsrc/sysutils/grub/patches/patch-ah
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.