Re: hotplugd umass kernel crash

2006-12-22 Thread Michael
Hi,

Marc Balmer schrieb:
 I assume you have an /etc/hotplugd/attach script, can you post that?

# cat /etc/hotplug/attach
#!/bin/sh

DEVCLASS=$1
DEVNAME=$2

case $DEVCLASS in
2)
# disk devices
#
label=`disklabel $DEVNAME 21 | sed -n '/^label: /s/^label: //p'`
case $label in
USB*DISK*28X*)
[ -d /media/usb ] || mkdir -p /media/usb
mount_msdos -o ro,nodev,nosuid /dev/$DEVNAMEi /media/usb
esac
;;

3)
# network devices
#
;;
esac



Re: hotplugd umass kernel crash

2006-12-21 Thread Michael

Michael schrieb:

Otto Moerbeek schrieb:

On Wed, 20 Dec 2006, Michael wrote:
Since it doesn't write anything to messages or any other file I 
wonder how I
can get the kernel crash message + ddb trace + ddb ps into a file 
so I can

post it here?


attach a serial console, see http://www.openbsd.org/faq/faq7.html#SerCon

-Otto


Got no serial cable available right now so I made some photos... :D

http://wp1050733.wp078.webpack.hosteurope.de/hotplug/dsci1679.jpg
http://wp1050733.wp078.webpack.hosteurope.de/hotplug/dsci1680.jpg
http://wp1050733.wp078.webpack.hosteurope.de/hotplug/dsci1681.jpg
http://wp1050733.wp078.webpack.hosteurope.de/hotplug/dsci1682.jpg
http://wp1050733.wp078.webpack.hosteurope.de/hotplug/dsci1683.jpg

Would be nice if someone could look into that since I can't start 
hotplug right now...


 - Michael


Noone got an idea what I can do about this? Currently the whole system 
crashes when starting hotplugd... please look at the images for error 
messages.


 - Michael



Re: hotplugd umass kernel crash

2006-12-21 Thread Jon Simola

On 12/21/06, Michael [EMAIL PROTECTED] wrote:


 Got no serial cable available right now so I made some photos... :D

 http://wp1050733.wp078.webpack.hosteurope.de/hotplug/dsci1679.jpg
 http://wp1050733.wp078.webpack.hosteurope.de/hotplug/dsci1680.jpg
 http://wp1050733.wp078.webpack.hosteurope.de/hotplug/dsci1681.jpg
 http://wp1050733.wp078.webpack.hosteurope.de/hotplug/dsci1682.jpg
 http://wp1050733.wp078.webpack.hosteurope.de/hotplug/dsci1683.jpg



Noone got an idea what I can do about this? Currently the whole system
crashes when starting hotplugd... please look at the images for error
messages.


Try to help yourself by helping the developers.

The pics are nice, but they are 2304x1728 and 1.7MB each (and out of
focus, your camera doesn't like taking pics of a CRT). I got bored
waiting for them to load on the fibre connection at work.

What are you plugging in and where?
Have you tried a different USB port?
Have you removed all other USB devices?
Have you tried plugging in the device without hotplugd running?
Plugging in the device before turning the computer on?
What do your hotplugd scripts look like?
Can you manually do what you're trying to do without hotplugd?

My wild guess based on what little information you've provided is that
you're trying to plug some kind of memory card into a broken card
reader. Please provide more details, including descriptions of the
hardware and a step by step process that can reproduce the problem.

--
Jon



Re: hotplugd umass kernel crash

2006-12-21 Thread Marc Balmer
* Michael wrote:

 Noone got an idea what I can do about this? Currently the whole system 
 crashes when starting hotplugd... please look at the images for error 
 messages.

I assume you have an /etc/hotplugd/attach script, can you post that?



hotplugd umass kernel crash

2006-12-20 Thread Michael

Hi,

when starting hotplugd the kernel crashes because of some buffer issue 
of umass (with and without device attached). Never had this before and 
restarting or turning off/on the machine doesn't help.


Since it doesn't write anything to messages or any other file I wonder 
how I can get the kernel crash message + ddb trace + ddb ps into a 
file so I can post it here?


Thanks in advance.

 - Michael


dmesg:
OpenBSD 4.0-current (GENERIC) #1287: Tue Dec 19 13:50:08 MST 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 3.40GHz (GenuineIntel 686-class) 3.81 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,CNXT-ID

real mem  = 1072984064 (1047836K)
avail mem = 970637312 (947888K)
using 4256 buffers containing 53772288 bytes (52512K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 03/23/05, BIOS32 rev. 0 @ 
0xf0010, SMBIOS rev. 2.3 @ 0xf04d0 (79 entries)

bios0: ASUSTeK Computer INC. P5AD2-E-Premium
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 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf8160/352 (20 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82801FB LPC rev 0x00)
pcibios0: PCI bus #5 is the last bus
bios0: ROM list: 0xc/0xee00!
acpi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82925X MCH Host rev 0x0e
ppb0 at pci0 dev 1 function 0 Intel 82925X PCIE rev 0x0e
pci1 at ppb0 bus 5
vga1 at pci1 dev 0 function 0 NVIDIA GeForce 6600 GT rev 0xa2
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci0 dev 27 function 0 Intel 82801FB HD Audio rev 0x04: irq 10
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: CMedia CMI9880 (rev. 0.2), HDA version 0.9
azalia0: /usr/src/sys/dev/pci/azalia.c/1159 invalid PCM format: 0x
delete_encodings...
ppb1 at pci0 dev 28 function 0 Intel 82801FB PCIE rev 0x04
pci2 at ppb1 bus 4
ppb2 at pci0 dev 28 function 1 Intel 82801FB PCIE rev 0x04
pci3 at ppb2 bus 3
mskc0 at pci3 dev 0 function 0 Marvell Yukon 88E8053 rev 0x15, Marvell 
Yukon-2 EC rev. A2 (0x1): irq 10

msk0 at mskc0 port A, address 00:11:d8:46:6f:bc
eephy0 at msk0 phy 0: Marvell 88E Gigabit PHY, rev. 2
ppb3 at pci0 dev 28 function 2 Intel 82801FB PCIE rev 0x04
pci4 at ppb3 bus 2
mskc1 at pci4 dev 0 function 0 Marvell Yukon 88E8053 rev 0x15, Marvell 
Yukon-2 EC rev. A2 (0x1): irq 5

msk1 at mskc1 port A, address 00:11:d8:46:6a:42
eephy1 at msk1 phy 0: Marvell 88E Gigabit PHY, rev. 2
uhci0 at pci0 dev 29 function 0 Intel 82801FB USB rev 0x04: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 Intel 82801FB USB rev 0x04: irq 3
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 Intel 82801FB USB rev 0x04: irq 5
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3 Intel 82801FB USB rev 0x04: irq 10
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 Intel 82801FB USB rev 0x04: irq 11
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb4 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xd4
pci5 at ppb4 bus 1
vendor TI, unknown product 0x8025 (class serial bus subclass Firewire, 
rev 0x01) at pci5 dev 3 function 0 not configured

ichpcib0 at pci0 dev 31 function 0 Intel 82801FB LPC rev 0x04: PM disabled
pciide0 at pci0 dev 31 function 1 Intel 82801FB IDE rev 0x04: DMA, 
channel 0 configured to compatibility, channel 1 configured to compatibility

atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: PIONEER, DVD-RW DVR-108, 1.20 SCSI0 
5/cdrom removable

cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 31 function 2 Intel 82801FR SATA rev 0x04: DMA, 
channel 0 configured to native-PCI, channel 1 configured to native-PCI

pciide1: using irq 3 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: WDC WD740GD-00FLA0
wd0: 16-sector PIO, LBA48, 70911MB, 145226112 sectors
wd1 at pciide1 channel 0 drive 1: WDC WD1600YD-01NVB1
wd1: 16-sector PIO, LBA48, 157066MB, 321672960 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1(pciide1:0:1): using PIO 

Re: hotplugd umass kernel crash

2006-12-20 Thread Michael

Otto Moerbeek schrieb:

On Wed, 20 Dec 2006, Michael wrote:

Since it doesn't write anything to messages or any other file I wonder how I
can get the kernel crash message + ddb trace + ddb ps into a file so I can
post it here?


attach a serial console, see http://www.openbsd.org/faq/faq7.html#SerCon

-Otto


Got no serial cable available right now so I made some photos... :D

http://wp1050733.wp078.webpack.hosteurope.de/hotplug/dsci1679.jpg
http://wp1050733.wp078.webpack.hosteurope.de/hotplug/dsci1680.jpg
http://wp1050733.wp078.webpack.hosteurope.de/hotplug/dsci1681.jpg
http://wp1050733.wp078.webpack.hosteurope.de/hotplug/dsci1682.jpg
http://wp1050733.wp078.webpack.hosteurope.de/hotplug/dsci1683.jpg

Would be nice if someone could look into that since I can't start 
hotplug right now...


 - Michael