Sie sind nicht angemeldet.

1

26.09.2004, 20:09

USB-System produziert hänger

hallo

zugriffe auf USB bringen bei mir auf gentoo die zugreiffende applikation zum hängen, zB:
[code:1]less /proc/bus/usb/devices[/code:1]
und schon lässt sich der prozess nicht mal mehr mit [code:1]killall -9 less[/code:1] abschiessen.
auch ein [code:1]rmmod ohci_hcd[/code:1] bleibt für immer hängen.
sauber herunterfahren kann ich danach auch nicht, weil es irgendwo bei hotplug stehen bleibt.

ich benutze udev mit kernel 2.6.8.1 (gentoo-dev-sources). mit knoppix 3.6 (knoppix26) funktioniert aber alles noch wie ich es von anderen distributionen gewohnt war, auch unter windows geht alles problemlos wie eh un jeh.

wie kann ich das wieder hinbekommen?

gruss

lsmod:
[code:1]
Module Size Used by
ipt_state 1472 2
ip_conntrack 26560 1 ipt_state
iptable_filter 2112 1
ip_tables 14400 2 ipt_state,iptable_filter
via_rhine 17224 0
mii 4096 1 via_rhine
crc32 3840 1 via_rhine
ohci_hcd 17796 0
amd_k7_agp 5516 1
agpgart 26472 1 amd_k7_agp
snd_seq_midi 6240 0
snd_emu10k1_synth 6080 0
snd_emux_synth 32576 1 snd_emu10k1_synth
snd_seq_virmidi 5312 1 snd_emux_synth
snd_seq_midi_emul 6848 1 snd_emux_synth
snd_emu10k1 82184 3 snd_emu10k1_synth
snd_rawmidi 19108 3 snd_seq_midi,snd_seq_virmidi,snd_emu10k1
snd_ac97_codec 61252 1 snd_emu10k1
snd_util_mem 3200 2 snd_emux_synth,snd_emu10k1
snd_hwdep 6852 2 snd_emux_synth,snd_emu10k1
snd_seq_oss 29248 0
snd_seq_midi_event 6016 3 snd_seq_midi,snd_seq_virmidi,snd_seq_oss
snd_seq 44688 8 snd_seq_midi,snd_emux_synth,snd_seq_virmidi,snd_seq_midi_emul,snd_seq_oss,snd_seq_midi_event
snd_seq_device 6344 7 snd_seq_midi,snd_emu10k1_synth,snd_emux_synth,snd_emu10k1,snd_rawmidi,snd_seq_oss,snd_seq
snd_pcm_oss 47976 0
snd_pcm 80200 2 snd_emu10k1,snd_pcm_oss
snd_page_alloc 8648 2 snd_emu10k1,snd_pcm
snd_timer 19780 2 snd_seq,snd_pcm
snd_mixer_oss 16192 2 snd_pcm_oss
snd 45348 18 snd_seq_midi,snd_emux_synth,snd_seq_virmidi,snd_emu10k1,snd_rawmidi,snd_ac97_codec,snd_util_mem,snd_hwdep,snd_seq_oss,snd_seq_midi_event,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore 6816 2 snd
usbcore 96356 3 ohci_hcd
parport_pc 34368 1
lp 8424 0
parport 32136 2 parport_pc,lp
psmouse 16840 0
unix
[/code:1]

dmesg:
[code:1]
Linux version 2.6.8.1 (blah@blah) (gcc version 3.4.2 (Gentoo Linux 3.4.2-r2, ssp-3.4.1-1, pie-8.7.6.5)) #3 Sun Sep 26 18:58:32 CEST 2004
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
BIOS-e820: 000000001fff0000 - 000000001fff3000 (ACPI NVS)
BIOS-e820: 000000001fff3000 - 0000000020000000 (ACPI data)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
511MB LOWMEM available.
On node 0 totalpages: 131056
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 126960 pages, LIFO batch:16
HighMem zone: 0 pages, LIFO batch:1
DMI 2.2 present.
ACPI disabled because your bios is from 00 and too old
You can enable it with acpi=force
Built 1 zonelists
Kernel command line: root=/dev/ram0 real_root=/dev/hdb3 init=/linuxrc
No local APIC present or hardware disabled
Initializing CPU#0
CPU 0 irqstacks, hard=c0376000 soft=c0375000
PID hash table entries: 2048 (order 11: 16384 bytes)
Detected 598.956 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 515108k/524224k available (1631k kernel code, 8356k reserved, 721k data, 136k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 1179.64 BogoMIPS
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: After generic identify, caps: 0081f9ff c0c1f9ff 00000000 00000000
CPU: After vendor identify, caps: 0081f9ff c0c1f9ff 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU: After all inits, caps: 0081f9ff c0c1f9ff 00000000 00000020
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: AMD-K7(tm) Processor stepping 02
Checking 'hlt' instruction... OK.
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 700k freed
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfb430, last bus=1
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
Linux Plug and Play Support v0.97 (c) Adam Belay
PnPBIOS: Scanning system for PnP BIOS support...
PnPBIOS: Found PnP BIOS installation structure at 0xc00fc070
PnPBIOS: PnP BIOS version 1.0, entry 0xf0000:0xc0a0, dseg 0xf0000
PnPBIOS: 15 nodes reported by PnP BIOS; 15 recorded by driver
SCSI subsystem initialized
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
Machine check exception polling timer started.
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
Using anticipatory io scheduler
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
AMD7409: IDE controller at PCI slot 0000:00:07.1
AMD7409: chipset revision 3
AMD7409: not 100% native mode: will probe irqs later
AMD7409: 0000:00:07.1 (rev 03) UDMA66 controller
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA
hda: ST320430A, ATA DISK drive
hdb: Maxtor 92048U8, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: TOSHIBA DVD-ROM SD-M1302, ATAPI CD/DVD-ROM drive
hdd: LITE-ON LTR-52327S, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 40079088 sectors (20520 MB) w/512KiB Cache, CHS=39761/16/63, UDMA(33)
/dev/ide/host0/bus0/target0/lun0: p1
hdb: max request size: 128KiB
hdb: 40000464 sectors (20480 MB) w/2048KiB Cache, CHS=39683/16/63, UDMA(33)
/dev/ide/host0/bus0/target1/lun0: p1 p2 p3
hdc: ATAPI 40X DVD-ROM drive, 256kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
hdd: ATAPI 12X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
mice: PS/2 mouse device common for all mice
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
input: AT Translated Set 2 keyboard on isa0060/serio0
NET: Registered protocol family 2
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
NET: Registered protocol family 17
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 136k freed
ReiserFS: hdb3: found reiserfs format "3.6" with standard journal
ReiserFS: hdb3: using ordered data mode
ReiserFS: hdb3: journal params: device hdb3, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: hdb3: checking transaction log (hdb3)
ReiserFS: hdb3: Using r5 hash to sort names
ReiserFS: hdb3: Removing [2043 875458 0x0 SD]..done
ReiserFS: hdb3: There were 1 uncompleted unlinks/truncates. Completed
NET: Registered protocol family 1
Adding 508024k swap on /dev/hdb2. Priority:-1 extents:1
input: ImPS/2 Logitech Wheel Mouse on isa0060/serio1
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
lp0: using parport0 (interrupt-driven).
usbcore: registered new driver usbfs
usbcore: registered new driver hub
AC'97 0 analog subsections not ready
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected AMD Irongate chipset
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: AGP aperture is 32M @ 0xde000000
ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd: block sizes: ed 64 td 64
ohci_hcd 0000:00:07.4: Advanced Micro Devices [AMD] AMD-756 [Viper] USB
ohci_hcd 0000:00:07.4: irq 11, pci mem e0adf000
ohci_hcd 0000:00:07.4: new USB bus registered, assigned bus number 1
ohci_hcd 0000:00:07.4: AMD756 erratum 4 workaround
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 4 ports detected
usb 1-1: new full speed USB device using address 2
via-rhine.c:v1.10-LK1.1.20-2.6 May-23-2004 Written by Donald Becker
eth0: VIA Rhine III at 0xec00, 00:30:4f:2a:8c:28, IRQ 11.
eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 45e1.
eth0: Setting full-duplex based on MII #1 link partner capability of 45e1.
ip_tables: (C) 2000-2002 Netfilter core team
ip_conntrack version 2.1 (4095 buckets, 32760 max) - 160 bytes per conntrack
usb 1-1: control timeout on ep0in
ohci_hcd 0000:00:07.4: remove, state 1
[/code:1]

2

29.09.2004, 00:24

Anscheinend ein Scannerproblem...

hallo nochmals

die probleme mit USB scheinen mit hotplug und meinem HP ScanJet 5300C zusammenzuhängen:

ist der scanner nie eingesteckt klappt ein cat /proc/bus/usb, ebenso klappt alles ähnlich katastrophal wie mit knoppix (farbige bänder auf dem scan / scannen hängt manchmal / manchmal auch das ganze system) falls ich hpusbscsi (nach sane/avision-page unterdessen obsolet) als modul kompiliert habe.

mit einem entsprechenden eintrag in /etc/hotplug/usb/libsane.usermap klappen sane-find-scanner sowie scanimage -L ohne hänger und ohne hpusbsci allerdings nur wenn ich den scanner nach dem booten einstecke. ist der scanner schon beim booten eingesteckt klappt gar nix wie in meinem ersten posting schon beschrieben.

sane-find-scanner
[code:1]
# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a SCSI driver for your SCSI adapter.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".

found USB scanner (vendor=0x03f0 [Hewlett Packard], product=0x0701 [Hewlett Packard ScanJet 5300C]) at libusb:001:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
[/code:1]

scanimage -L
[code:1]device `avision:libusb:001:002' is a Hewlett-Packard ScanJet 5300C flatbed scanner[/code:1]

leider bleibt aber ein scanimage > image.pnm immer noch hängen (lässt sich mit killall -9 scanimage nicht abschiessen) und das allerschönste ist ja, dass wenn ich meinen scanner ausstecke das kanze linux hängen bleibt, da hilft nur noch die reset-taste.

der prozess von scanimage > image.pnm
[code:1][root 7864 0.0 0.1 2760 840 tty1 D+ 23:48 0:00 scanimage[/code:1]

und dmesg meint dazu:
[code:1]
ohci_hcd 0000:00:07.4: wakeup
usb 1-1: new full speed USB device using address 2
usb 1-1: control timeout on ep0out
[/code:1]

kann mir irgend jemand weiterhelfen oder muss ich scannen unter linux/gentoo lassen wenn ich ein einigermassen stabiles system brauche?

gruss, jda