On Tue, 28 Dec 2004 22:34:48 -0500 (EST) Alan Stern wrote: > On Sun, 26 Dec 2004, David Relson wrote: > > > Attached is the khubd output. Indeed I was in an X session and was > > simultaneously pressing the three keys, Alt, SysRq, and T. I'd > > characterize what happened afterwards as "an immediate shutdown". > > > > I've been building kernels all afternoon, but they've all had problems > > booting, i.e. "kernelpanic - not syncing: VFS: Unable to mount root fs > > on unknown-block 3,1" and I've got a query on the Mandrake list to find > > out what's happening. > > Beats me what that's all about -- maybe you need an initrd image or some > driver that is configured as a module to be compiled into the kernel. > > Judging from your khubd listing, I would guess that the system was in the > middle of a timeout, and if you would wait long enough (which might be > several minutes) things would get going again. That is, khubd would > unblock, you would be able to cat /proc/bus/usb/devices, and so on, > although the Cypress device probably would not be working. > > Alan Stern
Alan, I've added your patch and have plugged in the HDD twice. The first time succeeded. Here's some output: [EMAIL PROTECTED] usb]# lsusb Bus 001 Device 002: ID 04b4:6830 Cypress Semiconductor Corp. Bus 001 Device 001: ID 0000:0000 [EMAIL PROTECTED] usb]# cat /proc/bus/usb/devices T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 6 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.8.1-12mdk ehci_hcd S: Product=EHCI Host Controller S: SerialNumber=0000:00:10.3 C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=04b4 ProdID=6830 Rev= 0.01 S: Manufacturer=Cypress Semiconductor S: Product=USB2.0 Storage Device S: SerialNumber=DEF108B6ACCD C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms Unfortunately the second try resulted in a hang. That was 13 minutes ago, at 08:43. Attached is dmesg output for the two tries. The last entry is: "usb-storage: bus_reset called" David ehci_hcd 0000:00:10.3: EHCI Host Controller ehci_hcd 0000:00:10.3: reset hcs_params 0x3206 dbg=0 cc=3 pcc=2 ordered !ppc ports=6 ehci_hcd 0000:00:10.3: reset hcc_params 6872 thresh 7 uframes 256/512/1024 ehci_hcd 0000:00:10.3: capability 0001 at 68 ehci_hcd 0000:00:10.3: irq 5, pci mem e0816e00 ehci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 1 ehci_hcd 0000:00:10.3: reset command 080002 (park)=0 ithresh=8 period=1024 Reset HALT ehci_hcd 0000:00:10.3: init command 010009 (park)=0 ithresh=1 period=256 RUN ehci_hcd 0000:00:10.3: USB 2.0 enabled, EHCI 1.00, driver 2004-May-10 ehci_hcd 0000:00:10.3: supports USB remote wakeup hub 1-0:1.0: USB hub found hub 1-0:1.0: 6 ports detected ##### FIRST TIME - Dec 29 08:36:56 ##### ehci_hcd 0000:00:10.3: GetStatus port 2 status 001803 POWER sig=j CSC CONNECT ehci_hcd 0000:00:10.3: port 2 high speed ehci_hcd 0000:00:10.3: GetStatus port 2 status 001005 POWER sig=se0 PE CONNECT usb 1-2: new high speed USB device using address 2 usb-storage: USB Mass Storage device detected usb-storage: -- associate_dev usb-storage: Vendor: 0x04b4, Product: 0x6830, Revision: 0x0001 usb-storage: Interface Subclass: 0x06, Protocol: 0x50 usb-storage: Vendor: Cypress Semiconductor, Product: USB2.0 Storage Device usb-storage: Transport: Bulk usb-storage: Protocol: Transparent SCSI usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value=0000 index=00 len=1 usb-storage: GetMaxLUN command result is -32, data is 0 usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=88 len=0 usb-storage: usb_stor_clear_halt: result = 0 usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=02 len=0 usb-storage: usb_stor_clear_halt: result = 0 usb-storage: *** thread sleeping. scsi1 : SCSI emulation for USB Mass Storage devices usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command INQUIRY (6 bytes) usb-storage: 12 00 00 00 24 00 usb-storage: Bulk Command S 0x43425355 T 0x37 L 36 F 128 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_bulk_transfer_buf: xfer 36 bytes usb-storage: command_abort called usb-storage: usb_stor_stop_transport called usb-storage: -- cancelling URB usb-storage: Status code -104; transferred 0/36 usb-storage: -- transfer cancelled usb-storage: Bulk data transfer result 0x4 usb-storage: result = 3 usb-storage: -- command was aborted usb-storage: Handle_Abort usb-storage: usb_stor_Bulk_reset called usb-storage: usb_stor_control_msg: rq=ff rqtype=21 value=0000 index=00 len=0 usb-storage: Soft reset: clearing bulk-in endpoint halt usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=88 len=0 usb-storage: usb_stor_clear_halt: result = 0 usb-storage: Soft reset: clearing bulk-out endpoint halt usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=02 len=0 usb-storage: usb_stor_clear_halt: result = 0 usb-storage: Soft reset done usb-storage: Transp. SCSI result = 327680 usb-storage: Transp. SCSI result = 327680 usb-storage: Protocol result = 327680 usb-storage: scsi command aborted usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command TEST_UNIT_READY (6 bytes) usb-storage: 00 00 00 00 00 00 usb-storage: Bulk Command S 0x43425355 T 0x37 L 0 F 0 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x37 R 0 Stat 0x0 usb-storage: result = 0 usb-storage: Transport returns result = 327680 usb-storage: Transp. SCSI result = 327680 usb-storage: Transp. SCSI result = 327680 usb-storage: Protocol result = 327680 usb-storage: scsi command aborted usb-storage: *** thread sleeping. usb-storage: command_abort called usb-storage: -- nothing to abort usb-storage: device_reset called usb-storage: usb_stor_Bulk_reset called usb-storage: usb_stor_control_msg: rq=ff rqtype=21 value=0000 index=00 len=0 usb-storage: Soft reset: clearing bulk-in endpoint halt usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=88 len=0 usb-storage: usb_stor_clear_halt: result = 0 usb-storage: Soft reset: clearing bulk-out endpoint halt usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=02 len=0 usb-storage: usb_stor_clear_halt: result = 0 usb-storage: Soft reset done usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command TEST_UNIT_READY (6 bytes) usb-storage: 00 00 00 00 00 00 usb-storage: Bulk Command S 0x43425355 T 0x37 L 0 F 0 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x37 R 0 Stat 0x0 usb-storage: result = 0 usb-storage: Transport returns result = 327680 usb-storage: Transp. SCSI result = 327680 usb-storage: Transp. SCSI result = 327680 usb-storage: Protocol result = 327680 usb-storage: scsi command aborted usb-storage: *** thread sleeping. usb-storage: command_abort called usb-storage: -- nothing to abort usb-storage: bus_reset called ehci_hcd 0000:00:10.3: port 2 high speed ehci_hcd 0000:00:10.3: GetStatus port 2 status 001005 POWER sig=se0 PE CONNECT usb 1-2: reset high speed USB device using address 2 usb-storage: usb_reset_device returns 0 usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command TEST_UNIT_READY (6 bytes) usb-storage: 00 00 00 00 00 00 usb-storage: Bulk Command S 0x43425355 T 0x37 L 0 F 0 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x37 R 0 Stat 0x0 usb-storage: result = 0 usb-storage: Transport returns result = 327680 usb-storage: Transp. SCSI result = 327680 usb-storage: Transp. SCSI result = 327680 usb-storage: Protocol result = 327680 usb-storage: scsi command aborted usb-storage: *** thread sleeping. usb-storage: command_abort called usb-storage: -- nothing to abort scsi: Device offlined - not ready after error recovery: host 1 channel 0 id 0 lun 0 usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (1:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (2:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (3:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (4:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (5:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (6:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Bad target number (7:0) usb-storage: scsi cmd done, result=0x40000 usb-storage: *** thread sleeping. USB Mass Storage device found at 2 usbcore: registered new driver usb-storage USB Mass Storage support registered. ehci_hcd 0000:00:10.3: GetStatus port 2 status 001002 POWER sig=se0 CSC ### disconnect ### usb 1-2: USB disconnect, address 2 usb-storage: storage_disconnect() called usb-storage: usb_stor_stop_transport called usb-storage: -- usb_stor_release_resources usb-storage: -- sending exit command to thread usb-storage: *** thread awakened. usb-storage: -- exit command received usb-storage: -- dissociate_dev ##### SECOND TIME - Dec 29 08:43:51 ##### ehci_hcd 0000:00:10.3: GetStatus port 2 status 001803 POWER sig=j CSC CONNECT ehci_hcd 0000:00:10.3: port 2 high speed ehci_hcd 0000:00:10.3: GetStatus port 2 status 001005 POWER sig=se0 PE CONNECT usb 1-2: new high speed USB device using address 3 usb-storage: USB Mass Storage device detected usb-storage: -- associate_dev usb-storage: Vendor: 0x04b4, Product: 0x6830, Revision: 0x0001 usb-storage: Interface Subclass: 0x06, Protocol: 0x50 usb-storage: Vendor: Cypress Semiconductor, Product: USB2.0 Storage Device usb-storage: Transport: Bulk usb-storage: Protocol: Transparent SCSI usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value=0000 index=00 len=1 usb-storage: GetMaxLUN command result is -32, data is 85 usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=88 len=0 usb-storage: usb_stor_clear_halt: result = 0 usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=02 len=0 usb-storage: usb_stor_clear_halt: result = 0 usb-storage: *** thread sleeping. scsi2 : SCSI emulation for USB Mass Storage devices usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command INQUIRY (6 bytes) usb-storage: 12 00 00 00 24 00 usb-storage: Bulk Command S 0x43425355 T 0x3f L 36 F 128 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: usb_stor_bulk_transfer_buf: xfer 36 bytes usb-storage: command_abort called usb-storage: usb_stor_stop_transport called usb-storage: -- cancelling URB usb-storage: Status code -104; transferred 0/36 usb-storage: -- transfer cancelled usb-storage: Bulk data transfer result 0x4 usb-storage: result = 3 usb-storage: -- command was aborted usb-storage: Handle_Abort usb-storage: usb_stor_Bulk_reset called usb-storage: usb_stor_control_msg: rq=ff rqtype=21 value=0000 index=00 len=0 usb-storage: Soft reset: clearing bulk-in endpoint halt usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=88 len=0 usb-storage: usb_stor_clear_halt: result = 0 usb-storage: Soft reset: clearing bulk-out endpoint halt usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=02 len=0 usb-storage: usb_stor_clear_halt: result = 0 usb-storage: Soft reset done usb-storage: Transp. SCSI result = 327680 usb-storage: Transp. SCSI result = 327680 usb-storage: Protocol result = 327680 usb-storage: scsi command aborted usb-storage: *** thread sleeping. usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command TEST_UNIT_READY (6 bytes) usb-storage: 00 00 00 00 00 00 usb-storage: Bulk Command S 0x43425355 T 0x3f L 0 F 0 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x3f R 0 Stat 0x0 usb-storage: result = 0 usb-storage: Transport returns result = 327680 usb-storage: Transp. SCSI result = 327680 usb-storage: Transp. SCSI result = 327680 usb-storage: Protocol result = 327680 usb-storage: scsi command aborted usb-storage: *** thread sleeping. usb-storage: command_abort called usb-storage: -- nothing to abort usb-storage: device_reset called usb-storage: usb_stor_Bulk_reset called usb-storage: usb_stor_control_msg: rq=ff rqtype=21 value=0000 index=00 len=0 usb-storage: Soft reset: clearing bulk-in endpoint halt usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=88 len=0 usb-storage: usb_stor_clear_halt: result = 0 usb-storage: Soft reset: clearing bulk-out endpoint halt usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=02 len=0 usb-storage: usb_stor_clear_halt: result = 0 usb-storage: Soft reset done usb-storage: queuecommand called usb-storage: *** thread awakened. usb-storage: Command TEST_UNIT_READY (6 bytes) usb-storage: 00 00 00 00 00 00 usb-storage: Bulk Command S 0x43425355 T 0x3f L 0 F 0 Trg 0 LUN 0 CL 6 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes usb-storage: Status code 0; transferred 31/31 usb-storage: -- transfer complete usb-storage: Bulk command transfer result=0 usb-storage: Attempting to get CSW... usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes usb-storage: Status code 0; transferred 13/13 usb-storage: -- transfer complete usb-storage: Bulk status result = 0 usb-storage: Bulk Status S 0x53425355 T 0x3f R 0 Stat 0x0 usb-storage: result = 0 usb-storage: Transport returns result = 327680 usb-storage: Transp. SCSI result = 327680 usb-storage: Transp. SCSI result = 327680 usb-storage: Protocol result = 327680 usb-storage: scsi command aborted usb-storage: *** thread sleeping. usb-storage: command_abort called usb-storage: -- nothing to abort usb-storage: bus_reset called ### time is now 09:00; no futher entries in dmesg ### ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
