Unable to install 3.8-4.2, able to install 3.8 on old 486DX. probably wscons(4)/wskbd(4) related.

2007-11-24 Thread Jasper Valentijn
Hello misc@,

First of all sorry for not mentioning this earlier but, better late than never!

Problem definition:
As stated in the subject.

Abstract:
Keyboard works in 3.7.
Keyboard works in boot(8) and UKC.
Keyboard is dead after booting the kernel in 3.8 and higher.
dmesg for 3.7-release and 4.2-stable below, both GENERIC ofcourse.

What I've tried so far:
Booted from several different floppies with images floppy38.fs-floppy42.fs.
Booted bsd.rd loaded from hd with boot(8) again the same range.
Booted an i386 4.2 GENERIC kernel with boot(8) -a option.
Booted an i386 4.2 GENERIC kernel.
Disabled pcibios during each trail, on or off same result.

What I will probably try in the near future:
Locating my null modem cable and hooking it up to see if I can install
4.2-stable.
Testing an other keyboard?

Symptoms:
Loads each kernel. No difference for bsd.rd floppy or hd based. Same
for GENERIC.

bsd.rd halts at the install upgrade shell prompt, keyboard is totally
unresponsive, no {caps,scroll,num}lock, no ctrl-alt-del.

bsd 4.2 GENERIC with boot(8) -a option halts at the root disk prompt,
keyboard is totally unresponsive, no {caps,scroll,num}lock, no
ctrl-alt-del.

bsd 4.2 GENERIC halts at the login prompt, keyboard is totally
unresponsive, no {caps,scroll,num}lock, no ctrl-alt-del, am able to
ssh to the box.

Hypothesis:
Keyboard support dropped for my old beast?

The keyboard is connected via a 5-pin DIN (DIN 41524) AT connector.

Changes made between OpenBSD 3.7 and OpenBSD 3.8
Miod is hacking keyboard map support in wscons(4) and elsewhere.

My questions:
Has anybody else noticed this problem with an AT connector connected box?
Any ideas on what to enable or disable in UKC to get my keyboard working?
Is my keyboard not working by design or mistake?

Thanks in advance for any hints besides buying new hardware.

Jasper


OpenBSD 3.7 (GENERIC) #50: Sun Mar 20 00:01:57 MST 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel 486DX (486-class)
real mem  = 49913856 (48744K)
avail mem = 37879808 (36992K)
using 634 buffers containing 2596864 bytes (2536K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(2c) BIOS, date 04/07/95, BIOS32 rev. 0 @ 0xfbfa0
pcibios0 at bios0: rev 2.0 @ 0xf/0xc3b0
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x800 0xef000/0x1000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
xl0 at pci0 dev 12 function 0 3Com 3c905C 100Base-TX rev 0x74: irq
12, address 00:01:02:f6:c8:17
bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 6
pchb0 at pci0 dev 16 function 0 UMC UM8881F Host rev 0x01
pcib0 at pci0 dev 18 function 0 UMC UM8886 rev 0x01
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux 1 ignored for console): console keyboard
vga0 at isa0 port 0x3b0/48 iomem 0xa/131072
wsdisplay0 at vga0: 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-DALA-3540
wd0: 16-sector PIO, LBA, 516MB, 1057392 sectors
wd0(wdc0:0:0): using BIOS timings
wdc1 at isa0 port 0x170/8 irq 15
atapiscsi0 at wdc1 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: SAMSUNG, CD-ROM SC-152L, C100 SCSI0
5/cdrom removable
cd0(wdc1:0:0): using BIOS timings
ne1 at isa0 port 0x300/32 irq 10
ne1: NE2000 (RTL8019) Ethernet
ne1: address 00:00:e8:5d:49:57
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0/16: using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
xl0 at pci0 dev 12 function 0 3Com 3c905C 100Base-TX rev 0x74: irq
12, address 00:01:02:f6:c8:17
bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 6
pchb0 at pci0 dev 16 function 0 UMC UM8881F Host rev 0x01
pcib0 at pci0 dev 18 function 0 UMC UM8886 rev 0x01
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux 1 ignored for console): console keyboard
vga0 at isa0 port 0x3b0/48 iomem 0xa/131072
wsdisplay0 at vga0: 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-DALA-3540
wd0: 16-sector PIO, LBA, 516MB, 1057392 sectors
wd0(wdc0:0:0): using BIOS timings
wdc1 at isa0 port 0x170/8 irq 15
atapiscsi0 at wdc1 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: SAMSUNG, CD-ROM SC-152L, C100 SCSI0
5/cdrom removable
cd0(wdc1:0:0): using BIOS timings
ne1 at isa0 port 0x300/32 irq 10
ne1: NE2000 (RTL8019) Ethernet
ne1: address 00:00:e8:5d:49:57
pcppi0 at isa0 

Re: Unable to install 3.8-4.2, able to install 3.8 on old 486DX. probably wscons(4)/wskbd(4) related.

2007-11-24 Thread Miod Vallat (on the road)
Can you try to run either a 3.7 kernel with sys/dev/ic/pckbc.c r1.10
(stock 3.7 is r1.9) and report whether this causes the keyboard to
become unresponsive?

Miod



Re: Unable to install 3.8-4.2, able to install 3.8 on old 486DX. probably wscons(4)/wskbd(4) related. [FIXED]

2007-11-24 Thread Jasper Valentijn
2007/11/24, Miod Vallat (on the road) [EMAIL PROTECTED]:
   Can you try to run either a 3.7 kernel with sys/dev/ic/pckbc.c r1.10
   (stock 3.7 is r1.9) and report whether this causes the keyboard to
   become unresponsive?
 
  Sure, it will take me some time to get the kernel though. Unless you
  can tell me what cvs commandstring I have to unleash on my 4.2-stable
  source to get the r1.10 version.

 Oh, if you have a 4.2 available, it's easier to test a 4.2 with the 1.10
 changes reverted, by doing this:

 cd /usr/src/sys/dev/ic/
 cvs diff -r1.9 -r1.10 pckbc.c  pckbc.revert
 patch -R  pckbc.revert

 and compile a new 4.2 kernel.


Keyboard works again after the booted and patched kernel, dmesg below.

A round of beer is on me next hackathlon! $25 sent to the paypal
account. Thanks Miod!

Jasper


# patch -R  pckbc.revert
Hmm...  Looks like a normal diff to me...
The text leading up to this was:
--
|Index: pckbc.c
|===
|RCS file: /cvs/src/sys/dev/ic/pckbc.c,v
|retrieving revision 1.9
|retrieving revision 1.10
|diff -r1.9 -r1.10
--
Patching file pckbc.c using Plan A...
Hunk #1 failed at 1.
Hunk #2 succeeded at 362 (offset 4 lines).
1 out of 2 hunks failed--saving rejects to pckbc.c.rej
done


OpenBSD 4.2-stable (GENERIC) #5: Sat Nov 24 23:39:10 CET 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel 486DX (486-class)
real mem  = 49901568 (47MB)
avail mem = 39292928 (37MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/07/95, BIOS32 rev. 0 @ 0xfbfa0
pcibios0 at bios0: rev 2.0 @ 0xf/0xc3b0
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x800 0xef000/0x1000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
xl0 at pci0 dev 12 function 0 3Com 3c905C 100Base-TX rev 0x74: irq
12, address 00:01:02:f6:c8:17
bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 6
pchb0 at pci0 dev 16 function 0 UMC UM8881F Host rev 0x01
pcib0 at pci0 dev 18 function 0 UMC UM8886 rev 0x01
isa0 at pcib0
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
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-DALA-3540
wd0: 16-sector PIO, LBA, 516MB, 1057392 sectors
wd0(wdc0:0:0): using BIOS timings
wdc1 at isa0 port 0x170/8 irq 15
atapiscsi0 at wdc1 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: SAMSUNG, CD-ROM SC-152L, C100 SCSI0
5/cdrom removable
cd0(wdc1:0:0): using BIOS timings
ne1 at isa0 port 0x300/32 irq 10, NE2000 (RTL8019), address 00:00:e8:5d:49:57
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: using exception 16
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
ne3 at isapnp0 NE2000 PLUG  PLAY ETHERNET CAR, @@@9519, PNP80D6, 
port 0x200/32 irq 3: NE2000 (RTL8019), address 00:00:e8:5d:49:57
pccom3 at isapnp0 Tornado Modem SFM56PC, SFM0120, ,  port
0x3f8/8 irq 4: ns16550a, 16 byte fifo
biomask ebe5 netmask ffed ttymask ffef
pctr: no performance counters in CPU
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a swap on wd0b dump on wd0b

-- 
We spend the first twelve months of our children's lives teaching
them to walk and talk and the next twelve telling them to sit down and
shut up.