Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
need help: /dev/usb missing but (some) usb work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jome0008
n00b
n00b


Joined: 11 Jan 2004
Posts: 7

PostPosted: Sun Feb 05, 2006 10:39 pm    Post subject: need help: /dev/usb missing but (some) usb work Reply with quote

The problem is that the printer is named /dev/lp0 and not /dev/usb/lp0 (or /dev/usblp0) which is expected by the printer/scanner driver hplip. I can print (with the usb printer driver pointing to /dev/lp0) and the the USB harddrive is working.

  • I used to have /dev/usb working until I updated recently.
    But the problem is that I updated a lot and don't know what caused the problem.
  • I know the baselayout is new, the kernel is new (from 2.6.11 to 2.6.15) and about everything else as well.
  • I only used UHCI and not EHCI before (from what I remember but they where compiled as modules).

Tried to write an udev rule to fix it but it didn't work...
Code:

BUS="usb", SYSFS{serial}="MY56RCB2800498", NAME="%k", SYMLINK="psc1510"

-----------------------------------
Code:

> sane-find-scanner
found USB scanner (vendor=0x03f0, product=0x4c11) at libusb:004:002

> tail -F /var/log/messages
Feb  5 22:42:56 p4 python: hpssd [WARN] Inrecognized URI: usb:/dev/lp0
Feb  5 22:45:26 p4 saned[25223]: saned (AF-indep+IPv6) from sane-backends 1.0.15 ready
Feb  5 22:45:27 p4 saned[25223]: check_host: getpeername failed: Socket operation on non-socket
Feb  5 22:45:27 p4 saned[25223]: init: access by host [error] denied
Feb  5 22:45:27 p4 saned[25223]: quit: exiting
Feb  5 22:46:23 p4 python: hpssd [WARN] Inrecognized URI: usb:/dev/lp0


Code:

> ls -l /dev/usb*
crw-rw----  1 root root 189, 385 Feb  5 12:09 /dev/usbdev4.2
> ls -l /dev/lp*
crw-rw----  1 root root 180, 0 Feb  5 12:09 /dev/lp0
> lsusb
Bus 005 Device 002: ID 056a:0062 Wacom Co., Ltd
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 002: ID 03f0:4c11 Hewlett-Packard
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 006: ID 059b:007e Iomega Corp.
Bus 001 Device 001: ID 0000:0000


Code:

> grep usb /var/log/messages
Feb  5 12:10:17 p4 usbcore: registered new driver usbfs
Feb  5 12:10:17 p4 usbcore: registered new driver hub
Feb  5 12:10:17 p4 usbmon: debugfs is not available
Feb  5 12:10:17 p4 usb 1-5: new high speed USB device using ehci_hcd and address 2
Feb  5 12:10:17 p4 usb 4-2: new full speed USB device using uhci_hcd and address 2
Feb  5 12:10:17 p4 usb 5-2: new low speed USB device using uhci_hcd and address 2
Feb  5 12:10:17 p4 usbcore: registered new driver usbhid
Feb  5 12:10:17 p4 drivers/usb/input/hid-core.c: v2.6:USB HID core driver
Feb  5 12:10:17 p4 drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x03F0 pid 0x4C11
Feb  5 12:10:17 p4 usbcore: registered new driver usblp
Feb  5 12:10:17 p4 drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Feb  5 12:10:17 p4 usbcore: registered new driver wacom
Feb  5 12:10:17 p4 drivers/usb/input/wacom.c: v1.44:USB Wacom Graphire and Wacom Intuos tablet driver


Code:

> grep USB .config | grep -v '#'
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_UHCI_HCD=y
CONFIG_USB_PRINTER=m
CONFIG_USB_STORAGE=m
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y
CONFIG_USB_WACOM=m
CONFIG_USB_MON=y
Back to top
View user's profile Send private message
desktopfan
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2004
Posts: 134
Location: Scotland

PostPosted: Sun Feb 05, 2006 10:43 pm    Post subject: Reply with quote

I have no /dev/usb too.

However all my usb stuff works. Maybe the baselayout is too new for the driver?
_________________
Error #152 - Windows not found: (C)heer (P)arty (D)ance.
Back to top
View user's profile Send private message
jome0008
n00b
n00b


Joined: 11 Jan 2004
Posts: 7

PostPosted: Sun Feb 05, 2006 10:52 pm    Post subject: maybe it's udev that's broken... Reply with quote

cdrom disappeared after udev update

Code:

> equery l  -e sys-fs/udev

[ Searching for package 'udev' in 'sys-fs' among: ]
 * installed packages
[I--] [  ] sys-fs/udev-079-r1 (0)
Back to top
View user's profile Send private message
genterminl
Guru
Guru


Joined: 12 Feb 2005
Posts: 527
Location: Connecticut, USA

PostPosted: Tue Feb 07, 2006 12:46 am    Post subject: Reply with quote

Similar problem. First reboot after recent upgrade to baselayout gave me a lost /dev/hda. My CONFIG_LOCALVERSION ('02' instead of '-02') confused the version testing so udev was using the wrong startup stuff. Fixing that, /dev/hda is fine, but I"m still missing /dev/usb. The kernel is obviously seeing the usb stuff, because lsusb shows everything correctly (just one printer) and pointing CUPS to the printer at /dev/lp0 instead of /dev/usb/lp0 seems to work fine.

kernel 2.6.10 (Yes, I know it's old. I'll upgrade any day now :wink: )
udev 079-r1
baselayout 1.11.14-r3 (same problem with 1.11.14, I believe)

Turning udev logging on produces two new lines:
Feb 6 19:12:38 [udevd-event] wait_for_sysfs: waiting for '/sys/devices/pci0000:00/0000:00:02.2/usb1/1-1/bus' failed
Feb 6 19:12:42 [udevd-event] wait_for_sysfs: waiting for '/sys/devices/pci0000:00/0000:00:02.2/usb1/1-1/1-1:1.0/bus' failed

I thought I saw two similar lines without the failed just before these on bootup, but only these are in the log.

It seems like udev is simply failing to create /dev/usb at startup time, so cold/hotplug can't create nodes under it. Is this some sort of version mismatch?
Back to top
View user's profile Send private message
COMKEEN
n00b
n00b


Joined: 07 Nov 2003
Posts: 70

PostPosted: Mon Feb 20, 2006 12:55 pm    Post subject: Reply with quote

I hope this will get fixed soon. I had some serious problems with udev-079-r1 and the new baselayout-1.11.14-r1, too (see https://forums.gentoo.org/viewtopic-t-435692-highlight-udev079r1.html). Has anyone found out how to get rid of those wait_for_sysfs errors?
Back to top
View user's profile Send private message
bakaohki
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2005
Posts: 129
Location: Hungary

PostPosted: Wed Feb 22, 2006 7:11 pm    Post subject: udev madness again Reply with quote

I'm really getting tired of all this udev sh*t...
Neither /dev/usb nor /dev/cdroms get created around here. Now I had to reconfigure stuff for /dev/hdc and /dev/lp0. Guess I'll remove udev from my world file for good.
Back to top
View user's profile Send private message
genterminl
Guru
Guru


Joined: 12 Feb 2005
Posts: 527
Location: Connecticut, USA

PostPosted: Wed Feb 22, 2006 11:20 pm    Post subject: Reply with quote

Well, I upgraded my kernel to 2.6.15 and everything seems to work again. I have no idea what the problem actually was.

If /dev nodes are not getting created - there are a few quick things you can check. Are the appropriate modules loaded? For the CDROMs, you probably need to add ide-cd to the appropriate file in /etc/modules.autoload.d. For usb, is there evidence that the kernel actually knows the device is present? Have you tried manually loading the appropriate modules?
Back to top
View user's profile Send private message
COMKEEN
n00b
n00b


Joined: 07 Nov 2003
Posts: 70

PostPosted: Mon Feb 27, 2006 10:29 pm    Post subject: Reply with quote

I second that updating to a 2.6.15-something kernel does resolve the udev and baselayout problems, but you should be informed that you may have serious problems with the nvidia-drivers then. There are already some threads out there. In short: Updating to ~x86 nvidia-kernel-1.0.8178-r3 should fix the occuring problems.
Back to top
View user's profile Send private message
genterminl
Guru
Guru


Joined: 12 Feb 2005
Posts: 527
Location: Connecticut, USA

PostPosted: Tue Feb 28, 2006 12:17 am    Post subject: Reply with quote

Finally. Something that probably won't bite me. I don't have nvidia - just an old ATI Rage 128.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum