Port-macppc archive

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

Re: Boot-problems on G3 BW



Hello,

On Nov 2, 2008, at 1:24 AM, pcfxer wrote:

Michael Lorenz wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Jul 23, 2008, at 06:21, Marco Trillo wrote:

On Wed, Jul 23, 2008 at 11:34 AM, Andreas Wolf <aw%seqlab.de@localhost> wrote:
this is my first attempt to install NetBSD 4 on a blue/white G3 with
OpenFirmware 3.1.1. I'm installing from CD onto a single 120 Gig HD
partitioned into several BSD4.2 parts and one HFS+ part. I tried
to follow
the instructions carefully, but after installation, I cannot boot
into
NetBSD.
[...]
boot-device: <unknown>
root-device:


I think applying the following patch to
src/sys/arch/powerpc/oea/ofw_autoconf.c should make it work (also
attached for conveniency).

The IDE controller on the B&W G3 is a cmdide(4), but the autoconf code
lacks the appropriate glue code to detect it.

I hope it helps! Regards, Marco.

--- ./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;<ofw_autoconf.c.diff>

Looks reasonable to me, if it solves Andreas' problem I'll commit it.
Andreas - do you have another machine to build a kernel for the G3
on? If not I'll build one for you.



I have 4.0.1, a G3 with Sonnet Temp ATA/100 card using the promise chipset.
I suffer the same issue as above, should I attempt the above patch?

Also, I have tried to manually insert

*config netbsd root on wd0a type ffs*

however, config complains about wd0a not existing. I am attempting to
compile the kernel on a temporary machine (hardware guts everywhere) running
NetBSD 4.0.1 386. I am running NetBSD instead of OpenBSD because of
excessive timeouts on even brand new hard drives and controller cards on my
G3.

Add device_is_a(device_parent(device_parent(dev)), "pdcide") to the else if in the patch above. Or use whatever driver name your IDE controller uses when attaching.

have fun
Michael



Home | Main Index | Thread Index | Old Index