LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-23-2004, 01:59 PM   #1
d7thstring
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
can't configure my sm56 motorolla modem in fedora inspite of downloading and installi


I am completely new to linux and i tried to install the driver for sm56pci motorolla driver. But still i am unable to activate it. I have fedora installed. THe hardware browser also doesn't show my modem. And I am unable to configure and activate it. Anyone plzz help me step by step or by any means.
 
Old 03-23-2004, 02:29 PM   #2
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Here is a step by step guide I wrote a while back.

# Compiling/installing kernel modules
You will need to have installed:
1. The developmental packages (compiler)
2. The kernel-source code that matches your running kernel
3. The module source or install code

Check out your system and look under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed:
Code:
[fancy@tinwhistle fancy]$ su -
Password:
[root@tinwhistle root]# uname -r
2.4.20-28.7
I am running kernel version 2.4.20-28.7. Do I have the proper source code?
Code:
[root@tinwhistle root]# cd /usr/src
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          136 Jun 12 14:53 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.20-28.7
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.20-28.7
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
I do have the same kernel version source code installed in the directory /usr/src/linux-2.4.20-28.7 and there is a symbolic link named linux-2.4 pointing to it.

If you don't see something similiar to this (but in color), you will need to install the kernel source.

NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need. I may as well make one now to save editing the files in the source code every time I need to compile anything concerning the kernel. So, I'll make that link just now:
Code:
[root@tinwhistle src]# ln -s linux-2.4.20-28.7 linux         
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          160 Jun 12 15:46 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun 12 15:46 linux -> linux-2.4.20-28.7
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.20-28.7
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.20-28.7
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
Ah, there it is, so that's done.

Next, did I install the compiler?
Code:
[root@tinwhistle src]# gcc -v          
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[root@tinwhistle src]#
Yes, I have a compiler installed.

If you don't have those two things installed, you have to install them first off your install CD.

If they are installed, download the source and happy compiling. Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing.

# Guides to software management
LNAG - How do I install a program I downloaded from the Internet?
Rute Guide's software explanation
You might want to check out CheckInstall to manage source code installations/uninstallation

Last edited by fancypiper; 03-23-2004 at 02:33 PM.
 
Old 07-23-2004, 12:26 AM   #3
tux21
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Rep: Reputation: 1
sucess with motorola modem

This is how i made my sm56 pci speakerphone modem work under Fedora core 1.


Warning: U should verify what i am suggesting.Please. I am not a professional linux expert.

What u require:

1. Kernel 2.4.18-14 source from
ftp://ftp.redhat.com/pub/redhat/linux/8.0/en/os/i386/RedHat/RPMS/kernel-source-2.4.18-14.i386.rpm

(I haven't tested redhat 9.0's kernel !!!. Also kernel-2.4.22 won't work. If u are using download managers, message that site
refuses connection might come.Keep on retrying. I used Opera web browser to get to the location
and download accelerator plus to download the 28 MB file. In Internet explorer you are asked
username and password. Try with 'anonymous' and passwd as your email ID. )

2. gcc-2.96-98.i386.rpm and cpp-2.96.98.i386.rpm from
ftp://ftp.redhat.com/pub/redhat/linux/7.2/en/os/i386/RedHat/RPMS/


3. binutils-2.13.90.0.2-2.i386.rpm from
ftp://ftp.redhat.com/pub/redhat/linux/8.0/en/os/i386/RedHat/RPMS/

4. motorola driver sm56-gcc3.tar.gz from www.sm56.tk download section.

Now, u have to remove your gcc, cpp, gcc-objc, gcc-c++, binutils from Fedora core 1 installation.
Use rpm -e --nodeps *.rpm (recheck it !!!)

5. install gcc-2.96-98.i386.rpm, cpp-2.96.98.i386.rpm and binutils-2.13.90.0.2-2.i386.rpm
use rpm -ivh --force *.rpm (recheck it !!!) if required in case of conflicts.

6. Install the source kernel-source-2.4.18-14.i386.rpm. It will be installed in ur /usr/src/ path.


7. If you have previously installed kernel-2.4.18-14, make sure u remove the source folder,also
/lib/modules/linux-2.4.18-14 and related files in /boot .

8. Move to /usr/src/linux-2.4.18-14

now to compile the kernel:

1. make mrproper
2. make xconfig (be sure install the x development pkg from 'add and remove packages')
3. choose the option 'load configuration file' from the X menu. Type /boot/config-2.4.22-1.2115.nptl
4. now choose menu 'loadable module support' and select y in it.
5. choose 'network device support' and chose y in network device support option and also make
ppp related options below it as y or m (preferebly m)
6. I had also disabled the kernel debugging option from menu of kernel hacking.
7. save an exit.
8. do 'make dep' then later 'make modules' then 'make modules_install' (no erro messages should come)
and finally 'make install'. I had got error message at the end step. My initrd.img file for this
kernel was not created, so i did 'mkinitrd /boot/initrd-2.4.18-14custom.img 2.4.18-14custom'
9. Make sure u have vmlinuz, system-map, initrd corresponding to this kernel in /boot .



9. Boot with ur new kernel. Using bootdisk may not be possible as vmlinuz may be big. So use
loadlin by copying the vmlinuz-2.4.18-14custom file to a floppy or dos drive. Or configure grub.

10. While booting u might get unresolved dependencies message for modules. I did 'depmod -a'
and deleted the modules listed (if any).

11. Now untar the sm56-gcc3.tar.gz using 'tar -xvzf sm56-gcc3.tar.gz'. Go to the folder sm56-gcc3.

12. Open the Makefile with an editor. Go to a line like '......./usr/src/linux-2.4/include......' and
convert it to '......./usr/src/linux-2.4.18-14/include......'. Do a 'make' from shell when in this
directory. Then 'make install'. Choose any country code .

13. Open kppp. Set the device at /dev/modem. Then 'Query for modem'. You should get a dialog box
filled with values.

14. From main kppp menu give dialup information and dial.

If you encounter any problems, send it to me at tuxnoel@indiatimes.com. I am a normal Linux user.
not an expert.

I uploaded this page from my modem connected by above method. Thanks to www.sm56.tk and all people
who care to tell others how they get things to work.
 
Old 01-05-2005, 10:29 PM   #4
linux_rulz
LQ Newbie
 
Registered: Sep 2004
Posts: 1

Rep: Reputation: 0
hi
good news fro you

i had the same problem with sm56 driver in fedora. actually had only rh9 driver and it showed up some gpl license related unresolved references. if this is the problem you ve encountered, cheer up. do the following.

login to a terminal as root(have two terminals open)

guess u d have got unres ref for tty_register_driver_SOMECODE and many more unres ref

do the following for all the unres ref u got

cat /proc/ksyms | grep tty_register_driver

u would get an output like so - c01a1f60 tty_unregister_driver_R268ba074

now in the other terminal open the sm56.o driver file ( present usually in /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/char in a hexa editor like khexedit

find the unres ref like the tty_register_driver and others now replace the SOMECODE found in the sm56.o by the one you got form the - cat /proc/ksyms | grep tty_register_driver ie R268ba074

do it for all the unres ref u got

and yo it should work fine
 
  


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
Motorola SM56 PCI Modem Driver for Fedora Core 2(Kernel-2.6.5) ppvinod Linux - Hardware 3 03-22-2005 12:54 PM
How to setup internet connection in RH 9.0 using Internal Modem Motorolla SM56 PCI. atit_vakharia Linux - Networking 3 04-26-2004 05:27 AM
SM56 Motorolla modem drivers... yalanop Linux - Hardware 4 04-14-2004 04:29 PM
motorolla sm56 with Slackware rootbryan Linux - Hardware 2 09-23-2003 06:49 PM
installing motorolla sm56 internal modem garorag Linux - Networking 2 03-10-2002 04:10 AM


All times are GMT -5. The time now is 09:14 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