All of lore.kernel.org
 help / color / mirror / Atom feed
* GRUB device names wrt. ieee1275
@ 2009-03-14 22:14 David Miller
  2009-03-14 23:44 ` phcoder
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: David Miller @ 2009-03-14 22:14 UTC (permalink / raw)
  To: grub-devel


One issue I need to resolve before I can send finalized
patches out for sparc is about device naming.

Currently the PowerPC ieee1275 support allows using both device
aliases and full openfirmware device path names with the usual GRUB
partition specification concatenated at the end.  For the most part
this is fine.

This works for a large group of cases, but in general it will not
work.

The problem is two fold:

1) "," characters can appear anywhere in an openfirmware path
   name.  For example my workstations disk is:

	/pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/disk@0

   There are no quick workarounds for this.  For example, even if we
   can change the partition fetching code in GRUB to use "strrchr()"
   instead of "strchr()" in kern/disk.c:grub_disk_open() it will
   still think the above path has partition ",600000" or something
   silly like that.

2) Disks can have multiple comma seperated components especially
   on SCSI in OF path names.  For example a disk on target 2,
   lun 3, would have final path component "disk@2,3"

   And currently that ",3" would look like a parition specification
   to GRUB.

Therefore, I would suggest that we adopt the openfirmware partition
specification of ":" on GRUB for ieee1275 platforms.

Then we just have a machine specific path seperator, defined in
some <grub/machine/foo.h> header file and the kernel/disk.c code
and elsewhere use the macro instead of ","

Any objections?



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2009-03-23  4:23 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-14 22:14 GRUB device names wrt. ieee1275 David Miller
2009-03-14 23:44 ` phcoder
2009-03-15  5:24   ` David Miller
2009-03-15  9:22 ` Vesa Jääskeläinen
2009-03-15 22:52   ` David Miller
2009-03-15 15:45 ` Robert Millan
2009-03-15 22:41   ` David Miller
2009-03-18 10:18     ` Robert Millan
2009-03-18 20:55       ` David Miller
2009-03-18 21:01         ` David Miller
2009-03-22  0:41           ` phcoder
2009-03-22  0:48             ` phcoder
2009-03-22  1:57               ` David Miller
2009-03-22  1:56             ` David Miller
     [not found]               ` <49C61E3D.3040901@gmail.com>
     [not found]                 ` <20090322.153022.233646325.davem@davemloft.net>
2009-03-22 22:51                   ` phcoder
2009-03-23  1:13                     ` David Miller
2009-03-22 12:22             ` Robert Millan
2009-03-23  4:23               ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.