LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-04-2004, 01:35 AM   #1
irfanhab
Member
 
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415

Rep: Reputation: 34
/dev/ gets reset after every startup


Hi,


I own a USB modem, which I access in Linux through a driver available from www.smlink.com

I've been using this driver since ages, but now a problem is really bugging me

in Kernel2.6.7 (I used the driver even with this kernel, it worked fine, but now I have a big problem)
the driver sets up devices in /dev/ called slusb0, slusb1, slusb2, slusb3
through these I dial to net, but now everytime I startup linux, these files are deleted, and I have to install the driver anew.
SO I end up installing the driver at every startup.
I dont know why /dev is reset after every start up

OK now another problem has emerged
before using these devices, one goes modprobe slusb, to enable them to be used by kppp etc.
But now when I go modprobe slusb, it goes:
Invalid kernel module format

Even after reinstalling the driver it says tha, great now I can't even reinstall the driver!!!!
I also reinstalled the kernel from /testing, but its the same shit, but this was never happened before.
I'm using the driver in kernel2.4.26 now, any advice?
 
Old 09-04-2004, 02:44 AM   #2
suslik
Member
 
Registered: Jul 2004
Distribution: OpenSuse 10.x
Posts: 262

Rep: Reputation: 30
My version of events:

1. You happily ran 2.4.x with/without hotplug, but NO udev.
2. You played with a new kernel and enabled udev
3. Now, either:
a. Your hotplug doesn't start by itself, or
b. Your hotplug starts but you screwed up choosing right modules.

Tell if this sound about true, and we'll try to compensate.
 
Old 09-04-2004, 01:36 PM   #3
irfanhab
Member
 
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415

Original Poster
Rep: Reputation: 34

Quote:
1. You happily ran 2.4.x with/without hotplug, but NO udev.
Well, I installed Slackware 10, which comes with 2.4.26, now I dont know if that has udev enabled or not.

Quote:
2. You played with a new kernel and enabled udev
True, in a sense, you see the /testing kernel worked fine, but I compiled a custom kernel, which didnt go well at all, but I still did a make modules_install, and make install, after that the kernel behaved unpredictably, even when I reinstalled the /testing kernel.


Quote:
3. Now, either:
a. Your hotplug doesn't start by itself, or
b. Your hotplug starts but you screwed up choosing right modules.
Well I think my hotplug works fine, because I dont have problems with other devices!

Anyway, I reinstalled slack10, but I still want a custom kernel compile for kernel-2.6.7, how should I do it without messing it up again?
 
Old 09-04-2004, 02:03 PM   #4
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 49
Your problem is almost definately udev. When you install the driver, it makes a new device in /dev, right? udev recreatesd the /dev directory everytime you reboot. You will need to make a rule to make that device when you boot up. Sorry I can't be more help, as I'm still learning how to use udev properly. Now you know what you need to look for, though.
 
Old 09-04-2004, 02:53 PM   #5
suslik
Member
 
Registered: Jul 2004
Distribution: OpenSuse 10.x
Posts: 262

Rep: Reputation: 30
Unfortunately, I didn't have a problem with my /dev entries. "Unfortunately" because it didn't give me a reason to learn tweaking hotplug yet.

Look in /etc/hotplug. it has lotsa script. Some of them, I am sure deal with creating /dev entries for hardware hotplug finds. Poke around, and see where you can stick a mkdev slusb0, slusb1, slusb2, slusb3 or something.

In your case, the matters are complicated by one more thing: usbfs. It also has to work. So getting the config of kernel is very important.

EDIT: I just looked at the manufacturer's site, and the installation info here

It seems
1. the modules are for 2.4.x kernels only (they have .o extensions) and
2. there is no "patching" of the kernel, just compiling on the side - System.map is not updated with these modules => no wonder hotplug and udev don't detect it - no hooks in the kernel for it.

Also, the install script does this (once)
Quote:
- create character tty device entry '/dev/ttySL0' with major
number 212 and symbolic link 'dev/modem'.
So, RTFM

Last edited by suslik; 09-04-2004 at 03:05 PM.
 
Old 09-04-2004, 08:36 PM   #6
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
Your problem is that the standard 2.4.26 kernel doesn't use udev ie. all the /dev files are made at install time.
When you installed the 2.6.7 kernel the /dev folder was under control of udev therefore it was cleared a every reboot, all of the unused /dev devices are now missing.

to reinstall these mount your slack10 disk1 and do:
Code:
su
[password]
upgradepkg --reinstall /mnt/cdrom/slackware/a/devs*.tgz
exit
then reboot.
If you are using udev, add any extra devices for to /etc/udev/scripts/make_extra_nodes.sh
"man mknod" if you are not using udev.
 
Old 09-05-2004, 12:37 AM   #7
irfanhab
Member
 
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415

Original Poster
Rep: Reputation: 34
why does udev exists afterall the problems it creates?

I have never had a situation with udev I've been using 2.6.x kernel from
2.6.0, 2.6.1, 2.6.4, 2.6.5, 2.6.6, and than the /testing 2.6.7

All the previous kernels were compiled from source and I never had a problem until now.
What triggered udev to recreate /dev/ upon startup?
 
Old 09-05-2004, 05:35 AM   #8
suslik
Member
 
Registered: Jul 2004
Distribution: OpenSuse 10.x
Posts: 262

Rep: Reputation: 30
Quote:
Originally posted by irfanhab
why does udev exists afterall the problems it creates?
All the previous kernels were compiled from source and I never had a problem until now.
What triggered udev to recreate /dev/ upon startup?
The UDEV is an option in kernel config. Either you:
a. did not enable it before when you config'ed the kernel, or
b. It is a glitch in 2.6.8.1 that affects your particular hardware.
c. you did not compile the drivers for you modem correctly this time.

Why the hell did you switch to 2.6.8.1 if other recent 2.6.x work fine? I know why I switched, Bluetooth was finally merged in at 2.6.8. You, seems, can easily go back to even the 2.6.7 shipped with Slack (CD2, /testing folder) It's not that old, and I liked it a lot. Just do that, and follo what Tuttle suggested.

Last edited by suslik; 09-05-2004 at 05:39 AM.
 
Old 09-05-2004, 07:52 AM   #9
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
Quote:
Originally posted by suslik
The UDEV is an option in kernel config. Either you:
a. did not enable it before when you config'ed the kernel, or
b. It is a glitch in 2.6.8.1 that affects your particular hardware.
c. you did not compile the drivers for you modem correctly this time.

Why the hell did you switch to 2.6.8.1 if other recent 2.6.x work fine? I know why I switched, Bluetooth was finally merged in at 2.6.8. You, seems, can easily go back to even the 2.6.7 shipped with Slack (CD2, /testing folder) It's not that old, and I liked it a lot. Just do that, and follo what Tuttle suggested.
Irfanhab, if you go back to 2.4.26 you can copy your 2.4.26 setup from /proc/config.gz and the use that to "make oldconfig" on any newer kernels, this will give you the same setup as you originally had and will only prompt you for any new kernel features.

edited for wrongness!

Last edited by Tuttle; 09-05-2004 at 07:55 AM.
 
Old 09-05-2004, 12:44 PM   #10
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,143

Rep: Reputation: 322Reputation: 322Reputation: 322Reputation: 322
Udev exists because device file naming and numbering has grown to be an awful pain (or so I understand) and devfs (an old way of managing /dev that worked from within the kernel) was problematic for its own set of reasons. There's a little more info in the udev FAQ.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 08:11 PM
/dev/sound/* permissions reset using udev ratman96 Linux - General 0 05-04-2005 02:13 PM
/dev keeps getting reset Smile005 Slackware 4 08-23-2004 06:18 AM
/dev/dvb is gone at startup, how to make it read only ? K@rl` Linux - General 2 08-02-2004 10:17 AM
/dev/dsp error upon startup? guitarnix Linux - Hardware 1 11-27-2003 07:52 PM


All times are GMT -5. The time now is 04:16 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration