Libretto 70CT Debugging

2011-02-14 Thread Fred
Hi Misc,

I'm stumped (again) my Toshiba Libretto 70CT has not been
able to boot a kernel since 4.3, this is know issue [1],

I have just compiled a kernel with option DEBUG and option
WDCDEBUG to see if I can track down the issue.

I disabled softraid at the UKC> prompt (due to a hint from [2])

The kernel integer divide fault trap occurred again, but there was some 
additional debug info which I have not seen before:

root device softraid not configured
dkcsum: bootdev=0xa000
dkcsum: BIOS drive 0x80 bsd_dev=0xa200 checksum=0xc31f9477
kernel: integer divide fault trap, code=0
Stopped at  cpu_switchto+0x76:  popl%ebx

Not sure if this sheds any further light on the problem?

Is there any other debugging information I can get?

The dmesg, trace and ps are at the end of this email.

Any clues appreciated, and as a side note the bsd.rd  kernels boot
fine (with the exception of the 4.8 bsd.rd that had the "memory" 
clobber to lidt inline asm issue [3]).

Thanks

Fred

[1] http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yes&numbers=6052

[2] http://marc.info/?t=12786677461&r=1&w=2

[3] http://marc.info/?l=openbsd-cvs&m=128224641425290

dmesg, trace, ps and second trace and ps following: 

Script started on Mon Feb 14 23:19:43 2011
x41:fred ~> cu -l /dev/cuaU0 -s9600
Connected
>> OpenBSD/i386 BOOT 3.01
boot> bsd.lib -c
booting hd0a:bsd.lib: 
/-\|/8299772-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|+1100136/
 [61+373232-\|/-\|/-\|/-\|/-\|/-\|+358603/-\|/-\|/-\|/-\|/-\|/-]=0x9a9afc
entry point at 0x200120

memmap: 0-9fc00 10-102: 101c000
physload:  100-200 (<16M) 8-9f (<16M) bb1-1000 (<16M) 1000-101c
[ using 732312 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-2011 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 4.9-beta (libretto) #2: Sun Feb 13 22:05:13 GMT 2011
f...@x41.crowsons.com:/usr/src/sys/arch/i386/compile/libretto
cpu0: Intel Pentium/MMX ("GenuineIntel" 586-class) 121 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,MMX
real mem  = 16478208 (15MB)
avail mem = 6156288 (5MB)
User Kernel Config
UKC> disable softraid
  8 softraid0 disabled
UKC> quit
Continuing...
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/11/97
apminfo: 20102, code f[]/f[], data f[], ept 6270
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high, charging
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xe4000/0xc000
cpu0 at mainbus0: (uniprocessor)
cpu0: F00F bug workaround installed
pci_mode_detect: mode 1 enable failed ()
isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd: trying table 3
pckbd: table set of 3 failed
pckbd: trying table 2
pckbd: settling on table 2
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pms0: protocol type 0
vga0 at isa0 port 0x3b0/48 iomem 0xa/131072
wsdisplay0 at vga0 mux 1: console (80x25, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
wdc0 at isa0 port 0x1f0/8 irq 14
wd0 at wdc0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 1551MB, 3177216 sectors
wd0(wdc0:0:0): using BIOS timings
sb0 at isa0 port 0x220/24 irq 5 drq 1: dsp v3.01
midi0 at sb0: 
audio0 at sb0
opl at sb0 not configured
wss0 at isa0 port 0x530/8 irq 10 drq 0: CS4231 or AD1845 (vers 4)
audio1 at wss0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
lpt_isa_probe: mask ff data 55 failed
lpt_isa_probe: mask ff data 55 failed
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pcic0 at isa0 port 0x3e0/2 iomem 0xd/65536
pcic0 controller 0:  has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
xe0 at pcmcia0 function 0 "Xircom, CreditCard 10Base-T, PS-CE2-10" port 
0x340/16, irq 9: address 00:80:c7:42:37:d9
pcmcia1 at pcic0 controller 0 socket 1
pcic0: irq 11, polling enabled
biomask e145 netmask e345 ttymask fbdf
Timecounters tick every 10.000 msec
vscsi0 at root
scsibus0 at vscsi0: 256 targets
root device softraid not configured
dkcsum: bootdev=0xa000
dkcsum: BIOS drive 0x80 bsd_dev=0xa200 checksum=0xc31f9477
kernel: integer divide fault trap, code=0
St

Re: Libretto 70CT Debugging

2011-02-19 Thread Sebastian Reitenbach
Hi,

with all this libretto thread, I backed out my old Libretto 60, but I
can only confirm that it also has the same problem:

booting hd0a:/bsd: 8254588+118 [61+372400+358030]=0x99e480
entry point at 0x200120

[ using 730908 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-2011 OpenBSD. All rights reserved. 
http://www.OpenBSD.org

OpenBSD 4.9 (GENERIC) #660: Wed Feb 16 13:39:36 MST 2011
t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium (P54C) ("GenuineIntel" 586-class) 100 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8
real mem  = 33255424 (31MB)
avail mem = 22691840 (21MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 06/09/97
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high, charging
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xe4000/0xc000
cpu0 at mainbus0: (uniprocessor)
cpu0: F00F bug workaround installed
isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
vga0 at isa0 port 0x3b0/48 iomem 0xa/131072
wsdisplay0 at vga0 mux 1: console (80x25, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
wdc0 at isa0 port 0x1f0/8 irq 14
wd0 at wdc0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 5729MB, 11733120 sectors
wd0(wdc0:0:0): using BIOS timings
sb0 at isa0 port 0x220/24 irq 5 drq 1: dsp v3.01
midi0 at sb0: 
audio0 at sb0
opl at sb0 not configured
wss0 at isa0 port 0x530/8 irq 10 drq 0: CS4231 or AD1845 (vers 4)
audio1 at wss0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pcic0 at isa0 port 0x3e0/2 iomem 0xd/65536
pcic0 controller 0:  has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
pcic0: irq 9, polling enabled
biomask e945 netmask e945 ttymask fbdf
vscsi0 at root
scsibus0 at vscsi0: 256 targets
softraid0 at root
kernel: integer divide fault trap, code=0
Stopped at  cpu_switchto+0x76:  popl%ebx
ddb> ps
   PID   PPID   PGRPUID  S   FLAGS  WAIT  COMMAND
 9  0  0  0  20x100200crypto
 8  0  0  0  20x100200pfpurge
 7  0  0  0  20x100200pcic0,0,1
 6  0  0  0  20x100200pcic0,0,0
 5  0  0  0  20x100200apm0
 4  0  0  0  20x100200syswq
 3  0  0  0  20x100200idle0
 2  0  0  0  20x100200kmthread
*1  0  0  0  7   0swapper
 0 -1  0  0  3 0x80200  wdccmdswapper
ddb> trace
cpu_switchto(d09bda74,d0daa800,d0ba0f08,d03e4890,d0daa800) at
cpu_switchto+0x76


Fred wrote:
> Hi Misc,
>
> I'm stumped (again) my Toshiba Libretto 70CT has not been
> able to boot a kernel since 4.3, this is know issue [1],
>
> I have just compiled a kernel with option DEBUG and option
> WDCDEBUG to see if I can track down the issue.
>
> I disabled softraid at the UKC> prompt (due to a hint from [2])
>
> The kernel integer divide fault trap occurred again, but there was some 
> additional debug info which I have not seen before:
>
> root device softraid not configured
> dkcsum: bootdev=0xa000
> dkcsum: BIOS drive 0x80 bsd_dev=0xa200 checksum=0xc31f9477
> kernel: integer divide fault trap, code=0
> Stopped at  cpu_switchto+0x76:  popl%ebx
>
> Not sure if this sheds any further light on the problem?
>
> Is there any other debugging information I can get?
>
> The dmesg, trace and ps are at the end of this email.
>
> Any clues appreciated, and as a side note the bsd.rd  kernels boot
> fine (with the exception of the 4.8 bsd.rd that had the "memory" 
> clobber to lidt inline asm issue [3]).
>
> Thanks
>
> Fred
>
> [1] http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yes&numbers=6052
>
> [2] http://marc.info/?t=12786677461&r=1&w=2
>
> [3] http://marc.info/?l=openbsd-cvs&m=128224641425290
>
> dmesg, trace, ps and second trace and ps following: 
>
> Script started on Mon Feb 14 23:19:43 2011
> x41:fred ~> cu -l /dev/cuaU0 -s9600
> Connected
>   
>>> OpenBSD/i386 BOOT 3.01
>>>   
> boot> bsd.lib -c
> booting hd0a:bsd.lib: 
> /-\|/8299772-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\