LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hsfmodem installation (https://www.linuxquestions.org/questions/linux-newbie-8/hsfmodem-installation-181139/)

ras123 05-13-2004 02:06 PM

hsfmodem installation
 
Hi,
I am trying to install a D-link's hsfmodem, (provided by D-Link) from a tar.gz file. I installed it by using make install after that trying to configure by running hsfconfig. The output is as follows.
--------------------------------------------------
Linux HSF softmodem drivers, version 4.06.06.02

No pre-built HSF modules are available for your exact kernel:
Linux-2.4.22-1.2115.nptl-i686-RedHat-1-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?
[/usr/src/linux]
-------------------------------------------------------------------------

do you know the answer?.
Thanks
Ras

mermxx 05-13-2004 03:34 PM

try this link maybe to get an updated driver for ur modem. http://www.linuxant.com/drivers
check u have a compiler installed in redhat rpm -q gcc
if u r updating ur driver type rpm -e hsfmodem or make uninstall (If rpm or tar) to remove ur old driver first.

either way u can try installing the package for ur driver with the command
rpm -i hsfmodem-{version}.{arch}.rpm from the local directory u saved the package to. (if it is an rpm package)

then if necessary u can run hsfconfig to complete the installation

if its a tar package then u can run
rpmbuild -tb hsfmodem-{version}.tar.gz

When ur modem is installed u can access it as
/dev/ttySHSF0

u can also try the command hsfconfig --help

when u get connected if u r still having problems u can check out the status of ur link using
cat /proc/driver/hsf/0/lastcallstatus

RockmanExe 05-13-2004 06:36 PM

Hello ras123,
the last stage of the install asks you about you kernel source and its location, usually, /usr/src/linux

You ought to have installed of course your kernel source corresponding to your linux distribution and current kernel, if you're running red hat search on your install cds for a package called kernel-source-something.i386.rpm

Good luck!!

ras123 05-14-2004 01:14 AM

I haven't directory like /usr/src/linux and usr/src contains only a directory redhat and it contains the folders BUILD RPMS SOURCES SPECS SRPMS ( All are currently empty ). So is this path correct /usr/src/redhat ?. But I think that path not worked. Or Do I need to install package kernel-source-*.i386.rpm?.
I am using Fedora Core 1.


Also I tried by rpmbuild -tb hsfmodem-{version}.tar.gz to build an rpm but that also failed due to some dependecies like rpm-lib, I didn't find it anywhere in My CD's.

ras123 05-14-2004 02:58 AM

I Instlled kernerl-source, but failed due to - Lot of errors . From the file /tmp/hsfconfig-recomp.log.3316

----------------------------------------

* Compiling mod_engine.c
cc1: warning: "-fcheck-new" is valid for C++ but not for C/ObjC
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
> Linking kernel module hsfengine.o

* Compiling serial_hsf.c
cc1: warning: "-fcheck-new" is valid for C++ but not for C/ObjC
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
serial_hsf.c: In function `hsf_rx_ready':
serial_hsf.c:161: warning: concatenation of string literals with __FUNCTION__ is deprecated
serial_hsf.c: In function `hsf_tx_free':
serial_hsf.c:223: warning: concatenation of string literals with __FUNCTION__ is deprecated
serial_hsf.c: In function `hsf_put_char':
serial_hsf.c:240: warning: concatenation of string literals with __FUNCTION__ is deprecated
serial_hsf.c: In function `hsf_control':
serial_hsf.c:327: warning: concatenation of string literals with __FUNCTION__ is deprecated
serial_hsf.c: In function `hsf_break_ctl':
serial_hsf.c:362: warning: concatenation of string literals with __FUNCTION__ is deprecated
serial_hsf.c: In function `hsf_comctrl_init':
serial_hsf.c:472: warning: concatenation of string literals with __FUNCTION__ is deprecated
serial_hsf.c:477: warning: concatenation of string literals with __FUNCTION__ is deprecated
serial_hsf.c:484: warning: concatenation of string literals with __FUNCTION__ is deprecated
serial_hsf.c: In function `hsf_request_port':
serial_hsf.c:619: warning: concatenation of string literals with __FUNCTION__ is deprecated
serial_hsf.c:624: warning: concatenation of string literals with __FUNCTION__ is deprecated
serial_hsf.c: In function `hsf_serial_init':
serial_hsf.c:737: warning: concatenation of string literals with __FUNCTION__ is deprecated
serial_hsf.c:742: warning: concatenation of string literals with __FUNCTION__ is deprecated
serial_hsf.c:747: warning: concatenation of string literals with __FUNCTION__ is deprecated
In file included from serial_hsf.c:801:
serial_core.c: In function `uart_close':
serial_core.c:1073: error: invalid operands to binary ==
make: *** [serial_hsf.o] Error 1

hemanthjjp 07-12-2004 02:21 PM

Hi ras,

I'm also a newbie and i face the same problem with the same error in log file.Is your problem solved?

Please pose!!!!!!!!!!1

Boow 07-12-2004 07:36 PM

if thats the beta hsf driver you can try this to see if it will compile on fedora i cant give you any guaranties

> -----Original Message-----
> From: Jack Bowling [mailto:jbinpg shaw ca]
> Sent: Wednesday, December 03, 2003 8:47 AM
> To: fedora-list redhat com
> Subject: Re: conexant combo

> If you are referring to the Conexant HSF modems, I have the drivers
> working perfeectly in my Compaq Presario 2110CA laptop. Go to:
>
> http://www.linuxant.com


Aren't thet $$$??? I have the beta versions of it.. But currently with the
2.4.23 kernel, it can't seem to compile. It used to compile fine when I
patched serial_core.c at line 1073

from

[original]
down(&state->count_sem);
spin_lock_irqsave(&info->lock, flags);
if ((tty->count) == 1) && (state->count != 1)) {
/*
* Uh, oh. tty->count is 1, which means that the tty
* structure will be freed. state->count should always
[Patched]
down(&state->count_sem);
spin_lock_irqsave(&info->lock, flags);
---> if ((atomic_read(&tty->count) == 1) && (state->count != 1)) {
/*
* Uh, oh. tty->count is 1, which means that the tty
* structure will be freed. state->count should always

But now with that patch, I get this during compile..

* cimpiling (gcc) serial_hsf.c
in file included from serial_hsf.c:897
serial_core.c : In function `uart close`:
serial_core.c :1073 request for member 'counter' in something not a
structure or a union

make : ***[serial_hsf.o] Error 1

Anyone know what's the issue here.. or have the fix for it?? Serial_core.c
is actually "Free Software" as stated in the source code.

Help... Need this for my modem.. (& I need the modem cause I don't have
broadband)

Thanks
OW




[Date Prev][

hemanthjjp 07-15-2004 03:01 PM

Hi BOOW,

I have the beta drvers 5.03 and I patched the serial_core.c file.
It works and now my modem is working at 56kpbs in FC1.


But the connection is dropped after a few minutes.The time in which it's disconnected varies from time to time.

Is it the problem in the patch

Boow 07-15-2004 04:23 PM

can't really help you with that the beta driver works ok on my pc. you could invest 14 bucks on the regular linuxant driver or find a cheap serial external modem. software modems are cheap but they suck in linux.


All times are GMT -5. The time now is 12:24 PM.