Package: yaboot Version: 1.3.17-4 Tags: patch --
Hi, here is a patch that should add support for pata_macio driver in ofpath on oldworld. I have bug #695945 on qemu too and it seems that pata_macio driver is used and by default qemu-system-ppc emulates an oldworld AAPL,PowerMac G3. quik-installer uses ofpath and it fails to translate the linux device path to OpenFirmware path, because this combination pata_macio/oldworld/PowerMac G3 is not dealt with. As it said in the bug above, not sure "nvsetenv boot-device \"${ofpath}0\" in quik-installer post-install is needed. I tested quik-installer without those lines and the installer worked. But this was on qemu and I don't have real hardware to check more. So I added support to the ofpath script. ofpath wouldn't fail and will provide an OF path and I could finish the installation properly. I checked the generated path was ok from the OF prompt of the qemu machine. Let me know what you think of this. Thanks! F.
diff -Nru yaboot-1.3.17/debian/patches/add-pata_macio-support-on-old-world.patch yaboot-1.3.17/debian/patches/add-pata_macio-support-on-old-world.patch --- yaboot-1.3.17/debian/patches/add-pata_macio-support-on-old-world.patch 1969-12-31 19:00:00.000000000 -0500 +++ yaboot-1.3.17/debian/patches/add-pata_macio-support-on-old-world.patch 2016-06-07 02:27:26.000000000 -0400 @@ -0,0 +1,31 @@ +Description: Add support for pata_macio on oldworld + I have bug #695945 on qemu too and it seems that pata_macio driver is used and + by default qemu-system-ppc emulates an oldworld AAPL,PowerMac G3. + quik-installer uses ofpath and it fails to translate the linux device path of + OpenFirmware path, because this combination pata_macio/oldworld/PowerMac G3 is + not dealt with. +Author: Frederic Bonnard <fre...@linux.vnet.ibm.com> +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/ybin/ofpath ++++ b/ybin/ofpath +@@ -542,6 +542,19 @@ + mesh) + echo $(cat /proc/device-tree/$ALIASES/scsi)/sd\@$DEVICE_ID:$PARTITION + ;; ++ pata_macio) ++ case "$DEVNODE" in ++ sda|sdc) ++ echo $(cat /proc/device-tree/$ALIASES/ide0)\@$DEVICE_ID$PART ++ ;; ++ sdb|sdd) ++ echo $(cat /proc/device-tree/$ALIASES/ide1)\@$DEVICE_ID$PART ++ ;; ++ sd*) ++ echo 1>&2 "$PRG: Device: /dev/$DEVNODE is not supported" ++ ;; ++ esac ++ ;; + *) + echo 1>&2 "$PRG: Driver $SCSI_DRIVER is not supported" + return 1 diff -Nru yaboot-1.3.17/debian/patches/series yaboot-1.3.17/debian/patches/series --- yaboot-1.3.17/debian/patches/series 2016-04-02 23:59:10.000000000 -0400 +++ yaboot-1.3.17/debian/patches/series 2016-06-07 02:27:26.000000000 -0400 @@ -10,3 +10,4 @@ cell-support.patch typo.patch 819549-cd.patch +add-pata_macio-support-on-old-world.patch