Discussion:
4.8 on Powerbook G4 - Won't boot
Gable Barber
2011-01-15 20:28:30 UTC
Permalink
PowerBook5,2
1.25gHz G4

Fresh install, used entire disk for OpenBSD, and automatic
partitioning layout. I did NOT move ofwboot to the boot partition with
OSX, I didn't read that part of the install notes until after I
installed. I moved ofwboot by booting off cd, mounting wd0, and moving
it manually from the cd.

Any help is greatly appreciated!


Boot to Open Firmware and attempt to boot produces several error messages.

Tried the following (and more):
boot hd:,ofwboot bsd.rd
boot hd:,ofwboot bsd
boot hd:0,ofwboot bsd.rd
boot hd:,oofwboot bsd

Error is:
DISK-LABEL: LOAD <noninterposed> not supportedload-size=0 adler32=1
LOAD-SIZE is too small.




disklabel, fdisk, and dmesg:


# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: HTS721080G9AT00
uid: 5d1283e7a575ff59
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 155061
total sectors: 156301488
boundstart: 262207
boundend: 156301471
drivedata: 0

16 partitions:
# size offset fstype [fsize bsize cpg]
a: 2097121 262207 4.2BSD 2048 16384 1
b: 2621440 2359328 swap
c: 156301488 0 unused
d: 8388608 4980768 4.2BSD 2048 16384 1
e: 12582912 13369376 4.2BSD 2048 16384 1
f: 4194304 25952288 4.2BSD 2048 16384 1
g: 2097152 30146592 4.2BSD 2048 16384 1
h: 18386720 32243744 4.2BSD 2048 16384 1
i: 4194304 50630464 4.2BSD 2048 16384 1
j: 4194304 54824768 4.2BSD 2048 16384 1
k: 97282336 59019072 4.2BSD 2048 16384 1
Disk: wd0 geometry: 155061/16/63 [156301488 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
-------------------------------------------------------------------------------
*0: 06 0 0 2 - 2 0 33 [ 1: 2048 ] DOS > 32MB
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
3: A6 4 1 2 - 155060 15 63 [ 4096: 156297392 ] OpenBSD





[ using 282368 bytes of bsd ELF symbol table ]
console out [ATY,Jasper_A]console in [keyboard] USB and ADB found, using ADB
using parent ATY,JasperParent:: memaddr b8000000 size 8000000, :
consaddr bc008000, : ioaddr b0020000, size 20000: memtag 8000, iotag
8000: width 1280 linebytes 1280 height 854 depth 8
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2010 OpenBSD. All rights reserved. http://www.OpenBSD.org

OpenBSD 4.8 (RAMDISK) #391: Mon Aug 16 09:43:08 MDT 2010
***@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/RAMDISK
real mem = 1073741824 (1024MB)
avail mem = 1030930432 (983MB)
mainbus0 at root: model PowerBook5,2
cpu0 at mainbus0: 7457 (Revision 0x101): 1249 MHz: 512KB L2 cache
mem at mainbus0 not configured
memc0 at mainbus0: uni-n
"hw-clock" at memc0 not configured
kiic0 at memc0 offset 0xf8001000
mpcpcibr0 at mainbus0 pci: uni-north, Revision 0xff
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 11 function 0 "Apple UniNorth AGP" rev 0x00
vgafb0 at pci0 dev 16 function 0 "ATI Radeon Mobility M10" rev 0x00, mmio
wsdisplay0 at vgafb0 mux 1: console (std, vt100 emulation)
mpcpcibr1 at mainbus0 pci: uni-north, Revision 0x5
pci1 at mpcpcibr1 bus 0
pchb1 at pci1 dev 11 function 0 "Apple UniNorth PCI" rev 0x00
"Broadcom BCM4306" rev 0x03 at pci1 dev 18 function 0 not configured
cbb0 at pci1 dev 19 function 0 "TI PCI1510 CardBus" rev 0x00: irq 53
macobio0 at pci1 dev 23 function 0 "Apple Intrepid" rev 0x00
openpic0 at macobio0 offset 0x40000: version 0x4614 little endian
macgpio0 at macobio0 offset 0x50
macgpio1 at macgpio0 offset 0x9 irq 47
"programmer-switch" at macgpio0 offset 0x11 not configured
"gpio4" at macgpio0 offset 0x1e not configured
"frequency-gpio" at macgpio0 offset 0x1a not configured
"voltage-gpio" at macgpio0 offset 0x1b not configured
"slewing-done" at macgpio0 offset 0x12 not configured
"gpio5" at macgpio0 offset 0x6f not configured
"gpio6" at macgpio0 offset 0x70 not configured
"extint-gpio4" at macgpio0 offset 0x5c not configured
"gpio11" at macgpio0 offset 0x75 not configured
"extint-gpio15" at macgpio0 offset 0x67 not configured
"escc-legacy" at macobio0 offset 0x12000 not configured
zsc0 at macobio0 offset 0x13000: irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
"i2s" at macobio0 offset 0x10000 not configured
"timer" at macobio0 offset 0x15000 not configured
adb0 at macobio0 offset 0x16000 irq 25: via-pmu, 3 targets
akbd0 at adb0 addr 2: PowerBook G4 keyboard (Inverted T)
wskbd0 at akbd0: console keyboard, using wsdisplay0
relative positioning device (1) at adb0 addr 3 not configured
unknown type 7 device, (handler 31) at adb0 addr 7 unsupported
"battery" at macobio0 offset 0x0 not configured
"backlight" at macobio0 offset 0xf300 not configured
"i2c" at macobio0 offset 0x18000 not configured
wdc0 at macobio0 offset 0x20000 irq 24: DMA
atapiscsi0 at wdc0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <MATSHITA, DVD-R UJ-816, DXJ3> ATAPI
5/cdrom removable
cd0(wdc0:0:0): using BIOS timings, DMA mode 2
ohci0 at pci1 dev 24 function 0 "Apple Intrepid USB" rev 0x00: irq 0,
version 1.0, legacy support
ohci1 at pci1 dev 25 function 0 "Apple Intrepid USB" rev 0x00: irq 0,
version 1.0, legacy support
ohci2 at pci1 dev 26 function 0 "Apple Intrepid USB" rev 0x00: irq 29,
version 1.0, legacy support
ohci3 at pci1 dev 27 function 0 "NEC USB" rev 0x43: irq 63, version 1.0
ohci4 at pci1 dev 27 function 1 "NEC USB" rev 0x43: irq 63, version 1.0
ehci0 at pci1 dev 27 function 2 "NEC USB" rev 0x04: irq 63
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "NEC EHCI root hub" rev 2.00/1.00 addr 1
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "Apple OHCI root hub" rev 1.00/1.00 addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2 "Apple OHCI root hub" rev 1.00/1.00 addr 1
usb3 at ohci2: USB revision 1.0
uhub3 at usb3 "Apple OHCI root hub" rev 1.00/1.00 addr 1
usb4 at ohci3: USB revision 1.0
uhub4 at usb4 "NEC OHCI root hub" rev 1.00/1.00 addr 1
usb5 at ohci4: USB revision 1.0
uhub5 at usb5 "NEC OHCI root hub" rev 1.00/1.00 addr 1
mpcpcibr2 at mainbus0 pci: uni-north, Revision 0x20
pci2 at mpcpcibr2 bus 0
pchb2 at pci2 dev 11 function 0 "Apple UniNorth PCI" rev 0x00
kauaiata0 at pci2 dev 13 function 0 "Apple Intrepid ATA" rev 0x00
wdc1 at kauaiata0 irq 39: DMA
wd0 at wdc1 channel 0 drive 0: <HTS721080G9AT00>
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(wdc1:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5
"Apple UniNorth Firewire" rev 0x81 at pci2 dev 14 function 0 not configured
gem0 at pci2 dev 15 function 0 "Apple Uni-N2 GMAC" rev 0x80: irq 41,
address 00:0a:95:ca:14:16
eephy0 at gem0 phy 0: 88E1111 Gigabit PHY, rev. 1
rd0: fixed, 8192 blocks
uhidev0 at uhub3 port 1 configuration 1 interface 0 "vendor 0x05ac
product 0x1000" rev 2.00/15.86 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub3 port 1 configuration 1 interface 1 "vendor 0x05ac
product 0x1000" rev 2.00/15.86 addr 2
uhidev1: iclass 3/1
uhid0 at uhidev1: input=3, output=0, feature=1
softraid0 at root
bootpath: /***@f2000000/mac-***@17/ata-***@20000/***@0:/4.8/macppc/bsd.rd
root on rd0a swap on rd0b dump on rd0b
WARNING: clock gained 152 days -- CHECK AND RESET THE DATE!
umass0 at uhub0 port 2 configuration 1 interface 0 "Generic Mass
Storage" rev 2.00/1.01 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <Generic, Flash Disk, 8.07> SCSI2
0/direct removable
sd0: 1004MB, 512 bytes/sec, 2057216 sec total
--
Regards,
Gable Barber
Sergiu Partenie
2011-01-15 20:47:54 UTC
Permalink
Post by Gable Barber
Fresh install, used entire disk for OpenBSD, and automatic
partitioning layout. I did NOT move ofwboot to the boot partition with
OSX, I didn't read that part of the install notes until after I
installed. I moved ofwboot by booting off cd, mounting wd0, and moving
it manually from the cd.
ofwboot should be on a HFS / HFS+ ("Mac OS Extended"/"Mac OS Extended
(Journaled)" in Disk Utility) partition, preferably the 1st one on the boot
disk. Have you copied ofwboot to the HFS partition or in the OpenBSD / ?
Gable Barber
2011-01-15 20:55:35 UTC
Permalink
Post by Gable Barber
Fresh install, used entire disk for OpenBSD, and automatic
partitioning layout. I did NOT move ofwboot to the boot partition with
OSX, I didn't read that part of the install notes until after I
installed. I moved ofwboot by booting off cd, mounting wd0, and moving
it manually from the cd.
ofwboot should be on a HFS / HFS+ ("Mac OS Extended"/"Mac OS Extended (Journaled)" in Disk Utility) partition, preferably the 1st one on the boot disk. Have you copied ofwboot to the HFS partition or in the OpenBSD / ?
I moved it to wd0a, assuming this was the correct partition. Is it not?
--
Regards,
Gable Barber
Strength, will, and power.
http://gablebarber.blogspot.com/
Joel Rees
2011-01-22 00:22:49 UTC
Permalink
On Sat, 15 Jan 2011 14:55:35 -0600
Post by Gable Barber
Post by Gable Barber
Fresh install, used entire disk for OpenBSD, and automatic
partitioning layout.
I know entire disk works with intel Macs, and I remember that
there was some discussion of entire partition working on PPC
Macs back when Apple went pure insane. But does entire disk
work with all PPC Macs?

If so, what does one do instead of ofwboot, since there is no
PCBIOS and the 4-DOS-partition paradigm doesn't hold?

And, which machines does entire partition work on?
Post by Gable Barber
Post by Gable Barber
I did NOT move ofwboot to the boot partition with
OSX, I didn't read that part of the install notes until after I
installed. I moved ofwboot by booting off cd, mounting wd0, and moving
it manually from the cd.
Did you do that from Mac OS or from openbsd?
Post by Gable Barber
ofwboot should be on a HFS / HFS+ ("Mac OS Extended"/"Mac OS Extended (Journaled)" in Disk Utility) partition, preferably the 1st one on the boot disk. Have you copied ofwboot to the HFS partition or in the OpenBSD / ?
I moved it to wd0a, assuming this was the correct partition. Is it not?
What format is wd0a? HFS+? or openbsd's native format? (What was it, now, I wish I weren't losing my memory.)

Anyway, I'm thinking that wd0a is probably not a place you'll be able to talk the open firmward boot ROM into reading ofwboot from. Especially if you used the default partitioning scheme.
--
Joel Rees <***@sannet.ne.jp>
Bruce O'Neel
2011-01-30 11:01:28 UTC
Permalink
Hi,

I use fresh install, entire disk for OpenBSD, and but manuall partitioned
since it's a small disk.

My disklabel and wd0i partition look like:

# disklabel wd0
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: FUJITSU MHS2030A
uid: 2b6c4ae49a2fe27a
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 58140
total sectors: 58605120
boundstart: 4096
boundend: 58605120
drivedata: 0

16 partitions:
# size offset fstype [fsize bsize cpg]
a: 56503424 2101696 4.2BSD 2048 16384 1 # /
b: 2097584 4096 swap
c: 58605120 0 unused
i: 2048 1 MSDOS
# mount -t msdos -o -l /dev/wd0i /mnt
# ls /mnt
OFWBOOT
# ls -l /mnt
total 128
-r-xr-xr-x 1 root wheel 63648 Dec 6 21:13 OFWBOOT
#

I didn't move or copy anything, the OpenBSD installer did the right thing.

I did set the boot variables to
hd:,ofwboot
and
/bsd

It does consistantly the right thing for me.

cheers

bruce
Post by Gable Barber
Post by Gable Barber
Fresh install, used entire disk for OpenBSD, and automatic
partitioning layout. I did NOT move ofwboot to the boot partition with
OSX, I didn't read that part of the install notes until after I
installed. I moved ofwboot by booting off cd, mounting wd0, and moving
it manually from the cd.
ofwboot should be on a HFS / HFS+ ("Mac OS Extended"/"Mac OS Extended (Journaled)" in Disk Utility) partition, preferably the 1st one on the boot disk. Have you copied ofwboot to the HFS partition or in the OpenBSD / ?
I moved it to wd0a, assuming this was the correct partition. Is it not?
--
Regards,
Gable Barber
Strength, will, and power.
http://gablebarber.blogspot.com/
Loading...