Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 24 Nov 2014, 00:15
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Howto compile HSF/HCF drivers for Puppy2
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [27 Posts]   Goto page: 1, 2 Next
Author Message
jcoder24


Joined: 06 May 2005
Posts: 601
Location: Barbados

PostPosted: Fri 15 Sep 2006, 16:45    Post subject:  Howto compile HSF/HCF drivers for Puppy2  

Updated 20070624
License restrictions on these drivers prevents me from providing packages for them so I've compiled some instructions for those of you who don't mind 14.4kbs (with the free version) or paying $19.99 for a license.

0) Make sure your modem is installed and you know if it is a hcf/hsf. If you are unsure download the scanmodem.gz file, gunzip it and run the script to see which modem you have.

1) Make sure you have the devx file loaded. The devx file adds developer tools to puppy that allows you to compile. To "install" download devx_202.sfs or devx_210.sfs or devx_211.sfs or devx_212.sfs (depending on your version of puppy) to the same area where your pup_save file is located and reboot.

2a) For Puppy 2.11 and lower
Download these files missing from the devx file linux-2.6.16.7-scripts.tar.bz2 (0.4M/1.9M - download/extracted) needed from the kernel source for compilation to succeed. Extract them via tar xvfj linux-2.6.16.7-scripts.tar.bz2 -C /usr/src

2b) For Puppy 2.12 and higher
Download these files missing from the devx file linux-2.6.18.1-scripts.tar.bz2 (0.4M/1.9M - download/extracted) needed from the kernel source for compilation to succeed. Extract them via tar xvfj linux-2.6.18.1-scripts.tar.bz2 -C /usr/src

3a) Download the source drivers for your modem (the binary packages avilable are kernel specific and I haven't seen any with the same kernel version as puppy).

If you agree to the hcf license you can download the hcf driver here

If you agree to the hsf license you can download the hsf driver here

[Added 20070624]
3b) For the more recent versions of the drivers some additional libraries are needed. These libraries were identified by craftybytes and packaged as missing_files.rar by telemetric_au
.

4) Extract the downloaded source file, change working directory to the source directory and run make install. ie
for hcf
Code:
tar xvfz hcfpcimodem-1.10full.tar.gz[/b]
cd hcfpcimodem-1.10full
make install


for hsf
Code:
tar xvfz hsfmodem-7.47.00.03full.tar.gz
cd hsfmodem-7.47.00.03full make install
make install


5) Once the "make install" has completed without error, run /usr/sbin/hcfpciconfig for hcf modems or /usr/sbin/hsfconfig for hsf modems. Accept the default by hitting enter when it asks "Where is the linux source build directory that matches your running kernel?"

If all goes well you should see something like the following:
Building modules for kernel 2.6.16.7, using source directory
/lib/modules/2.6.16.7/build. Please wait...
done.


NB you may notice an error re: HDA support not active which should be safe to ignore. It appears that the hsf driver provides support for Intel HDA modems.


6) The config script will then ask you a few questions (eg email address, license type, etc), answer them appropiately and your modem should be ready to go.

7) Modify /etc/rc.d/rc.local to have the drivers load on boot as follows (thanks to EdFromHouston for testing):

Code:

#Load modem drivers on boot. This adds 10 or more seconds to the boot time.
rm -f /dev/modem /dev/cuaHSF0 /dev/ttySHSF0 2>/dev/null
hsfconfig --serial


jc24

Last edited by jcoder24 on Sun 24 Jun 2007, 11:41; edited 9 times in total
Back to top
View user's profile Send private message 
mouldy


Joined: 04 May 2005
Posts: 498

PostPosted: Fri 15 Sep 2006, 18:58    Post subject:  

Er...um...only thing I am going to say is anybody wanting to do this might want to go to this link to fedora forum and read the last post especially. http://www.fedoraforum.org/forum/showthread.php?t=1510

I havent tried it and have no idea if it works. I just stumbled across it. You are on your own.
Back to top
View user's profile Send private message 
Kannada-Puppy

Joined: 27 Jul 2006
Posts: 8
Location: India

PostPosted: Sat 21 Oct 2006, 03:21    Post subject:  

Another thing ; after installation of modem driver do not run modem wizard- it is not necessary. Instead run GK dial or other dialup program to configure dialup settings. I was able to connect to internet without problems.
Rao
Back to top
View user's profile Send private message 
cai

Joined: 24 Nov 2006
Posts: 2

PostPosted: Fri 24 Nov 2006, 06:22    Post subject:  

Quote:
2) Download these files missing from the devx file kernel_source_scripts.tar.gz (0.4M/1.4M - download/extracted) needed from the kernel source for compilation to succeed. Extract them via tar xvfz kernel_source_scripts.tar.gz -C /usr/src


I've trying to install my D-Link Modem in puppy.. I tried the above instruction but I got some error adding "kernel_source_scripts.tar.gz " there is a problem in the above extraction command. I don't have "src" folder under usr.
Do I need to create the "src" folder?.
Back to top
View user's profile Send private message 
cai

Joined: 24 Nov 2006
Posts: 2

PostPosted: Fri 24 Nov 2006, 06:35    Post subject:  

I tried adding the src folder under usr so I could do the extraction of kernel source scripts. But I still got problem in installing " hsfmodem".
I can't make run the "make install" command. Is there anything I need to install / intialize to nake it run?

Or maybe you can give me links for solutions or way in installing D-Link 562IS modem in puppy linux. Thanks!
Back to top
View user's profile Send private message 
jcoder24


Joined: 06 May 2005
Posts: 601
Location: Barbados

PostPosted: Sat 02 Dec 2006, 21:04    Post subject:  

cai wrote:
I've trying to install my D-Link Modem in puppy.. I tried the above instruction but I got some error adding "kernel_source_scripts.tar.gz " there is a problem in the above extraction command. I don't have "src" folder under usr.
Do I need to create the "src" folder?.


Make sure your devx_2xx.sfs file is loaded. you can type which gcc in a console window to check. It should reply with /usr/bin/gcc
Back to top
View user's profile Send private message 
jcoder24


Joined: 06 May 2005
Posts: 601
Location: Barbados

PostPosted: Sat 02 Dec 2006, 21:05    Post subject:  

Added missing scripts for the puppy 2.12 kernel version and re-uploaded the scripts for the other puppy 2 versions.
Back to top
View user's profile Send private message 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: Sat 03 Feb 2007, 03:07    Post subject:  

With the hsfconfig I got as far as:
'Please enter region name for modem unit 0 [USA]: '
and when I try to enter a country it comes up with:

'ERROR: Region XXX is not supported.
Available countries:
/usr/sbin/hsfconfig: line 56: fold: command not found
/usr/sbin/hsfconfig: line 56: fold: command not found
Please enter region name for modem unit 0 [USA]:'

Of course the XXX is the country I am trying to input and it does not respond to any entry at all.

A look in /usr/sbin/hsfconfig shows the two files that the script reads in /var/run are empty.

I ran it again and then it came up with :

'/usr/sbin/hsfconfig line 1615: sysctl: command not found'

then back to not being able to determine region, defaulting to "USA" & not doing so.

Back to 'Please enter region...etc'

I am going to take a break from this for the moment as it is quite frustating and I can feel the BP going up.

This is in Puppy 2.13.
Back to top
View user's profile Send private message 
Gn2


Joined: 16 Oct 2006
Posts: 936
Location: virtual - Veni vidi, nihil est adpulerit

PostPosted: Sat 03 Feb 2007, 05:23    Post subject:  

Use of -C option is what caused directory failure until it was created -
It is NOT mandatory - nor good practice to untar into standard location of /usr/src (for kernel sources)

Better to create a dedicated folder (if hard drive install)
to user's folder path.
All that is required - is the clean headers

Do you have command (sysctl) in Puppy
Already checked the reference makefile lines

Locale is set in profile
Back to top
View user's profile Send private message 
craftybytes


Joined: 17 Nov 2006
Posts: 298
Location: QLD AUSTRALIA

PostPosted: Sun 04 Feb 2007, 00:35    Post subject:  

jcoder24,
I found that I needed the following extra files to make MY hsf modem compile to work properly:

sysctl
libproc-3.2.5.so
ls
libacl.so.1
libattr.so.1

+ any symlink files associated with any of the above ALSO..

I made sure I had the 'kernel-source-2.6.18.1' files, 'kernel-header' files and your extra 'scripts' files installed to - '/usr/src' - PLUS these above extra files installed to their respective 'folders' ..

I used the latest "Linuxant" hsf driver files (for the Conexant modem) to do my compile with - the compile ONLY properly worked ONCE I had included the extra files as above - so you might want to add these to the 'download' files for completeness..

NOTE: you may need to include a script to have the 'existing' Puppy - "ls" command file renamed BEFORE the new - 'ls' command file is installed - reason is that 'existing' is the - 'Busybox-ls' - command, whereas the new is standard linux - 'ls' - command, which allows more 'options' than the busybox one - could cause system clash if both installed ..

HTH..

_________________
3 x boot:- ASROCK VIA 'all-in-one' m/b; AMD Duron 1.8Ghz+; 1.0GB RAM; 20GB hdd (WinXP Pro); 80GB hdd (MEPIS 3.4-3/Puppy v2.15CE Frugal); 1GB USB pendrive (Puppy 2.15CE Frugal); CD/DVDRW; 17" LCD monitor; HSF 56k modem... MEPIS is great.. Puppy ROCKS..
Back to top
View user's profile Send private message 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: Mon 05 Feb 2007, 19:59    Post subject:  

Alas! after downloading MEPIS & extracting the files I am back to

'ERROR: Region "AUSTRALIA" is not supported

(I can believe that) Smile

/usr/sbin/hsconfig: line 56: fold: command not found'

I followed the procedure as outlined above.

Renamed ls and installed the one from MEPIS.
Installed the libs and created links as required.
Installed sysctl in sbin.
Downloaded the latest hsf driver.

I tried using the default /usr/src directory and also the files that jcoder24 posted plus combining them in one.
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6690
Location: lisbon

PostPosted: Tue 06 Feb 2007, 02:30    Post subject:  

very strange...i definitely got jcoder's files working on pup2.13. at first i had to accept the default of USA, but then ran hsfconfig -c and it accepted AUSTRALIA.

( i ended up wiping it as it absolutely crawled. there was mention of using a hex editor to circumvent the speed restrictions of the free driver, but it made no diff)
Back to top
View user's profile Send private message 
nhnam

Joined: 03 Oct 2006
Posts: 4

PostPosted: Tue 06 Feb 2007, 07:16    Post subject:  

please give me, the missing lib but working,
thank a lot
Back to top
View user's profile Send private message 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: Tue 06 Feb 2007, 22:05    Post subject:  

I have tried everything and now it is coming up with a 'clock skew' problem.

I am going to try it on a couple of other machines and if I can't get it to work I am giving it up as a bad joke.
Back to top
View user's profile Send private message 
craftybytes


Joined: 17 Nov 2006
Posts: 298
Location: QLD AUSTRALIA

PostPosted: Wed 07 Feb 2007, 06:11    Post subject:  

Ian..

The - 'fold' - command in the hsfconfig script is part of the - 'GNU Coreutils' - package - which really should be installed to your system - if not many of the 'base' linux commands will not work correctly ..

EDIT::: Just realised that - 'Busybox' - is installed to Puppy in liu of - 'Coreutils' - package - so maybe some commands such as 'fold' will need to be sourced from another linux distro to make everything work as expected - though in MY hsfmodem compile efforts - the prob with the 'fold' in the hsfconfig script did not happen - so could be also related to the 'REGION' prob as well ..

As to the 'REGION' setting prob - this is most probably linked to either an incorrect 'locale' setting or to an incorrect - 'timezone' - setting ..

Just to be sure - try checking if you have the relevant 'zoneinfo' files for AUSTRALIA - found in folder - '/usr/share/zoneinfo' - in Puppy ... If none exist this may be your problem..

FYI: you may want to check out the links in the forum :-

Hardware - Networking - Dialup

for some usefull info related to MY particular hsf modem install..

HTH..
.
.

_________________
3 x boot:- ASROCK VIA 'all-in-one' m/b; AMD Duron 1.8Ghz+; 1.0GB RAM; 20GB hdd (WinXP Pro); 80GB hdd (MEPIS 3.4-3/Puppy v2.15CE Frugal); 1GB USB pendrive (Puppy 2.15CE Frugal); CD/DVDRW; 17" LCD monitor; HSF 56k modem... MEPIS is great.. Puppy ROCKS..
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [27 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0988s ][ Queries: 13 (0.0094s) ][ GZIP on ]