Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB stick question... I've read loads of other threads
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
mobymac
Apprentice
Apprentice


Joined: 29 Sep 2003
Posts: 169
Location: the red corner

PostPosted: Mon Sep 05, 2005 11:14 pm    Post subject: USB stick question... I've read loads of other threads Reply with quote

I promise I've been looking in lots of other places and just can't seem to find the answer...

I can't for the life of me make my usb stick work. I've been working hard for the last two days trying to teach myself how to do this, but I'm against a wall. I'm pretty sure I've got udev set up correctly, I've compiled the kernel according to several of the tutorials listed here and elsewhere (gentoo wiki howto USB mass storage, UDEV primer, etc) but still can't get the device to accept an address (I think udev is assigning it now?). Here is dmesg from when I plug it in:
Code:
usb 3-2: new high speed USB device using ehci_hcd and address 11
usb 3-2: device descriptor read/64, error -71
usb 3-2: device descriptor read/64, error -71
usb 3-2: new high speed USB device using ehci_hcd and address 12
usb 3-2: device descriptor read/64, error -71
usb 3-2: device descriptor read/64, error -71
usb 3-2: new high speed USB device using ehci_hcd and address 13
usb 3-2: device not accepting address 13, error -71
usb 3-2: new high speed USB device using ehci_hcd and address 14
usb 3-2: device not accepting address 14, error -71
I've got all three usb protocols (EHCI, OHCI, and UHCI) compiled in as modules but have left out UHCI right now. I think this should only require EHCI though, right? High-speed and all that?

I think I have the necessary stuff compiled as modules-- here is lsmod:
Code:
Module                  Size  Used by
fat                    54041  1
uhci_hcd               33544  0
snd_pcm_oss            53088  0
snd_mixer_oss          19680  1 snd_pcm_oss
snd_ca0106             30372  2
snd_ac97_codec         82904  1 snd_ca0106
snd_pcm                95456  4 snd_pcm_oss,snd_ca0106,snd_ac97_codec
snd_timer              25728  1 snd_pcm
snd                    55524  9 snd_pcm_oss,snd_mixer_oss,snd_ca0106,snd_ac97_codec,snd_pcm,snd_timer
nvidia               3470720  12
snd_page_alloc         10052  2 snd_ca0106,snd_pcm
usb_storage            34016  0
ehci_hcd               33344  0
ohci_hcd               21792  0
soundcore               9888  1 snd
the fat vs. vfat thing is troublesome, but that's another thread, I think. Unless that has something to do with it, but I don't think it does (correct me if I'm wrong).

I have tried lots of different combinations of compiling things and updating modules as best as I know how. Here are the pertinent USB parts of my .config:
Code:
ender ~ # cat /usr/src/linux/.config |grep USB
# USB devices
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_USX2Y is not set
# USB support
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
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
# USB Host Controller Drivers
CONFIG_USB_EHCI_HCD=m
# CONFIG_USB_EHCI_SPLIT_ISO is not set
# CONFIG_USB_EHCI_ROOT_HUB_TT is not set
CONFIG_USB_OHCI_HCD=m
# CONFIG_USB_OHCI_BIG_ENDIAN is not set
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=m
# 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=m
# CONFIG_USB_STORAGE_DEBUG 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_USBAT 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_USB_HIDDEV=y
# 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 is not set
# 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
# 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
CONFIG_USB_MON=y
# USB port drivers
# 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_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 is not set
# CONFIG_USB_PHIDGETKIT is not set
# CONFIG_USB_PHIDGETSERVO is not set
# CONFIG_USB_IDMOUSE is not set
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_USB_TEST is not set
# USB ATM/DSL drivers
# USB Gadget Support
# CONFIG_USB_GADGET is not set


I throw myself upon the mercy of ye who are so much more knowledgable than I. Help me gentoo forums, you're my only hope.
Back to top
View user's profile Send private message
nbensa
l33t
l33t


Joined: 10 Jul 2002
Posts: 799
Location: Buenos Aires, Argentina

PostPosted: Tue Sep 06, 2005 12:48 am    Post subject: Reply with quote

I was having problems with udev-068 and a USB pen-drive. A downgrade to 058 fixed my problem. Perhaps you'd like to check your udev version.
Back to top
View user's profile Send private message
mobymac
Apprentice
Apprentice


Joined: 29 Sep 2003
Posts: 169
Location: the red corner

PostPosted: Tue Nov 01, 2005 9:01 pm    Post subject: Reply with quote

I'm still having the same problems, and it's not my udev version. I'm at my wit's end... please help?
Back to top
View user's profile Send private message
optiactive
Tux's lil' helper
Tux's lil' helper


Joined: 08 May 2004
Posts: 92

PostPosted: Tue Nov 01, 2005 9:12 pm    Post subject: Reply with quote

http://www.linux-usb.org/

Check the FAQ section of this site. Your issue is addressed in one of the questions. Just search the page for

Code:
device not accepting address


Hope that helps.
Back to top
View user's profile Send private message
mobymac
Apprentice
Apprentice


Joined: 29 Sep 2003
Posts: 169
Location: the red corner

PostPosted: Tue Nov 01, 2005 9:34 pm    Post subject: Reply with quote

it did, thank you. I'm closer. Now I'm getting this output in dmesg:
Code:
usb 3-5: new high speed USB device using ehci_hcd and address 6
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
  Vendor:           Model: USB DRIVE         Rev: 1.13
  Type:   Direct-Access                      ANSI SCSI revision: 00
SCSI device sda: 506880 512-byte hdwr sectors (260 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 506880 512-byte hdwr sectors (260 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
 sda: sda1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
usb-storage: device scan complete
Unable to load NLS charset iso8859-1
FAT: IO charset iso8859-1 not found
I looked in my .config and here's the pertinent part:
Code:
# DOS/FAT/NT Filesystems
#
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
So apparently everything should be found and hunky-dory, right? But somehow it's not able to access the "charset." It shouldn't matter that I have MS-DOS and VFAT support compiled as modules, should it?
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6069
Location: Removed by Neddy

PostPosted: Tue Nov 01, 2005 9:49 pm    Post subject: Reply with quote

and do you have those NLS charset compiled in or loaded if modules? you need to enable them in the config
_________________
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Back to top
View user's profile Send private message
optiactive
Tux's lil' helper
Tux's lil' helper


Joined: 08 May 2004
Posts: 92

PostPosted: Tue Nov 01, 2005 9:59 pm    Post subject: Reply with quote

I don't have any experience with the msdos fs. I've always used the vfat fs to mount my USB disk. I suppose it wouldn't hurt to compile the vfat fs into the kernel. I'm pretty sure that's how my kernel is configured because I never have to manually load the vfat module.

By the way, is the dmesg output a result of booting up, or are you running a command (such as "mount -t vfat...") after booting?
Back to top
View user's profile Send private message
mobymac
Apprentice
Apprentice


Joined: 29 Sep 2003
Posts: 169
Location: the red corner

PostPosted: Wed Nov 02, 2005 3:24 am    Post subject: Reply with quote

this is weird. I run "make menuconfig" in the correct directory (ie my current kernel directory, I've made that mistake before) and set vfat as compiled into the kernel. I make sure the correct charset and codepage are selected (you can't select them for module or not) and recompile by running "make," then "make modules_install" (though that shouldn't affect this at all anyway), then "cp arch/i386/boot/bzImage /boot/bzImage-2.6". I try doing that with the msdos option above the vfat one selected or not, nothing changes-- when I boot it says "Failed to load the vfat module." I'm losing my mind. Please help me find where I've gone wrong? This has to be user error.

also, dmesg is just from plugging in the device. I'm running udev and hotplug (I think) and it always at least recognizes that I put something in it, just doesn't correctly recognize what it is...
Back to top
View user's profile Send private message
perkins
n00b
n00b


Joined: 20 Oct 2005
Posts: 13

PostPosted: Wed Nov 02, 2005 9:03 am    Post subject: Reply with quote

When you say you "make sure correct charset and codepage are selected": if you're refering to the settings in menuconfig's File Systems -> DOS, FAT, NTFS File Systems, then make sure you also have iso8859-1 enabled inside File Systems -> Native Language Support.
Back to top
View user's profile Send private message
perkins
n00b
n00b


Joined: 20 Oct 2005
Posts: 13

PostPosted: Wed Nov 02, 2005 9:10 am    Post subject: Reply with quote

Oh, one other thing: from what you write, you're copying your new kernel over the old one - I take it you are also re-running your boot manager? (eg. in lilo, you would just run "lilo" - for grub, I don't know - never used it ;-)

AFAIK, at boot-time, the boot manager loads the kernel from a specific physical address on the hd, not a place in the filesystem, so just writing over your kernel image is probably not enough to get the new one loaded at boot - the boot manager needs to process the new kernel, which will have a different physical location on the disk..
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Wed Nov 02, 2005 10:46 am    Post subject: Reply with quote

if you build vfat into the kernel you cant then try and load it as a module - so ignore the error and remove it from modules.autoload.d

you dont need to do anything to update grub other than change the config file

once you have changed your kernel config, recompiled, and rebooted, run "uname -v" - this gives you the date and time that the running kernel was compiled. mentally check it matches the date/time that you made these changes (i.e. should be just a few minutes before the current time)
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
optiactive
Tux's lil' helper
Tux's lil' helper


Joined: 08 May 2004
Posts: 92

PostPosted: Wed Nov 02, 2005 3:05 pm    Post subject: Reply with quote

I think the setting perkins referred to earlier is:

CONFIG_NLS_ISO8859_1=y

Be sure this is set in your kernel.
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