Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Originally posted by Chrax He's using 2.6.9... this means that his computer is now running sysfs, not the deprecated devfs. So /dev is no longer populated with stuff that's not connected to your machine. You have to set the udev rules to get it to work. See my earlier post for a link.
Not true. I have been on 2.6.9 for quite some time and still running devfs as I have been too lazy to do otherwise. It still works just fine here on all my USB storage devices. Perhaps we should take a look at his kernel config. Only the relevant USB, SCSI, and Pseudo Filesystems should be sufficient.
Originally posted by Scruff Not true. I have been on 2.6.9 for quite some time and still running devfs as I have been too lazy to do otherwise. It still works just fine here on all my USB storage devices. Perhaps we should take a look at his kernel config. Only the relevant USB, SCSI, and Pseudo Filesystems should be sufficient.
Well I'll be damned. I couldn't figure out how to use devfs without just installpkging slacks devs every reboot so I just mucked around with sysfs until I got it working.
legacy /proc/scsi support
SCSI disk support
SCSI generic support
In case those don't work, I'd check your USB drivers. I've got
USB Mass Storage support (none of the suboptions)
USB device filesystem
I don't have /proc/scsi. And I didn't install legacy because somebody told me I wouldn't need it! I don't know about any of the others listed though...no clue how to find out either. I just installed udev-050, and sysfsutils-1.2.0. "A newer version of " hotplug-2004_03_29-1 is also installed. (still no /proc/scsi)
Those were files "required" according to this article I found: USB Flash Memory HowTo. I don't know how to "CONFIG_HOTPLUG" though. It links to apage called Hardware and kernel but I just don't understand anything. I'm supposed to make (I know what that is) diferent configuratuions in /usr/src/linux/ and recompile it!?!! I have a list of "Kernel options" and I think I can pull it off, but uh: /usr/src/linux/ does not exist.
Plus this makes no sense:
Quote:
Different kernel versions may have different indications of options when, for example, make menuconfig or make xconfig are run. Variables such as CONFIG_USB, which can be gleaned from the various help options, may be a more reliable indication.
Will 2.7 come out any time soon? Right now it's 2.6.9.
And do I absolutely have to recompile my kernel? Section 4 explains this in detail so I'll hopefully be able to do such, although I really dont want to. Can't I just configure those things w/o compiling it? If so then I think I can finally get my mp3 player mounted.
Jeze, I'm so lost. Went out, found an article and now my focus has completely shifted from udev to kernel configurations...
Chrax and Scruff, are you talking about kernel options? you (Chrax) weren't too clear. Also, I don't know if these are modules or built-ins. If they're modules, I probably already compiled them but maybe not loaded them... but I'm not sure yet where/how to look.
I'd really rather avoid a recompile as I need a stable working system at least until this term is done. I can't spend an evening backing up and recompiling until everything works nice. dmesg can get the USB drive and even see its capacity, manufacturer, model, etc... I just can't figure out how to keep it in the system. or how to mount it.
Or would it hurt anything to dowload the source, and write it to /usr/src/linux (instead of /redhat)? I figure that's my best option, but it would be easier to find some "configuration folder" or something.
legacy /proc/scsi support
SCSI disk support
SCSI generic support
In case those don't work, I'd check your USB drivers. I've got
USB Mass Storage support (none of the suboptions)
USB device filesystem"
well I have USB Mass Storage support, and a number of suboptions. Most are experimental. They must have been default because I don't remember setting those when I compiled.
I also saw that I don't have the devfs configured into the kernel, just proc.
"SCSI generic support" is configured as a module. I don't know if it's loaded, (unless my previous lsmod shows otherwise), what's the name of the module to load it?
Scruff, I found your options also in my system, configured the same way.
I couldn't find the option for "USB device filesystem", what's the path to it?... but I'm also exhausted... so I dunno.. maybe I just missed it.
1veedo, yah it's possible to install RH w/o the source. but if you have the Red Hat installer, you can just tell it to install the Kernel source and it will do it from the CD.
I spent most of the evening trying to figure these things out (along with building kernels)!
Although the source was not in /usr/src, it was in lib/modules/2.6.9-1.724_FC3/build. I ran:
Code:
make mrproper
......
then
#make gconfig
Which told me, of course, that it was loading the settings for the last kernel. I looked around in that, as well as the kernel folders for the compilled build, and found scsi and as far as I know, everythign required to run a usb. Except, some of them were modules, and not standard.
This is what my current modprobe configuration looks like:
Code:
alias eth0 8139too
alias snd-card-0 snd-intel8x0
options snd-card-0 index=0
install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0 && /usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-intel8x0 { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0
alias usb-controller ehci-hcd
alias usb-controller1 uhci-hcd
The last two, are of coruse, the two modules I saw with /sbin/lsmod. What I need to do is get scsi. When I was trying to get my usb before looking into the kernel, scsi was were I ran into problems.
If all else fails, I can try rebuilding the kernel. I tried ealier, but there were errors, and it didn't work. I did read an article and now know how to, so that's a plus! However, I cannot find the kernel source anyware. I tried dLoading kernel-2.6.9-1.681_FC3.src.rpm (my kernel is 1.724, not 681 btw), but it said the updater couldnt run it. I got an archiver though, and got ahold of a mess of completely useless files.
(things like
COPYING.modules
genkey
kernel-2.6.9-i586.config
kernel-2.6.9-i586-smp.config
kernel-2.6.9-i686.config
kernel-2.6.9-i686-smp.config
kernel-2.6.9-ia64.config
.......lots, and lots of similar files.....
linux-2.6.9-SIOCGIFHWADDR-NULL-dev_addr.patch
linux-2.6.9-speedtouch.patch
linux-2.6.9.tar.bz2
linux-2.6.9-tg3-fiber-autoneg-bounces.patch
linux-2.6.9-via-apic-quirk-devinit.patch
linux-2.6.9-vm-tame-oomkiller.patch
linux-2.6.9-x86_64-copy_user_generic-exception.patch
linux-2.6.9-xattr-rework-tmpfs-mm.patch
patch-2.6.9-ac10.bz2)
So can somebody fill me in on how I can install a kernel, and get full say into what gets left out, included, or put in modules. I spent along time on the first build editing the config file just to find it wouldn't compile. So I'll just use those settings with the same install.
Or ofcourse, if anybody knows how to install modules I could skip the entire process!
[This probably deservs a thread of its own, but I thought I'd stay in this one sense this all pertains to getting my mp3 player to work.]
I also use FC3 and in the meantime my USB-Stick works perfectly. What I did
was to update to kernel-2.6.10 and to disable everything that has to do with ehci
and all experimental usb-stuff.
I dont even have any *hci! I specifically configured it for [url=http://howtos.linux.com/howtos/Flash-Memory-HOWTO/linux-2.6.shtml]USB flash memery[/usb]. I told it 'y' for hotplugs, all the scsi and usb stuff, as well as the file systems. I'm going to look learn a bit abotu modules, but I'll probably need your configurations, milamber, if I ever want USB support...
Update: IT WORKS!!!
...sorta.
I downloaded and compiled kernel 2.6.10, examined all options very carefully, etc... and installed it.
Then after rebooting, I inserted the flashdrive... and still got errors!! WTF!! I was geting pretty pissed off at this point. then, on a whim, I tried plugging the flashdrive into different USB ports. after a few tests, I determined that I didn't get any errors when I used the USB ports on the BACK of my box. In fact, when I plugged the drive into the ports on the back (these are on the mobo of course, rather than connected by wires, like the front USB ports probably are), /dev/sda and /dev/sda1 were automagically creatd and I was able to browse the files on my drive!
AllI need now is a quick tip as to how to add this new device to /etc/fstab, and how can I set it up so that any user can mount it (right now, only root can mount it)?
...and I guess it's still kind of puzzling that only the front USB ports won't work with the USB flash drive, but they DID work with my USB printer (well, last time I checked was months ago, possibly pre-2.6.9, I should maybe check again...)... very strange...
1veedo: have you tried EVERY USB port on your box?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.