Subject: Re: GPIO on the Soekris net4801
To: Jared D. McNeill <jmcneill@invisible.ca>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: current-users
Date: 10/16/2005 14:35:30
In message <6F9A1EF1-D84A-4897-AA29-4D789D790B37@invisible.ca>, "Jared D. McNei
ll" writes:
>On 16-Oct-05, at 10:29 AM, Steven M. Bellovin wrote:
>
>> Could you send me a running kernel of yours?  That might help isolate
>> it if it was a NetBSD change.  Also, what firmware version do you have
>> on your 4801?
>
>I believe it's running the 1.28 firmware; I only received it a few  
>weeks ago and it was shipped with the latest at the time IIRC. By the  
>way, are you using CF or an IDE hard disk?
>
>Kernel is available here:
>     http://www.invisible.ca/~jmcneill/netbsd/net4801/ 
>netbsd.DISCOVERY.bz2
>

I'm using a CF "drive".  And your kernel is failing for me... Mine is 
also new, and also running 1.28.

I'm at a loss to explain this one.  For now, I think I'll give up on 
the light, and put the machine into service.

Here's a PXE boot with your kernel.

------

comBIOS ver. 1.28  20050529  Copyright (C) 2000-2005 Soekris Engineering.

net4801

0128 Mbyte Memory                        CPU Geode 266 Mhz 

Pri Mas  TOSHIBA THNCF128MAA             LBA 978-8-32  125 Mbyte

Slot   Vend Dev  ClassRev Cmd  Stat CL LT HT  Base1    Base2   Int 
-------------------------------------------------------------------
0:00:0 1078 0001 06000000 0107 0280 00 00 00 00000000 00000000 
0:06:0 100B 0020 02000000 0107 0290 00 3F 00 0000E101 A0000000 10
0:07:0 100B 0020 02000000 0107 0290 00 3F 00 0000E201 A0001000 10
0:08:0 100B 0020 02000000 0107 0290 00 3F 00 0000E301 A0002000 10
0:18:2 100B 0502 01018001 0005 0280 00 00 00 00000000 00000000 
0:19:0 0E11 A0F8 0C031008 0117 0280 08 38 00 A0003000 00000000 11

 4 Seconds to automatic boot.   Press Ctrl-P for entering Monitor.

comBIOS Monitor.   Press ? for help.

> boot f0

NSC DP83815/DP83816 Fast Ethernet UNDI, v1.03                                  
Copyright (C) 2002, 2003 National Semiconductor Corporation
All rights reserved.

Pre-boot eXecution Environment  PXE-2.0 (build 082)
Copyright (C) 1997-2000  Intel Corporation


CLIENT MAC ADDR: 00 00 24 C4 F4 40  
CLIENT IP: 192.168.2.240  MASK: 255.255.255.0  DHCP IP: 192.168.2.79           
GATEWAY IP: 192.168.2.1 
                                                                               

>> NetBSD/i386 PXE Boot, Revision 1.1
>> (smb@bigboy.machshav.com, Sat Oct 15 23:10:44 EDT 2005)
>> Memory: 582/130048 k
Press return to boot now, any other key for boot menu
Starting in 0   
PXE BIOS Version 2.1
Using PCI device at bus 0 device 6 function 0
Ethernet address 00:00:24:c4:f4:40
net_open: client addr: 192.168.2.240
net_open: subnet mask: 255.255.255.0
net_open: net gateway: 192.168.2.1
net_open: server addr: 192.168.2.79
net_open: file name: tftp:hellsgate.kernel
2205216+55636+165976 [172768+158074]=0x2a27a4
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    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 3.99.9 (DISCOVERY) #26: Thu Sep 29 18:49:43 ADT 2005
        jmcneill@discovery.invisible.ca:/usr/obj/sys/arch/i386/compile/DISCOVERY
total memory = 127 MB
avail memory = 122 MB
BIOS32 rev. 0 found at 0xf7840
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: National Semiconductor Geode GX1 (586-class), 266.68 MHz, id 0x540
cpu0: features 808131<FPU,TSC,MSR,CX8>
cpu0: features 808131<CMOV,MMX>
cpu0: "Geode(TM) Integrated Processor by National Semi"
cpu0: I-cache 12K uOp cache 8-way
WARNING: broken TSC disabled
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x1078 product 0x0001 (rev. 0x00)
sip0 at pci0 dev 6 function 0: NatSemi DP83815 10/100 Ethernet, rev 00
sip0: interrupting at irq 10
sip0: Ethernet address 00:00:24:c4:f4:40
nsphyter0 at sip0 phy 0: DP83815 10/100 media interface, rev. 1
nsphyter0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sip1 at pci0 dev 7 function 0: NatSemi DP83815 10/100 Ethernet, rev 00
sip1: interrupting at irq 10
sip1: Ethernet address 00:00:24:c4:f4:41
nsphyter1 at sip1 phy 0: DP83815 10/100 media interface, rev. 1
nsphyter1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sip2 at pci0 dev 8 function 0: NatSemi DP83815 10/100 Ethernet, rev 00
sip2: interrupting at irq 10
sip2: Ethernet address 00:00:24:c4:f4:42
nsphyter2 at sip2 phy 0: DP83815 10/100 media interface, rev. 1
nsphyter2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
gscpcib0 at pci0 dev 18 function 0
gscpcib0: vendor 0x100b product 0x0510 (rev. 0x00)
gpio0 at gscpcib0: 64 pins
vendor 0x100b product 0x0511 (miscellaneous bridge) at pci0 dev 18 function 1 no
t configured
geodeide0 at pci0 dev 18 function 2
geodeide0: AMD Geode SC1100 IDE controller (rev. 0x01)
geodeide0: bus-master DMA support present
geodeide0: primary channel wired to compatibility mode
geodeide0: primary channel interrupting at irq 14
atabus0 at geodeide0 channel 0
geodeide0: secondary channel wired to compatibility mode
geodeide0: secondary channel interrupting at irq 15
atabus1 at geodeide0 channel 1
geodewdog0 at pci0 dev 18 function 5: AMD Geode SC1100 Watchdog Timer
ohci0 at pci0 dev 19 function 0: vendor 0x0e11 product 0xa0f8 (rev. 0x08)
ohci0: interrupting at irq 11
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x0e11 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
isa0 at gscpcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
attimer0 at isa0 port 0x40-0x43: AT Timer
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
nsclpcsio0 at isa0 port 0x2e-0x2f: NSC PC87366 rev. 9
nsclpcsio0: GPIO at 0x6600
nsclpcsio0: TMS at 0x6640
gpio1 at nsclpcsio0: 29 pins
npx0 at isa0 port 0xf0-0xff: using exception 16
pcppi0: attached to attimer0
boot device: sip0
root on sip0
no file system for sip0
cannot mount root, error = 79
root device (default sip0): wd0a
use one of: sip0 sip1 sip2 ddb halt reboot
root device (default sip0): 

		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb