You are not logged in.

#1 2008-09-09 17:00:26

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

USB pen not shown in /dev

I have some problems which I have not seen before, because I simply didn't need to use a USB device before now.
But in short, when I plug in my USB pen, no block device will be created in /dev (like sdb, sdc etc. ...).

Here is the info I find relevant:

I'm using the zen kernel (kernel26zen-git found in AUR) with a custum kernel config, however it doesn't work in the standard -ARCH kernel either with the standard kernel config.

All the modules seems to be loaded according to lsusb:

[joey@Kessler ~]$ lsmod | grep usb
usbhid                 41728  0 
hid                    35268  1 usbhid
ff_memless              4488  1 usbhid
hci_usb                12572  0 
bluetooth              47108  1 hci_usb
usbcore               127728  5 uhci_hcd,ehci_hcd,usbhid,hci_usb

lsusb seems to know it's existence:

[joey@Kessler ~]$ lsusb
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 046d:c50e Logitech, Inc. MX-1000 Cordless Mouse Receiver
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
---> Bus 001 Device 003: ID 13fe:1f00 Kingston Technology Company Inc. DataTraveler 2.0 4GB Flash Drive
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Udevmonitor:

UEVENT[1220978736.149331] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-4 (usb)
UEVENT[1220978736.151043] add      /class/usb_endpoint/usbdev1.4_ep00 (usb_endpoint)
UEVENT[1220978736.151136] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4:1.0 (usb)
UEVENT[1220978736.151217] add      /class/usb_endpoint/usbdev1.4_ep81 (usb_endpoint)
UEVENT[1220978736.151312] add      /class/usb_endpoint/usbdev1.4_ep02 (usb_endpoint)
UEVENT[1220978736.151389] add      /class/usb_device/usbdev1.4 (usb_device)
UDEV  [1220978736.162224] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-4 (usb)
UDEV  [1220978736.164500] add      /class/usb_endpoint/usbdev1.4_ep00 (usb_endpoint)
UDEV  [1220978736.220876] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4:1.0 (usb)
UDEV  [1220978736.222748] add      /class/usb_endpoint/usbdev1.4_ep81 (usb_endpoint)
UDEV  [1220978736.228441] add      /class/usb_endpoint/usbdev1.4_ep02 (usb_endpoint)
UDEV  [1220978736.281100] add      /class/usb_device/usbdev1.4 (usb_device)

dmesg | tail:

usb 1-4: new high speed USB device using ehci_hcd and address 3
usb 1-4: configuration #1 chosen from 1 choice
usb 1-4: USB disconnect, address 3
usb 1-4: new high speed USB device using ehci_hcd and address 4
usb 1-4: configuration #1 chosen from 1 choice

By the way, I don't use udev in the mkinitcpio image, I merely load the relevant modules I use:

/etc/mkinitcpio.conf

MODULES="pata_acpi ata_generic scsi_mod sd_mod ata_piix sr_mod libata mbcache ext3 reiserfs"
....
HOOKS="base resume"

/etc/rc.conf

...
MODULES=(hci_usb thinkpad_acpi !scsi_mod !sd_mod !sr_mod cdrom usbhid hid pci_hotplug shpchp usbcore ehci-hcd uhci-hcd led-class ata_generic ata_piix pata_acpi i2c-i801 i2c-core output agpgart intel-agp !intel-rng nvram yenta_socket pcmcia_core rsrc_nonstatic ff-memless pcspkr joydev serio_raw psmouse evdev mii crc-ccitt eepro100 sir-dev irtty-sir ipw2100 e100 video  bay dock bluetooth ieee80211 ieee80211_crypt irda snd-pcm snd-pcm-oss snd-mixer-oss snd-page-alloc snd snd-timer ac97_bus snd-intel8x0 !snd-intel8x0m soundcore !tp_smapi !hdaps acpi-cpufreq fuse)
...

If you need my kernel config just ask.

Mikkel Poulsen


Arch - It's something refreshing

Offline

#2 2008-09-10 04:16:46

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: USB pen not shown in /dev

Hi there,
After inserting my usb pen, here's my modules

$ lsmod | grep usb
usb_storage            85440  0 
hci_usb                13980  0 
usbhid                 43584  0 
hid                    39424  1 usbhid
ff_memless              5000  1 usbhid
usbcore               131248  5 usb_storage,hci_usb,usbhid,uhci_hcd
scsi_mod               94700  4 usb_storage,sg,sd_mod,libata

So I'd try again after

# modprobe usb_storage

Hope it helps.

EDIT:
I assume you've created your rc.conf MODULES array with

$ hwdetect --modules

You might want to do it again with your usb pen attatched to get all relevant modules listed.

EDIT 2:
I didn't notice until now you've blacklisted scsi_mod and sd_mod in your MODULES and they seem to be needed too..

Last edited by sm4tik (2008-09-10 04:35:31)

Offline

#3 2008-09-10 06:31:01

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: USB pen not shown in /dev

sm4tik wrote:

Hi there,
After inserting my usb pen, here's my modules

$ lsmod | grep usb
usb_storage            85440  0 
hci_usb                13980  0 
usbhid                 43584  0 
hid                    39424  1 usbhid
ff_memless              5000  1 usbhid
usbcore               131248  5 usb_storage,hci_usb,usbhid,uhci_hcd
scsi_mod               94700  4 usb_storage,sg,sd_mod,libata

So I'd try again after

# modprobe usb_storage

Hope it helps.

Oh yeah I will try that when I get home.

sm4tik wrote:

EDIT 2:
I didn't notice until now you've blacklisted scsi_mod and sd_mod in your MODULES and they seem to be needed too..

That could be a problem. I can't simply find those modules in the zen kernel - even if I just use the standard kernel .config that comes with the kernel26zen-git PKGBUILD. In short I don't know witch option "turns" these modules on.


Arch - It's something refreshing

Offline

#4 2008-09-10 10:54:21

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: USB pen not shown in /dev

whargoul wrote:
sm4tik wrote:

EDIT 2:
I didn't notice until now you've blacklisted scsi_mod and sd_mod in your MODULES and they seem to be needed too..

That could be a problem. I can't simply find those modules in the zen kernel - even if I just use the standard kernel .config that comes with the kernel26zen-git PKGBUILD. In short I don't know witch option "turns" these modules on.

Could be that they're built in the kernel image instead of built as modules.

Offline

#5 2008-09-10 11:30:56

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: USB pen not shown in /dev

sm4tik wrote:
whargoul wrote:
sm4tik wrote:

EDIT 2:
I didn't notice until now you've blacklisted scsi_mod and sd_mod in your MODULES and they seem to be needed too..

That could be a problem. I can't simply find those modules in the zen kernel - even if I just use the standard kernel .config that comes with the kernel26zen-git PKGBUILD. In short I don't know witch option "turns" these modules on.

Could be that they're built in the kernel image instead of built as modules.

I don't know. When I try search after those modules in makeconfig I can't find them anyware - or I just don't know what they're called.


Arch - It's something refreshing

Offline

#6 2008-09-10 19:45:10

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: USB pen not shown in /dev

Loading usb_storage worked alright. Don't seem to need scsi_mod and sd_mod at all.


Arch - It's something refreshing

Offline

Board footer

Powered by FluxBB