Port-macppc archive

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

Re: Installing and booting and OF3 machine from a single empty internaldisk, not working



> > Can you provide info about "devalias" command output on OF prompt
> > and "wd1 at foo0" attach lines on NetBSD kernel?

> Ok, I'm not sure what I need to put here from devalias, but here is some 
> stuff:
> 
> ide0 /pci/@d/mac-io/ata-3@20000
> cd /pci/@d/mac-io/ata-3@20000/disk@0
> ide1 /pci/@d/pci-ata@1/ata-4@0
> hd /pci/@d/pci-ata@1/ata-4@0/disk@0
> ultra0 /pci/@d/pci-ata@1/ata-4@0/disk@0
> ultra1 /pci/@d/pci-ata@1/ata-4@0/disk@1

Okay, "ultra1" on G3 is actually PCI IDE one which should be attached
as ???ide0 at pciN.
On G4, "ultra1" is mac-io one and it's attached as wdc0 as I posted before.

> From the install kernel from your CD:
> 
> wd1 at atabus0 drive 1: <ST3200822A>

I guess you also have the following lines,
as per other G3 machine info on ML archive:
(as you can see verbose messages are appreciated for remote analysis ;-)
---
 :
grackle0 at mainbus0
pci0 at grackle0 bus 0
pci0: i/o space, memory space enabled
 :
ppb0 at pci0 dev 13 function 0: Digital Equipment DECchip 21154 PCI-PCI Bridge 
(rev. 0x02)
pci1 at ppb0 bus 1
 :
cmdide0 at pci1 dev 1 function 0
cmdide0: CMD Technology PCI0646 (rev. 0x05)
cmdide0: bus-master DMA support present
cmdide0: primary channel configured to native-PCI mode
cmdide0: using irq 26 for native-PCI interrupt
atabus0 at cmdide0 channel 0
cmdide0: secondary channel configured to native-PCI mode
cmdide0: secondary channel ignored (disabled)
 :
wd1 at atabus0 drive 1: <ST3200822A>
---

If so, the following patch might be required for cmdide(4) based machines:

http://mail-index.NetBSD.org/port-macppc/2008/07/23/msg000333.html

--- ./ofw_autoconf.c.orig       2008-01-12 03:12:16.000000000 +0000
+++ ./ofw_autoconf.c    2008-07-22 12:24:04.000000000 +0000
@@ -320,7 +320,8 @@
                /* periph_target is target for scsi, drive # for atapi */
                if (addr != sa->sa_periph->periph_target)
                return;
-       } else if (device_is_a(device_parent(device_parent(dev)), "pciide") ||
+       } else if (device_is_a(device_parent(device_parent(dev)), "pciide") ||
+                  device_is_a(device_parent(device_parent(dev)), "cmdide") ||
                   device_is_a(device_parent(device_parent(dev)), "viaide") ||
                   device_is_a(device_parent(device_parent(dev)), "slide")) {
                struct ata_device *adev = aux;


I've also put a new bootable install cd with the similar patch.
ftp://ftp.NetBSD.org/pub/NetBSD/misc/tsutsui/iso/macppccd-5.0.1_PATCH-OF3test-20091209.iso.gz
ftp://ftp.NetBSD.org/pub/NetBSD/misc/tsutsui/iso/macppc-OF3test-20091209.diff

Note this version creates only 1MB FAT12 MSDOS partition for boot.
---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index