Re: Problem installing 4.6 on Toshiba Libretto 70CT

2009-11-30 Thread Fred Crowson
On 11/29/09, Stuart Henderson s...@spacehopper.org wrote:
 Here is the set of files involved with this commit;
 http://anoncvs.estpak.ee/cgi-bin/cgit/openbsd-src/commit/?id=7ca5b93e36fc8d27fe992c1deb942debc710aeea

 Note that you will also need to revert the change to the kernel
 configuration file.

 (Thanks Rivo for the useful things you run on your anoncvs mirror :-)

Hi Stuart,

Thanks for the link - I spent the weekend building kernels - but I've
not got it past 4.3-current as of 3 Apr 08 :~(

Hopefully this weekend coming I'll get round to get the libretto to
boot a new kernel.

Fred



Re: Problem installing 4.6 on Toshiba Libretto 70CT

2009-11-29 Thread Stuart Henderson
On 2009-11-28, Fred Crowson fred.crow...@googlemail.com wrote:
 Hi Misc@

 Well the Libretto successfully boots with a kernel from the 3 April
 2008 and crashes with a kernel built from 4 April 2008.

 Using:

 cvs up -D3 Apr 2008 and cvs up -D4 Apr 2008

 to update my source tree.

 The list of files that changed between the two days are:

 P arch/amd64/conf/GENERIC
 P arch/i386/conf/GENERIC
 P arch/sparc64/dev/ebus_mainbus.c
 P dev/isa/it.c
 P dev/isa/itvar.h
 P dev/pci/if_bge.c
 P dev/pci/if_bgereg.h
 P dev/pci/if_lii.c
 P dev/pci/if_txp.c

 I'm guessing the changes to dev/isa/it.c or  dev/isa/itvar.h are
 responsible but I've no idea how to debug this any further.

 I'm guessing I need to somehow back out the changes to 1.28 of it.c
 and 1.8 of itvar.h in the current versions of the file and see if that
 allows the Libretto to boot - but my brain cannot cope with that
 tonight :~(

Here is the set of files involved with this commit;
http://anoncvs.estpak.ee/cgi-bin/cgit/openbsd-src/commit/?id=7ca5b93e36fc8d27fe992c1deb942debc710aeea

Note that you will also need to revert the change to the kernel
configuration file.

(Thanks Rivo for the useful things you run on your anoncvs mirror :-)



Re: Problem installing 4.6 on Toshiba Libretto 70CT

2009-11-28 Thread Fred Crowson
Hi Misc@

Well the Libretto successfully boots with a kernel from the 3 April
2008 and crashes with a kernel built from 4 April 2008.

Using:

cvs up -D3 Apr 2008 and cvs up -D4 Apr 2008

to update my source tree.

The list of files that changed between the two days are:

P arch/amd64/conf/GENERIC
P arch/i386/conf/GENERIC
P arch/sparc64/dev/ebus_mainbus.c
P dev/isa/it.c
P dev/isa/itvar.h
P dev/pci/if_bge.c
P dev/pci/if_bgereg.h
P dev/pci/if_lii.c
P dev/pci/if_txp.c

I'm guessing the changes to dev/isa/it.c or  dev/isa/itvar.h are
responsible but I've no idea how to debug this any further.

I'm guessing I need to somehow back out the changes to 1.28 of it.c
and 1.8 of itvar.h in the current versions of the file and see if that
allows the Libretto to boot - but my brain cannot cope with that
tonight :~(

I'll report back  if it works :~)

Fred



Re: Problem installing 4.6 on Toshiba Libretto 70CT

2009-11-23 Thread Fred Crowson
On 11/18/09, Hou, Ruoyu phoenix...@gmail.com wrote:
 All tests ended with
 kernel: integer divide fault trap, code=0
 Stopped atcpu_switchto+0x76:  popl%ebx

 When softraid disabled
 ddbtrace
 cpu_switchto(d073cfa0,a26000,d0a20f18,d0a20ef8,d0202f41) at
 cpu_switchto+0x76
 (null)(d020241,0,d0a20f18,d037cab8,d0854018) at 0
 end(d0746c60,d073cfa0,0,d073cf57,0) at 0xd0a20ef8
 config_rootfound(d073cfa0,0,d0a20fa0,d0360adf,2) at config_rootfound+0x3c
 main(0,0,0,0,0) at main+0x4b8

 When acpi disabled/apm disabled/apm  acpi disabled
 ddbtrace
 cpu_switchto(d0851534,d0c17800,d0a20f18,d03763c9,d0c17800) at
 cpu_switchto+0x76

 cfdata(d0c17800,0c17800,0,0,d15ca984) at cfdata+0x44e8
 config_attach(0,d084a0a4,0,0,d073cf57) at config_attach+0xfd
 config_rootfound(d073cfa0,0,d0a20fa0,d0360adf,2) at config_rootfound+0x27
 main(0,0,0,0,0) at main+0x4b3

Hi misc@,

I tried this again with 23 Nov 09 snapshot, but it is still crashing
with an integer divide fault trap, as per PR 6052 [1].

The verbose output of dmesg and the ps and trace are included below [2].

The Libretto 70CT works fine with OpenBSD 4.3.  This is not a major
issue, I'm just fond of my Libretto 70CT and want it running the
latest and greatest OS with 4.6 :~)  I am happy to continue debugging
this issue but would be keen to have any pointers in the right
direction.

Thanks,

Fred

[1] http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yesnumbers=6052
[2]The verbose output is shown below:

Script started on Mon Nov 23 23:11:23 2009
x41:fred ~ cu -l /dev/cuaU0 -s19200
Connected
 OpenBSD/i386 BOOT 3.02
boot bsd -c
booting hd0a:bsd:
/-\|/6774012-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-
\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\
|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|
/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/
-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-
\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\+1054568
[52+352880|/-\|/-\|/-\|/-\|/-\|/+335902-\|/-\|/-\|/-\|/-\|/]=0x81f89c
entry point at 0x200120

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

OpenBSD 4.6-current (GENERIC) #391: Mon Nov 23 05:29:52 MST 2009
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
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 = 7233536 (6MB)
User Kernel Config
UKC verbose
autoconf verbose enabled
UKC quit
Continuing...
 probing for mainbus0
 mainbus probe returned 1
mainbus0 at root
 probing for pci*
 pci probe returned 0
 probing for amdmsr0
 amdmsr probe returned 0
 probing for isa0
 isa probe returned 0
 probing for eisa0
 eisa probe returned 0
 probing for bios0
 bios probe returned 1
 probing for cpu0
 cpu probe returned 0
 probing for ioapic*
 ioapic probe returned 0
 probing for esm0
 esm probe returned 0
 bios probe won
bios0 at mainbus0: AT/286+ BIOS, date 11/11/97
 probing for apm0
 apm probe returned 1
 probing for mpbios0
 mpbios probe returned 0
 probing for pcibios0
 pcibios probe returned 0
 probing for acpi0
 acpi probe returned 0
 apm probe won
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 1%
apm0: AC on, battery charge low, charging
 probing for mpbios0
 mpbios probe returned 0
 probing for pcibios0
 pcibios probe returned 0
 probing for acpi0
 acpi probe returned 0
 no winning probe
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xe4000/0xc000
 probing for pci*
 pci probe returned 0
 probing for amdmsr0
 amdmsr probe returned 0
 probing for isa0
 isa probe returned 0
 probing for eisa0
 eisa probe returned 0
 probing for cpu0
 cpu probe returned 1
 probing for ioapic*
 ioapic probe returned 0
 probing for esm0
 esm probe returned 0
 cpu probe won
cpu0 at mainbus0: (uniprocessor)
cpu0: F00F bug workaround installed
 probing for pci*
 pci probe returned 0
 probing for amdmsr0
 amdmsr probe returned 0
 probing for isa0
 isa probe returned 1
 probing for eisa0
 eisa probe returned 0
 probing for ioapic*
 ioapic probe returned 0
 probing for esm0
 esm probe returned 0
 isa probe won
isa0 at mainbus0
 probing for isadma0
 probing for isadma0 succeeded
isadma0 at isa0
 probing for ast0
 probing for ast0 failed
 probing for com0
 probing for com0 succeeded
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
 probing for com1
 probing for com1 succeeded
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
 probing for com2
 probing for com2 failed
 probing for cy0
 probing for cy0 failed
 probing for pckbc0
 probing for pckbc0 succeeded
pckbc0 at isa0 port 0x60/5
 probing for pckbd*
 pckbd probe returned 2
 probing for pms*
 pms probe 

Re: Problem installing 4.6 on Toshiba Libretto 70CT

2009-11-17 Thread Hou, Ruoyu
All tests ended with 
kernel: integer divide fault trap, code=0
Stopped at  cpu_switchto+0x76:  popl%ebx

When softraid disabled 
ddbtrace
cpu_switchto(d073cfa0,a26000,d0a20f18,d0a20ef8,d0202f41) at cpu_switchto+0x76
(null)(d020241,0,d0a20f18,d037cab8,d0854018) at 0
end(d0746c60,d073cfa0,0,d073cf57,0) at 0xd0a20ef8
config_rootfound(d073cfa0,0,d0a20fa0,d0360adf,2) at config_rootfound+0x3c
main(0,0,0,0,0) at main+0x4b8

When acpi disabled/apm disabled/apm  acpi disabled
ddbtrace
cpu_switchto(d0851534,d0c17800,d0a20f18,d03763c9,d0c17800) at cpu_switchto+0x76

cfdata(d0c17800,0c17800,0,0,d15ca984) at cfdata+0x44e8
config_attach(0,d084a0a4,0,0,d073cf57) at config_attach+0xfd
config_rootfound(d073cfa0,0,d0a20fa0,d0360adf,2) at config_rootfound+0x27
main(0,0,0,0,0) at main+0x4b3

Regards,

Marco Peereboom wrote:
 Nothing pops out at me.  Can you try booting with several things
 disabled:
 * disable softraid
 * disable acpi
 * disable apm
 * disable apm  acpi
 
 so those are 4 different tests.
 
 Thanks,
 /marco
 
 On Mon, Nov 16, 2009 at 06:34:46PM +0800, Hou Ruoyu wrote:
 As I upgraded to #377 Nov 15 kernel snapshot, the problem recurred.
 OpenBSD 4.6-current (GENERIC) #377: Sun Nov 15 00:38:03 MST 2009
 (same as before)
 biomask edc5 netmask efc5 ttymask 
 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
 ddbtrace
 cpu_switchto(d0851534,d0c17800,d0a20f18,d03763c9,d0c17800) at 
 cpu_switchto+0x76

 cfdata(d0c17800,0c17800,0,0,d15ca984) at cfdata+0x44e8
 config_attach(0,d084a0a4,0,0,d073cf57) at config_attach+0xfd
 config_rootfound(d073cfa0,0,d0a20fa0,d0360adf,2) at config_rootfound+0x27
 main(0,0,0,0,0) at main+0x4b3

 Regards,

 On Sun, Nov 15, 2009 at 11:45 PM, Marco Peereboom sl...@peereboom.us wrote:
 I think we fixed that in -current. ??Can you try the latest kernel?

 On Sun, Nov 15, 2009 at 01:12:13PM +0800, Hou, Ruoyu wrote:
 Thanks for the reply. Here are return info from trace and ps:
 ddbtrace
 cpu_switchto(d081f394,d0be5000,d09e9f18,d035f36d,d0be5000) at 
 cpu_switchto+0x76

 cfdata(d0be5000,d0be5000,0,d09e9f20,100) at cfdata+0x4434
 config_attach(0,d0818080,0,0,d0821a38) at config_attach+0xfd
 config_rootfound(d070b6f7,0,d09e9fa0,d0349ad9,2) at config_rootfound+0x27
 main(0,0,0,0,0) at main+0x4af
 ddbps
 ?? ??PID ?? PPID ?? PGRP ?? UID ??S ?? ?? ?? FLAGS ??WAIT ?? ?? ?? COMMAND
 ?? ?? ??8 ?? ?? ??0 ?? ?? ??0 ?? ?? 0 ??2 ?? ??0x100200 ?? ?? ?? ?? ?? ?? 
 pfpurge
 ?? ?? ??7 ?? ?? ??0 ?? ?? ??0 ?? ?? 0 ??2 ?? ??0x100200 ?? ?? ?? ?? ?? ?? 
 pcic0,0,1
 ?? ?? ??6 ?? ?? ??0 ?? ?? ??0 ?? ?? 0 ??2 ?? ??0x100200 ?? ?? ?? ?? ?? ?? 
 pcic0,0,0
 ?? ?? ??5 ?? ?? ??0 ?? ?? ??0 ?? ?? 0 ??2 ?? ??0x100200 ?? ?? ?? ?? ?? ?? 
 apm0
 ?? ?? ??4 ?? ?? ??0 ?? ?? ??0 ?? ?? 0 ??2 ?? ??0x100200 ?? ?? ?? ?? ?? ?? 
 syswq
 ?? ?? ??3 ?? ?? ??0 ?? ?? ??0 ?? ?? 0 ??2 ?? ??0x100200 ?? ?? ?? ?? ?? ?? 
 idle0
 ?? ?? ??2 ?? ?? ??0 ?? ?? ??0 ?? ?? 0 ??2 ?? ??0x100200 ?? ?? ?? ?? ?? ?? 
 kmthread
 * ?? ??1 ?? ?? ??0 ?? ?? ??0 ?? ?? 0 ??7 ?? ?? ?? ?? ?? 0 ?? ?? ?? ?? ?? 
 ?? swapper
 ?? ?? ??0 ?? ?? ??0 ?? ?? ??0 ?? ?? 0 ??3 ?? ?? 0x80200 ??wdccmd ?? ?? 
 swapper

 My disk was partioned as follows:
 1120MB as / and set bootable
 80MB as swap
 remaining 340+MB was FAT32 and mounted as /MSDOS.

 Regards,

 Marco Peereboom wrote:
 type trace please

 On Sun, Nov 15, 2009 at 11:55:27AM +0800, Hou, Ruoyu wrote:
 I am trying to install OpenBSD 4.6 on a old Libretto 70CT. The 
 installation was finished without error but stuck at rebooting.

 Since no PCMCIA-floppy or PCMCIA-CD-ROM on hand, I booted the boot 
 cdimage file by Grub4DOS and performed net install. Reboot run into 
 kernel fault. dmesg as follows:
 OpenBSD 4.6 (GENERIC) #58: Thu Jul 9 21:24:42 MDT 2009
 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel Pentium/MMX (GenuineIntel 586-class) 121 MHz
 cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,MMX
 real mem = 33255424 (31MB)
 avail mem = 21803008 (20MB)
 mainbus0 (root)
 bios0 at mainbus0: AT/286+ BIOS, date 02/10/99
 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
 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: 

Re: Problem installing 4.6 on Toshiba Libretto 70CT

2009-11-16 Thread Hou Ruoyu
As I upgraded to #377 Nov 15 kernel snapshot, the problem recurred.
OpenBSD 4.6-current (GENERIC) #377: Sun Nov 15 00:38:03 MST 2009
(same as before)
biomask edc5 netmask efc5 ttymask 
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
ddbtrace
cpu_switchto(d0851534,d0c17800,d0a20f18,d03763c9,d0c17800) at
cpu_switchto+0x76

cfdata(d0c17800,0c17800,0,0,d15ca984) at cfdata+0x44e8
config_attach(0,d084a0a4,0,0,d073cf57) at config_attach+0xfd
config_rootfound(d073cfa0,0,d0a20fa0,d0360adf,2) at config_rootfound+0x27
main(0,0,0,0,0) at main+0x4b3

Regards,

On Sun, Nov 15, 2009 at 11:45 PM, Marco Peereboom sl...@peereboom.us wrote:
 I think we fixed that in -current. B Can you try the latest kernel?

 On Sun, Nov 15, 2009 at 01:12:13PM +0800, Hou, Ruoyu wrote:
 Thanks for the reply. Here are return info from trace and ps:
 ddbtrace
 cpu_switchto(d081f394,d0be5000,d09e9f18,d035f36d,d0be5000) at
cpu_switchto+0x76

 cfdata(d0be5000,d0be5000,0,d09e9f20,100) at cfdata+0x4434
 config_attach(0,d0818080,0,0,d0821a38) at config_attach+0xfd
 config_rootfound(d070b6f7,0,d09e9fa0,d0349ad9,2) at config_rootfound+0x27
 main(0,0,0,0,0) at main+0x4af
 ddbps
 B  B PID B  PPID B  PGRP B  UID B S B  B  B  FLAGS B WAIT B  B  B  COMMAND
 B  B  B 8 B  B  B 0 B  B  B 0 B  B  0 B 2 B  B 0x100200 B  B  B  B  B  B 
pfpurge
 B  B  B 7 B  B  B 0 B  B  B 0 B  B  0 B 2 B  B 0x100200 B  B  B  B  B  B 
pcic0,0,1
 B  B  B 6 B  B  B 0 B  B  B 0 B  B  0 B 2 B  B 0x100200 B  B  B  B  B  B 
pcic0,0,0
 B  B  B 5 B  B  B 0 B  B  B 0 B  B  0 B 2 B  B 0x100200 B  B  B  B  B  B 
apm0
 B  B  B 4 B  B  B 0 B  B  B 0 B  B  0 B 2 B  B 0x100200 B  B  B  B  B  B 
syswq
 B  B  B 3 B  B  B 0 B  B  B 0 B  B  0 B 2 B  B 0x100200 B  B  B  B  B  B 
idle0
 B  B  B 2 B  B  B 0 B  B  B 0 B  B  0 B 2 B  B 0x100200 B  B  B  B  B  B 
kmthread
 * B  B 1 B  B  B 0 B  B  B 0 B  B  0 B 7 B  B  B  B  B  0 B  B  B  B  B  B 
swapper
 B  B  B 0 B  B  B 0 B  B  B 0 B  B  0 B 3 B  B  0x80200 B wdccmd B  B 
swapper

 My disk was partioned as follows:
 1120MB as / and set bootable
 80MB as swap
 remaining 340+MB was FAT32 and mounted as /MSDOS.

 Regards,

 Marco Peereboom wrote:
  type trace please
 
  On Sun, Nov 15, 2009 at 11:55:27AM +0800, Hou, Ruoyu wrote:
  I am trying to install OpenBSD 4.6 on a old Libretto 70CT. The
installation was finished without error but stuck at rebooting.
 
  Since no PCMCIA-floppy or PCMCIA-CD-ROM on hand, I booted the boot
cdimage file by Grub4DOS and performed net install. Reboot run into kernel
fault. dmesg as follows:
  OpenBSD 4.6 (GENERIC) #58: Thu Jul 9 21:24:42 MDT 2009
  dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
  cpu0: Intel Pentium/MMX (GenuineIntel 586-class) 121 MHz
  cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,MMX
  real mem = 33255424 (31MB)
  avail mem = 21803008 (20MB)
  mainbus0 (root)
  bios0 at mainbus0: AT/286+ BIOS, date 02/10/99
  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
  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: IBM-DDLA-21620
  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: SB MIDI UART
  audio0 at sb0
  opl0 at sb0: model OPL3
  midi1 at opl0: SB Yamaha OPL3
  wss0 at isa0 port 0x530/8 irq 10 drq 0: CS4231 or AD1845 (vers 4)
  audio1 at wss0
  pcppi0 at isa0 port 0x61
  midi2 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
  pcic0 at isa0 port 0x3e0/2 iomem 0xd/65536
  pcic0 controller 0: Intel 82365SL rev 1 has sockets A and B
  pcmcia0 at pcic0 controller 0 socket 0
  ep1 at pcmcia0 function 0 3Com Corporation, 3C589D, TP/BNC LAN Card
Ver. 2a
  port 0x340/16, irq 9: address 00:60:97:cd:e8:e7, utp/aui/bnu (default
utp)
  pcmcia1 at pcic0 controller 0 socket 1
  pcic0: irq 11, polling enabled
  biomask e145 netmask e345 ttymask fbdf
  softraid0 at root
  kernel: integer divide fault trap, code=0
  Stopped at cpu_switchto+0x76: B  B  B popl B  B %ebx
  ddb_
 
  While trying boot /bsd.rd succeeded:
 

Problem installing 4.6 on Toshiba Libretto 70CT

2009-11-14 Thread Hou, Ruoyu
I am trying to install OpenBSD 4.6 on a old Libretto 70CT. The installation was 
finished without error but stuck at rebooting.

Since no PCMCIA-floppy or PCMCIA-CD-ROM on hand, I booted the boot cdimage file 
by Grub4DOS and performed net install. Reboot run into kernel fault. dmesg as 
follows:
OpenBSD 4.6 (GENERIC) #58: Thu Jul 9 21:24:42 MDT 2009
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium/MMX (GenuineIntel 586-class) 121 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,MMX
real mem = 33255424 (31MB)
avail mem = 21803008 (20MB)
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 02/10/99
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
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: IBM-DDLA-21620
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: SB MIDI UART
audio0 at sb0
opl0 at sb0: model OPL3
midi1 at opl0: SB Yamaha OPL3
wss0 at isa0 port 0x530/8 irq 10 drq 0: CS4231 or AD1845 (vers 4)
audio1 at wss0
pcppi0 at isa0 port 0x61
midi2 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
pcic0 at isa0 port 0x3e0/2 iomem 0xd/65536
pcic0 controller 0: Intel 82365SL rev 1 has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
ep1 at pcmcia0 function 0 3Com Corporation, 3C589D, TP/BNC LAN Card Ver. 2a 
port 0x340/16, irq 9: address 00:60:97:cd:e8:e7, utp/aui/bnu (default utp)
pcmcia1 at pcic0 controller 0 socket 1
pcic0: irq 11, polling enabled
biomask e145 netmask e345 ttymask fbdf
softraid0 at root
kernel: integer divide fault trap, code=0
Stopped at  cpu_switchto+0x76:  popl%ebx
ddb_

While trying boot /bsd.rd succeeded:
OpenBSD 4.6 (GENERIC) #58: Thu Jul 9 21:24:42 MDT 2009
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium/MMX (GenuineIntel 586-class) 121 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,MMX
real mem = 33255424 (31MB)
avail mem = 21803008 (20MB)
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 02/10/99
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
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: IBM-DDLA-21620
wd0: 16-sector PIO, LBA, 1551MB, 3177216 sectors
wd0(wdc0:0:0): using BIOS timings
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pcic0 at isa0 port 0x3e0/2 iomem 0xd/65536
pcic0 controller 0: Intel 82365SL rev 1 has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
ep1 at pcmcia0 function 0 3Com Corporation, 3C589D, TP/BNC LAN Card Ver. 2a 
port 0x340/16, irq 9: address 00:60:97:cd:e8:e7, utp/aui/bnu (default utp)
pcmcia1 at pcic0 controller 0 socket 1
pcic0: irq 5, polling enabled
biomask fdc5 netmask ffc5 ttymask 
softraid0 at root
root on rd0a swap on rd0b dump on rd0b
erase ^?, werase ^W, kill^U, intr ^C, status ^T

Welcome to the OpenBSD/i386 4.6 installation program
(I)nstall, (U)pgrade or (S)hell?_

Seems boot /bsd.rd skipped sound system  LPT, then assign pcic0 to irq 5 which 
was occupied by sound card. Then I tried disabling sound system  LPT, 
additionally softraid0, both in CMOS and boot_config, followed by manually 
assign pcic0 to irq 5. The kernel fault remained unchanged. Also, 
reinstallation did'nt help. I don't know what the problem is and what I could 
do.

From what I've searched on internet, a similar piece of 70CT run as late as 
4.0 with half of RAM(16MB) and a different 

Re: Problem installing 4.6 on Toshiba Libretto 70CT

2009-11-14 Thread Hou Ruoyu
Here are return info from trace and ps:
ddbtrace
cpu_switchto(d081f394,d0be5000,d09e9f18,d035f36d,d0be5000) at
cpu_switchto+0x76

cfdata(d0be5000,d0be5000,0,d09e9f20,100) at cfdata+0x4434
config_attach(0,d0818080,0,0,d0821a38) at config_attach+0xfd
config_rootfound(d070b6f7,0,d09e9fa0,d0349ad9,2) at config_rootfound+0x27
main(0,0,0,0,0) at main+0x4af
ddbps
   PID   PPID   PGRP   UID  S   FLAGS  WAIT   COMMAND
 8  0  0 0  20x100200 pfpurge
 7  0  0 0  20x100200 pcic0,0,1
 6  0  0 0  20x100200 pcic0,0,0
 5  0  0 0  20x100200 apm0
 4  0  0 0  20x100200 syswq
 3  0  0 0  20x100200 idle0
 2  0  0 0  20x100200 kmthread
*1  0  0 0  7   0 swapper
 0 -1  0 0  3 0x80200  wdccmd swapper

My disk was partioned as follows:
1120MB as / and set bootable
80MB as swap
remaining 340+MB was FAT32 and mounted as /MSDOS.

Regards,

2009/11/15 Hou, Ruoyu phoenix...@gmail.com:
 I am trying to install OpenBSD 4.6 on a old Libretto 70CT. The installation
was finished without error but stuck at rebooting.

 Since no PCMCIA-floppy or PCMCIA-CD-ROM on hand, I booted the boot cdimage
file by Grub4DOS and performed net install. Reboot run into kernel fault.
dmesg as follows:
 OpenBSD 4.6 (GENERIC) #58: Thu Jul 9 21:24:42 MDT 2009
 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel Pentium/MMX (GenuineIntel 586-class) 121 MHz
 cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,MMX
 real mem = 33255424 (31MB)
 avail mem = 21803008 (20MB)
 mainbus0 (root)
 bios0 at mainbus0: AT/286+ BIOS, date 02/10/99
 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
 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: IBM-DDLA-21620
 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: SB MIDI UART
 audio0 at sb0
 opl0 at sb0: model OPL3
 midi1 at opl0: SB Yamaha OPL3
 wss0 at isa0 port 0x530/8 irq 10 drq 0: CS4231 or AD1845 (vers 4)
 audio1 at wss0
 pcppi0 at isa0 port 0x61
 midi2 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
 pcic0 at isa0 port 0x3e0/2 iomem 0xd/65536
 pcic0 controller 0: Intel 82365SL rev 1 has sockets A and B
 pcmcia0 at pcic0 controller 0 socket 0
 ep1 at pcmcia0 function 0 3Com Corporation, 3C589D, TP/BNC LAN Card Ver.
2a
 port 0x340/16, irq 9: address 00:60:97:cd:e8:e7, utp/aui/bnu (default utp)
 pcmcia1 at pcic0 controller 0 socket 1
 pcic0: irq 11, polling enabled
 biomask e145 netmask e345 ttymask fbdf
 softraid0 at root
 kernel: integer divide fault trap, code=0
 Stopped at B  B  B cpu_switchto+0x76: B  B  B popl B  B %ebx
 ddb_

 While trying boot /bsd.rd succeeded:
 OpenBSD 4.6 (GENERIC) #58: Thu Jul 9 21:24:42 MDT 2009
 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel Pentium/MMX (GenuineIntel 586-class) 121 MHz
 cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,MMX
 real mem = 33255424 (31MB)
 avail mem = 21803008 (20MB)
 mainbus0 (root)
 bios0 at mainbus0: AT/286+ BIOS, date 02/10/99
 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
 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: