Bug#689273: grub-ieee1275: grub-install chooses wrong boot-device parameter for openfirmware nvram

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Oct 1 01:34:21 UTC 2012


On 09/30/2012 09:15 PM, Daniel Kahn Gillmor wrote:
> I can get this machine to boot fine with grub 2.00-7 by using the
> default "hd" openfirmware alias for its disk.
> 
> however, when i do "grub-install", this sets the boot-device paramter
> to something that does not boot properly:
> 
> 0 togrul:~# nvram --print-config=boot-device
> hd:4,\powerpc-ieee1275\core.elf
> 0 togrul:~# grub-install 
> Installation finished. No error reported.
> 0 togrul:~# nvram --print-config=boot-device
> /pci at f2000000/mac-io at 17/ata-4 at 1f000/scsi at 0/sd at 0,0:4,\powerpc-ieee1275\core.elf
> 0 togrul:~# 

also, in openfirmware, if i type "devalias hd", i see this (transcribed
visually, i hope i didn't botch anything):

 /pci at f2000000/mac-io at 17/ata-4 at 1f000/disk at 0

So the mapping chosen looks right up until the last couple sections.  in
particular, .../scsi at 0/sd at 0,0 should be .../disk at 0.

note that this is a parallel ATA device, but it shows up as /dev/sda
under a modern linux kernel due to the modern ata subsystem.  perhaps
something in grub thinks that /dev/sda must be scsi?

(i found this openfirmware command reference helpful in tracking this
bit of debugging info down: http://www.firmworks.com/QuickRef.html )

	--dkg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1030 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20120930/09e9d242/attachment.pgp>


More information about the Pkg-grub-devel mailing list