Subject: Re: Having prom command problems
To: None <port-sparc@NetBSD.ORG>
From: Eric W. Bates <ericx@vineyard.net>
List: port-sparc
Date: 06/19/1998 12:21:50
I have a very similar set of problems.

I have:

    SPARC2 (aquired used, only recently)
    OpenBoot 2 (I believe)
    probe-scsi reports: target 0, unit 0
    probe-scsi-all is not an available command (different version PROM?)
    ENV{boot-disk}  disk3
    ENV{sunmon-compat?}  false
    All other settings are default

I have attempted:

    # all sd() forms result in an error
    #  'xx() format no longer fully supported'
    boot sd(0,0,1)netbsd -s
    boot sd(0,3,1)netbsd -s
    boot sd(,,1)netbsd -s
    boot sd(0,18,1)netbsd -s	# after changing SCSI ID to 3
    boot sd(0,24,1)netbsd -s

    # all disk forms result in:
    #  booting sd@0,0 file and args disk:b netbsd -s
    boot disk:b netbsd -s
    boot disk0:b netbsd -s
    boot disk3:b netbsd -s

    boot /sbus/esp/sd@0,3 netbsd -s	    # SCSI device not responding
    boot /sbus/esp/sd@0,3,1 netbsd -s
    boot /sbus/esp/sd@0,0 netbsd -s
    boot /sbus/esp/sd@0,0,1 netbsd -s	    # can't open boot device
    boot /sbus/esp@0,800000/sd@0,3 netbsd -s
    boot /sbus/esp@0,800000/sd@0,3,1 netbsd -s
    boot /sbus/esp@0,800000/sd@0,0 netbsd -s
    boot /sbus/esp@0,800000/sd@0,0,1 netbsd -s # can't open boot device

I found some jumpers and set the ID to 3 and tried all the above
again.

I turned sunmon-compat? back to false and tried the older syntax:

    b sd(,,1)  Which reported that the xx() is not supported.

Anyone have any thoughts?

Is there a set of PROM commands listed anywhere?  I have little or no
luck searching Sun's <http://docs.sun.com/>

 > From: mcmahill@mtl.mit.edu
 > Date: Wed, 17 Jun 1998 22:59:46 -0400 (EDT)
 >
 >
 >
 > I think I finally found the answer to my own question in the openbsd
 > install procedure.
 >
 > On my machine, the command is:
 >
 > boot sd(0,4,1)netbsd -s
 >
 > The funny 8*..... stuff is for the old monitor stuff.
 >
 >
 > On Wed, 17 Jun 1998 mcmahill@mtl.mit.edu wrote:
 >
 > >
 > > Unfortunately I think the 'new' command at the 'ok' prompt is for newer
 > > proms maybe?  When I type 'new', it says "new ?".  Maybe I have version 1
 > > OpenBoot roms?  Anyway, 'probe-scsi' works, but not 'probe-scsi-all'.  All
 > > it says about the new drive is "Target 4, Unit 0" (plus info on the
 > > manufacturer, etc.  The INSTALL document says:
 > >
 > > If you have to use the old-style `sd(c,u,p)' syntax to boot from a
 > > SCSI disk, you can calculate the parameters as follows:
 > >
 > >         `c'     - specifies the controller number
 > >         `u'     - the hexadecimal number obtained from evaluating
 > >                   the expression `(8 * TARGET) + LUN'
 > >         `p'     - the partition number from which to boot (0=`a', 1=`b',
 > > etc).
 > >
 > >
 > > but I don't know what goes in 'c', and 'u'.  Is the controller number, c,
 > > equal to 0 because probe-scsi said "Unit 0"?
 > >
 > > In the line for 'u', is TARGET, then 4 in my case?  What about LUN?
 > >
 > > Sorry for so many should be simple questions...
 > >
 > > Thanks
 > >
 > > Dan
 > >
 > >
 > >
 > > On Wed, 17 Jun 1998, Erik E. Fair wrote:
 > >
 > > > At the "ok" prompt:
 > > >
 > > > 	new
 > > > 	probe-scsi-all
 > > >
 > > > note the messy path (probably beginning in /iommu ) for your new disk; then
 > > >
 > > > 	boot <messy-path>/sd@4,1 netbsd -s
 > > >
 > > > that should get you up in the miniroot. ID#4, partition #1.
 > > >
 > > > 	Erik <fair@clock.org>
 > > >
 > > >
 > > >
 > >
 >

--
Eric W. Bates