Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
A How-To for installing SmartLink modem drivers.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
maalth
n00b
n00b


Joined: 06 Jun 2003
Posts: 56
Location: Can't tell you...

PostPosted: Mon Jul 21, 2003 2:05 am    Post subject: A How-To for installing SmartLink modem drivers. Reply with quote

The SmartLink Modems are common on the R series of the IBM ThinkPads. I personally have an IBM ThinkPad R32 (2658-J3U). I will walk through installing the modem. First off, download slmdm-2.7.10.tar.gz from ftp://ftp.smlink.com/linux/unsupported/slmdm-2.7.10.tar.gz. Even though the site says the latest version is 2.7.14; use 2.7.10. Unpack it at the location of your choice (I used /usr/local/src).

Change into the source directory /path/to/slmdm-2.7.10/

From here, I would advise editing the makefile... change this line:
MODULES_CONF:= /etc/modules.conf
to
MODULES_CONF:= /etc/modules.d/modem

Once the line is change, run make. When make is done, you have to type in the proper make install command. This part is VERY IMPORTANT, so pay attention!

If you are using an AMR, CNR, or a PCI modem; type in this line (you MUST be root):

make install-amr

The following modules will be installed in /lib/modules/<kernel version>/misc directory:
slmdm.o (modem core)
slfax.o (fax)
slamro.o (for AMR, CNR, or PCI based modems)

If you are using a USB based modem; then type in this line instead (again MUST be root):

make install-usb

Same as above EXCEPT:
slusb.o is installed in place of slamro.o

You need to do one more thing and then we are all done.

Edit /etc/modules.d/modem
Add the following line:
options slmdm country=USA

That's it. Test it out with wvdial or minicom.

Word of warning, if you ever recompile the kernel, you MUST reinstall the modem drivers again as well as any other drivers you normally have to reinstall (ALSA comes to mind).

Any questions, feel free to contact me.
Back to top
View user's profile Send private message
_jd
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2003
Posts: 130

PostPosted: Wed Feb 18, 2004 10:35 am    Post subject: Reply with quote

this is not true fo kernel 2.6.x...any suggestions?
:D Tanx
Back to top
View user's profile Send private message
maalth
n00b
n00b


Joined: 06 Jun 2003
Posts: 56
Location: Can't tell you...

PostPosted: Wed Feb 18, 2004 3:20 pm    Post subject: Kernel 2.6 Reply with quote

My laptop does not have kernel 2.6. The howto was written for 2.4. I have no intentions of installing 2.6 at this time. If you're not using devfs; you may have to follow another methodology for doing so or you can check the documentation. Or if you feel really brave, try the latest SmartLink driver available on the ftp site. I apologize for not being much more help.
_________________
Screw you guys, I'm going home...
Back to top
View user's profile Send private message
_jd
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2003
Posts: 130

PostPosted: Wed Feb 18, 2004 4:19 pm    Post subject: Reply with quote

I am brave..I've tried slmodem-2.9.6, using alsa support, the modem was recognized but dialing gives me NO CARRIER....
Back to top
View user's profile Send private message
_jd
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2003
Posts: 130

PostPosted: Thu Feb 19, 2004 10:56 am    Post subject: Reply with quote

It does work, with this patch


https://forums.gentoo.org/viewtopic.php?t=132787&highlight=smartlink+modem


:D :D :D
Back to top
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Thu Feb 19, 2004 5:27 pm    Post subject: Reply with quote

Or uh,
Code:
emerge slmodem
Back to top
View user's profile Send private message
cuban
Guru
Guru


Joined: 23 Aug 2003
Posts: 448
Location: Houston, TX

PostPosted: Fri Feb 27, 2004 4:19 am    Post subject: Reply with quote

emerge slmodem doesn't work for me...

Code:

calculon djimenez # emerge slmodem
Calculating dependencies ...done!
>>> emerge (1 of 1) net-dialup/slmodem-2.7.14 to /
>>> md5 src_uri ;-) slmdm-2.7.14.tar.gz
>>> Unpacking source...
>>> Unpacking slmdm-2.7.14.tar.gz to /var/tmp/portage/slmodem-2.7.14/work
RUNNING FROM extra_functions.sh
 * Applying slmodem-2.7.14-makefile-fixup.patch...                                              [ ok ]
>>> Source unpacked.
gcc -O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -I. -I/usr/src/linux/include  -DMODVERSIONS --include /usr/src/linux/include/linux/modversions.h -o amrmo_init.o -c amrmo_init.c
gcc -O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -I. -I/usr/src/linux/include  -DMODVERSIONS --include /usr/src/linux/include/linux/modversions.h -o sysdep_pci.o -c sysdep_pci.c
<command line>:138904599:33824: /usr/src/linux/include/linux/modversions.h: No such file or directory
<command line>:138904599:33824: /usr/src/linux/include/linux/modversions.h: No such file or directory
amrmo_init.c: In function `amr_mod_usage_increase':
amrmo_init.c:232: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/linux/include/linux/module.h:488)
amrmo_init.c: In function `amr_mod_usage_decrease':
amrmo_init.c:236: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/src/linux/include/linux/module.h:500)
amrmo_init.c: In function `amrmo_probe':
amrmo_init.c:264: structure has no member named `name'
amrmo_init.c: In function `amrmo_init':
amrmo_init.c:376: parse error before '{' token
amrmo_init.c: At top level:
amrmo_init.c:386: parse error before '}' token
amrmo_init.c:404: warning: data definition has no type or storage class
make: *** [amrmo_init.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/src/linux/include/linux/irq.h:20,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from sysdep_pci.c:55:
/usr/src/linux/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from sysdep_pci.c:55:
/usr/src/linux/include/linux/irq.h:70: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux/include/linux/irq.h:72,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from sysdep_pci.c:55:
/usr/src/linux/include/asm/hw_irq.h:28: `NR_IRQ_VECTORS' undeclared here (not in a function)
/usr/src/linux/include/asm/hw_irq.h:31: `NR_IRQS' undeclared here (not in a function)
sysdep_pci.c: In function `sysdep_create_bh':
sysdep_pci.c:85: sizeof applied to an incomplete type
sysdep_pci.c: In function `sysdep_request_bh':
sysdep_pci.c:95: `tq_immediate' undeclared (first use in this function)
sysdep_pci.c:95: (Each undeclared identifier is reported only once
sysdep_pci.c:95: for each function it appears in.)
sysdep_pci.c:96: `IMMEDIATE_BH' undeclared (first use in this function)
make: *** [sysdep_pci.o] Error 1

!!! ERROR: net-dialup/slmodem-2.7.14 failed.
!!! Function src_compile, Line 22, Exitcode 2
!!! (no error message)


My machine:
Linux calculon 2.6.2 #6 Thu Feb 12 10:42:46 CST 2004 i686 Intel(R) Pentium(R) M processor 1600MHz GenuineIntel GNU/Linux
_________________
Tell your ISP to support SPF/SASL AUTH (http://spf.pobox.com) today!
Back to top
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Fri Feb 27, 2004 5:55 am    Post subject: Reply with quote

2.7 series doesn't work on 2.6 kernels. Support for proper 2.6 kernel module building isn't really in Gentoo yet, but it's in progress.
Back to top
View user's profile Send private message
woo
n00b
n00b


Joined: 03 Feb 2004
Posts: 6

PostPosted: Sun Mar 14, 2004 9:21 pm    Post subject: Reply with quote

And is there a way to build a slmodem module on the initial part of setup when configing network for example? I mean there're no kernel sources on the system (well, yeah, there's no system in fact) so how can one compile a modem driver?
Back to top
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Sun Mar 14, 2004 9:47 pm    Post subject: Reply with quote

woo wrote:
And is there a way to build a slmodem module on the initial part of setup when configing network for example? I mean there're no kernel sources on the system (well, yeah, there's no system in fact) so how can one compile a modem driver?

slmodem should be on the 2004.0 livecds. You can connect before entering the chroot.

https://bugs.gentoo.org/show_bug.cgi?id=35924

Then after you get a kernel installed, remember to emerge slmodem for your kernel before you restart.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum