Soekris + vpn1411: Corrupted MAC on input

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Soekris + vpn1411: Corrupted MAC on input

Michael Lechtermann
Hi,

I got a weird behavior with my net4801 and vpn1411 card when using
OpenBSD. Tried this with 4.0, 4.0-current and now 4.1-stable.

With the GENERIC kernel I get "Corrupted MAC on input" after a short
time during an SSH connection.

Since I had to modify the kernel options slighty to get my APC UPS
working with OpenBSD 4.0 over USB so I build myself a custom SOEKRIS
kernel. This also got me rid of the "Corrupted MAC on input" issue.

Since a custom kernel is not needed anymore for the APC UPS with OpenBSD
4.1 because the USV gets properly detected as ugen0 I just kept the
GENERIC kernel. But now I have "Corrupted MAC on input" again.

After compiling a custom SOEKRIS kernel for 4.1 too the corrupted MAC
issue is gone again. List of needed config changes taken from:
http://www.apcupsd.com/manual/USB_Configuration.html#SECTION000102300000000000000

Please have a look at the diff between the GENERIC and my custom SOEKRIS
config below and also both dmesg outputs. I also made a diff of both
dmesg outputs for easy comparison.

Would be nice if someone got an idea about why that fixes the "Corrupted
MAC on input" issue.

Michael


--- sys/arch/i386/conf/GENERIC  Wed Feb 28 22:54:43 2007
+++ sys/arch/i386/conf/SOEKRIS  Thu May  3 19:51:06 2007
@@ -218,14 +218,14 @@
 umass* at uhub?                # USB Mass Storage devices
 scsibus* at umass?
 atapiscsi* at umass?
-uhidev*        at uhub?                # Human Interface Devices
-ums*   at uhidev?              # USB mouse
-wsmouse* at ums? mux 0
-ukbd*  at uhidev?              # USB keyboard
-wskbd* at ukbd? mux 1
-ucycom*        at uhidev?              # Cypress serial
-ucom*  at ucycom?
-uhid*  at uhidev?              # USB generic HID support
+#uhidev*       at uhub?                # Human Interface Devices
+#ums*  at uhidev?              # USB mouse
+#wsmouse* at ums? mux 0
+#ukbd* at uhidev?              # USB keyboard
+#wskbd*        at ukbd? mux 1
+#ucycom*       at uhidev?              # Cypress serial
+#ucom* at ucycom?
+#uhid* at uhidev?              # USB generic HID support
 aue*   at uhub?                # ADMtek AN986 Pegasus Ethernet
 atu*   at uhub?                # Atmel AT76c50x based 802.11b
 axe*   at uhub?                # ASIX Electronics AX88172 USB Ethernet


OpenBSD 4.1 (GENERIC) #0: Wed May  2 15:56:17 CEST 2007
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by National Semi ("Geode by NSC"
586-class) 267 MHz
cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
cpu0: TSC disabled
real mem  = 268005376 (261724K)
avail mem = 236859392 (231308K)
using 3302 buffers containing 13524992 bytes (13208K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 20/50/29, BIOS32 rev. 0 @ 0xf7840
pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc8000/0x9000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Cyrix GXm PCI" rev 0x00
sis0 at pci0 dev 6 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 10, address 00:00:24:c7:7f:64
nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
sis1 at pci0 dev 7 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 10, address 00:00:24:c7:7f:65
nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1
sis2 at pci0 dev 8 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 10, address 00:00:24:c7:7f:66
nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1
ppb0 at pci0 dev 10 function 0 "TI PCI2250 PCI-PCI" rev 0x02
pci1 at ppb0 bus 1
sis3 at pci1 dev 0 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 9, address 00:00:24:c7:4c:2c
nsphyter3 at sis3 phy 0: DP83815 10/100 PHY, rev. 1
sis4 at pci1 dev 1 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 5, address 00:00:24:c7:4c:2d
nsphyter4 at sis4 phy 0: DP83815 10/100 PHY, rev. 1
sis5 at pci1 dev 2 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 9, address 00:00:24:c7:4c:2e
nsphyter5 at sis5 phy 0: DP83815 10/100 PHY, rev. 1
sis6 at pci1 dev 3 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 5, address 00:00:24:c7:4c:2f
nsphyter6 at sis6 phy 0: DP83815 10/100 PHY, rev. 1
hifn0 at pci0 dev 14 function 0 "Hifn 7955/7954" rev 0x00: LZS 3DES ARC4
MD5 SHA1 RNG AES PK, 32KB dram, irq 11
gscpcib0 at pci0 dev 18 function 0 "NS SC1100 ISA" rev 0x00
gpio0 at gscpcib0: 64 pins
"NS SC1100 SMI" rev 0x00 at pci0 dev 18 function 1 not configured
pciide0 at pci0 dev 18 function 2 "NS SCx200 IDE" rev 0x01: DMA, channel
0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <CF300>
wd0: 1-sector PIO, LBA, 983MB, 2014992 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
geodesc0 at pci0 dev 18 function 5 "NS SC1100 X-Bus" rev 0x00: iid 6
revision 3 wdstatus 0
ohci0 at pci0 dev 19 function 0 "Compaq USB OpenHost" rev 0x08: irq 5,
version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Compaq OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
isa0 at gscpcib0
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
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS
gpio1 at nsclpcsio0: 29 pins
gscsio0 at isa0 port 0x15c/2: SC1100 SIO rev 1:
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
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask f1e5 netmask ffe5 ttymask ffe7
pctr: no performance counters in CPU
ugen0 at uhub0 port 1
ugen0: American Power Conversion Back-UPS CS 500 FW:808.q5.I USB FW:q5,
rev 1.10/0.06, addr 2
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302


OpenBSD 4.1 (SOEKRIS) #0: Thu May  3 19:59:26 CEST 2007
    [hidden email]:/usr/src/sys/arch/i386/compile/SOEKRIS
cpu0: Geode(TM) Integrated Processor by National Semi ("Geode by NSC"
586-class) 267 MHz
cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
cpu0: TSC disabled
real mem  = 268005376 (261724K)
avail mem = 236883968 (231332K)
using 3302 buffers containing 13524992 bytes (13208K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 20/50/29, BIOS32 rev. 0 @ 0xf7840
pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc8000/0x9000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Cyrix GXm PCI" rev 0x00
sis0 at pci0 dev 6 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 10, address 00:00:24:c7:7f:64
nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
sis1 at pci0 dev 7 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 10, address 00:00:24:c7:7f:65
nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1
sis2 at pci0 dev 8 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 10, address 00:00:24:c7:7f:66
nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1
ppb0 at pci0 dev 10 function 0 "TI PCI2250 PCI-PCI" rev 0x02
pci1 at ppb0 bus 1
sis3 at pci1 dev 0 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 9, address 00:00:24:c7:4c:2c
nsphyter3 at sis3 phy 0: DP83815 10/100 PHY, rev. 1
sis4 at pci1 dev 1 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 5, address 00:00:24:c7:4c:2d
nsphyter4 at sis4 phy 0: DP83815 10/100 PHY, rev. 1
sis5 at pci1 dev 2 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 9, address 00:00:24:c7:4c:2e
nsphyter5 at sis5 phy 0: DP83815 10/100 PHY, rev. 1
sis6 at pci1 dev 3 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 5, address 00:00:24:c7:4c:2f
nsphyter6 at sis6 phy 0: DP83815 10/100 PHY, rev. 1
hifn0 at pci0 dev 14 function 0 "Hifn 7955/7954" rev 0x00: LZS 3DES ARC4
MD5 SHA1 RNG AES PK, 32KB dram, irq 11
gscpcib0 at pci0 dev 18 function 0 "NS SC1100 ISA" rev 0x00
gpio0 at gscpcib0: 64 pins
"NS SC1100 SMI" rev 0x00 at pci0 dev 18 function 1 not configured
pciide0 at pci0 dev 18 function 2 "NS SCx200 IDE" rev 0x01: DMA, channel
0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <CF300>
wd0: 1-sector PIO, LBA, 983MB, 2014992 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
geodesc0 at pci0 dev 18 function 5 "NS SC1100 X-Bus" rev 0x00: iid 6
revision 3 wdstatus 0
ohci0 at pci0 dev 19 function 0 "Compaq USB OpenHost" rev 0x08: irq 5,
version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Compaq OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
isa0 at gscpcib0
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
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS
gpio1 at nsclpcsio0: 29 pins
gscsio0 at isa0 port 0x15c/2: SC1100 SIO rev 1:
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
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask f1e5 netmask ffe5 ttymask ffe7
pctr: no performance counters in CPU
ugen0 at uhub0 port 1
ugen0: American Power Conversion Back-UPS CS 500 FW:808.q5.I USB FW:q5,
rev 1.10/0.06, addr 2
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302


soekris:~/home # diff -u dmesg.generic dmesg.soekris
--- dmesg.generic       Fri May  4 09:42:18 2007
+++ dmesg.soekris       Fri May  4 09:42:22 2007
@@ -1,10 +1,10 @@
-OpenBSD 4.1 (GENERIC) #0: Wed May  2 15:56:17 CEST 2007
-    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
+OpenBSD 4.1 (SOEKRIS) #0: Thu May  3 19:59:26 CEST 2007
+    [hidden email]:/usr/src/sys/arch/i386/compile/SOEKRIS
 cpu0: Geode(TM) Integrated Processor by National Semi ("Geode by NSC"
586-class) 267 MHz
 cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
 cpu0: TSC disabled
 real mem  = 268005376 (261724K)
-avail mem = 236859392 (231308K)
+avail mem = 236883968 (231332K)
 using 3302 buffers containing 13524992 bytes (13208K) of memory
 mainbus0 (root)
 bios0 at mainbus0: AT/286+ BIOS, date 20/50/29, BIOS32 rev. 0 @ 0xf7840

Reply | Threaded
Open this post in threaded view
|

Re: Soekris + vpn1411: Corrupted MAC on input

mvdeventer
AFAIK ugen0 denotes a USB device for which no driver exists. Therefore
it is possible that your USV is not configured at all?

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf
Of
> Michael
> Sent: 04 May 2007 09:48 AM
<snip>
> Since a custom kernel is not needed anymore for the APC UPS with
OpenBSD
> 4.1 because the USV gets properly detected as ugen0 I just kept the
> GENERIC kernel. But now I have "Corrupted MAC on input" again.
>
</snip>

Reply | Threaded
Open this post in threaded view
|

Re: Soekris + vpn1411: Corrupted MAC on input

Stuart Henderson
On 2007/05/04 12:00, [hidden email] wrote:
> AFAIK ugen0 denotes a USB device for which no driver exists.

correct, and that's what you want here; apcupsd and NUT talk
to USB devices using libusb, so you don't want a kernel driver
to attach to them.

Reply | Threaded
Open this post in threaded view
|

Re: Soekris + vpn1411: Corrupted MAC on input

mvdeventer
In reply to this post by Michael Lechtermann
I see.

Thanks

> -----Original Message-----
> From: Stuart Henderson [mailto:[hidden email]]
> Sent: 04 May 2007 12:46 PM
> To: Marius Van Deventer - Umzimkulu
> Cc: [hidden email]
> Subject: Re: Soekris + vpn1411: Corrupted MAC on input
>
> On 2007/05/04 12:00, [hidden email] wrote:
> > AFAIK ugen0 denotes a USB device for which no driver exists.
>
> correct, and that's what you want here; apcupsd and NUT talk
> to USB devices using libusb, so you don't want a kernel driver
> to attach to them.

Reply | Threaded
Open this post in threaded view
|

Re: Soekris + vpn1411: Corrupted MAC on input

Michael Lechtermann
In reply to this post by Stuart Henderson
Hi,

Stuart Henderson schrieb:
> On 2007/05/04 12:00, [hidden email] wrote:
>> AFAIK ugen0 denotes a USB device for which no driver exists.
>
> correct, and that's what you want here; apcupsd and NUT talk
> to USB devices using libusb, so you don't want a kernel driver
> to attach to them.

I think there is a little misunderstanding here.

This is *not* about the USV but about the SSH connection. I just noticed
this weird behavior because I had to make a custom kernel for the USV
with OpenBSD 4.0.

Ok, again.

With the GENERIC 4.0 / 4.1 kernel I get the message "Corrupted MAC on
input" during a SSH connection and the connection closes. This is with
the Soekris net4801 which got a vpn1411 card.

When I use my custom SOEKRIS kernel with the changes mentioned in my
original mail the SSH connection is stable and hifn card is working just
fine.

I hope it is now clear. =)

Michael

Reply | Threaded
Open this post in threaded view
|

Re: Soekris + vpn1411: Corrupted MAC on input

Christian Weisgerber
Michael <[hidden email]> wrote:

> With the GENERIC 4.0 / 4.1 kernel I get the message "Corrupted MAC on
> input" during a SSH connection and the connection closes. This is with
> the Soekris net4801 which got a vpn1411 card.

This is a known problem frequently reported on the soekris-technical
mailing list.  There is various speculation about this circulating
around, but I'm not aware of anybody actually understanding what
is going on there.

> When I use my custom SOEKRIS kernel with the changes mentioned in my
> original mail the SSH connection is stable and hifn card is working just
> fine.

That is ... bizarre.

--
Christian "naddy" Weisgerber                          [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Soekris + vpn1411: Corrupted MAC on input

Michael Lechtermann
Hi,

Christian Weisgerber schrieb:
>> When I use my custom SOEKRIS kernel with the changes mentioned in my
>> original mail the SSH connection is stable and hifn card is working just
>> fine.
>
> That is ... bizarre.

Yes it is... but I am happy to be rid of the corrupted MAC issue so I
won't complain. =)

I also do not ask for support for my modified kernel, it is working just
fine anyway, but thought this would be a nice "hint" that could help
some dev to figure out the problem with vpn1411 and those USB devices
enabled in GENERIC.

Michael