OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: 3.6 cannot find root device on Apple Cube

From: Stefan Kell (skellgmx.de)
Date: Wed Jan 05 2005 - 02:06:44 CST


Hi,

I would fix it once and for all, that means hardware. If you just
recompile than you have to install the kernel sources and more important
to remember to do it again after an upgrade.

Regards

Stefan

On Wed, 5 Jan 2005, David Clarke wrote:

> Yep, so which option do you think is likely to be the *least* painful?
> I'm inclined to try a custom kernel, the inside of the cube is fairly
> dense, I would hate to fix one problem and in the process create
> another.
>
> Cheers
>
>
> On Tue, 4 Jan 2005 23:32:12 +0100 (CET), Stefan Kell <skba.opbsdgmx.de> wrote:
> > Hello,
> >
> > hm,..., you could build a custom cernel with only root and swap device
> > changed, see "man config" and there "config bsd root on dev...." (or
> > change the cabling inside the cube ;-)
> >
> > Regards
> >
> > Stefan
> >
> > On Wed, 5 Jan 2005, David Clarke wrote:
> >
> > > Hi Stefan
> > >
> > > Thanks for your reply, yes I do in fact already have Open Firmware to
> > > boot automatically using 'setenv boot-device cd:,ofwboot' and that
> > > works fine. You can see from the dmesg that OpenBSD is booting up
> > > ok, it just fails to find the root device to mount.
> > >
> > > Regards
> > >
> > > On Tue, 4 Jan 2005 14:52:03 +0100 (CET), Stefan Kell <skba.opbsdgmx.de > wrote:
> > > > Hello,
> > > >
> > > > I am not a MAC-specialist, but: from the installation instructions at
> > > > "ftp://ftp.openbsd.org/pub/OpenBSD/3.6/macppc/INSTALL.macppc "
> > > >
> > > > >> Autobooting OpenBSD/macppc
> > > > >>
> > > > >>
> > > > >> It is possible to automatically boot into OpenBSD (selectably into Mac
> > > > >> OS) by setting up the following:
> > > > >>
> > > > >> setenv auto-boot? true
> > > > >> setenv boot-device hd:,ofwboot
> > > > >>
> > > > >> [to save the results into NVRAM]
> > > > >> reset-all
> > > > >>
> > > > >> These settings assume that the master of the first IDE bus has OpenBSD
> > > > >> installed on it, either in MBR format or in shared mode with ofwboot
> > > > >> copied into the first HFS(+) partition. It is not necessary to specify
> > > > >> '/bsd' on the boot line or in the boot-device variable, since it is the
> > > > >> default.
> > > >
> > > > if hd: and cd: are have been swapped (as is shown in your dmesg) you
> > > > could try "setenv boot-device cd:,ofwboot".
> > > >
> > > > Regards
> > > >
> > > > Stefan
> > > >
> > > > On Tue, 4 Jan 2005, David Clarke wrote:
> > > >
> > > > > Hi
> > > > >
> > > > > I've installed 3.6 on an Apple Cube, intending to run it headless as a
> > > > > development server (nice and quiet to keep my family happy). The
> > > > > cube has been modded by the previous owner including a
> > > > > processor card upgrade. The mod that appears to be giving me
> > > > > grief is the 3rd-party DVD writer. There appears to have been some
> > > > > jiggery pokery involved in the installation and the Open Firmware
> > > > > aliases for hd & cd are reversed (which means eject hd: actually
> > > > > ejects the cd). Apart from my usual wrestle with disklabel & fdisk,
> > > > > the install was fine but as you can see in dmesg below, I have to
> > > > > specify where the root device is. I could just about live with this but
> > > > > I really want to run it headless. I've googled but haven't been able
> > > > > to locate anything particularly useful.
> > > > >
> > > > > Any help would be appreciated.
> > > > >
> > > > > Thanks
> > > > > Dave
> > > > >
> > > > > [ using 373324 bytes of bsd ELF symbol table ]
> > > > > console out [ATY,Rage128Pd]console in [keyboard] USB found
> > > > > : memaddr 94000000 size 4000000, : consaddr 96008000, : ioaddr
> > > > > 90020000, size 20000: memtag 8000, iotag 8000: width 640 linebytes 768
> > > > > height 480 depth 8
> > > > > Copyright (c) 1982, 1986, 1989, 1991, 1993
> > > > > The Regents of the University of California. All rights reserved.
> > > > > Copyright (c) 1995-2004 OpenBSD. All rights reserved. http://www.OpenBSD.org
> > > > >
> > > > > OpenBSD 3.6 (GENERIC) #47: Fri Sep 17 14:55:19 MDT 2004
> > > > > deraadtmacppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC
> > > > > real mem = 129826816 (126784K)
> > > > > avail mem = 113201152 (110548K)
> > > > > using 1254 buffers containing 6488064 bytes of memory
> > > > > mainbus0 (root)
> > > > > cpu0 at mainbus0: 7455 (Revision 303): 1200 MHz: 256KB L2 cache, 2MB L3 cache
> > > > > memc0 at mainbus0: uni-n
> > > > > mpcpcibr0 at mainbus0: uni-north, Revision 0xff
> > > > > pci0 at mpcpcibr0 bus 0
> > > > > pchb0 at pci0 dev 11 function 0 "Apple Uni-N AGP" rev 0x00
> > > > > vgafb0 at pci0 dev 16 function 0 "ATI Rage Fury" rev 0x00, mmio
> > > > > wsdisplay0 at vgafb0: console (std, vt100 emulation)
> > > > > mpcpcibr1 at mainbus0: uni-north, Revision 0x16
> > > > > pci1 at mpcpcibr1 bus 0
> > > > > pchb1 at pci1 dev 11 function 0 "Apple Uni-N" rev 0x00
> > > > > macobio0 at pci1 dev 23 function 0 "Apple Keylargo" rev 0x03
> > > > > openpic0 at macobio0: version 0x4614
> > > > > gpio_obio0 at macobio0
> > > > > gpio_obio1 at gpio_obio0 irq 47
> > > > > programmer-switch at gpio_obio0 not configured
> > > > > zsc0 at macobio0: irq 22,50
> > > > > zstty0 at zsc0 channel 0
> > > > > zstty1 at zsc0 channel 1
> > > > > adb0 at macobio0 irq 25: via-pmu 0 targets
> > > > > aed0 at adb0 addr 0: ADB Event device
> > > > > apm0 at adb0: battery flags 0x9, 0% charged
> > > > > ki2c0 at macobio0
> > > > > wdc0 at macobio0 irq 19: DMA
> > > > > atapiscsi0 at wdc0 channel 0 drive 0
> > > > > scsibus0 at atapiscsi0: 2 targets
> > > > > cd0 at scsibus0 targ 0 lun 0: <MATSHITA, DVD-R UJ-815, DWDB> SCSI0
> > > > > 5/cdrom removable
> > > > > wd0 at wdc0 channel 0 drive 1: <ST360015A>
> > > > > wd0: 16-sector PIO, LBA, 57241MB, 117231408 sectors
> > > > > cd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4
> > > > > wd0(wdc0:0:1): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4
> > > > > wdc1 at macobio0 irq 20: DMA
> > > > > wdc2 at macobio0 irq 21: DMA
> > > > > ohci0 at pci1 dev 24 function 0 "Apple USB" rev 0x00: irq 27, version 1.0
> > > > > usb0 at ohci0: USB revision 1.0
> > > > > uhub0 at usb0
> > > > > uhub0: Apple OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> > > > > uhub0: 2 ports with 2 removable, self powered
> > > > > uhub1 at uhub0 port 1
> > > > > uhub1: Mitsumi Electric Hub in Apple Extended USB Keyboard, class 9/0,
> > > > > rev 1.10/1.22, addr 2
> > > > > uhub1: 3 ports with 2 removable, bus powered
> > > > > uhidev0 at uhub1 port 1 configuration 1 interface 0
> > > > > uhidev0: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/1.22,
> > > > > addr 3, iclass 3/1
> > > > > ukbd0 at uhidev0: 8 modifier keys, 6 key codes
> > > > > wskbd0 at ukbd0 (mux 1 ignored for console): console keyboard, using wsdisplay0
> > > > > uhidev1 at uhub1 port 1 configuration 1 interface 1
> > > > > uhidev1: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/1.22,
> > > > > addr 3, iclass 3/0
> > > > > uhidev1: 3 report ids
> > > > > uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
> > > > > uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0
> > > > > ohci1 at pci1 dev 25 function 0 "Apple USB" rev 0x00: irq 28, version 1.0
> > > > > usb1 at ohci1: USB revision 1.0
> > > > > uhub2 at usb1
> > > > > uhub2: Apple OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> > > > > uhub2: 2 ports with 2 removable, self powered
> > > > > "Texas Instruments TSB12LV26 FireWire" rev 0x00 at pci1 dev 26
> > > > > function 0 not configured
> > > > > mpcpcibr2 at mainbus0: uni-north, Revision 0xff
> > > > > pci2 at mpcpcibr2 bus 0
> > > > > pchb2 at pci2 dev 11 function 0 "Apple Uni-N Eth" rev 0x00
> > > > > gem0 at pci2 dev 15 function 0 "Apple GMAC" rev 0x01: irq 41, address
> > > > > 00:30:65:ac:0b:62
> > > > > lxtphy0 at gem0 phy 0: LXT971 10/100 media interface, rev. 1
> > > > > bootpath: '/pcif2000000/mac-io17/ata-41f000/disk1/bsd'
> > > > > boot device: lookup 'wd1a' failed.
> > > > > root device : wd0a
> > > > > swap device (default wd0b):
> > > > > root on wd0a
> > > > > rootdev=0x0 rrootdev=0xb00 rawdev=0xb02