Subject: Re: anyone using anything other than AIX or Linux?
To: None <linuxppc-ans-support@hellfire.dusers.drexel.edu>
From: Aris Colp <aris@PADL.COM>
List: port-macppc
Date: 01/30/2000 04:23:38
NetBSD 1.4.2_ALPHA is now running on my Apple Network Server 500/132
:-)

(ftp://ftp.netbsd.org/pub/NetBSD/arch/macppc/snapshot/1.4.2_ALPHA/)

It took some manner of fiddling, and I had access to an 8600 to
compile a custom kernel for it... but it is doable.

I couldn't get the MACE ethernet driver to work properly, and my
experimentations with doing the same mod as per the Linux mace.c
change didn't prove 100% successful (the driver worked, but was
always resetting due to "collisions" - this issue seems to be reported
by other people on the NetBSD lists not just on ANS's - this makes
networking very slow, unsuitable for FTP installations). Could be something
to do with my hub/tranceivers, however.

So, I took a DEC "Tulip" (21041-based) card from an Intel FreeBSD
box, and am now using that. Apparently, big-endian support for the Intel
EtherExpress Pro 100 driver has also been recently added (device fxp).

I'm using console mode from the serial ports (setenv
input-device/output-device ttya), as the box runs headless.

I should get around to making an image of a boot/install floppy, but without
good support for the builtin MACE ethernet, I figure it's pointless, as people
won't be able to install off the network.

*** If anyone can look at the NetBSD code (/usr/src/sys/arch/macppc/dev/if_mc.c ??)
and compare with what the ANS-specific changes were to the Linux code
(/usr/src/linux/drivers/net/mace.c), I'll be happy to build a kernel and test.

BTW: On Linux, the mod is simple, in mace_reset() in mace.c:

	#ifdef CONFIG_MACE_USE_AAUI
		out_8(&mb->plscc, PORTSEL_AUI + ENPLSIO);
	#else
		out_8(&mb->plscc, PORTSEL_GPSI + ENPLSIO);
	#endif

Attempting to do similar things in mc_attach() on NetBSD got the ethernet
working, but continually resetting, leading to very slow perfomance, rendering
the interface unusable.

Anyhow, just thought I'd let people know!


	-- Aris

PS: There is no need for HFS partitions etc - the NetBSD booter works with
"setenv boot-device disk2:0". Sweet!

PPS: I just took the basic "GENERIC" kernel definition, and added:

#de*    at pci? dev ? function ?        # DEC 21040-based Ethernet (is this accurate?)
options         TLP_MATCH_21041 
tlp*    at pci? dev ? function ?        # DECchip 21x4x (and clones) Ethernet

ie: I disabled the de device, and used the tulip driver.

Here's the output of dmesg:

shiner# dmesg
NetBSD 1.4Q (SHINER) #6: Sat Jan 29 00:23:45 PST 2000
    root@shiner:/usr/src/sys/arch/macppc/compile/SHINER
CPU: 604 (Revision 303)
total memory = 65536 KB
avail memory = 56272 KB
using 844 buffers containing 3376 KB of memory
mainbus0 (root)
cpu0 at mainbus0
pci0 at mainbus0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer Bandit Host-PCI Bridge (rev. 0x03)
ofb0 at pci0 dev 15 function 0: Cirrus Logic CL-GD5430
ofb0: 640 x 480, 8bpp
wsdisplay0 at ofb0
obio0 at pci0 dev 16 function 0: addr 0xf3000000
esp0 at obio0 offset 0x10000 irq 12: NCR53C94, 25MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
mace at obio0 offset 0x11000 not configured
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
aed0 at adb0 addr 0: ADB Event device
akbd0 at adb0 addr 2: extended keyboard
wskbd0 at akbd0
ams0 at adb0 addr 3: 1-button, 100 dpi mouse
wsmouse0 at ams0
nvram0 at obio0 offset 0x1d000
lcd at obio0 offset 0x1c000 not configured
ncr0 at pci0 dev 17 function 0: ncr 53c825a fast10 wide scsi
ncr0: interrupting at irq 22
ncr0: minsync=25, maxsync=206, maxoffs=8, 128 dwords burst, large dma fifo
ncr0: single-ended, open drain IRQ driver, using on-chip SRAM
ncr0: restart (scsi reset).
scsibus1 at ncr0: 16 targets, 8 luns per target
ncr1 at pci0 dev 18 function 0: ncr 53c825a fast10 wide scsi
ncr1: interrupting at irq 26
ncr1: minsync=25, maxsync=206, maxoffs=8, 128 dwords burst, large dma fifo
ncr1: single-ended, open drain IRQ driver, using on-chip SRAM
ncr1: restart (scsi reset).
scsibus2 at ncr1: 16 targets, 8 luns per target
pci1 at mainbus0 bus 1
pci1: i/o space, memory space enabled
pchb1 at pci1 dev 11 function 0
pchb1: Apple Computer Bandit Host-PCI Bridge (rev. 0x03)
tlp0 at pci1 dev 16 function 0: DECchip 21041 Ethernet, pass 2.1
tlp0: interrupting at irq 29
tlp0: Ethernet address 00:80:c8:4e:65:29
tlp0: 10baseT, 10baseT-FDX, 10base2
tlp0: supplying EUI64: 00:80:c8:ff:fe:4e:65:29
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
cd0 at scsibus1 targ 0 lun 0: <MATSHITA, CD-ROM CR-8005A, 4.0i> SCSI2
5/cdrom removable
probe(ncr0:0:1): 5.0 MB/s (200 ns, offset 8)
st0 at scsibus1 targ 1 lun 0: <HP, C1533A, 9503> SCSI2 1/sequential
removable
st0: st0(ncr0:1:0): 10.0 MB/s (100 ns, offset 8)
drive empty
sd0 at scsibus1 targ 2 lun 0: <SEAGATE, ST32550W_APL, 9503> SCSI2 0/direct
fixed
sd0(ncr0:2:0): WIDE SCSI (16 bit) enabled
sd0(ncr0:2:0): 20.0 MB/s (100 ns, offset 8)
sd0: 2047 MB, 3511 cyl, 11 head, 108 sec, 512 bytes/sect x 4194058 sectors
sd1 at scsibus1 targ 3 lun 0: <SEAGATE, ST34520W, 1444> SCSI2 0/direct fixed
sd1(ncr0:3:0): WIDE SCSI (16 bit) enabled
sd1(ncr0:3:0): 20.0 MB/s (100 ns, offset 8)
sd1: 4340 MB, 9006 cyl, 4 head, 246 sec, 512 bytes/sect x 8888924 sectors
scsibus2: waiting 2 seconds for devices to settle...
sd2 at scsibus2 targ 4 lun 0: <QUANTUM, XP34550W, LXY4> SCSI2 0/direct fixed
sd2(ncr1:4:0): WIDE SCSI (16 bit) enabled
sd2(ncr1:4:0): 20.0 MB/s (100 ns, offset 8)
sd2: 4341 MB, 5899 cyl, 10 head, 150 sec, 512 bytes/sect x 8890760 sectors
sd3 at scsibus2 targ 5 lun 0: <QUANTUM, XP34550W, LXY4> SCSI2 0/direct fixed
sd3(ncr1:5:0): WIDE SCSI (16 bit) enabled
sd3(ncr1:5:0): 20.0 MB/s (100 ns, offset 8)
sd3: 4341 MB, 5899 cyl, 10 head, 150 sec, 512 bytes/sect x 8890760 sectors
boot device: <unknown>
root device: sd0
dump device (default sd0b): sd0c
file system (default generic): 
root on sd0a dumps on sd0c
sd0: NetBSD disklabel
sd0: NetBSD disklabel
sd0: NetBSD disklabel
sd0: NetBSD disklabel
sd0: NetBSD disklabel
sd0: NetBSD disklabel
root file system type: ffs
tlp0: starting DAD for fe80:0001::0280:c8ff:fe4e:6529
tlp0: DAD complete for fe80:0001::0280:c8ff:fe4e:6529 - no duplicates found
--

Aris  Colp			Phone: +614-1141-4066
P A D L  S o f t w a r e	http://www.PADL.COM/