LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Hardware (http://www.linuxquestions.org/questions/forumdisplay.php?f=18)
-   -   USB Problems (http://www.linuxquestions.org/questions/showthread.php?t=4175444836)

business_kid 01-09-2013 10:39 AM

USB Problems
 
I welcome any ideas on this strange one on my new Samsung-350V

No printing on my usb printer which works with the same software (foo2zjs)on everything else from slackware-12.0 to 14.0, 32 or 64 bit. The printer is fine. My firmware file has been checked with md5sum. But when I insert the printer, the process (cat or cp) to send the firmware to the printer hangs, and /dev/usb/lp0 throws "device busy" errors.
lsof |grep lp0 shows a 'cat <firmware> > /dev/usb/lp0' hanging there waiting for /dev/usb/lp0. I conclude a comms problem. But usb disks, sd readers, external drives all work fine.

I was running on the latest 3.7.1 kernel, which has xgci-hcd in verbose debug mode screaming errors and spewing log spam. So I loaded 3.2.29 - slackware's original and still have the same issue. Foo2zjs is in the clear because it's the 'cat' instruction that fails. The only odd thing is that this box has an SSD. Here's the lspci


Quote:

bash-4.2$ sudo lspci
00:00.0 Host bridge: Intel Corporation Ivy Bridge DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Ivy Bridge Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation Panther Point USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation Panther Point MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation Panther Point USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation Panther Point High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 2 (rev c4)
00:1d.0 USB controller: Intel Corporation Panther Point USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation Panther Point LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation Panther Point 6 port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation Panther Point SMBus Controller (rev 04)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 09)
02:00.0 Network controller: Atheros Communications Inc. AR9485 Wireless Network Adapter (rev 01)
The printer is a HP laserjet P1005 - still working well on other boxes.

business_kid 01-10-2013 05:34 AM

Kind of sorted this.

1. The SSD drive means the firmware is going in too fast - probably while a hardware reset is still active. So powering up the device while plugged in inevitably messes up.

2. Cups problems account for the rest - perms and general %#$@! from cups as is usual for that program.

business_kid 01-11-2013 06:43 AM

Er. . . . A little previous here calling this solved.

It worked last night. Id doesn't work this morning. Any time I switch on or plug in the printer, it gets screwed up. No firmware can be downloaded. I get this from dmesg
Code:

[48949.890885] usb 3-3: new high-speed USB device number 33 using xhci_hcd
[48949.914943] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep
[48949.918039] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep
[48949.921095] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep
[48949.924187] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep
[48949.925198] usb 3-3: New USB device found, idVendor=03f0, idProduct=3d17
[48949.925203] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[48949.925207] usb 3-3: Product: HP LaserJet P1005
[48949.925210] usb 3-3: Manufacturer: Hewlett-Packard
[48949.925213] usb 3-3: SerialNumber: BB08HLP
[48949.925359] usb 3-3: ep 0x1 - rounding interval to 32768 microframes, ep desc says 0 microframes
[48949.925365] usb 3-3: ep 0x81 - rounding interval to 32768 microframes, ep desc says 0 microframes
[48949.925523] usb 3-3: ep 0x1 - rounding interval to 32768 microframes, ep desc says 0 microframes
[48949.925528] usb 3-3: ep 0x81 - rounding interval to 32768 microframes, ep desc says 0 microframes
[48949.927251] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep
[48949.928372] usblp0: USB Bidirectional printer dev 33 if 0 alt 0 proto 2 vid 0x03F0 pid 0x3D17
[49013.953705] xhci_hcd 0000:00:14.0: WARN: transfer error on endpoint
[49013.953720] usblp0: nonzero write bulk status received: -71
[49013.953739] xhci_hcd 0000:00:14.0: WARN: transfer error on endpoint
[49013.953746] usblp0: nonzero read bulk status received: -71
[49013.953787] xhci_hcd 0000:00:14.0: WARN: transfer error on endpoint
[49013.953793] usblp0: nonzero write bulk status received: -71
[49013.953801] usb 3-3: USB disconnect, device number 33

Error 71 is a Protocol error.

business_kid 01-11-2013 09:37 AM

Found it as a software bug in foo2zjs hotplug script with the firmware on an SSD. Reported it.


All times are GMT -5. The time now is 03:17 AM.