booting openbsd on powermac g3 beige

View: New views
3 Messages — Rating Filter:   Alert me  

booting openbsd on powermac g3 beige

by SebastianR :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I know from the macppc.html page, that only the blue & white powermacs are
suported. However, I just got a powermac g3 beige, and wanted to give it a
try.

I prepared everything for netboot, however, when It comes to load the ofwboot
file via tftp, it stops with an error:

# cu -l /dev/ttyU0 -s 38400
Connected

Open Firmware, 2.0f1
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
For Open Firmware serial I/O type:
TTYA IO<return>
 ok
0 > boot enet;,ofwboot

Open Firmware, 2.0f1
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
For Open Firmware serial I/O type:
TTYA IO<return>
 ok
0 > boot enet:,ofwboot /bsd.rd file: 10.0.0.206,ofwboot
TFTP timeout
TFTP timeoutLoading ELF
DEFAULT CATCH!, code=FFF00300 at   %SRR0: FF80ADD0   %SRR1: 0000B070
 ok
0 >

Then I thought, take a look at netbsd, and see how that works out. Netbsd
retrieves the kernel from NFS. After all, that worked well, the NetBSD
installer started to run...

Then I replaced the netbsd kernel with a macppc openbsd bsd.rd file from the
snapshots, and restarted the box. The following is the dmesg:

Open Firmware, 2.0f1
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
For Open Firmware serial I/O type:
TTYA IO<return>
 ok
0 > boot enet:,ofwboot.xcf file: 10.0.0.206,ofwboot.xcfloading XCOFF
tsize=C2C0 dsize=234 bsize=29C0 entry=E00000
SECTIONS:
.text    00E00000 00E00000 0000C2C0 000000E0
.data    00E0D000 00E0D000 00000234 0000C3A0
.bss     00E0D238 00E0D238 000029C0 00000000
loading .text, done..
loading .data, done..
clearing .bss, done..

>> NetBSD/macppc OpenFirmware Boot, Revision 1.10
>> (builds@wb27, Tue Oct  7 22:21:03 PDT 2008)
file: 10.0.0.206,ofwboot.xcfnet_open: client addr: 10.0.0.20
net_open: subnet mask: 255.255.255.0
net_open: net gateway: 10.0.0.1
net_open: server addr: 10.0.0.206
net_open: server path: /usr/export/mac/root
net_open: file name: /ofwboot.xcf
Using IP address: 10.0.0.20
root addr=10.0.0.206 path=/usr/export/mac/root
7263160+410420 [132208+117682]=0x78e8fc
 start=0x100114
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2008 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 4.4-current (RAMDISK) #1643: Thu Dec 18 13:09:28 MST 2008
    deraadt@...:/usr/src/sys/arch/macppc/compile/RAMDISK
real mem = 67108864 (64MB)
avail mem = 54288384 (51MB)
mainbus0 at root: model Power Macintosh Gossamer
cpu0 at mainbus0: 750 (Revision 0x202): 267 MHz: 512KB backside cache
mem at mainbus0 not configured
mpcpcibr0 at mainbus0 pci: grackle, Revision 0x40
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 0 function 0 "Motorola MPC106 PCI" rev 0x40
macobio0 at pci0 dev 16 function 0 "Apple Heathrow" rev 0x01
mesh0 at macobio0 offset 0x10000 irq 12: 50MHz
scsibus0 at mesh0: 8 targets, initiator 7
mac_intr_establish called, not yet inited
bm0 at macobio0 offset 0x11000 irq 42,33: address 00:05:02:0d:53:19
mac_intr_establish called, not yet inited
mac_intr_establish called, not yet inited
zsc0 at macobio0 offset 0x13000: irq 15,16
zstty0 at zsc0 channel 0: console
zstty1 at zsc0 channel 1
mac_intr_establish called, not yet inited
mac_intr_establish called, not yet inited
"davbus" at macobio0 offset 0x14000 not configured
"swim3" at macobio0 offset 0x15000 not configured
"nvram" at macobio0 offset 0x60000 not configured
wdc0 at macobio0 offset 0x20000 irq 13: DMA
mac_intr_establish called, not yet inited
wd0 at wdc0 channel 0 drive 0: <IBM-DTLA-307030>
wd0: 16-sector PIO, LBA, 29314MB, 60036480 sectors
wd0(wdc0:0:0): using BIOS timings, DMA mode 2
wdc1 at macobio0 offset 0x21000 irq 14: DMA
wdc1: couldn't map registers
adb0 at macobio0 offset 0x16000mac_intr_establish called, not yet inited
 irq 18: via-cuda, 2 targets
akbd0 at adb0 addr 2: extended keyboard (ISO layout)
wskbd0 at akbd0 mux 1
relative positioning device (1) at adb0 addr 3 not configured
"ATI Mach64" rev 0x5c at pci0 dev 18 function 0 not configured
rd0: fixed, 8192 blocks
bootpath: enet/netbsd
string [/netbsd] not found
Warning: bootpath unrecognized: enet/netbsd
root on rd0a swap on rd0b dump on rd0b

unfortunately, after that line, the box just freezes.

I had to change the load-base and real-base values in openfirmware to actually
get the ofwboot.xcf from netbsd to load correctly.
setenv load-base 600000
setenv real-base F00000
without that, I got a similar error like the one with the openbsd ofwboot,
therefore I wonder whether I just only need different values for the openbsd
ofwboot?

Well, the box, more or less expected, refused to run openbsd, but I thougth it
might be of interest to someone.

cheers
Sebastian


Re: booting openbsd on powermac g3 beige

by gwk-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try using the boot.mac as the boot loader,
Yes you will need nfs for boot.mac to load the kernel I believe my  
setup just exports the root directory and I named  the macppc kernel  
bsd.owmac.

some issues your likely to encounter:
        Once you complete an install to disk you can't actually boot from the  
disk because I have not figured out how to make a working old world
        APM boot loader so you will still need the net booting setup around  
(to load bsd)

        The external SCSI port (if its on the G3) will not work.

        mesh the internal scsi controller will work (I have never tried this  
with IDE so if thats you internal disk your mileage may vary)

        The ethernet controllers on these macs don't age very well if you  
have a supported PCI ethernet card toss that in you wont be able
        to boot from it unless you have fcode on the devices rom (unlikely  
unless its an asante card) and I haven't been sucessful in getting add  
on ethernet cards to boot from the network even if they have fcode.

It sounds like a long list gotchas and it is. But I am not sure any of  
the unix-like OSes that claim compatibility with the beige hardware  
really work all that well.

gwk

On Dec 21, 2008, at 12:02 PM, Sebastian Reitenbach wrote:

> Hi,
>
> I know from the macppc.html page, that only the blue & white  
> powermacs are
> suported. However, I just got a powermac g3 beige, and wanted to  
> give it a
> try.
>
> I prepared everything for netboot, however, when It comes to load  
> the ofwboot
> file via tftp, it stops with an error:
>
> # cu -l /dev/ttyU0 -s 38400
> Connected
>
> Open Firmware, 2.0f1
> To continue booting the MacOS type:
> BYE<return>
> To continue booting from the default boot device type:
> BOOT<return>
> For Open Firmware serial I/O type:
> TTYA IO<return>
> ok
> 0 > boot enet;,ofwboot
>
> Open Firmware, 2.0f1
> To continue booting the MacOS type:
> BYE<return>
> To continue booting from the default boot device type:
> BOOT<return>
> For Open Firmware serial I/O type:
> TTYA IO<return>
> ok
> 0 > boot enet:,ofwboot /bsd.rd file: 10.0.0.206,ofwboot
> TFTP timeout
> TFTP timeoutLoading ELF
> DEFAULT CATCH!, code=FFF00300 at   %SRR0: FF80ADD0   %SRR1: 0000B070
> ok
> 0 >
>
> Then I thought, take a look at netbsd, and see how that works out.  
> Netbsd
> retrieves the kernel from NFS. After all, that worked well, the NetBSD
> installer started to run...
>
> Then I replaced the netbsd kernel with a macppc openbsd bsd.rd file  
> from the
> snapshots, and restarted the box. The following is the dmesg:
>
> Open Firmware, 2.0f1
> To continue booting the MacOS type:
> BYE<return>
> To continue booting from the default boot device type:
> BOOT<return>
> For Open Firmware serial I/O type:
> TTYA IO<return>
> ok
> 0 > boot enet:,ofwboot.xcf file: 10.0.0.206,ofwboot.xcfloading XCOFF
> tsize=C2C0 dsize=234 bsize=29C0 entry=E00000
> SECTIONS:
> .text    00E00000 00E00000 0000C2C0 000000E0
> .data    00E0D000 00E0D000 00000234 0000C3A0
> .bss     00E0D238 00E0D238 000029C0 00000000
> loading .text, done..
> loading .data, done..
> clearing .bss, done..
>
>>> NetBSD/macppc OpenFirmware Boot, Revision 1.10
>>> (builds@wb27, Tue Oct  7 22:21:03 PDT 2008)
> file: 10.0.0.206,ofwboot.xcfnet_open: client addr: 10.0.0.20
> net_open: subnet mask: 255.255.255.0
> net_open: net gateway: 10.0.0.1
> net_open: server addr: 10.0.0.206
> net_open: server path: /usr/export/mac/root
> net_open: file name: /ofwboot.xcf
> Using IP address: 10.0.0.20
> root addr=10.0.0.206 path=/usr/export/mac/root
> 7263160+410420 [132208+117682]=0x78e8fc
> start=0x100114
> Copyright (c) 1982, 1986, 1989, 1991, 1993
>        The Regents of the University of California.  All rights  
> reserved.
> Copyright (c) 1995-2008 OpenBSD. All rights reserved.  http://www.OpenBSD.org
>
> OpenBSD 4.4-current (RAMDISK) #1643: Thu Dec 18 13:09:28 MST 2008
>    deraadt@...:/usr/src/sys/arch/macppc/compile/RAMDISK
> real mem = 67108864 (64MB)
> avail mem = 54288384 (51MB)
> mainbus0 at root: model Power Macintosh Gossamer
> cpu0 at mainbus0: 750 (Revision 0x202): 267 MHz: 512KB backside cache
> mem at mainbus0 not configured
> mpcpcibr0 at mainbus0 pci: grackle, Revision 0x40
> pci0 at mpcpcibr0 bus 0
> pchb0 at pci0 dev 0 function 0 "Motorola MPC106 PCI" rev 0x40
> macobio0 at pci0 dev 16 function 0 "Apple Heathrow" rev 0x01
> mesh0 at macobio0 offset 0x10000 irq 12: 50MHz
> scsibus0 at mesh0: 8 targets, initiator 7
> mac_intr_establish called, not yet inited
> bm0 at macobio0 offset 0x11000 irq 42,33: address 00:05:02:0d:53:19
> mac_intr_establish called, not yet inited
> mac_intr_establish called, not yet inited
> zsc0 at macobio0 offset 0x13000: irq 15,16
> zstty0 at zsc0 channel 0: console
> zstty1 at zsc0 channel 1
> mac_intr_establish called, not yet inited
> mac_intr_establish called, not yet inited
> "davbus" at macobio0 offset 0x14000 not configured
> "swim3" at macobio0 offset 0x15000 not configured
> "nvram" at macobio0 offset 0x60000 not configured
> wdc0 at macobio0 offset 0x20000 irq 13: DMA
> mac_intr_establish called, not yet inited
> wd0 at wdc0 channel 0 drive 0: <IBM-DTLA-307030>
> wd0: 16-sector PIO, LBA, 29314MB, 60036480 sectors
> wd0(wdc0:0:0): using BIOS timings, DMA mode 2
> wdc1 at macobio0 offset 0x21000 irq 14: DMA
> wdc1: couldn't map registers
> adb0 at macobio0 offset 0x16000mac_intr_establish called, not yet  
> inited
> irq 18: via-cuda, 2 targets
> akbd0 at adb0 addr 2: extended keyboard (ISO layout)
> wskbd0 at akbd0 mux 1
> relative positioning device (1) at adb0 addr 3 not configured
> "ATI Mach64" rev 0x5c at pci0 dev 18 function 0 not configured
> rd0: fixed, 8192 blocks
> bootpath: enet/netbsd
> string [/netbsd] not found
> Warning: bootpath unrecognized: enet/netbsd
> root on rd0a swap on rd0b dump on rd0b
>
> unfortunately, after that line, the box just freezes.
>
> I had to change the load-base and real-base values in openfirmware  
> to actually
> get the ofwboot.xcf from netbsd to load correctly.
> setenv load-base 600000
> setenv real-base F00000
> without that, I got a similar error like the one with the openbsd  
> ofwboot,
> therefore I wonder whether I just only need different values for the  
> openbsd
> ofwboot?
>
> Well, the box, more or less expected, refused to run openbsd, but I  
> thougth it
> might be of interest to someone.
>
> cheers
> Sebastian


Re: booting openbsd on powermac g3 beige

by SebastianR :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

thanks for your answer! see below...

On Sunday 21 December 2008 22:14:08 you wrote:
> Try using the boot.mac as the boot loader,
> Yes you will need nfs for boot.mac to load the kernel I believe my
> setup just exports the root directory and I named  the macppc kernel
> bsd.owmac.
nfs was already there, no big deal. However, I tried loading the boot.mac file
from snapshots and from 4.4, both failed:
snapshot
0 > boot enet:,boot.mac file: 10.0.0.206,boot.macloading XCOFF
tsize=C2C0 dsize=234 bsize=29C0 entry=E00000
SECTIONS:
.text    00E00000 00E00000 0000C2C0 000000E0
.data    00E0D000 00E0D000 00000234 0000C3A0
.bss     00E0D238 00E0D238 000029C0 00000000
loading .textCLAIM failed
 ok
4.4-stable
0 > boot enet:,boot.mac file: 10.0.0.206,boot.macloading XCOFF
tsize=E0A8 dsize=394 bsize=3A78 entry=E00000
SECTIONS:
.text    00E00000 00E00000 0000E0A8 00000214
.data    00E0F000 00E0F000 00000394 0000E2BC
.bss     00E0F398 00E0F398 00003A78 00000000
.debug_a 00000000 00000000 00000400 0000E650
.debug_p 00000000 00000000 000007D5 0000EA50
.debug_i 00000000 00000000 0002E138 0000F225
.debug_a 00000000 00000000 000033E5 0003D35D
.debug_l 00000000 00000000 00003272 00040742
.debug_f 00000000 00000000 00000DD8 000439B4
.debug_s 00000000 00000000 00003D6E 0004478C
.debug_r 00000000 00000000 000000D0 000484FA
loading .textCLAIM failed
 ok
0 >


>
> some issues your likely to encounter:
> Once you complete an install to disk you can't actually boot from the
> disk because I have not figured out how to make a working old world
> APM boot loader so you will still need the net booting setup around
> (to load bsd)
>
> The external SCSI port (if its on the G3) will not work.
>
> mesh the internal scsi controller will work (I have never tried this
> with IDE so if thats you internal disk your mileage may vary)
Disks doesn't really matter. It would be just fine, when it would run diskless
at all. I still had a SCSI disk around and replaced the IDE disk with it.
However, the bsd.rd freezes just after initializing the RAM disk.
The ordinary bsd kernel boots just fine, up to the point where it asks for a
root device. I enter bm0, but then it freezes, while trying to boot from nfs:

... same as with the bsd.rc
"ATI Mach64" rev 0x5c at pci0 dev 18 function 0 not configured
/dev/ksyms: Symbol table not valid.
softraid0 at root
bootpath: enet/netbsd
string [/netbsd] not found
Warning: bootpath unrecognized: enet/netbsd
root device: bm0
nfs_boot: using interface bm0, with revarp & bootparams

I have rarpd and bootparamd running on the console in debug mode, but nothing
shows up in their consoles. I guess I should see there sth. showing up?

Actually,I think I forgot to mention, to get tftp working at all in the
beginning, I had to add a static arp entry for the G3.
On the server now runs everything:
dhcp, rarpd, bootparamd, nfsd and tftpd.

Maybe I've just too few memory in the box?

cheers
Sebastian

>
> The ethernet controllers on these macs don't age very well if you
> have a supported PCI ethernet card toss that in you wont be able
> to boot from it unless you have fcode on the devices rom (unlikely
> unless its an asante card) and I haven't been sucessful in getting add
> on ethernet cards to boot from the network even if they have fcode.
>
> It sounds like a long list gotchas and it is. But I am not sure any of
> the unix-like OSes that claim compatibility with the beige hardware
> really work all that well.
>
> gwk
>
> On Dec 21, 2008, at 12:02 PM, Sebastian Reitenbach wrote:
> > Hi,
> >
> > I know from the macppc.html page, that only the blue & white
> > powermacs are
> > suported. However, I just got a powermac g3 beige, and wanted to
> > give it a
> > try.
> >
> > I prepared everything for netboot, however, when It comes to load
> > the ofwboot
> > file via tftp, it stops with an error:
> >
> > # cu -l /dev/ttyU0 -s 38400
> > Connected
> >
> > Open Firmware, 2.0f1
> > To continue booting the MacOS type:
> > BYE<return>
> > To continue booting from the default boot device type:
> > BOOT<return>
> > For Open Firmware serial I/O type:
> > TTYA IO<return>
> > ok
> > 0 > boot enet;,ofwboot
> >
> > Open Firmware, 2.0f1
> > To continue booting the MacOS type:
> > BYE<return>
> > To continue booting from the default boot device type:
> > BOOT<return>
> > For Open Firmware serial I/O type:
> > TTYA IO<return>
> > ok
> > 0 > boot enet:,ofwboot /bsd.rd file: 10.0.0.206,ofwboot
> > TFTP timeout
> > TFTP timeoutLoading ELF
> > DEFAULT CATCH!, code=FFF00300 at   %SRR0: FF80ADD0   %SRR1: 0000B070
> > ok
> > 0 >
> >
> > Then I thought, take a look at netbsd, and see how that works out.
> > Netbsd
> > retrieves the kernel from NFS. After all, that worked well, the NetBSD
> > installer started to run...
> >
> > Then I replaced the netbsd kernel with a macppc openbsd bsd.rd file
> > from the
> > snapshots, and restarted the box. The following is the dmesg:
> >
> > Open Firmware, 2.0f1
> > To continue booting the MacOS type:
> > BYE<return>
> > To continue booting from the default boot device type:
> > BOOT<return>
> > For Open Firmware serial I/O type:
> > TTYA IO<return>
> > ok
> > 0 > boot enet:,ofwboot.xcf file: 10.0.0.206,ofwboot.xcfloading XCOFF
> > tsize=C2C0 dsize=234 bsize=29C0 entry=E00000
> > SECTIONS:
> > .text    00E00000 00E00000 0000C2C0 000000E0
> > .data    00E0D000 00E0D000 00000234 0000C3A0
> > .bss     00E0D238 00E0D238 000029C0 00000000
> > loading .text, done..
> > loading .data, done..
> > clearing .bss, done..
> >
> >>> NetBSD/macppc OpenFirmware Boot, Revision 1.10
> >>> (builds@wb27, Tue Oct  7 22:21:03 PDT 2008)
> >
> > file: 10.0.0.206,ofwboot.xcfnet_open: client addr: 10.0.0.20
> > net_open: subnet mask: 255.255.255.0
> > net_open: net gateway: 10.0.0.1
> > net_open: server addr: 10.0.0.206
> > net_open: server path: /usr/export/mac/root
> > net_open: file name: /ofwboot.xcf
> > Using IP address: 10.0.0.20
> > root addr=10.0.0.206 path=/usr/export/mac/root
> > 7263160+410420 [132208+117682]=0x78e8fc
> > start=0x100114
> > Copyright (c) 1982, 1986, 1989, 1991, 1993
> >        The Regents of the University of California.  All rights
> > reserved.
> > Copyright (c) 1995-2008 OpenBSD. All rights reserved.
> > http://www.OpenBSD.org
> >
> > OpenBSD 4.4-current (RAMDISK) #1643: Thu Dec 18 13:09:28 MST 2008
> >    deraadt@...:/usr/src/sys/arch/macppc/compile/RAMDISK
> > real mem = 67108864 (64MB)
> > avail mem = 54288384 (51MB)
> > mainbus0 at root: model Power Macintosh Gossamer
> > cpu0 at mainbus0: 750 (Revision 0x202): 267 MHz: 512KB backside cache
> > mem at mainbus0 not configured
> > mpcpcibr0 at mainbus0 pci: grackle, Revision 0x40
> > pci0 at mpcpcibr0 bus 0
> > pchb0 at pci0 dev 0 function 0 "Motorola MPC106 PCI" rev 0x40
> > macobio0 at pci0 dev 16 function 0 "Apple Heathrow" rev 0x01
> > mesh0 at macobio0 offset 0x10000 irq 12: 50MHz
> > scsibus0 at mesh0: 8 targets, initiator 7
> > mac_intr_establish called, not yet inited
> > bm0 at macobio0 offset 0x11000 irq 42,33: address 00:05:02:0d:53:19
> > mac_intr_establish called, not yet inited
> > mac_intr_establish called, not yet inited
> > zsc0 at macobio0 offset 0x13000: irq 15,16
> > zstty0 at zsc0 channel 0: console
> > zstty1 at zsc0 channel 1
> > mac_intr_establish called, not yet inited
> > mac_intr_establish called, not yet inited
> > "davbus" at macobio0 offset 0x14000 not configured
> > "swim3" at macobio0 offset 0x15000 not configured
> > "nvram" at macobio0 offset 0x60000 not configured
> > wdc0 at macobio0 offset 0x20000 irq 13: DMA
> > mac_intr_establish called, not yet inited
> > wd0 at wdc0 channel 0 drive 0: <IBM-DTLA-307030>
> > wd0: 16-sector PIO, LBA, 29314MB, 60036480 sectors
> > wd0(wdc0:0:0): using BIOS timings, DMA mode 2
> > wdc1 at macobio0 offset 0x21000 irq 14: DMA
> > wdc1: couldn't map registers
> > adb0 at macobio0 offset 0x16000mac_intr_establish called, not yet
> > inited
> > irq 18: via-cuda, 2 targets
> > akbd0 at adb0 addr 2: extended keyboard (ISO layout)
> > wskbd0 at akbd0 mux 1
> > relative positioning device (1) at adb0 addr 3 not configured
> > "ATI Mach64" rev 0x5c at pci0 dev 18 function 0 not configured
> > rd0: fixed, 8192 blocks
> > bootpath: enet/netbsd
> > string [/netbsd] not found
> > Warning: bootpath unrecognized: enet/netbsd
> > root on rd0a swap on rd0b dump on rd0b
> >
> > unfortunately, after that line, the box just freezes.
> >
> > I had to change the load-base and real-base values in openfirmware
> > to actually
> > get the ofwboot.xcf from netbsd to load correctly.
> > setenv load-base 600000
> > setenv real-base F00000
> > without that, I got a similar error like the one with the openbsd
> > ofwboot,
> > therefore I wonder whether I just only need different values for the
> > openbsd
> > ofwboot?
> >
> > Well, the box, more or less expected, refused to run openbsd, but I
> > thougth it
> > might be of interest to someone.
> >
> > cheers
> > Sebastian