[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] yaboot 1.3.10 G5 support



On Wed, Nov 05, 2003 at 08:16:52PM +1100, Benjamin Herrenschmidt wrote:
> > ok, so the above patch looks sane to you then?
> 
> No, it looks like chineese to me :) I was only answering about the
> specifics of the disk@0 node in there

echo "${DEVICE_PATH##*device-tree}/k2-sata@$DEVICE_ID/disk@0:$PARTITION"

the first part of this just strips off /proc/device-tree/

$DEVICE_ID comes from the Id: listed in /proc/scsi/scsi

for for something like this:

Host: scsi0 Channel: 00 Id: 01 Lun: 00
  Vendor: MICROP   Model: 4421-07   0124SJ Rev: 24SJ
  Type:   Direct-Access                    ANSI SCSI revision: 02

DEVICE_ID=1

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgp00004.pgp
Description: PGP signature