LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   hsf modem issues (https://www.linuxquestions.org/questions/linux-hardware-18/hsf-modem-issues-318620/)

Mr_C 04-30-2005 12:42 AM

hsf modem issues
 
Code:

root@SOL:/tmp/hsfmodem-7.18.00.03full# hsfconfig
Conexant HSF softmodem driver, version 7.18.00.03full

If you need license keys, assistance or more information, please go to:
        http://www.linuxant.com/

When reporting a problem for the first time, please send
us the file generated by "hsfconfig --dumpdiag".

Warning: existing driver modules found under:
        /lib/modules/2.6.11.6/
Would you like to keep using them? [no]

No pre-built modules for: Slackware-Slackware linux-2.6.11.6 i686

Trying to automatically build the driver modules...
(this requires a C compiler and proper kernel sources to be installed)

Where is the linux source build directory that matches your running kernel?
[/lib/modules/2.6.11.6/build]

Building modules for kernel 2.6.11.6, using source directory
/lib/modules/2.6.11.6/build. Please wait...
done.

ERROR: hsf driver not active
root@SOL:/tmp/hsfmodem-7.18.00.03full#


ok fine I'm looking for the modules now

Code:

root@SOL:/tmp/hsfmodem-7.18.00.03full# lsmod | grep hsf
root@SOL:/tmp/hsfmodem-7.18.00.03full#

they're not there so I checked the /lib for modules and found them

Code:

root@SOL:/tmp/hsfmodem-7.18.00.03full# ls /lib/modules/2.6.11.6/extra/ 
hsfengine.ko  hsfmc97ali.ko  hsfmc97ati.ko  hsfmc97ich.ko  hsfmc97sis.ko  hsfmc97via.ko  hsfosspec.ko  hsfpcibasic2.ko  hsfserial.ko  hsfsoar.ko  hsfusbcd2.ko
root@SOL:/tmp/hsfmodem-7.18.00.03full#

try loading them failed

Code:

root@SOL:~# insmod /lib/modules/2.6.11.6/extra/hsfengine.ko
insmod: error inserting '/lib/modules/2.6.11.6/extra/hsfengine.ko': -1 Invalid module format
root@SOL:~#


Help.

fancypiper 04-30-2005 01:06 AM

Pull out the winmodem, place in file 13. Then buy a cheap, external serial port modem. That is my recommended headache relief....

Hang on to your hat:

Some guides to common tasks asked about here.
# Compiling/installing kernel modules
You will need to have installed:
1. The developmental packages (compiler)
2. The kernel-source code that matches your running kernel
3. The module source or install code

Check out your system and look under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed:
Code:

[fancy@tinwhistle fancy]$ su -
Password:
[root@tinwhistle root]# uname -r
2.4.20-28.7

I am running kernel version 2.4.20-28.7. Do I have the proper source code?
Code:

[root@tinwhistle root]# cd /usr/src
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root    root          136 Jun 12 14:53 .
drwxr-xr-x  16 root    root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root    root          14 Jun  4 12:11 linux-2.4 -> linux-2.4.20-28.7
drwxr-xr-x  16 root    root          584 Jun  4 12:11 linux-2.4.20-28.7
drwxr-xr-x    7 root    root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#

I do have the same kernel version source code installed in the directory /usr/src/linux-2.4.20-28.7 and there is a symbolic link named linux-2.4 pointing to it.

If you don't see something similiar to this (but in color), you will need to install the kernel source.

NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need. I may as well make one now to save editing the files in the source code every time I need to compile anything concerning the kernel. So, I'll make that link just now:
Code:

[root@tinwhistle src]# ln -s linux-2.4.20-28.7 linux       
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root    root          160 Jun 12 15:46 .
drwxr-xr-x  16 root    root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root    root          14 Jun 12 15:46 linux -> linux-2.4.20-28.7
lrwxrwxrwx    1 root    root          14 Jun  4 12:11 linux-2.4 -> linux-2.4.20-28.7
drwxr-xr-x  16 root    root          584 Jun  4 12:11 linux-2.4.20-28.7
drwxr-xr-x    7 root    root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#

Ah, there it is, so that's done.

Next, did I install the compiler?
Code:

[root@tinwhistle src]# gcc -v         
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[root@tinwhistle src]#

Yes, I have a compiler installed.

If you don't have those two things installed, you have to install them first off your install CD.

If they are installed, download the source and happy compiling. :tisk: Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing. :study:

# Modem and connection troubleshooting
WinModems and Linux
Modem HOWTO
Modem NHFs
Linmodems.org
Conexant/Rockwell modem HOWTO
The Unofficial PCTel Linux Driver page
I finaly got my PcTel hsp56 mr modem to work
PcTel PCT789 Compilation in Fedora Core 1
Linux driver for Winmodems with Lucent Apollo (ISA) and Mars (PCI) chipsets
Lucent AMR modem listed as an Intel AC'97 - Smart Link Modems
The kppp Handbook
Dial-up Networking Configuration Using KDE's Kppp
Troubleshooting ISP Connection Problems
Connecting to AOL with Linux

Mr_C 04-30-2005 11:48 AM

yep I've been through those links so I know I have the right drivers.
The real hickkup I'm seeing is not being able to 'insmod'. Whats up with the invalid module format???


Not really able to jack out this modem since its integrated onto my notebook. I do happen to have an external dlink serial modem but thats kinda inconvenient to move around with. I got this modem(internal) working before with fedora core 1, so I plan to have it working again.

fancypiper 04-30-2005 01:23 PM

Is kernel-source installed and does the symbolic link /usr/src/linux point to the folder containing the source code for the kernel?

cd /usr/src
ls -al

If that exists, is it the kernel-sources for your running kernel?

uname -r -a

Mr_C 04-30-2005 02:16 PM

Code:

root@SOL:/tmp/hsfmodem-7.18.00.03full# ls -al /usr/src/linux
lrwxrwxrwx  1 root root 14 2005-04-30 15:13 /usr/src/linux -> linux-2.6.11.6/
root@SOL:/tmp/hsfmodem-7.18.00.03full# uname -ra
Linux SOL 2.6.11.6 #2 Wed Apr 6 23:41:42 VET 2005 i686 unknown unknown GNU/Linux
root@SOL:/tmp/hsfmodem-7.18.00.03full#


fancypiper 04-30-2005 04:11 PM

Your output doesn't show what I expected, but you didn't fully answer the question.

(Again), does kernel-source exist?
Code:


Sat Apr 30 05:08 PM root@uilleann /usr/src # ls -al
total 16
drwxr-xr-x  4 root root 4096 Apr 30 17:07 .
drwxr-xr-x  15 root root 4096 Apr 24 17:56 ..
lrwxrwxrwx  1 root root  24 Apr 30 17:07 linux -> linux-2.4.22-1.2199.nptl
lrwxrwxrwx  1 root root  24 Apr 24 19:49 linux-2.4 -> linux-2.4.22-1.2199.nptl
drwxr-xr-x  16 root root 4096 Apr 24 19:49 linux-2.4.22-1.2199.nptl
drwxr-xr-x  7 root root 4096 Apr 24 18:05 redhat
Sat Apr 30 05:09 PM root@uilleann /usr/src # uname -r -a
Linux uilleann 2.4.22-1.2199.nptl #1 Wed Aug 4 12:25:07 EDT 2004 i686 athlon i386 GNU/Linux


Mr_C 04-30-2005 04:16 PM

Code:

|-(clay@SOL:pts/0)------------------------------------------------------------(~)-|
|-(%)- ls -al /usr/src
total 36261
drwxr-xr-x  6 root root      232 2005-04-30 15:13 ./
drwxr-xr-x  18 root root      544 2003-11-11 10:56 ../
lrwxrwxrwx  1 root root        14 2005-04-30 15:13 linux -> linux-2.6.11.6/
drwxr-xr-x  15 root root      584 2005-01-20 15:41 linux-2.4.29/
drwxrwxr-x  19 1001 users    1216 2005-04-10 04:16 linux-2.6.11.6/
-rwxr-xr-x  1 root root  37090316 2005-04-06 16:29 linux-2.6.11.6.tar.bz2*
drwxr-xr-x  7 root root      168 2003-10-29 02:08 rpm/
drwxr-xr-x  2 root root      176 2005-01-20 18:31 speakup-2.4.29/


fancypiper 04-30-2005 04:24 PM

You have two kernel-source installed, linux-2.4.29 and linux-2.6.11.6 (most likely linux-2.6.11.6 from your post)

Now, try making a symbolic link named linux that points to your source code of the kernel you are actually running:

uname -r

ln -s /usr/src/linux-2.6.11.6 /usr/src/linux

Now, reinstall and configure the modem module.

Mr_C 04-30-2005 04:28 PM

umm.... /usr/src/linux is a symbolic link pointing to /usr/src/kernel-2.6.11.6
this is the kernel I'm running

fancypiper 04-30-2005 04:32 PM

Sorry, I overlooked that part (/usr/src/linux) in your post.

There are quite a few changes between the 2-4 to 2.6 kernels and the way it handles modules, but the extracted module install INSTALL and README files should explain any more hoops you need to jump through.

If you have carefully read and followed the directions in the INSTALL and README files of the extracted modem driver, I am out of ideas.

Mr_C 04-30-2005 04:33 PM

well thanks for your patient help anyhows :)


All times are GMT -5. The time now is 05:49 AM.