|
From: | Grégoire Sutre |
Subject: | Re: Invalid symbol table on NetBSD boot |
Date: | Sat, 09 Jan 2010 16:33:42 +0100 |
User-agent: | Thunderbird 2.0.0.23 (X11/20091027) |
Robert Millan wrote:
grub> multiboot /netbsd.generic -z root=wd0aThere was an intentional backward-incompatible (but still compatible with the specification) change. The equivalent command on GRUB 2 would be: grub> multiboot /netbsd.generic /netbsd.generic -z root=wd0a
Ok.
First argument is the file being open; in GRUB Legacy it's implicitly also the first arg passed to payload, which is less flexible than letting user specify it. It doesn't have to be the filename at all, and usually the payload doesn't need this information.
I don't know how it is used in NetBSD, the only difference I could observe is the sysctl parameter `machdep.booted_kernel' which is set to the file name of the booted kernel (or empty if the information could not be derived from the multiboot command-line).
I'm not sure if this explains your missing word problem, but it sounds like it could be related.
Yes, it sure explains the problem, thanks! I had a look at the multiboot command-line parsing in the NetBSD kernel: the first argument in the command-line is ignored (here `-z') as it is assumed to be the kernel file name.
Anyway, the above solution (duplicating the kernel file name) is simple enough. :-)
Grégoire
[Prev in Thread] | Current Thread | [Next in Thread] |