Subject: Booting from PCI cards
To: None <port-macppc@netbsd.org>
From: Michael Wolfson <mw@ee.cornell.edu>
List: port-macppc
Date: 02/20/2000 22:09:29
Next set of questions.  I've got three different PCI cards in my 8500 (two
asante fast ethernet and an adaptec SCSI).  None of these devices show up
with 'devalias'.  I tried a variety of different commands to boot my
machine from these cards (none of which worked).  What's the correct
syntax to boot from them?

0 > dev / ls
[...]
FF8313F0: /bandit@F2000000
[...]
FF83F3A8:   /pci106b,1@B
FF83F580:   /pci128a,f001@E  AsanteFAST 10/100 PCI Rev.B,  99-00590-07
                             webpage says it's supported by linux as a tulip
                             http://www.asante.com/support/linux/su_linux.html
FF83F580:   /pci1011,9@D     Asante Fast 10/100 Adapter for PCI, 
                             has DEC 21140-AF chip, PCBA 09-00169-01)
FF83F8A0:   /ADPT,2940UW@F   UltraWide SCSI, Firmware 4.1, HBA version 1.0.4a91
[...]

For the adaptec card, I had a hard drive with a known good installation
(i.e. I did a block-by-block copy of the boot floppy).  I later tried this
hard drive on the motherboard's external scsi bus and attached the dmesg
to the end of this message.

I tried setting up the network on the one asante card that was supported
by the kernel, and didn't get any errors, however, it couldn't transmit or
receive any packets.  And, yes, I know how to set up networking, as I got
the built-in mc0 to ping and be pinged.

BTW, what's the difference between the devalias pci1 and pci2
(particularly when there are three pci slots)?

Again, any help would be appreciated.  I'd be happy to try out OF commands
and kernels (once I get netbooting to work).  I may even be able to loan
one of the network cards for up to a month.

Thanks,
  -- MW

=========================================================
The first Asante fast ethernet card (99-00590-07):
=========================================================

0 > dev pci1/@e  ok
0 > pwd /bandit@F2000000/pci128a,f001@E ok
0 > .properties
vendor-id               000011AD
device-id               0000C115
revision-id             00000025
class-code              00020000
interrupts              00000001
min-grant               00000008
max-latency             00000038
subsystem-vendor-id     0000128A
subsystem-id            0000F001
devsel-speed            00000001
fast-back-to-back
AAPL,interrupts         00000018
AAPL,slot-name          B1
name                    pci128a,f001
reg                     00007000 00000000 00000000  00000000 00000000
                        01007010 00000000 00000000  00000000 00000100
                        02007014 00000000 00000000  00000000 00000100
                        02007030 00000000 00000000  00000000 00040000
power-consumption       007270E0 007270E0
assigned-addresses      81007010 00000000 00000400  00000000 00000100
                        82007014 00000000 80851000  00000000 00000100
                        82007030 00000000 80800000  00000000 00040000

 ok
0 > words

 ok


=========================================================
The second Asante fast ethernet card (09-00169-01):
=========================================================

0 > dev /bandit/pci1011,9@D  ok
0 > .properties
vendor-id               00001011
device-id               00000009
revision-id             00000022
class-code              00020000
interrupts              00000001
min-grant               00000014
max-latency             00000028
devsel-speed            00000001
fast-back-to-back
AAPL,interrupts         00000017
AAPL,slot-name          A1
name                    pci1011,9
reg                     00006800 00000000 00000000  00000000 00000000
                        01006810 00000000 00000000  00000000 00000080
                        02006814 00000000 00000000  00000000 00000080
                        02006830 00000000 00000000  00000000 00040000
power-consumption       007270E0 007270E0
assigned-addresses      81006810 00000000 00000800  00000000 00000080
                        82006814 00000000 80892000  00000000 00000080
                        82006830 00000000 80840000  00000000 00040000

 ok
0 > words

 ok


=========================================================
The Adaptec 2940UltraWide SCSI controller:
=========================================================

0 > dev /bandit/ADPT,2940UW@F  ok
0 > .properties
vendor-id               00009004
device-id               00008178
revision-id             00000000
class-code              00010000
interrupts              00000001
min-grant               00000008
max-latency             00000008
devsel-speed            00000001
fast-back-to-back
AAPL,interrupts         00000019
AAPL,slot-name          C1
fcode-rom-offset        00000000
name                    ADPT,2940UW
device_type             scsi-2
model                   ADPT,917306-01
compatible              ADPT,AIC-7880
ADPT,fcode-date         30322F32 362F3939 00
reg                     00007800 00000000 00000000  00000000 00000000
                        02007814 00000000 00000000  00000000 00000100
                        02007830 00000000 00000000  00000000 00010000
power-consumption       00000000 00000000 007270E0 007270E0 00000000 00000000 00
7B98A0 007B98A0
driver,AAPL,MacOS,PowerPC
                        4A6F7921 70656666 70777063 00000001 B2FC745A 00000000 00
000000 00000000
                        00030002 00000000 FFFFFFFF 00000000 0001957C 0001957C 00
01957C 00000540
                        00040400 FFFFFFFF 00000000 000040F8 00001B34 00001353 00
019AC0 02010400
                        FFFFFFFF 00000000 00000000 00000000 000004B4 00000080 04
040400 00000000
                        FFFFFFFF 00000000 FFFFFFFF 00000000 FFFFFFFF 00000000 00
000004 00000029
                        00000001 00000148 00000174 00000490 00000001 00000002 00
000000 00000000
                        00000000 0000001E 00000000 00000000 00000012 00000000 00
000000 00000002
                        0000001E 00000000 00000022 00000000 00000000 00000006 00
000020 00000000
                        ... 0001AE13 bytes total
assigned-addresses      82007814 00000000 80850000  00000000 00000100
                        82007830 00000000 80840000  00000000 00010000

 ok
0 > words
decompress_property             decompress      init-d          dtd
mpos-ptr
op++=mpos       opc!            set-mpos        check-op
flush-buffer
op-off
write-buffer    proplen         propadr         buf-offset      buflen
bufst
st!             mpos!           mpos@           op@             t@
t!
ipc@++          ip++            ipc@            mpos            op
ip
t               p_state         s_e             s_md            s_cm
s_mt
s_f             s_m1            s_st
 ok


=========================================================
Here's the dmesg with all three cards installed:
=========================================================


0 > boot scsi/sd@5:0
RESETing to change Configuration!

>> NetBSD/macppc OpenFirmware Boot, Revision 1.1
>> (tsubai@mint, Thu Dec 23 18:17:15 JST 1999)
Booting scsi/sd@5/netbsd
2878540@0x100000+144632@0x3bec4c
 start=0x100000
Copyright (c) 1996, 1997, 1998, 1999, 2000
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.4.2_ALPHA (INSTALL) #0: Sun Feb 13 00:27:15 JST 2000
    tsubai@mint.iri.co.jp:/usr/src/sys/arch/macppc/compile/INSTALL
CPU: 750 (Revision 300)
real mem  = 134217728
avail mem = 122683392
using 800 buffers containing 3276800 bytes of memory
no active packagemainbus0 (root)
cpu0 at mainbus0
pci0 at mainbus0 bus 0
pci0: i/o enabled, memory enabled
pchb0 at pci0 dev 11 function 0
pchb0: vendor 0x106b product 0x0001 (rev. 0x03)
de0 at pci0 dev 13 function 0
de0: interrupting at irq 23
de0: Asante 21140A [10-100Mb/s] pass 2.2
de0: address 00:00:94:a4:03:35
de0: enabling 10baseT port
vendor 0x11ad product 0xc115 (ethernet network, revision 0x25) at pci0 dev 14 fu
nction 0 not configured
ahc0 at pci0 dev 15 function 0
ahc0: interrupting at irq 25
ahc0: aic7880 Wide Channel, SCSI Id=7, 16 SCBs
scsibus0 at ahc0 channel 0: 16 targets, 8 luns per target
obio0 at pci0 dev 16 function 0: addr 0xf3000000
esp0 at obio0 offset 0x10000 irq 12: NCR53C94, 25MHz, SCSI ID 7
scsibus1 at esp0: 8 targets, 8 luns per target
probe(esp0:5:0): max sync rate 6.25Mb/s
sd0 at scsibus1 targ 5 lun 0: <SEAGATE, ST51080N, 0943> SCSI2 0/direct fixed
sd0: 1030MB, 4826 cyl, 4 head, 109 sec, 512 bytes/sect x 2109840 sectors
mc0 at obio0 offset 0x11000: irq 14,2,3: address 00:a0:40:0b:77:2c
zsc0 at obio0 offset 0x13000: irq 15,16
zstty0 at zsc0 channel 0 (console)
zstty1 at zsc0 channel 1
awacs at obio0 offset 0x14000 not configured
swim3 at obio0 offset 0x15000 not configured
adb0 at obio0 offset 0x16000 irq 18: 2 targets
akbd0 at adb0 addr 2: extended keyboard
wskbd0 at akbd0
ams0 at adb0 addr 3: 1-button, 100 dpi mouse
wsmouse at ams0 not configured
mesh0 at obio0 offset 0x18000 irq 13: 50MHz, SCSI ID 7
scsibus2 at mesh0: 8 targets, 8 luns per target
cd0 at scsibus2 targ 3 lun 0: <TEAC, CD-ROM CD-516S, 1.0D> SCSI2 5/cdrom removab
le
sixty6 at obio0 offset 0x1c000 not configured
nvram0 at obio0 offset 0x1d000
pci1 at mainbus0 bus 1
pci1: i/o enabled, memory enabled
ofb0 at pci1 dev 11 function 0: vendor 0x106b product 0x0003
ofb0: 640 x 480, 8bpp
wsdisplay0 at ofb0
vendor 0x106b product 0x0004 (undefined subclass 0x00, revision 0x01) at pci1 de
v 13 function 0 not configured
wscons: wskbd0 glued to wsdisplay0
md0: internal 1536K image area
no active packageboot device: <unknown>
root on md0a dumps on md0b
WARNING: clock gained 35 days -- CHECK AND RESET THE DATE!
root file system type: ffs
erase ^H, werase ^W, kill ^U, intr ^C, status ^T
Terminal type? [vt100]
Erase is backspace.
(I)nstall, (S)hell or (H)alt ? s