FC4 problems compiling the smartlink modem driver on a toshiba satellite
FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi osvaldomarques. thanks for ur help so far
I did what u taught me, now i am getting to know the vi, but if i moved the line 1701 to 1698
the screen shows many errors even more than before.
and What i think probably i didnt install the full kernel source.
i check /lib/modules/kernel-headers-2.6.15-1.2054_FC5/build/
i can find nothing in /build/ folder..
Crazy 4 installing the driver ......... HoHo.
so if the problem about Kernel. do I need to install full kernel source?
Of course, if you didn't install the kernel headers, you will have trouble for sure. To check if you have it installed, type
Code:
rpm -qa | grep kernel
This command will list the rpm database and report all the packages with "kernel" word on its name. If you see "kernel-header" or "kernel-source", you already has it installed.
One other thing, the most important compiler error messages are the first ones. I guess there was pages and pages of error and you showed the last one. For you keep all the messages, use the following command to put all of them in a file for late reading
Code:
make 2>&1 | tee /tmp/compile-result.txt
With this command, the messages will be presented on the screen during compilation and will be saved on the file "/tmp/compile-result.txt". Then you can examine it and/or post it for discussion (the suggested file name may be changed).
from the result it seems i havent installed the kernel headers yet..
so i suppose i need to install the full source 1st, and then to try install driver again.
Am i right?
thus, i am going to find some tuts to learn how to install the Kernal, and i knew the Kernel resource can be found from the DVD which one i used for installing the FC5.
hopelly everything will be going well........
although it makes me crazy now, exciting to learn from you and some tuts.
You really don't need the full kernel source for this task. Kernel header is enough. However, it's much more fun on the full source as you can go into the mysteries of a modern OS. Using "vi", you can learn how and why your machine does what it does. It's a long journey; you are starting with the first steps.
Well, to install it, once you find the path, all you have to type is:
Do you have a 64 bit machine? Wow! If it's the case, install the "cman-kernheaders", the first on your list. Otherwise, if your machine is a 32 bits, you need to download the same package for "i386" or "i686".
By the way, for you see the current kernel version running on your machine, type:
The tee command is a pipe derivation; it gets its standard input, writes it to the file specified as a parameter and also sends to its standard output. Its purpose is to save the output of a program and release the same content to the standard output. Its name is inspired in the "T" of hydraulic plumbing. It is not designed as a pager.
I guess what you want is "less" which is a pager more sophisticated than "more" as it accepts PgUp, PgDn, etc.
So, to view the file in your example, type
Code:
less /tmp/1.txt
By the way, to quit the "less" command, press "q".
WOW!osvaldomarques
u replied me so fast!
I really appreciate your help.
and i installed the <cman-kernheaders-2.6.15.1-0.FC5.16.x86_64>
succeed to install.
but i was still failed to install the modem driver.
I command "make KERNEL_DIR=/lib/modules/2.6.15-1.2054_FC5/"
then the errors info what i got.
Quote:
make -C modem all
make[1]: Entering directory `/slmodem-2.9.10/modem'
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem.o -c modem.c
modem.c: In function ‘modem_reset’:
modem.c:1701: error: invalid storage class for function ‘sregs_init’
modem.c:1713: warning: implicit declaration of function ‘sregs_init’
modem.c: At top level:
modem.c:1727: error: static declaration of ‘sregs_init’ follows non-static declaration
modem.c:1713: error: previous implicit declaration of ‘sregs_init’ was here
make[1]: *** [modem.o] Error 1
make[1]: Leaving directory `/slmodem-2.9.10/modem'
make: *** [modem] Error 2
As same as before i showed......
Thats important for me to connect the internet under linux.
if i cant, i can do nothing under linux, i always need to switch Winxp.
but right now what i am thinking if i should give it up!!
btw, i followed the installation structure
Quote:
OS: Linux 2.4. You need the kernel header files at least (or full kernel
source tree) installed and configured.
Linux 2.6. You need the full kernel source tree installed and configured.
Note: Most Linux Distributions have 'ready to use' kernel source package -
be sure that this is installed.
Installation
============
1. Unpack tar.gz package file:
$ gzip -dc slmodem-2.9.X.tar.gz | tar xf -
2. 'cd' to package directory:
$ cd slmodem-2.9.X
3. Review and edit 'Makefile' (if need):
In many cases you will need to correct path to your local kernel
source tree:
KERNEL_DIR=/path/to/linux
Default KERNEL_DIR is '/lib/modules/<kerne-version>/build'. Many Linux
Distributions use directory '/usr/src/linux-<version>' also.
Note: If you are using Linux kernel 2.4, only header files should be
available for build in $(KERNEL_DIR)/include
Another way to pass right value KERNEL_DIR is to use command line
parameter while running 'make':
$ make KERNEL_DIR=/path/to/linux ...
4. Run 'make' command to compile package:
$ make
5. Install. As 'root' user run:
# make install
It will install:
- application 'slmodemd' under '/usr/sbin' directory
- hardware specific drivers (kernel modules) 'slamr' and 'slusb'
under conventional kernel modules directory
- character device nodes '/dev/slamr0-3' with major number 212
(for pci modems) and '/dev/slusb0-3' with major number 213
(for usb modems).
- config modules for autoloading (by editing file '/etc/modules.conf')
(only with 2.4 kernels)
6. Config modem country.
Use AT+GCI=<T.35 country code> command to setup country.
Also you can setup default modem country by passing command line
parameter '--country=MY_COUNTRY' to program 'slmodemd'.
See output of 'slmodemd --countrylist' for a list of supported
country names and T.35 country codes (see also 'slmodemd --help').
Note: Command ATI7 shows currently installed country setting.
8. Uninstallation.
In package directory just type:
# make uninstall
ANd now i choked ..............
also i cannot find kernel-headers"filenames.o" even i have installed..
anyway, I really appreciate your help so far
very helpful.
I used the scanModem tool today.
the report tells me that:
Quote:
The kernel was assembled with compiler: 4.1.0
with current System compiler GCC=4.1.0
-------------
Found make utility.
-------------
Checking for kernel-headers needed for compiling.
Kernel-header resources needed for compiling are not manifestly ready!
FedoraCore4 kernel-devel-2.6.15-1.2054_FC5 or kernel-smp-devel-2.6.15-1.2054_FC5 on install CD1 or CD4
One of which must be installed if compiling drivers to match kernel 2.6.15-1.2054_FC5 proves necessary.
Hi NAC,
For some reason, I didn't receive notification of your last posts. Today I checked the thread and found your last 2 posts.
Well, for some reason, Fedora/RH decided to change the name of the kernel-header package to kernel-devel so you should install it from your dvd.
On the other hand, you should try the alsa gpl'ed drivers which comes with the kernel. You still need to compile the "slmodemd", however you will use a proper kernel compiled module to drive your modem.
I had the same problem with slmodem-2.9.11-20051101.tar.gz and FC5.
I tried many patches and ideas for editing the modem.c and other files, but nothing worked.
Finally I decided to delete all the "usb" references of the Makefile (my modem is a PCI) and it worked, I could connect to the Internet and all the other things.
Now the problem is that I have to do a "make install-drivers" every time I reboot my PC. Otherwise when I run:
Code:
slmodemd --country=SPAIN /dev/slamr0
I got an error saying it cannot open /dev/slamr0 (no such device or directory).
They said I must do a "depmod -aq" after running "make install-drivers". I did it but it didn't worked.
Now I added to my rc.local:
Code:
cd /root/slmodem-2.9.11-20051101
make install-drivers
modprobe slamr
sleep 5
slmodemd --country=SPAIN /dev/slamr0 &
ln -s /dev/ttyS0 /dev/modem
clear
It work without problem and I can surf the net.
But I'm sure it's not the right way!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.