LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-10-2006, 11:30 PM   #31
NAC
Member
 
Registered: May 2006
Location: mm........
Distribution: FC6 + Gentoo >/ x86_64
Posts: 132

Rep: Reputation: 15

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.

Pic at here

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?

thx in adv.
 
Old 05-11-2006, 01:44 AM   #32
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi NAC,

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).
 
Old 05-11-2006, 01:57 AM   #33
NAC
Member
 
Registered: May 2006
Location: mm........
Distribution: FC6 + Gentoo >/ x86_64
Posts: 132

Rep: Reputation: 15
thank you very much, osvaldomarque.
i appreciate ur kindly response.
 
Old 05-11-2006, 09:54 AM   #34
NAC
Member
 
Registered: May 2006
Location: mm........
Distribution: FC6 + Gentoo >/ x86_64
Posts: 132

Rep: Reputation: 15
HI osvaldomarques.
I did this command
Quote:
rpm -qa | grep kernel
then what i got
Quote:
kernel-2.6.15-1.2054FC5,
grep-2.5.1-52.2
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.


btw, I found a new version of Kernel, to share with you.
kernel v2.6-linux-2.6.16.15

Last edited by NAC; 05-11-2006 at 10:04 AM.
 
Old 05-11-2006, 11:30 AM   #35
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi NAC,

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:
Code:
rpm -ivh <path-to-the-package>
For example:
Code:
rpm -ivh /mnt/cdrom/.../.../kernel-v2.6-linux-2.6.16.15.rpm
 
Old 05-11-2006, 07:39 PM   #36
NAC
Member
 
Registered: May 2006
Location: mm........
Distribution: FC6 + Gentoo >/ x86_64
Posts: 132

Rep: Reputation: 15
Thanks osvaldomarques your help is very helpful.

and i commanded
Quote:
ivh /mnt/cdrom/.../.../kernel-v2.6-linux-2.6.16.15.rpm
it tells me kernel-v2.6-linux-2.6.16.15 has already installed.
and i did again
Quote:
rpm -qa | grep kernel
it does not tell me if kernel-headers is installed or not.
So i am confused

I found some .RPM files called kernelheaders store in my DVD

Quote:
cman-kernheaders-2.6.15.1-0.FC5.16.x86_64
dlm-kernheaders-2.6.15.1-0.FC5.14.x86_64
GFS-kernheaders-2.6.15.1-5.FC5.17.x86_64
glibc-headers-2.4-4.x86_64
glibc-kernheaders-3.0-5.2.x86_64
gnbd-kernheaders-2.6.15-5.FC5.23.x86_64
Do I need to install one of these?

thx a lot

Last edited by NAC; 05-11-2006 at 09:58 PM.
 
Old 05-11-2006, 08:52 PM   #37
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
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:
Code:
uname -r
or
Code:
uname -a
 
Old 05-11-2006, 09:57 PM   #38
NAC
Member
 
Registered: May 2006
Location: mm........
Distribution: FC6 + Gentoo >/ x86_64
Posts: 132

Rep: Reputation: 15
thanks for ur timely response

yep, mine is 64bit PC.
this command
Quote:
uname -r
just shows Kernel version, i tried once but not shows the Kernel-headers info.

yes!i install it right now.
and may i know how to quit from <tee> command, today i used the tee command for practice.
Quote:
tee /tmp/1.txt
but i cannot quit.

and i checked the help for tee
http://www.linuxdevcenter.com/linux/...csp?path=t/tee

but doesnt mention how to quit.


Thanks SO MUCH

brb

Last edited by NAC; 05-13-2006 at 12:58 AM.
 
Old 05-11-2006, 10:22 PM   #39
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi NAC,

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".
 
Old 05-11-2006, 11:09 PM   #40
NAC
Member
 
Registered: May 2006
Location: mm........
Distribution: FC6 + Gentoo >/ x86_64
Posts: 132

Rep: Reputation: 15
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.
 
Old 05-12-2006, 07:46 AM   #41
NAC
Member
 
Registered: May 2006
Location: mm........
Distribution: FC6 + Gentoo >/ x86_64
Posts: 132

Rep: Reputation: 15
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.
actually, i have installed .........confused
 
Old 05-16-2006, 04:05 AM   #42
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
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.
 
Old 05-17-2006, 09:38 AM   #43
goossen
Member
 
Registered: May 2006
Location: Bayern, Germany
Distribution: Many
Posts: 224

Rep: Reputation: 41
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!

Any ideas ?

Last edited by goossen; 05-17-2006 at 09:43 AM.
 
Old 05-20-2006, 09:27 AM   #44
NAC
Member
 
Registered: May 2006
Location: mm........
Distribution: FC6 + Gentoo >/ x86_64
Posts: 132

Rep: Reputation: 15
HI osvaldomarques thx 4 ur replies so far.
I still work on how to make my modem works.
KeKe.

Regards.
 
  


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
Toshiba Satellite Smartlink Modem FC3 phishphan420 Linux - Hardware 3 01-16-2006 09:32 PM
Can anyone help me get my ATI driver working on Toshiba Satellite A60 corstar Linux - Hardware 0 09-27-2005 01:59 PM
Toshiba Satellite 1135 modem driver Syringe Linux - Laptop and Netbook 0 07-27-2004 10:48 AM
Toshiba Satellite 1115SP135 Modem Gerardo Linux - Laptop and Netbook 4 01-26-2004 10:47 PM
compiling SmartLink modem driver problem bugyugo Linux - Laptop and Netbook 1 07-23-2003 09:42 AM

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

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