echo "${DEVICE_PATH##*device-tree}/@$DEVICE_ID:$PARTITION"
;;
ata_k2|sata_svw)
+ #Not all G5 device trees have a compatible "k2-sata" node
+ #per channel use parent
HOST_LIST="$(for i in `find /proc/device-tree -name compatible ` ; do
- lgrep "$i" "k2-sata" ; done | sort)"
+ lgrep "$i" "k2-s-ata" ; done | sort)"
DEVICE_PATH="$(printhost $SCSI_HOSTNUMBER $HOST_LIST)"
- echo "${DEVICE_PATH##*device-tree}/disk@0:$PARTITION"
+ K2_DEVICE_ID=0
+ while [ "$DEVICE_PATH" = "" ] ; do
+ SCSI_HOSTNUMBER=`expr $SCSI_HOSTNUMBER - 1`
+ let "K2_DEVICE_ID += 1"
+ DEVICE_PATH="$(printhost $SCSI_HOSTNUMBER $HOST_LIST)"
+ done
+ echo "${DEVICE_PATH##*device-tree}/k2-sata@$K2_DEVICE_ID/disk@0:$PARTITION"
;;
sbp2)
HOST_LIST="$(for i in `find /proc/device-tree -name name` ; do