LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 12-17-2003, 08:51 AM   #1
qwijibow
Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
guide: fix hsf linmodem compile error in fedora core 1


Hey guys...
i had a problem compiling and installing my connexant modem driver
because of a compile error...

ive eventually fixed and since a few others have had this problem, decided to
post my solution...

attempt a normal installation like so...

1)download the hsf source code
http://homepage.ntlworld.com/david.stones/hsf.html

2)tar -zxf the-source-file.tar.gz
cd /the-source-dir

3) compile as follows.
su
make install

4) run the hsfconfig program
su -
hsfconfig

IF you get a compile error, read the log file in the /var directory as
specified by the error message.

if the error is the same error i got,
which is a binary operator error in file serial_core.c line 1076

then open up the /usr/lib/hsf/modules/serial_core.c file as root in your favorite text editor and starting on line 1076 there is a block of code

Quote:
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
* be one in these conditions. If it's greater than
* one, we've got real problems, since it means the
* serial port won't be shutdown.
*/
printk("uart_close: bad serial port count; tty->count is 1, "
"state->count is %d\n", state->count);
state->count = 1;
}
simply comment it all out, with 2 forward slashes at the start of each line,

so it looks like....

Quote:
//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
* be one in these conditions. If it's greater than
* one, we've got real problems, since it means the
* serial port won't be shutdown.
*/
// printk("uart_close: bad serial port count; tty->count is 1, "
// "state->count is %d\n", state->count);
// state->count = 1;
// }


save
and then re run hsfconfig. the driver should now compile without error.

it seems this code is an error handler, if it is needed, then the error has already happened. so removing it will not effect the driver untill the driver has already had an error.

Im not sure how the driver will act when you do this, but i did it on my machine, and everything is running smoothly...

anyway... enjoy.

Last edited by qwijibow; 02-16-2004 at 10:46 AM.
 
Old 12-22-2003, 08:55 PM   #2
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
Thank you worked like a charm, I now have the hsflinmodem compiled. I am going to my parents and there is no high-speed , so I needed my modem and I didn't want to pay the money for the linuxant.com driver, just for the 2 or 3 times I will use my modem in a year.
 
Old 05-15-2004, 04:30 AM   #3
shakeeb
Member
 
Registered: Oct 2003
Location: ind..
Distribution: Fedora Core 1,RH9
Posts: 52

Rep: Reputation: 15
i did the same......

i did the same my modem works...........but i cant connect to my isp using kppp
it verifies the username and password and the n shows "logging into network"
but doesnt login.....i get exit status 16
16-which according to the manpage is due to modem hanging up....any ideas
 
Old 05-15-2004, 06:51 PM   #4
qwijibow
Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
i have not tested the driver with kppp.

why dont you use 'redhat-control-network' ?

that seems to work fine.
 
Old 05-16-2004, 10:20 PM   #5
MacrossV
Member
 
Registered: Mar 2004
Distribution: FC1
Posts: 32

Rep: Reputation: 15
My compile worked fine "somewhat", but my problem is that my connection will never stay on for more than 8 minutes before it drops. It drives me nuts. I just might buy a serial modem, although I'd really hate to spend the money. Damn conexant!
 
Old 05-17-2004, 05:54 AM   #6
qwijibow
Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
haev a look at the output of 'dmesg' for any error messages that may be related you your modem.

Maybe you have a noisy phone line, or it is your ISP.
Anyways, buying a serial modem should greatly increace your internet conectivity.
these drivers realy do suck.... and dont work with kernel 2.6.x

or maybe you should just pay the $15.


Last edited by qwijibow; 05-17-2004 at 07:54 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Core 64 Bit Guide leon85 Fedora 1 08-14-2005 05:01 PM
Fedora Core 64Bit Guide leon85 General 2 08-12-2005 01:14 PM
Install guide for Fedora Core 4 on Promise RAID 0 fuzzyash Linux - Software 1 07-29-2005 10:08 AM
HSF Softmodem - internal in fedora core 1 hemanthjjp Linux - Hardware 5 06-30-2004 02:52 AM
Unofficial Fedora Core 2 Guide for Beginners linuxzouk Fedora 4 06-22-2004 11:17 AM


All times are GMT -5. The time now is 11:58 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration