LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices


Reply
  Search this Thread
Old 05-12-2007, 07:57 PM   #1
Frank_v7
LQ Newbie
 
Registered: Aug 2006
Location: White Mountains - Arizona USA
Distribution: MEPIS 6.5.02
Posts: 28

Rep: Reputation: 15
Question Intel536ep modem lost on reboot


On my MEPIS 6.5.02 fresh install I use Synaptic to install the Intel536ep modules for Linux (kernel 2.6.15-27-desktop). It installs and is listed in /lib/modules/2.6.15-27-desktop/misc as "Intel536.ko". It won't show up in /dev until I use insmod to install it like this:

frank@1[~]$ su
Password:
root@1[frank]# cd /lib/modules/2.6.15-27-desktop/misc
root@1[misc]# insmod Intel536.ko
root@1[misc]# ln -s /dev/536ep /dev/modem
ln: creating symbolic link `/dev/modem' to `/dev/536ep': File exists
root@1[misc]#

Then I am able to configure it with KPPP and the modem works. Unfortunately it disappears on reboot or restart and I have to run insmod to get it working again. Is this a "bug" or am I just doing something wrong? I have also gone through this procedure as "root" and the same thing happens.
 
Old 05-13-2007, 06:22 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
On all but the most 'standard' distros, the average 536ep driver installation is not able to properly install the startup scripts needed to set up the driver after reboot.
There are a number of ways around this, most of which are a different means to the same end. Here's the way I do it: in my /etc/rc.local file, I have the following lines:
Code:
KERNEL=`uname -r`
if [ -e /lib/modules/$KERNEL/kernel/drivers/char/Intel536.ko ]; then
	modprobe Intel536
	ln -s /dev/536ep0 /dev/modem
	mknod /dev/ppp c 108 0
fi
Though you could have this in almost any one of your init scripts. What it does, is:
1 - checks if the 536ep module exists in lib/modules
2 - if it does, insert it, then create the /dev/modem symlink to it's device node, and finally create the /dev/ppp node required for the pppd to function.

I'm not sure what init system Mepis uses (either SystemV or BSD style or what..) but this idea should work for pretty much any linux.
Looks like you would need to adjust the path within /lib/modules, as yours is in /misc, whereas mine is in /char.
Also, if your /dev/modem and /dev/ppp nodes are already there, you can omit that part.

NOTE: 'insmod' is for 2.4 kernels, while 'modprobe' is for 2.6 kernels.

Last edited by GrapefruiTgirl; 05-13-2007 at 06:26 PM.
 
Old 05-14-2007, 08:56 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Cool! There is an /etc/rc.local on my MEPIS 6.0 box.

This is a welcome move toward standardization -- there isn't one on my MEPIS 3.3.2 box.

Does anyone know a link to a source that lists the /etc/rc.local equvalents for the various distros? Especially 1 that charts changes between vers.
 
Old 05-14-2007, 04:32 PM   #4
Frank_v7
LQ Newbie
 
Registered: Aug 2006
Location: White Mountains - Arizona USA
Distribution: MEPIS 6.5.02
Posts: 28

Original Poster
Rep: Reputation: 15
Talking Problem Solved

Update! I compared my /etc/modprobe.d/intel536 file from 6.5 with 6.5.02 and found there was a difference. I corrected the file to: "install Intel536 /sbin/modprobe --ignore-install Intel536 && /usr/sbin/hamregistry &" and it seems to have solved the modem disappearing. The missing part of the file was "--ignore". My 536ep survives reboots. I still had to install it manually, but that's "close enough for government work". Thanks for the suggestions.
 
Old 05-15-2007, 01:31 PM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
You're welcome -- not that my post contributed very much.

And thanks for posting the solution -- both because it let's us know you were helped, but also because it records the fix for the next person.
 
  


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
intel536ep modem pcandpc Linux - Hardware 3 06-04-2006 02:11 AM
Intel536ep modem anjum Ubuntu 3 08-11-2005 02:14 AM
Intel536ep modem: i am just about there anjum Linux - Software 1 08-01-2005 06:58 AM
Intel536EP Modem matarodi Linux - Hardware 0 07-21-2005 05:44 AM
Lost mouse after reboot+lost modem BACTRATE Mandriva 3 04-07-2005 06:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS

All times are GMT -5. The time now is 04:35 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
Open Source Consulting | Domain Registration