Subject: Re: wallstreet not wanting to boot NetBSD
To: Chris Tribo <ctribo@dtcc.edu>
From: Timo Schoeler <timo.schoeler@macfinity.net>
List: port-macppc
Date: 06/27/2005 10:51:23
thus Chris Tribo <ctribo@dtcc.edu> spake on Sun, 26 Jun 2005 21:51:48 -0400 (EDT):

> 
> You're giving it an OFW v3.x command syntax which is confusing it and
> causing it to jump to the default boot device which is /AAPL,ROM. There
> also is no cd devalias on this machine.
> 
> Be sure you have the nvram patches loaded from SystemDisk, and then:
> 
> boot ide1/@0:0,OFWBOOT.XCF;1 	<-- cdrom
> boot ide0/@0:0			<-- internal HD
> 
> If you don't have an ide1 or ide0 devalias then you don't have the nvram
> patches loaded which are required.
> 
> 
>  On Sun, 26 Jun 2005, Timo Schoeler wrote:
> 
> > hi,
> >
> > > Hello,
> > >
> > >> trying to boot from the cdrom -- as the guides tell -- via 'boot cd:0
> > >> blah' or 'boot cd:0,\blabla' doesn't work either.
> > >
> > > Check if the 'cd' devalias points at The Right Thing. Try to boot using
> > > the complete device path ( boot <devicepath>,\ofwboot.xcf
> > > hd:<number>/<kernel name> )
> >
> > i've tried this, too. the firmware doesn't throw an error, but half a second
> > later it 'resets' the lcd, the gray Mac OS 9 background appears, and a few
> > seconds later it boots MOS9. i'm sure the files are where they're supposed
> > to be and that i point OF into the right direction.
> >
> > >
> > >> as this thing is in standard config i just hope somebody can give me a
> > >> hint.
> > >
> > > I /think/ Chris Tribo runs NetBSD on such a machine ( or at least on
> > > something fairly similar )
> >
> > yip, he was so kind to mail me his X config (which runs on a wallstreet).
> >
> > >
> > >> i'm willing to use this machine as my primary email and web
> > >> machine and would be very happy to use it's serial port for some
> > >> cisco/nortel/xyz stuff. but i don't want to spend days on figuring out
> > >> how to boot it ;)
> > >
> > > I don't need to set real-base and load-base on any of my macppc boxes
> > > for quite some time now ( one has OF 1.0.5, the other 3.something ) - in
> > > fact setting them seemed to cause trouble with 1.0.5
> >
> > tried both with and without. no success :/
> >
> > cheers,
> >
> > timo

hi,

thank you for your reply.

the machine gives a ``can't OPEN'' back when trying your paths (which shouldn't be up from a not-set real-base?):

0 > boot ide1/@0:0,OFWBOOT.XCF;1  can't OPEN: ide1/@0:0,OFWBOOT.XCF;1
 ok
0 > boot ide0/@0:11,OFWBOOT.XCF  can't OPEN: ide0/@0:11,OFWBOOT.XCF
 ok
0 > boot ide0/@0:11,ofwboot.xcf  can't OPEN: ide0/@0:11,ofwboot.xcf
 ok
0 > 

the patches are applied, i first had to get rid of all the things XPostFacto (ran Panther on it, last supported by 10.2...) wrote into NVRAM. but that was no big deal.

AFAICS the patches from SystemDisk are okay and define the devices alright:

0 > printenv 

VARIABLE            CURRENT             DEFAULT
little-endian?      false               false
real-mode?          false               false
auto-boot?          false               true
diag-switch?        false               false
fcode-debug?        false               false
oem-banner?         false               false
oem-logo?           false               false
use-nvramrc?        true                false
real-base           -1                  -1 
real-size           100000              100000 
virt-base           -1                  -1 
virt-size           100000              100000 
load-base           600000              4000 
pci-probe-list      -1                  -1 
screen-#columns     64                  64 
screen-#rows        28                  28 
selftest-#megs      0                   0 
boot-device         /AAPL,ROM           /AAPL,ROM
boot-file                               
diag-device                             fd:diags
diag-file                               
input-device        ttya                kbd
output-device       ttya                screen
oem-banner                              
oem-logo                                
nvramrc             
     hex
     : $D find-device ;
     : $E device-end ;
     : $L BLpatch ; : $R BRpatch ;
     : $X execute ;
     : $P 0 to my-self property ;
     : &a " /chosen" $D $P $E ;
     : &c " ata-enable" $call-parent ;
     : helpb " backlight-on" _pmu-ihandle $call-method ;
     10 buffer: km
     devalias ide0 /pci/@10/ata0
     devalias ide1 /pci/@10/@34/ata1
     devalias ide4 /pci/@d/@34/ata4
     dev /aliases
     : $M delete-property ;
     " ata-int" $M
     " ata0" $M
     " ata1" $M
     " ata4" $M
     dev kbd
     get-key-map km swap move
     $E
     : ck 0 do swap dup 3 >> km + c@ 1 rot 7 and << and or loop ;
     : bootr 0d word count encode-string " machargs" &a
     0 0 1 ck if 0 and else f 3d 0 2 ck if 40 or then then
     if bye else helpb 1e 0 do ['] boot catch drop 1f4 ms loop then bye ;
     : myboot boot-command eval ;
     dev enet
     62 ' READ 7 - c!
     : READ { _p _n ; _a } begin _p _n bead -> _a _a 2+
     if _p c@ 80 and 0= else 1 then until _a ;
     $E
     dev /packages/obp-tftp
     : $M over + ['] noop $L ;
     : $O ['] open + ;
     : $M1 dup 24 - -1720 $O $X 6 move 14 + ;
     -5BC $O ' $M1 $L
     0 $O E8 $M EC $M F0 $M F4 $M F8 + ' true $L
     $E
     dev /packages/mac-parts
     : $M -7E86F0 $X 8000 alloc-mem 7F00 + 4 -7E86F0 $X ;
     ' load 268 - ' $M $L
     ' load 160 + ' 0 $L
     dev ide0
     : open use-ata-interface 0 &c -1 ;
     : set-device-ID set-drive-select ;
     $E
     dev mac-io/@34
     : ata-enable &c ;
     $E
     dev ide1
     : open use-ata-interface 1 &c -1 ;
     : set-device-ID set-drive-select ;
     : reset-atapi-bus reset-ata-bus ;
     $E
     dev pci1/@d/@34
     : ata-enable &c ;
     $E
     dev ide4
     : open use-ata-interface 1 &c -1 ;
     : set-device-ID set-drive-select ;
     : reset-atapi-bus reset-ata-bus ;
     $E
     dev scsi
     : $M ['] do-cmd + ;
     : $M2 5 us -5f0 $M $X ;
     : $M3 -710 $M f over $X $X ;
     : $M4 1 ms ;
     -1AC $M ' $M2 $L
     100 $M ' $M3 $L
     120 $M ' $M4 $L
     124 $M ' 1 $L
     $E
     unselect-dev                       
boot-command        boot                boot
 ok
0 > 

fyi: i have the machine connected via console to my desktop machine so i can copy & paste quite conventiently :)

i'm still stuck here :(

cheers,

timo