LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-03-2005, 09:23 PM   #31
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30

I get by with these (on my USB Nikon removable storage)

CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y
 
Old 01-03-2005, 09:29 PM   #32
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
Quote:
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.

Last edited by Scruff; 01-03-2005 at 09:34 PM.
 
Old 01-03-2005, 09:47 PM   #33
Chrax
Member
 
Registered: Apr 2004
Distribution: Dapper
Posts: 167

Rep: Reputation: 31
Quote:
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.
 
Old 01-03-2005, 09:49 PM   #34
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
That's how you get motivated
 
Old 01-04-2005, 04:09 PM   #35
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Rep: Reputation: 34
Quote:
I've got

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...

Last edited by 1veedo; 01-04-2005 at 04:12 PM.
 
Old 01-04-2005, 09:45 PM   #36
Lord Zoltar
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 30
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.
 
Old 01-04-2005, 10:32 PM   #37
Chrax
Member
 
Registered: Apr 2004
Distribution: Dapper
Posts: 167

Rep: Reputation: 31
Code:
you@yourbox:/usr/src/linux$ make gconfig
That's how you can see/edit your current config.

Really as long as you keep your old kernel around, kernel recompiles aren't a big deal. Just edit lilo.conf and add an entry for vmlinuz.old.
 
Old 01-05-2005, 03:35 PM   #38
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Rep: Reputation: 34
I don't have the source.

/usr/src/redhat and it's 5 folders is completely empty!
Code:
[root@localhost redhat]# ls
BUILD  RPMS  SOURCES  SPECS  SRPMS
Take alook at: http://howtos.linux.com/howtos/Flash...inux-2.6.shtml
Is there any way I can configure the kernel with out having the source?

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.

Last edited by 1veedo; 01-05-2005 at 03:36 PM.
 
Old 01-05-2005, 05:13 PM   #39
Chrax
Member
 
Registered: Apr 2004
Distribution: Dapper
Posts: 167

Rep: Reputation: 31
Sorry, I've never played with Red Hat much, but I expect there's probably a Kernel Howto in the Red Hat forum.
 
Old 01-05-2005, 10:31 PM   #40
Lord Zoltar
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 30
Chrax said
"I've got

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.
 
Old 01-07-2005, 09:41 PM   #41
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Rep: Reputation: 34
Kernel Modules

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.]
 
Old 01-08-2005, 02:54 AM   #42
milamber
LQ Newbie
 
Registered: Jan 2005
Posts: 2

Rep: Reputation: 0
@1veedo:

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.

Here

http://www.mjmwired.net/resources/mj...html#kernelsrc

is an instruction on how to install the kernel-source with FC3 and here

http://www.mjmwired.net/resources/mjm-kernel-fc3.shtml

how to install a custom kernel. I found those pages very helpful. If it still
doesn's work, I can send you my .config file, maybe this helps.
 
Old 01-08-2005, 10:48 AM   #43
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Rep: Reputation: 34
ehci is for USB2, so I installed it anyway. I think I installed everything but it looks like I'm back to where I started!
Code:
# lsmod
Module                  Size  Used by
i915                   83076  2
ipv6                  245440  10
lp                     12268  0
autofs4                25604  0
i2c_dev                11904  0
i2c_core               22784  1 i2c_dev
ipt_REJECT              6784  1
ipt_state               2176  1
ip_conntrack           42420  1 ipt_state
iptable_filter          3072  1
ip_tables              17920  3 ipt_REJECT,ipt_state,iptable_filter
dm_mod                 55828  0
button                  6928  0
battery                 9092  0
ac                      5124  0
snd_intel8x0           35660  2
snd_ac97_codec         65232  1 snd_intel8x0
snd_pcm_oss            49976  0
snd_mixer_oss          18432  1 snd_pcm_oss
snd_pcm               103816  2 snd_intel8x0,snd_pcm_oss
snd_timer              32004  1 snd_pcm
snd_page_alloc          9992  2 snd_intel8x0,snd_pcm
gameport                5248  1 snd_intel8x0
snd_mpu401_uart         9472  1 snd_intel8x0
snd_rawmidi            28324  1 snd_mpu401_uart
snd_seq_device          8200  1 snd_rawmidi
snd                    57700  13 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore              10720  1 snd
8139too                27392  0
mii                     4992  1 8139too
floppy                 60464  0
ext3                  117512  1
jbd                    79384  1 ext3
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...
 
Old 01-08-2005, 11:54 AM   #44
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Rep: Reputation: 34
Lord Zoltar,

http://www.fedoraforum.org/forum/sho...&highlight=usb

just searching for my usb problem because I assume alot of fedora users have my problem...
Anyway, that looks just like your problem.
 
Old 01-08-2005, 03:38 PM   #45
Lord Zoltar
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 30
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB pen drive not mounting. /dev/sda1 not present! hamish Linux - Hardware 9 01-11-2010 08:25 PM
ALERT! /dev/sda1 does not exist. - Installing on external HD nrbelex Linux - Software 5 11-17-2005 06:49 AM
USB: Memory Stick: no /dev/sda1 sysbox Linux - Hardware 6 08-09-2005 11:29 PM
USB Pen Drive, /dev/sda1 is not a valid block device Aeiri Linux - Hardware 3 08-13-2004 10:32 AM
USB Compact flash card reader hotplug creates /dev/sda but no /dev/sda1 -Mandrake 9.1 bibinono Linux - Hardware 2 08-11-2003 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration