It's been an interesting two days.  About a week ago, my OLPC XO arrived
in the mail; I turned it on and tried to find my wireless network.
Almost immediately my family complains there's no internet!  Panic on
the OpenBSD router.  Well, I had my work cut out for me because I'd
never setup serial console before.  Thanks to FAQ; changes on router
were quite easy (even though it's i386 and there were lots of caveats
about maybe it won't work).  Then to find a null-modem cable (I knew I
had usb/serial cable, but it took some time to find it).  I could have
done it with just the null-modem cable; but that would mean I'd use a
windows system for console and I thought if I was going to do this; I'd
do it right - OpenBSD all the way.  I did use a windows machine to make
sure everything was setup and hookup correctly; since I had used
hyperterm and null modems cables in another life.  Then came a BIG
problem (for me).  What program does one use on OpenBSD to talk on the
serial port?  I figured the answer had to be out there somewhere (it was
- 'tip'); but it took me HOURS to find it.  By comparison, it took only
a few minutes to learn how to modify /etc/remote to talk to usb/serial
cable on ttyU0.  Then I had to wait for the people in the house to stop
using the internet...

panic is easily reproducible...
- power up the OLPC XO
- goto "neighbourhood"
- click on icon for my router.
- the OpenBSD router panics.

I'm not sure what to include, but here is ifconfig, trace, ps, dmesg.

$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33208
        groups: lo
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
fxp0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:06:29:33:a4:91
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
        inet6 fe80::206:29ff:fe33:a491%fxp0 prefixlen 64 scopeid 0x1
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:50:ba:0a:33:9d
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet6 fe80::250:baff:fe0a:339d%vr0 prefixlen 64 scopeid 0x2
ral0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:12:17:99:70:2d
        groups: wlan
        media: IEEE802.11 autoselect mode 11g hostap
        status: active
        ieee80211: nwid XXXXXX chan 11 bssid 00:12:17:99:70:2d nwkey
<not displayed> 100dBm
        inet 10.0.0.2 netmask 0xffffff00 broadcast 10.0.0.255
        inet6 fe80::212:17ff:fe99:702d%ral0 prefixlen 64 scopeid 0x3
enc0: flags=0<> mtu 1536
pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1492
        dev: vr0 state: session
        sid: 0x395 PADI retries: 0 PADR retries: 0 time: 00:15:51
        sppp: phase network authproto pap authname "b1XXXXXX"
        groups: pppoe egress
        inet6 fe80::206:29ff:fe33:a491%pppoe0 ->  prefixlen 64 scopeid 0x6
        inet 65.95.136.148 --> 64.230.197.50 netmask 0xffffffff
bridge0: flags=41<UP,RUNNING> mtu 1500
        groups: bridge
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33208
        groups: pflog



panic: bogus long slot station count 0
Stopped at      Debugger+0x4:   leave
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
ddb> trace
Debugger(d6445800,d07ac840,d08c7bdc,d0f48030,d1082e00) at Debugger+0x4
panic(d0686960,0,d08c7c1c,d0f4a0c0,d0f28300) at panic+0x63
ieee80211_node_leave_11g(d0f48030,d1082e00,d08c7c0c,0) at
ieee80211_node_leave_
11g+0xa2
ieee80211_node_leave(d0f48030,d1082e00,d1082e00,58,0) at
ieee80211_node_leave+0
x94
ieee80211_input(d0f48030,d6615d00,d1082e00,58,0,d62e0800) at
ieee80211_input+0x
267
rt2560_decryption_intr(d0f48000,d08c,0,0) at rt2560_decryption_intr+0x296
rt2560_intr(d0f48000) at rt2560_intr+0xfa
Xrecurse_legacy9() at Xrecurse_legacy9+0xb1
--- interrupt ---
apm_cpu_idle(c0,d078d380,d078d200,7fffffff,d0335a7b) at apm_cpu_idle+0x42
idle_loop(d08c7f00,4,d08c7f18,d0332d66,d08c7f00) at idle_loop+0x5
sleep_finish(d08c7f00,1,4,d06979cc,0) at sleep_finish+0x4d
tsleep(d078d200,4,d06979cc,0) at tsleep+0x7a
uvm_scheduler(d078d1dc,3,0,d064e610,2) at uvm_scheduler+0x1b
main(0,0,0,0,0) at main+0x713
ddb> ps
   PID   PPID   PGRP    UID  S       FLAGS  WAIT          COMMAND
 25243  27935  27935     67  3       0x180  netcon        httpd
 18572      1  18572      0  3      0x4082  ttyin         getty
  6770      1   6770      0  3      0x4082  ttyin         getty
 23595      1  23595      0  3      0x4082  ttyin         getty
 12594      1  12594      0  3      0x4082  ttyin         getty
 30877      1  30877      0  3      0x4082  ttyin         getty
 18003      1  18003      0  3      0x4082  ttyin         getty
  8486  17547  17547      0  3       0x181  pause         smbd
 21508      1  21508      0  3        0x80  select        cron
  8324      1   8324      0  3        0x81  select        nmbd
 17547      1  17547      0  3       0x181  select        smbd
  4964      1   4964      0  3        0x80  select        ventrilo_srv
 29526      1  29526      0  3        0x80  select        sshd
  8823  27935  27935     67  3       0x180  netcon        httpd
 11859  27935  27935     67  3       0x180  netcon        httpd
 17942  27935  27935     67  3       0x180  netcon        httpd
  4528  27935  27935     67  3       0x180  netcon        httpd
 21397  27935  27935     67  3       0x180  netcon        httpd
 20438      1  20438      0  3       0x180  pause         inetd
 27935      1  27935     67  3       0x180  select        httpd
 16262      1  16262      0  3     0x40180  select        sendmail
 10597      1  10597     77  3       0x180  poll          dhcpd
  4361  26110  26110     83  3       0x180  poll          ntpd
 26110      1  26110      0  3        0x80  poll          ntpd
 17826   2458   2458     70  3       0x180  select        named
  2458      1   2458      0  3       0x180  netio         named
 19864    727    727     74  3       0x180  bpf           pflogd
   727      1    727      0  3        0x80  netio         pflogd
 28966  10098  10098     73  3       0x180  poll          syslogd
 10098      1  10098      0  3        0x88  netio         syslogd
    13      0      0      0  3    0x100200  crypto_wait   crypto
    12      0      0      0  3    0x100200  aiodoned      aiodoned
    11      0      0      0  3    0x100200  syncer        update
    10      0      0      0  3    0x100200  cleaner       cleaner
     9      0      0      0  3    0x100200  reaper        reaper
     8      0      0      0  3    0x100200  pgdaemon      pagedaemon
     7      0      0      0  3    0x100200  pftm          pfpurge
     6      0      0      0  3    0x100200  usbtsk        usbtask
     5      0      0      0  3    0x100200  usbevt        usb0
     4      0      0      0  3    0x100200  apmev         apm0
     3      0      0      0  3    0x100200  bored         syswq
     2      0      0      0  3    0x100200  kmalloc       kmthread
     1      0      1      0  3      0x4080  wait          init
     0     -1      0      0  3     0x80200  scheduler     swapper

ddb> boot reboot
rebooting...
OpenBSD/i386 BOOT 3.01
boot>
booting hd0a:/bsd: 5665588+872060 [52+291168+272312]=0x6c5c70
entry point at 0x200120*
[ using 563904 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2007 OpenBSD. All rights reserved.
http://www.OpenBSD.org

OpenBSD 4.2 (GENERIC) #375: Tue Aug 28 10:38:44 MDT 2007
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III ("GenuineIntel" 686-class, 512KB L2 cache) 498 MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 402210816 (383MB)
avail mem = 381014016 (363MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 07/19/01, BIOS32 rev. 0 @ 0xfd801,
SMBIOS rev. 2.1 @ 0xf78ff (47 entries)
bios0: vendor IBM version "NVKT58AUS" date 07/19/2001
bios0: IBM 6862T7U
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf1c50/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:02:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x800
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 1 function 0 "S3 Trio3D AGP" rev 0x01
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
piixpcib0 at pci0 dev 2 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 2 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <WDC AC38400L>
wd0: 16-sector PIO, LBA, 8063MB, 16514064 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <LG, CD-ROM CRD-8400B, 1.12> SCSI0 5/cdrom
removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 2 function 2 "Intel 82371AB USB" rev 0x01: irq 11
piixpm0 at pci0 dev 2 function 3 "Intel 82371AB Power" rev 0x02: SMI
iic0 at piixpm0
iic0: addr 0x28 00=01 03=7f 04=7f 05=54 06=82 07=82 08=82 09=82 0a=82
0b=82 0c=af 0d=ba 0e=1d 10=01 13=7f 14=7f 15=54 16=82 17=82 18=82 19=82
1a=82 1b=82 1c=af 1d=ba 1e=1d 20=99 21=ab 22=bf 23=c7 24=b5 25=c0
26=bc 27=24 28=ff 29=ff 2a=ff 2c=ff 2e=ff 30=ff 32=ff 34=ff 36=ff 38=ff
3a=28 3b=1e 3e=30 3f=10 40=01 43=7f 44=7f 45=54 46=82 47=82 48=30 49=82
4a=30 4b=82 4c=af 4d=ba 4e=1d 50=01 53=7f 54=7f 55=54 56=82 57=8
2 58=82 59=82 5a=82 5b=82 5c=af 5d=ba 5e=1d 60=99 61=ab 62=bf 63=c7
64=b5 65=c0 66=bc 67=24 68=ff 69=ff 6a=ff 6c=ff 6e=ff 70=ff 72=ff 74=ff
76=ff 78=ff 7a=28 7b=1e 7e=30 7f=10 80=01 83=7f 84=7f 85=54 86=82 87
=82 88=82 89=82 8a=82 8b=82 8c=af 8d=ba 8e=1d 90=01 93=7f 94=7f 95=54
96=82 97=82 98=82 99=82 9a=82 9b=82 9c=af 9d=ba 9e=1d a0=99 a1=ab a2=bf
a3=c7 a4=b5 a5=c0 a6=bc a7=24 a8=ff a9=ff aa=ff ac=ff ae=ff b0=ff
b2=ff b4=ff b6=ff b8=ff ba=28 bb=1e be=30 bf=10 c0=01 c3=7f c4=7f c5=54
c6=82 c7=82 c8=82 c9=82 ca=82 cb=82 cc=af cd=ba ce=1d d0=01 d3=7f d4=7f
d5=54 d6=82 d7=82 d8=82 d9=82 da=82 db=82 dc=af dd=ba de=1d e0=9
9 e1=ab e2=bf e3=c7 e4=b5 e5=c0 e6=bc e7=24 e8=ff e9=ff ea=ff ec=ff
ee=ff f0=ff f2=ff f4=ff f6=ff f8=ff fa=28 fb=1e fe=30 ff=10
iic0: addr 0x2e 00=d1 01=1b 05=40 06=02 07=02 08=02 09=0b 0c=c8 10=d1
11=1b 15=40 16=02 17=02 18=02 19=0b 1c=c8 20=d1 21=1b 25=40 26=02 27=02
28=02 29=0b 2c=c8 30=d1 31=1b 35=40 36=02 37=02 38=02 39=0b 3c=c8
40=d1 41=1b 45=40 46=02 47=02 48=02 49=0b 4c=c8 50=d1 51=1b 55=40 56=02
57=02 58=02 59=0b 5c=c8 60=d1 61=1b 65=40 66=02 67=02 68=02 69=0b 6c=c8
70=d1 71=1b 75=40 76=02 77=02 78=02 79=0b 7c=c8 80=d1 81=1b 85=4
0 86=02 87=02 88=02 89=0b 8c=c8 90=d1 91=1b 95=40 96=02 97=02 98=02
99=0b 9c=c8 a0=d1 a1=1b a5=40 a6=02 a7=02 a8=02 a9=0b ac=c8 b0=d1 b1=1b
b5=40 b6=02 b7=02 b8=02 b9=0b bc=c8 c0=d1 c1=1b c5=40 c6=02 c7=02 c8
=02 c9=0b cc=c8 d0=d1 d1=1b d5=40 d6=02 d7=02 d8=02 d9=0b dc=c8 e0=d1
e1=1b e5=40 e6=02 e7=02 e8=02 e9=0b ec=c8 f0=d1 f1=1b f5=40 f6=02 f7=02
f8=02 f9=0b fc=c8
fxp0 at pci0 dev 3 function 0 "Intel 8255x" rev 0x05, i82558: irq 11,
address 00:06:29:33:a4:91
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 0
puc0 at pci0 dev 16 function 0 "US Robotics 3CP5610" rev 0x01: ports: 1 com
pccom3 at puc0 port 0 irq 10: ns16550a, 16 byte fifo
vr0 at pci0 dev 18 function 0 "VIA Rhine/RhineII" rev 0x06: irq 9,
address 00:50:ba:0a:33:9d
amphy0 at vr0 phy 8: Am79C873 10/100 PHY, rev. 0
ral0 at pci0 dev 20 function 0 "Ralink RT2560" rev 0x01: irq 9, address
00:12:17:99:70:2d
ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
isa0 at piixpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom2 at isa0 port 0x3e8/8 irq 5: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
isapnp0 at isa0 port 0x279: read port 0x203
wss1 at isapnp0 "Crystal Audio, CSC0100, , WSS/SB" port
0x534/4,0x388/4,0x220/16 irq 5 drq 1,0: CS4236/CS4236B (vers 0)
audio0 at wss1
"Crystal Audio, CSC010F, , Disabled" at isapnp0 not configured
"Crystal Audio, CSC0110, , CTRL" at isapnp0 port 0x120/8 not configured
usb0 at uhci0: USB revision 1.0
uhub0 at usb0: Intel UHCI root hub, rev 1.00/1.00, addr 1
biomask f94d netmask fb4d ttymask ffcf
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a swap on wd0b dump on wd0b
WARNING: / was not properly unmounted
Automatic boot in progress: starting file system checks.
/dev/rwd0a: 4622 files, 34179 used, 41204 free (12 frags, 5149 blocks,
0.0% fragmentation)
/dev/rwd0a: MARKING FILE SYSTEM CLEAN
/dev/rwd0h: 1126 files, 1332145 used, 334862 free (62 frags, 41850
blocks, 0.0% fragmentation)
/dev/rwd0h: MARKING FILE SYSTEM CLEAN
/dev/rwd0d: 10 files, 1396 used, 59107 free (11 frags, 7387 blocks, 0.0%
fragmentation)
/dev/rwd0d: MARKING FILE SYSTEM CLEAN
/dev/rwd0g: 24813 files, 1246386 used, 816845 free (3069 frags, 101722
blocks, 0.1% fragmentation)
/dev/rwd0g: MARKING FILE SYSTEM CLEAN
/dev/rwd0e: 2604 files, 12305 used, 28098 free (1170 frags, 3366 blocks,
2.9% fragmentation)
/dev/rwd0e: MARKING FILE SYSTEM CLEAN
setting tty flags
display.vblank -> on
display.screen_off -> 60000
display.kbdact -> on
display.outact -> off
pf enabled
net.inet.ip.forwarding: 0 -> 1
kern.emul.linux: 0 -> 1
starting network
add net default: gateway 0.0.0.1
starting system logger
starting named
starting initial daemons: ntpd.
savecore: no core dump
checking quotas: done.
building ps databases: kvm dev.
clearing /tmp
starting pre-securelevel daemons:.
setting kernel security level: kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files
starting network daemons: dhcpd sendmail httpd inetd sshd.
starting local daemons:.
standard daemons: cron.
Sat Jan 26 18:13:17 EST 2008

Reply via email to