LinuxQuestions.org
Visit Jeremy's Blog.
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 12-13-2003, 10:03 PM   #1
Great Mister
LQ Newbie
 
Registered: Dec 2003
Location: San Diego
Distribution: Mandrake 9.2
Posts: 9

Rep: Reputation: 0
Unhappy How do i get a 56k modem to work??


I just installed Mandrake Linux 9.2 a few days ago, most of it works fine exept that i cant connect to the internet.

After installing the modem drivers the readme said to run " hsfconfig ". I did, and the following message showed:

[root@localhost root]# hsfconfig
Linux HSF softmodem drivers, version 4.06.06.02

No pre-built HSF modules are available for your exact kernel:
Linux-2.4.22-10mdk-i686-Mandrake-9.2-MODVERS

Assuming that a C compiler and proper kernel header files are present
on your system, we will now attempt to re-compile the modules.

Where is the directory of C header files that match your running kernel?
[/lib/modules/2.4.22-10mdk/build]

I was told to install the kernel source files and "GCC" and type /usr as the source folder.

after running hsfconfig again, i got the following error:

rm -f *.o
make[1]: Entering directory `/usr/lib/hsf/modules/osspec'
rm -f *.o
make[1]: Leaving directory `/usr/lib/hsf/modules/osspec'
make -C osspec all
make[1]: Entering directory `/usr/lib/hsf/modules/osspec'
* Compiling osmemory.c
In file included from ../../modules/osspec/include/oscompat.h:59,
from osmemory.c:51:
"================================================ /usr/include/linux/version.h:2:2: #error ======="
#error "You should not include /usr/include/{linux,asm}/ header"
#error "files directly for the compilation of kernel modules."
#error ""
#error "glibc now uses kernel header files from a well-defined"
#error "working kernel version (as recommended by Linus Torvalds)"
#error "These files are glibc internal and may not match the"
#error "currently running kernel. They should only be"
#error "included via other system header files - user space"
#error "programs should not directly include or"
#error " as well."
#error ""
#error "To build kernel modules please do the following:"
#error ""
#error " o Have the kernel sources installed"
#error ""
#error " o Make sure that the symbolic link"
#error " /lib/modules/`uname -r`/build exists and points to"
#error " the matching kernel source directory"
#error ""
#error " o Now copy /boot/vmlinuz.version.h to"
#error " /lib/modules/`uname -r`/build/include/linux/version.h"
#error ""
#error " o When compiling, make sure to use the following"
#error " compiler option to use the correct include files:"
#error ""
#error " -I/lib/modules/`uname -r`/build/include"
#error ""
#error " instead of"
#error ""
#error " -I/usr/include/linux"
#error ""
#error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2:
In file included from osmemory.c:51:
../../modules/osspec/include/oscompat.h:71:41: missing binary operator before '>='
../../modules/osspec/include/oscompat.h:75:41: missing binary operator before '<'
../../modules/osspec/include/oscompat.h:152:40: missing binary operator before '<'
../../modules/osspec/include/oscompat.h:157:40: missing binary operator before '<'
make[1]: *** [osmemory.o] Error 1
make[1]: Leaving directory `/usr/lib/hsf/modules/osspec'
make: *** [osspec] Error 2

I really dont know what this means or what to do next. Any help would be appreacited. Please try to explain in simple terms since i barely know anyting about linux
Thanks in advance.
 
Old 12-14-2003, 04:09 AM   #2
stuNNed
Member
 
Registered: Aug 2003
Distribution: Gentoo/Ubuntu
Posts: 134

Rep: Reputation: 15
hsfconfig should find the default paths needed and choosing them should work fine
 
Old 12-14-2003, 04:41 AM   #3
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
First up you should see if the kernel headers version matchs the running kernel.

Then you should remove any old HSF modem drivers, either manually or by running "rpm -e hsflinmodem" or "make uninstall" if using the RPM or tar versions of this package respectively. I had similar probs getting the RPM version to work, but the tar.gz version worked fine. I believe the latest versions are "speed locked" to 14.4k, but you can download an older version here . This is not "speed locked". To install, run this as root:
Code:
1. extract the package with "tar -xzf hsflinmodem-{version}.tar.gz"

2. change to the package directory with "cd hsflinmodem-{version}"

3. run "make install" from the top of the package directory.

4. run "hsfconfig" to complete the installation and configure your modem.
That should get it all working.

HTH
Baldrick
 
Old 12-14-2003, 06:21 AM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
do you have the kernel source installed ???

one annoying thing about the hsf drivers, is they check for existing kernel wource by
looking for the kernels version.h file.
this header file is created dureing the configure (and maybe compile) of the kernel.
so if u installed your kernel from rpm, and downloader the kernel source (without compiling it) there will be no version.h file and therefore the scripts think there is no kernel source.

but yeah, i couldnt get the rpm to work for me,
i had to use source. which is annoying (because of the version.h thing mentioned above)

anyway, what distro are you using ?
if you are using redhat 9 with kernel 2.4.20-8 then i have the RPM to match that kernel... email me (the older non speed ocked version )
 
Old 12-14-2003, 06:26 AM   #5
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Quote:
I was told to install the kernel source files and "GCC" and type /usr as the source folder.
i SERIOUSLY dobt that your kernel source is in /usr/

my kernel source is in
/usr/src/linux-2.4/

which is a symbolic link the the exact 2.4 kernel version in that same folder
maybe you dont have the symbolic link, but /usr is not your kernel source directory...

when i compiled, i sued the default location (as told by hsfconfig in the square brackets)

in your case
/lib/modules/2.4.22-10mdk/build
 
Old 12-14-2003, 12:09 PM   #6
Great Mister
LQ Newbie
 
Registered: Dec 2003
Location: San Diego
Distribution: Mandrake 9.2
Posts: 9

Original Poster
Rep: Reputation: 0
I am running mandrake 9.2 , the one that comes with 4 cds. On CD 1 there are 5 RPMS that are named "kernel-blabla.rpm " but i am not sure wich one to use, so im listing them here:

kernel2.4-marcelo-2.4.22-1mdk.i586.rpm
kernel-2.4.22.10mdk-1-1mdk.i586.rpm
kernel-enterprise-2.4.22.10mdk-1-1mdk.i586.rpm
kernel-i686-up-4GB-2.4.22.10mdk-1-1mdk.i586.rpm
kernel-p3-smp-64GB-2.4.22.10mdk-1-1mdk.i586.rpm
kernel-secure-2.4.22.10mdk-1-1mdk.i586.rpm
kernel-smp-2.4.22.10mdk-1-1mdk.i586.rpm

I already tried installing the first two but it didnt work.

on the /usr/src/ folder there is only a RPMS folder with other folders that are empty too.

The link above to download the older non locked drivers doesnt work.

Also, couldd you explain what is a symbolic link and how to make them?

Thanks
 
Old 12-14-2003, 07:04 PM   #7
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
symbolic links are like shortcuts in windows... its somthing which points to a file or folder.
the command to make a symbolic link is ln..
ln -s /taget/name /link_label

will create a symbolic link to name in dir target and call it link_label.

but you dont need a symbolic link, its just some distro's create them, so was letting you know what to expect.

anyway, yeah thats strange.. there are alot of kernel rpm's there.
does mandrake not have a graphical tool for installing RPM's ?
redhat does, and there is an option to install kernel source, its in the delelopment dection.

what you say it didnt work,
what do you mean by 'it' ????

you have to be more descriptive, i dont know if you mean the hsf lin modem would not compile, o wether the rpm's would not install, or wether you had some missing dependency's or what.

and you need to post error messages. they may not mean anything to you, but they will mean sumthing to someone. and tell them what you need to do.

but one thing to make sure of, (cos many newbs make this mistake)
have you correctly identified your modem as a hsf connexant modem ???
the way i did this was to write down the chip code on the connexant chip on the modem, and matched it up againsed the table on linmodems.com

anyway, from what u have said, it looks like you need to install the kernel source.

if you cant work out how to get the kernel installed from those rpm's
you can download it tar.gz'ed from kernel.org
which may prove tp be easyer.
 
Old 12-15-2003, 05:41 AM   #8
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
Quote:
Originally posted by Great Mister
I am running mandrake 9.2 , the one that comes with 4 cds. On CD 1 there are 5 RPMS that are named "kernel-blabla.rpm " ....
The kernel source should be on the 3rd CD.

Baldrick
 
Old 12-15-2003, 03:33 PM   #9
Great Mister
LQ Newbie
 
Registered: Dec 2003
Location: San Diego
Distribution: Mandrake 9.2
Posts: 9

Original Poster
Rep: Reputation: 0
The source is on the 3rd CD??
Thats strange, i already searched for it using RPMdrake.
Under what name is it?
I got the feeling that this will solve the problem.

The website hosting the old unlocked drivers seems to be down for me, it just never finished loading.
 
Old 12-16-2003, 05:05 AM   #10
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
It should be under the name kernel-source-2.4.22.10mdk-1-1.i586.rpm (or something like that). As I said it should be on the 3rd CD, but 9.2 might have put it on another CD. I recall that the download edition didn't have it at all when it was first released.

Baldrick
 
Old 12-16-2003, 07:09 AM   #11
toastermaker
Member
 
Registered: Oct 2003
Location: coastal alabama, united states
Distribution: Mandrake 10.0 official, slackware 9.1
Posts: 219

Rep: Reputation: 30
If it turns out kernel source wasnt included with your 4 cd set, this is where I got my kernel source.
You would need to pick your correct kernel source

[QUOTE]Originally posted by timdsmith
[B]go here: ftp://mirrors.secsup.org/pub/linux/m...ates/9.2/RPMS/

I think the 5 rpms named kernel blablabla.. are precompiled kernels for differing installations.

Last edited by toastermaker; 12-16-2003 at 07:22 AM.
 
Old 12-16-2003, 03:15 PM   #12
Great Mister
LQ Newbie
 
Registered: Dec 2003
Location: San Diego
Distribution: Mandrake 9.2
Posts: 9

Original Poster
Rep: Reputation: 0
OK, i dowloaded the soure kernel from that link, but it turns out that now i have to reinstall cause there is a whole bunch of stuff that fails to load when the computer is booted, annoying.

After reintalling Mdk and the kernel source, the modem now compiles fine! Thanks for that link.

Does anyone know how to improve the performance of the modem? when i use it with windows xp i get 45kb-50kb but in linux i get 30-35.

And whoever had the bright idea of not including the kernel source on the download edition should get kicked in the balls.
 
Old 12-16-2003, 03:29 PM   #13
toastermaker
Member
 
Registered: Oct 2003
Location: coastal alabama, united states
Distribution: Mandrake 10.0 official, slackware 9.1
Posts: 219

Rep: Reputation: 30
You are welcome for the link,
someone else will have to take it from here as I only just graduated from " Biggest moron idiot newbie " to " Idiot newbie "
Wish I knew more so I could help more - someday I will.

Best of luck
 
Old 06-09-2004, 04:38 PM   #14
Timer
LQ Newbie
 
Registered: Jun 2004
Location: Catalonia
Distribution: Gentoo
Posts: 25

Rep: Reputation: 15
If anybody reads this later, it will be interesting for him to know that the link where to find the kernel sources has changed to:

ftp://mirrors.secsup.org/pub/linux/m...ates/9.2/RPMS/
 
  


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
BCM4212 v.90 56k modem DON'T work in Red hat 9 Pisces107 Linux - Hardware 1 08-12-2007 06:24 PM
Need help getting a US Robotics 56k external modem to work Earl Parker II Linux - Hardware 5 12-11-2005 11:48 AM
Getting 56k modem to work with SUSE 10 al2cane SUSE / openSUSE 4 10-21-2005 05:41 AM
Will USR Sportster 56k Data Fax ISA modem work with linux? andrewstr Linux - Hardware 24 02-23-2004 10:52 PM
aztech 56k modem and sis7018 sound card dontt work at all chiragw Linux - Newbie 5 09-04-2001 01:02 AM


All times are GMT -5. The time now is 07:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration