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 :confused: Thanks in advance. |
hsfconfig should find the default paths needed and choosing them should work fine
|
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" HTH Baldrick |
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 ;)) |
Quote:
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 |
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 |
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. |
Quote:
Baldrick |
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. |
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 |
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. |
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. |
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 |
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/ |
All times are GMT -5. The time now is 02:39 AM. |