LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB not working after compiling 2.6.10 (https://www.linuxquestions.org/questions/linux-hardware-18/usb-not-working-after-compiling-2-6-10-a-270289/)

tutwabee 12-25-2004 05:36 PM

USB not working after compiling 2.6.10
 
I compiled the linux 2.6.10 kernel a few times yesterday. The first few times my ethernet port wouldn't work and my NVIDIA drivers wouldn't install. Although my internet didn't work my new iriver h140 worked. My iriver hadn't worked in my old 2.4.x kernel which complained about SCSI support or something similar.

I got the network working but at the same time I managed to disable support for my USB flash stick and iriver. They are not recognized as valid devices. When I run file -Ls /dev/sda I get /dev/sda: cannot open (/dev/sda)

The last lines of dmesg after pluging in flash stick:
usb 1-6: new high speed USB device using ehci_hcd and address 33
usb 1-6: khubd timed out on ep0in
usb 1-6: khubd timed out on ep0out


dmesg after pluging in iriver:
usb 1-6: khubd timed out on ep0out
usb 1-6: device not accepting address 85, error -110
usb 1-6: new high speed USB device using ehci_hcd and address 86
usb 1-6: khubd timed out on ep0in
usb 1-6: khubd timed out on ep0out
usb 1-6: khubd timed out on ep0out
usb 1-6: device not accepting address 86, error -110
usb 1-6: new high speed USB device using ehci_hcd and address 87
usb 1-6: khubd timed out on ep0in
usb 1-6: khubd timed out on ep0out


Here is the USB section of my .config file for my newly compiled kernel:
Quote:

# USB devices
#
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_USX2Y is not set

#
# Open Sound System
#
# CONFIG_SOUND_PRIME is not set

#
# USB support
#
CONFIG_USB=y
# CONFIG_USB_DEBUG is not set

#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_SUSPEND is not set
# CONFIG_USB_OTG is not set
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y

#
# USB Host Controller Drivers
#
CONFIG_USB_EHCI_HCD=y
# CONFIG_USB_EHCI_SPLIT_ISO is not set
# CONFIG_USB_EHCI_ROOT_HUB_TT is not set
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_UHCI_HCD=y
# CONFIG_USB_SL811_HCD is not set

#
# USB Device Class drivers
#
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_BLUETOOTH_TTY is not set
# CONFIG_USB_MIDI is not set
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set

#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
#
CONFIG_USB_STORAGE=y
# CONFIG_USB_STORAGE_DEBUG is not set
# CONFIG_USB_STORAGE_RW_DETECT is not set
# CONFIG_USB_STORAGE_DATAFAB is not set
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_DPCM is not set
# CONFIG_USB_STORAGE_HP8200e is not set
# CONFIG_USB_STORAGE_SDDR09 is not set
# CONFIG_USB_STORAGE_SDDR55 is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set

#
# USB Input Devices
#
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
# CONFIG_HID_FF is not set
# CONFIG_USB_HIDDEV is not set
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_KBTAB is not set
# CONFIG_USB_POWERMATE is not set
# CONFIG_USB_MTOUCH is not set
CONFIG_USB_EGALAX=m
# CONFIG_USB_XPAD is not set
# CONFIG_USB_ATI_REMOTE is not set

#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USB_HPUSBSCSI is not set

#
# USB Multimedia devices
#
# CONFIG_USB_DABUSB is not set

#
# Video4Linux support is needed for USB Multimedia device support
#

#
# USB Network Adapters
#
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_USBNET is not set

#
# USB port drivers
#
# CONFIG_USB_USS720 is not set

#
# USB Serial Converter support
#
# CONFIG_USB_SERIAL is not set

#
# USB Miscellaneous drivers
#
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_TIGL is not set
# CONFIG_USB_AUERSWALD is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_LED is not set
CONFIG_USB_CYTHERM=m
# CONFIG_USB_PHIDGETKIT is not set
CONFIG_USB_PHIDGETSERVO=m
# CONFIG_USB_TEST is not set

#
# USB ATM/DSL drivers
#

#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set

#
# MMC/SD Card support
#
# CONFIG_MMC is not set

Andrew Benton 12-25-2004 06:12 PM

Code:

CONFIG_USB_OHCI_HCD=y
CONFIG_USB_UHCI_HCD=y

It's not a good idea to enable support of both ohci and uhci. You either have one or the other. Your error message above mentions ehci so I would suggest you say no to ohci and try again.

tutwabee 12-26-2004 03:51 PM

I fixed the ohci/uhci problem. I still get this in dmesg when plugging in my USB flash drive:
irq 9: nobody cared!
[<c01340ea>] __report_bad_irq+0x2a/0x90
[<c0133aa0>] handle_IRQ_event+0x30/0x70
[<c01341dc>] note_interrupt+0x6c/0xd0
[<c0133c10>] __do_IRQ+0x130/0x160
[<c0104cde>] do_IRQ+0x3e/0x60
=======================
[<c01032da>] common_interrupt+0x1a/0x20
[<c011ad70>] __do_softirq+0x30/0x90
[<c0104de1>] do_softirq+0x41/0x50
=======================
[<c0133a64>] irq_exit+0x34/0x40
[<c0104ce5>] do_IRQ+0x45/0x60
[<c01032da>] common_interrupt+0x1a/0x20
[<c0258f8b>] acpi_processor_idle+0xf3/0x1f9
[<c01010ca>] cpu_idle+0x3a/0x60
[<c0533742>] start_kernel+0x142/0x160
[<c0533340>] unknown_bootoption+0x0/0x1b0
handlers:
[<c023de78>] (acpi_irq+0x0/0x16)
Disabling IRQ #9
usb 1-6: new high speed USB device using ehci_hcd and address 2
ehci_hcd 0000:00:10.3: Unlink after no-IRQ? Different ACPI or APIC settings may help.
usb 1-6: khubd timed out on ep0in


It seems like nothing fixes this problem. I even tried getting my friend's .config file and basing mine off of his. Same problem.

tutwabee 12-26-2004 04:26 PM

The problem is bigger than I thought before. I cannot mount my cd drive either. dmesg contains:
Buffer I/O error on device hdb, logical block 11
hdb: command error: status=0x51 { DriveReady SeekComplete Error }
hdb: command error: error=0x54
ide: failed opcode was 100
end_request: I/O error, dev hdb, sector 96
Buffer I/O error on device hdb, logical block 12
hdb: command error: status=0x51 { DriveReady SeekComplete Error }
hdb: command error: error=0x54
ide: failed opcode was 100
end_request: I/O error, dev hdb, sector 104
Buffer I/O error on device hdb, logical block 13
hdb: command error: status=0x51 { DriveReady SeekComplete Error }
hdb: command error: error=0x54
ide: failed opcode was 100
end_request: I/O error, dev hdb, sector 112


This makes more sense to me now. I realize that the problem isn't in the USB section of the kernel.. what a relief. Now I need to find where the problem does lie. Maybe a disk drive guru could help? :)

tutwabee 12-27-2004 01:21 AM

I recompiled my 2.4 kernel with the .config file that was used to compile it the first time. I made sure SCSI support was enabled. I can use my USB flash stick now but my iriver does not work. Here is what was in dmesg:
Quote:

hub.c: new USB device 00:10.3-6, assigned address 3
scsi2 : SCSI emulation for USB Mass Storage devices
Vendor: TOSHIBA Model: MK4004GAH Rev: JC00
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sdb at scsi2, channel 0, id 0, lun 0
SCSI device sdb: 78126048 512-byte hdwr sectors (40001 MB)
sdb: sdb1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
sda: Unit Not Ready, sense:
Info fld=0xa00 (nonstd), Current 00:00: sns = 70 2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
sda : READ CAPACITY failed.
sda : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70 2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
sda : block size assumed to be 512 bytes, disk size 1GB.
sda: test WP failed, assume Write Enabled
sda: I/O error: dev 08:00, sector 0
I/O error: dev 08:00, sector 0
unable to read partition table
Device busy for revalidation (usage=1)
Device 08:00 not ready.
I/O error: dev 08:00, sector 0
FAT: unable to read boot sector
sda: Unit Not Ready, sense:
Info fld=0xa00 (nonstd), Current 00:00: sns = 70 2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
sda : READ CAPACITY failed.
sda : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70 2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
sda : block size assumed to be 512 bytes, disk size 1GB.
sda: test WP failed, assume Write Enabled
sda: I/O error: dev 08:00, sector 0
I/O error: dev 08:00, sector 0
unable to read partition table
sda: Unit Not Ready, sense:
Info fld=0xa00 (nonstd), Current 00:00: sns = 70 2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
sda : READ CAPACITY failed.
sda : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70 2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
sda : block size assumed to be 512 bytes, disk size 1GB.
sda: test WP failed, assume Write Enabled
sda: I/O error: dev 08:00, sector 0
I/O error: dev 08:00, sector 0
unable to read partition table
sda: Unit Not Ready, sense:
Info fld=0xa00 (nonstd), Current 00:00: sns = 70 2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
sda : READ CAPACITY failed.
sda : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70 2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
sda : block size assumed to be 512 bytes, disk size 1GB.
sda: test WP failed, assume Write Enabled
sda: I/O error: dev 08:00, sector 0
I/O error: dev 08:00, sector 0
unable to read partition table
Device busy for revalidation (usage=1)
Device 08:00 not ready.
I/O error: dev 08:00, sector 0
FAT: unable to read boot sector


All times are GMT -5. The time now is 01:14 AM.