LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-29-2004, 04:16 AM   #1
NiKkO_o
LQ Newbie
 
Registered: Mar 2003
Location: France
Distribution: Slackware 12
Posts: 8

Rep: Reputation: 0
Havin' troubles with Hotplug + Kernel 2.6.4


Hello there !

First I would like to say I admire you people who help us, newbies. I dislike requesting for help for I used to look for answers by myself, and 'cause I now how annoying it could be to always read "heeelp me" posts ... but ... heeeelp me !!!
Sorry ... ahem ...
Well, I just reinstalled Slack 9.1, which works perfectly with its kernel 2.4, but those promising perfs of 2.6 tempted me so I compiled it.
Everything seems to work perfectly, I've began to be used to compile kernel those last time. But then, it's the drama ! I plug my usb key (or my wacom, well in fact, anything in usb will do ...) and receive a little message :

cat /sys/device/blablabla/bNumConfiguration : no such file blablabla.
/etc/hotplug/usb.agent (144) : blablabla (i don't remember, not very useful to tell, anyway)

What I understand is it could not find the stuff bNumConfiguration, as of course I did not have this /sys/ .
I've often read to do "mkdir /sys", to edit /etc/rc.sysinit , to mount none as an sysfs to /sys ... but it was always for a Red Hat Distro. So I would like to know if those steps where the same on all distros. I do not have /etc/rc.sysinit and I did not need it with kernel 2.4 . Is it a new stuff for 2.6 ? or did I make a mistake somewhere ? Could it be in connection with System.map ?

Thanks a lot, if you feel in the mood to help me (well, even if you don't, you deserve already great thanks, sincerely.)

P.S. : I'm sorry, I'm a Frenchy ... I hope my English won't hurt your eyes too much ...

NiKkO_o
 
Old 03-29-2004, 09:52 PM   #2
matthurne
Member
 
Registered: May 2002
Distribution: Fedora Core
Posts: 41

Rep: Reputation: 15
I'm also using Slackware 9.1, except I'm successfully running it with kernel 2.6.4 and all my hotplugging is working fine. Here's some suggestions:

First of all, as far as I know a lot changed with the hotplug system between the 2.4 series and the 2.6 series. So update to the newest hotplug scripts! You can get them here: http://www.kernel.org/pub/linux/utils/kernel/hotplug/

You'll probably also want to make sure you have the sysutils from that same page installed. Udev is absolutely beautiful as well, but that's another story...

I'm not sure whether it will work without sysfs mounted at /sys or not. Either way, sysfs is pretty much essential at least for future-proofing, so you'd best go ahead and get it working whether you need to for this problem or not. Since you're on Slackware, you don't have a rc.sysinit bootscript. That's fine. Maybe it would be best to add a line to your /etc/rc.d/rc.S bootscript, but I just added a line to my /etc/fstab and it works fine. Here's the line to add:
Code:
none             /sys             sysfs       defaults             0   0
You also need to make sure you compiled the right things either into the kernel or as kernel modules. I think that should do it...
 
Old 03-30-2004, 03:46 AM   #3
NiKkO_o
LQ Newbie
 
Registered: Mar 2003
Location: France
Distribution: Slackware 12
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks a lot.

I tried some tricks to see if it could work (I've made this /sys directory and mounted it as a sysfs) and then hotplug seems to work. It launched my wacom module when I plug it, and detect when I plug my USB Key (it launches the usb_storage module) but there are still some errors. Thanks for your help, I'll do as you say, it should surely fix what remains.

Thanks again.

Oh, and if you could say a word about udev, it makes me curious

Last edited by NiKkO_o; 03-30-2004 at 03:49 AM.
 
Old 03-30-2004, 05:24 AM   #4
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
Quote:
Originally posted by NiKkO_o
Oh, and if you could say a word about udev, it makes me curious
You might find this interesting. I followed this HOWTO since I have had some hotplug problems aswell and it works very nice.

http://tldp.org/HOWTO/Flash-Memory-HOWTO/linux-2.6.html
 
Old 04-01-2004, 11:12 PM   #5
zdenkod
LQ Newbie
 
Registered: Feb 2002
Location: Slovenia
Distribution: Slackware 8.0
Posts: 11

Rep: Reputation: 0
H! guys!

I also use Slackware 9.1 & kernel 2.6.4.
Had troubles to manage hotplug to work and not completed yet.

1. hotplug.functions was not in place, so I moved it to the right place. I'm not sure that that file is correct.

2. Two files for hotplug in /etc/hotplug usb.agent and scsi.agent have errors in lines. I discovered that when hotplug returned errors in console stated something like "cat /sys//blablabla directory not exists" NOTE DOUBLE "/" after /sys! I removed "/" before $DEVPATH in scripts, so they look like "$SYSFS$DEVPATH". Now after plugin my usb flash disk nothing is written to console. dmesg returns that I plugged usb flash disk in the system and added new SCSI device with correct parameters. The device
works perfectly.

3. udev DO NOT work. I installed all as stated in kernel 2.6 documentation regarding udev. All compiled/installed OK. Perl script for testing udev completted without errors. When I boot the system there are no errors (kernel boot messages, dmesg and log files). The problem is THAT /udev IS EMPTY and stays empty. When I plugin my usb flash disk /udev stays empty!

I wonder, how udev works. No sripts are added to boot system when I installed udev package. Only udev directory was created in /etc with some files in it.


Can anybody explain, how to correctly install hotplug and udev parts of the system on my Slackware?


Regards

Zdenko
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
speed up hotplug with kernel 2.6.7 robtheJobNorflk Slackware 1 09-29-2004 02:10 PM
kernel 2.6 and hotplug problem kam_kenneth Linux - Hardware 1 05-18-2004 02:43 PM
hotplug + kernel 2.6 kam_kenneth Linux - Newbie 0 05-18-2004 01:26 AM
Firmware/Hotplug problem with Hauppauge DEC2540-T, Hotplug and MythTV bezoomny Linux - Hardware 0 05-17-2004 01:37 PM
havin probs with mandrake 7.2 eagle0669 Linux - Newbie 4 07-29-2001 07:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:38 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration