Author |
Message |
sling-shot

Joined: 19 Aug 2005 Posts: 109 Location: India
|
Posted: Thu 20 Oct 2005, 01:59 Post subject:
How do I compile Conexant softmodem driver? [SOLVED] |
|
I am trying to get a D-Link internal modem working. It comes with driver software as a .tar.gz file which they say can be installed after extracting using the "make install" command. But the problem is Bash says no such command.
The original post which probably was posted in the wrong thread is here http://www.murga.org/~puppy/viewtopic.php?t=2995&start=17
Any insights ?
_________________ I am a nobody. Nobody is perfect. So I am perfect.
STATUS:Trying to begin life in Linux World.
Last edited by sling-shot on Mon 31 Oct 2005, 17:29; edited 1 time in total
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15238 Location: Paradox Realm
|
Posted: Thu 20 Oct 2005, 02:55 Post subject:
compile your own driver |
|
Om Shanti
You in India? Maybe you know my Guru? Shri Olli Octopus?
Now then. They expect you to compile your own driver . . . the audacity of it. Did you have to solder the modem together?
The driver is probably quite small - upload it here. Please ask if you need help. Someone can then compile it for you . . . Or maybe someone will volunteer and you can contact them directly. Otherwise you need to set yourself up (extra download) to compile programs from and in Puppy . . .
Gosh . . . just remembered what happened to Olli . . . there were few fish that day you understand . . . got hungry - Guru got eaten
http://www.cyber-shaktipat.org/relax/arc/
|
Back to top
|
|
 |
sling-shot

Joined: 19 Aug 2005 Posts: 109 Location: India
|
Posted: Thu 20 Oct 2005, 03:30 Post subject:
|
|
I will get back with that file tomorrow.
_________________ I am a nobody. Nobody is perfect. So I am perfect.
STATUS:Trying to begin life in Linux World.
|
Back to top
|
|
 |
rarsa

Joined: 29 May 2005 Posts: 3053 Location: Kitchener, Ontario, Canada
|
Posted: Thu 20 Oct 2005, 12:53 Post subject:
|
|
To compile a package just download the usr_devx.sfs file from Ibiblio (Look at the puppy download page) and put it at the same location where your pup001 file is.
It includes all the tools for compiling and making applications.
For the full explanation look at the wikki: http://www.goosee.com/puppy/wikka/Compiling
|
Back to top
|
|
 |
sling-shot

Joined: 19 Aug 2005 Posts: 109 Location: India
|
Posted: Thu 20 Oct 2005, 15:51 Post subject:
|
|
[edit]
sorry. the filesize is 880kb. but forum said "maximum filesize reached" upload failed.
What should i do?
_________________ I am a nobody. Nobody is perfect. So I am perfect.
STATUS:Trying to begin life in Linux World.
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Thu 20 Oct 2005, 16:11 Post subject:
|
|
http://www.murga.org/%7Epuppy/viewtopic.php?t=3080
|
Back to top
|
|
 |
sling-shot

Joined: 19 Aug 2005 Posts: 109 Location: India
|
Posted: Thu 20 Oct 2005, 17:21 Post subject:
|
|
[rarsa]
I will do that a week from today.
[MU]
Thanks. I uploaded the file over to xmailharddrive.com/beta.
[Lobster]
The file can be downloaded by login in using instructions here http://www.murga.org/~puppy/viewtopic.php?t=3080
Compiling it myself is currently out of question because of difficulty in getting the 40+MB file needed.
Waiting..............
_________________ I am a nobody. Nobody is perfect. So I am perfect.
STATUS:Trying to begin life in Linux World.
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Thu 20 Oct 2005, 17:44 Post subject:
|
|
http://noforum.de/dotpups/hfsmodem.pup (900 kb)
Install, maybe best is to restart the computer then (as some files are extracted to /etc).
Then run
hsfconfig
I hope I found all files the compiler created.
Here is the output, in case I oversaw something:
# make install
rpm: No such file or directory
rpm: No such file or directory
rpm: No such file or directory
rpm: No such file or directory
make[1]: Entering directory `/root/jpatch/hsflinmodem-4.06.06.02/inf'
install -m 644 linux_athens.inf linux_hsfi.inf linux_hsf.inf linux_intel_smartmc .inf linux_smarthsf.inf /etc/hsf/inf
make[1]: Leaving directory `/root/jpatch/hsflinmodem-4.06.06.02/inf'
make[1]: Entering directory `/root/jpatch/hsflinmodem-4.06.06.02/inf2bin'
install -m 755 hsfinf2bin /usr/sbin/hsfinf2bin
make[1]: Leaving directory `/root/jpatch/hsflinmodem-4.06.06.02/inf2bin'
make[1]: Entering directory `/root/jpatch/hsflinmodem-4.06.06.02/firm2bin'
install -m 755 hsffirm2bin /usr/sbin/hsffirm2bin
install -m 644 cnxykf.hex /etc/hsf
make[1]: Leaving directory `/root/jpatch/hsflinmodem-4.06.06.02/firm2bin'
make[1]: Entering directory `/root/jpatch/hsflinmodem-4.06.06.02/scripts'
install -m 755 hsfconfig hsfstop /usr/sbin
install -m 755 hsfsysid /usr/bin
make[1]: Leaving directory `/root/jpatch/hsflinmodem-4.06.06.02/scripts'
make[1]: Entering directory `/root/jpatch/hsflinmodem-4.06.06.02/modules'
rm -rf "/usr/lib/hsf/config.mak" "/usr/lib/hsf/imported" "/usr/lib/hsf/modules"
mkdir -m 755 -p /usr/lib/hsf/modules
(cd .. && find config.mak imported -depth -print | cpio -pdm /usr/lib/hsf)
3664 blocks
find . \( -name '*.[ch]' -o -name '*.mak' -o -name '[Mm]akefile' \) -print | cpi o -pdm /usr/lib/hsf/modules
558 blocks
find binaries -depth -print | cpio -pdm /usr/lib/hsf/modules
0 blocks
make[1]: Leaving directory `/root/jpatch/hsflinmodem-4.06.06.02/modules'
install -m 444 LICENSE /usr/lib/hsf
To compile, I had to replace "cpio" from busybox with cpio from Mandrake 9.2.
Mark
|
Back to top
|
|
 |
sling-shot

Joined: 19 Aug 2005 Posts: 109 Location: India
|
Posted: Fri 21 Oct 2005, 16:06 Post subject:
|
|
[MU]
This is what i did...
STEP 1
I copied the .pup from floppy (where it was stored off the net) into /root/my-documents
STEP 2
I clicked on the .pup in the ROX file manager.
DotPup replied "File integrity OK;hfsmodem.pup
Clicked on Unzip.
Clicked "Run the installer"
Clicked "No" to "Delete the .pup?"
STEP 3
rebooted
STEP 4
opened rxvt typed "hfsconfig" result "Bash : command not found"
typed "hsfconfig"
This was the output
Code: |
Linux HSF softmodem drivers, version 4.06.06.02
No pre-built HSF modules are available for your exact kernel:
Linux-2.4.29-i686-unknown-unknown-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]
|
at this point i typed ENTER not knowing what to do
and this is the result
Code: |
WARNING: missing file /usr/src/linux/include/linux/autoconf.h
The cause of this problem is usually a missing or misconfigured
kernel source tree (and sometimes an incorrect directory or symbolic link).
First, ensure that the proper kernel source and compiler packages
from your distribution vendor and/or the community are installed.
The Linux kernel can then be reconfigured by running "make menuconfig"
under the kernel source directory (usually /usr/src/linux).
Verify that the proper options for your system are selected,
and that CONFIG_SMP ("Symmetric multi-processing support" under
"Processor type and features") is disabled, as this driver is
presently designed to work on single-processor machines.
Then compile and install your new kernel (for more information about
this procedure, see the README file under the kernel source directory),
reboot the system using the new kernel, and re-run "hsfconfig".
|
How do i proceed from here?
This is my modem information (got by using windows programme downloaded off LINUXANT site.)
Code: |
NUMBER OF MODEMS FOUND = 1
MODEM #1:
PCI CONFIGURATION INFORMATION READ:
VENDOR ID : 14F1
DEVICE ID : 2F00
SUBVENDOR ID : 14F1
SUBDEVICE ID : 2004
REVISION ID : 01
DEDUCED INFORMATION:
VENDOR NAME : CONEXANT
DEVICE NAME : HSF CHURCHILL DATA/FAX
SUBVENDOR NAME : ACTIONTEC, ZOLTRIX, ACEEX, TAICOM OR ASUS --
HTTP://WWW.ACTIONTEC.COM/, HTTP://WWW.TAICOM.COM,
HTTP://WWW.ASUS.COM.TW/COMPANY/.
FOR 14F1/ICH GO TO -- DELL-HTTP://SUPPORT.DELL.COM
/US/EN/INDEX.ASP
MODEM TYPE : HSF
WINXP INBUILD SUPPORT : YES
|
And this is the complete list of files on that driverCD
Code: |
Volume in drive G is PTICA52001-
Volume Serial Number is D9C8-9200
Directory of G:\Driver\Linux
. <DIR> 06-16-03 3:35p .
.. <DIR> 06-16-03 3:34p ..
INSTALL 3,454 01-28-02 8:26a INSTALL
HSFLIN~8 RPM 880,535 01-28-02 8:26a hsflinmodem-4.06.06.02-1.i586.rpm
HSFLI~10 RPM 888,895 01-28-02 8:26a hsflinmodem-4.06.06.02-1.src.rpm
HSFLI~12 GZ 901,120 01-28-02 8:26a hsflinmodem-4.06.06.02.tar.gz
HSFMO~14 ZIP 1,071,286 02-03-05 9:19a hsfmodem-7.18.00.02oem-1.i386.rpm.zip
HSFMO~16 GZ 1,082,763 02-03-05 9:20a hsfmodem-7.18.00.02oem.tar.gz
HSFMO~18 DEB 1,085,442 02-03-05 9:20a hsfmodem_7.18.00.02oem_i386.deb
7 file(s) 5,913,495 bytes
2 dir(s) 0 bytes free
|
------------------------------------------
Hmmmmmm...............
_________________ I am a nobody. Nobody is perfect. So I am perfect.
STATUS:Trying to begin life in Linux World.
|
Back to top
|
|
 |
jcoder24

Joined: 06 May 2005 Posts: 601 Location: Barbados
|
Posted: Sat 22 Oct 2005, 10:55 Post subject:
|
|
The version of the drivers you are trying to compile is one of the older free versions. The latest free version is 5.03.27 (the dotpup for that is available at http://www.murga.org/~puppy/viewtopic.php?t=2258 and the source from http://www.int21.de/conexant/).
When compiling the 5.03.27 version I had to modify the oscompat.h file in order for it to compile with newer versions of gcc --I'll get back to you on what I had to change. You may not have that problem with the hsfmodem-7.18.00.02oem.tar.gz file from your driver cd.
In order to compile the driver you will need the kernel source, I note sure if that is included with the development package for puppy.
~~~~~~~
The package provided by MU contains precompiled modules and the source for recompilation, which is probably the reason its asking you to recompile the drivers. Additionaly, I don't see the file /etc/nvram.bin. This is a key file --at least in version 5.x.x and above.
I don't think it would work, but it would be intersting to see if getting the /etc/nvram.bin (provided there is one) from MU would make a difference. Otherwise you have three options, which in order of preference are:
1. Try my dotpup - tested successfully, can be redistrubuted, no speed limitations, newer than the version you are currently trying, adequate for dialup connectivity, less features than the newer 7.x.x versions.
2. Provide me the source for your drivers and I can compile them for you. If the version 7.x.x license is restrictive I would have email the compiled drivers to you.
3. Download the kernel source and compile the newer version if you have a key or one is not required. If you require a key you will be limited to 14.4kbs until you enter it. The original license from linuxant (not sure if this is the same for yours) prevents redistribution. Linuxnant is the company responsible for current development of the conexant winmodem drivers.
NB. I'm currently working on a few other packages for puppy and may not be able to compile the drivers for you until next week.
BTW. wrt "the drivers being dangerous" see http://www.murga.org/~puppy/viewtopic.php?p=19448#19448
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Sat 22 Oct 2005, 12:01 Post subject:
|
|
Quote: |
I don't think it would work, but it would be intersting to see if getting the /etc/nvram.bin (provided there is one) from MU would make a difference.
|
No, I don't have such a file here.
Mark
|
Back to top
|
|
 |
sling-shot

Joined: 19 Aug 2005 Posts: 109 Location: India
|
Posted: Sat 22 Oct 2005, 16:49 Post subject:
|
|
[jcoder24]
Downloaded and installed your dotpup. Upon running the HSF/HCF modem config it told me the same thing about Linux kernel i just pressed enter and finally got the message modem successfully installed.
One more thing soon as i started the config a blue screen showed me "14f1" and "2f00" and asked me to remember these and enter them later when asked but i was never asked for it!
And i did not have to enter anything.
Now to GkDial...
I setup an account and dial... i can hear the modem dialing but finally just disconnected...
No success...
Dont know what to do. [Writing this by connecting from Win98]
--------------
And yes that DISCLAIMER was what had spooked me
_________________ I am a nobody. Nobody is perfect. So I am perfect.
STATUS:Trying to begin life in Linux World.
|
Back to top
|
|
 |
jcoder24

Joined: 06 May 2005 Posts: 601 Location: Barbados
|
Posted: Sun 23 Oct 2005, 13:52 Post subject:
|
|
sling-shot wrote: |
One more thing soon as i started the config a blue screen showed me "14f1" and "2f00" and asked me to remember these and enter them later when asked but i was never asked for it! |
If you answer yes to the following questions and everything is detected you wouldn't need to enter anything. Sometimes it don't go that smoothly and you end up having to enter them any way --that's why I recommend answering no.
Should we attempt to automatically configure your hardware? [yes]
Is the modem presently installed in your system? [yes]
sling-shot wrote: |
Now to GkDial...
I setup an account and dial... i can hear the modem dialing but finally just disconnected... |
Since the modem is dialing the drivers are probably working. See here for futher instructions http://www.murga.org/~puppy/viewtopic.php?p=11857#11857
|
Back to top
|
|
 |
sling-shot

Joined: 19 Aug 2005 Posts: 109 Location: India
|
Posted: Mon 24 Oct 2005, 02:34 Post subject:
|
|
jcoder24 wrote: |
If you answer yes to the following questions and everything is detected you wouldn't need to enter anything. Sometimes it don't go that smoothly and you end up having to enter them any way --that's why I recommend answering no.
Should we attempt to automatically configure your hardware? [yes]
Is the modem presently installed in your system? [yes]
|
Even these questions did not pop up...!!!
_________________ I am a nobody. Nobody is perfect. So I am perfect.
STATUS:Trying to begin life in Linux World.
|
Back to top
|
|
 |
jcoder24

Joined: 06 May 2005 Posts: 601 Location: Barbados
|
Posted: Mon 24 Oct 2005, 10:01 Post subject:
|
|
sling-shot wrote: | Even these questions did not pop up...!!! |
Ok, I just remembered that I had put in a check for the file '/etc/hsf/config'. If the file exists it skips the configuration. You prob. had one from the MU package installation. Try removing all of the files installed by both MU and my packages, reinstall and try again.
If it fails we will need to see your log files.
|
Back to top
|
|
 |
|