PDA

View Full Version : Success: Conexant HSF modem in Sony laptop



EPS
05-22-2003, 12:13 AM
Sony VAIO F-series laptop with a built-in Conexant SoftK56 Data,Fax PCI Modem
PCI VendorID=14F1 DeviceID=2443

Here's how I got it working with KNOPPIX V3.2 2003-05-16 EN:

1. Boot into a text console (no X!)
knoppix 2

2. Ensure date and time are correct for local time zone
cp -p /usr/share/zoneinfo/US/Pacific /etc/localtime
hwclock -s

3. Get a copy of the Linuxant HSF source distribution onto the machine somehow

4. Unpack tarball
cd /ramdisk
tar xvpzf /PATH/TO/hsflinmodem-5.03.27lnxtbeta03042700.tar.gz

5. Start at the top
cd hs*

6. Edit config.mak
(old line 23) HOME=
(new line 23) HOME=/ramdisk
(old line 31) HSFETCDIR=$(ETCDIR)/hsf
(new line 31) HSFETCDIR=/etc/hsf
(old line 32) HSFINFDIR=$(HSFETCDIR)/inf
(new line 32) HSFINFDIR=$(ETCDIR)/hsf/inf

7. Edit modules/common.mak
(old line 22) KMODS_DIR= /lib/modules/$(KERNELVER)
(new line 22) KMODS_DIR= /ramdisk/lib/modules/$(KERNELVER)

8. Edit scripts/hsfconfig.in
(old line 1118) depmod -e -a
(new line 1118) depmod -e -a -b /ramdisk
(old line 1495) PATH=/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/local/bin
(new line 1495) PATH=/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/ramdisk/usr/sbin

9. Compile stuff [don't think, just follow directions]
make install
/ramdisk/usr/sbin/hsfconfig -a

You'll get a warning:
depmod: Can't open /lib/modules/2.4.20-xfs/modules.dep for writing

Ignore it!

10. Gather the few pieces actually needed for this particular model
cd /ramdisk
mkdir -p hsf/etc.hsf hsf/modules/misc
cp -p /etc/hsf/nvram.bin hsf/etc.hsf
cd lib/modules/2.4.20-xfs/misc
mv hsfbasic2.o hsfengine.o hsfosspec.o hsfserial.o /ramdisk/hsf/modules/misc
cd /ramdisk
tar cvzf hsf.tgz hsf

11. Make customization script (see /etc/init.d/alsa-autoconfig)
cp /etc/modutils/hsf knoppix.sh
chmod 755 knoppix.sh

Add "glue" so it looks like:

#!/bin/sh
(cd /ramdisk;exec /bin/tar xpzf $1/hsf.tgz)
/bin/ln -s /ramdisk/hsf/etc.hsf /etc/hsf
HSFPATH=/ramdisk/hsf/modules
export HSFPATH
/bin/cat << EOF > /etc/modutils/hsf
path[misc]=$HSFPATH
depfile=$HSFPATH/modules.dep
generic_stringfile=$HSFPATH/modules.generic_string
pcimapfile=$HSFPATH/modules.pcimap
isapnpmapfile=$HSFPATH/modules.isapnpmap
usbmapfile=$HSFPATH/modules.usbmap
parportmapfile=$HSFPATH/modules.parportmap
ieee1394mapfile=$HSFPATH/modules.ieee1394map
pnpbiosmapfile=$HSFPATH/modules.pnpbiosmap
alias /dev/ttySHSF* hsfserial
alias char-major-241 hsfserial
alias /dev/ttyCUA* hsfserial
alias char-major-242 hsfserial
alias /dev/modem hsfserial
options hsfserial serialmajor=241 calloutmajor=242
EOF
unset HSFPATH
/bin/rm -f /etc/modules.conf
/sbin/update-modules
/bin/rm -f /dev/modem /dev/cuaHSF0 /dev/ttySHSF0
/bin/mknod -m 666 /dev/ttySHSF0 c 241 64
/bin/mknod -m 666 /dev/cuaHSF0 c 242 64
/bin/ln -s /dev/ttySHSF0 /dev/modem

12. Put the files on a [blank] floppy
fdformat /dev/fd0H1440
mkfs /dev/fd0H1440
cp -p hsf.tgz knoppix.sh /mnt/floppy
sync

13. Try it out
shutdown -r now

You'll get a warning:
insmod: Note: /etc/modules.conf is more recent than /lib/modules/2.4.20-xfs/modules.dep

Ignore it!

Boot:

knoppix floppyconfig

14. Test with PPP
Ctrl-Alt-F2 to switch to text console
wvdialconf /etc/wvdial.conf

Edit /etc/wvdial.conf; you should see:

[Dialer Defaults]
Modem = /dev/modem
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
; Phone = <Target Phone Number>
; Username = <Your Login Name>
; Password = <Your Password>

Add W3 to the Init2 string so we can determine connect speed
Uncomment Phone and Username; fill in appropriate values
Add an Ask Password = 1 line

aumix

Set PhoneIn volume to something much lower (25 is good)

wvdial

Once connected, Alt-F5 to switch back to X

To disconnect, Ctrl-Alt-F2 (pause) Ctrl-C (pause) Alt-F5

VxJasonxV
05-30-2003, 04:37 PM
Hey EPS. I have a few questions of things that kind of confused me...

I got to step 5 before I wondered... cd hs* isn't a valid command...

5. Start at the top
cd hs*
Is this supposed to be representative of something?

And then, I think I may have screwed this up but, can you point me in the direction of the files you edited?
(Or...is there a find command?)
config.mak
is /modules/common.mak under /ramdisk ? (/ramdisk/modules/common.mak ?)
scripts/hcfconfig.in (this should be hcf for me...it's my problem so I'll figure it out :) ).

Do you think you could verify everything being the same for HCFs in Step 10?

10. Gather the few pieces actually needed for this particular model
cd /ramdisk
mkdir -p hsf/etc.hsf hsf/modules/misc
cp -p /etc/hsf/nvram.bin hsf/etc.hsf
cd lib/modules/2.4.20-xfs/misc
mv hsfbasic2.o hsfengine.o hsfosspec.o hsfserial.o /ramdisk/hsf/modules/misc
cd /ramdisk
tar cvzf hsf.tgz hsf


Add "glue" so it looks like:

#!/bin/sh
(cd /ramdisk;exec /bin/tar xpzf $1/hsf.tgz)
/bin/ln -s /ramdisk/hsf/etc.hsf /etc/hsf
HSFPATH=/ramdisk/hsf/modules
export HSFPATH
/bin/cat << EOF > /etc/modutils/hsf
path[misc]=$HSFPATH
depfile=$HSFPATH/modules.dep
*snip*
/bin/ln -s /dev/ttySHSF0 /dev/modem
Can you explain this? I don't understand what you mean be 'Add Glue'. :oops:



I should be able to get it all from there.
But, as a side note.
Can I pull configuration from two different sources?

I have my persistant home and config files in /mnt/hda1, but if I do this...can I 'knoppix myconfig=/mnt/auto/floppy myconfig=/mnt/hda1' ?

Or should I mount hda1 and just copy the hcf.tgz onto it? (Looks like I'll have to edit knoppix.sh too, otherwise it'll overwrite...'dun want that...)

Thanks.

rickenbacherus
05-30-2003, 08:53 PM
Hey EPS. I have a few questions of things that kind of confused me...

I got to step 5 before I wondered... cd hs* isn't a valid command...

5. Start at the top
cd hs*
Is this supposed to be representative of something?


When you do this:


tar xzvf hsflinmodem-5.03.27lnxtbeta03042700.tar.gz
You will get a new directory named
hsflinmodem-5.03.27lnxtbeta03042700

So..........

cd hsflinmodem-5.03.27lnxtbeta03042700

The * is representative of a wildcard.

ktheking
05-30-2003, 10:53 PM
I hope that no converted windozer see this .
All this to make a modem work ? Brrrrrrrrrrrrrrrr.....
You'll give him the creeps :shock: :shock: :shock:
Any more elegant Fabian stylish solution ?

kingarthur
05-30-2003, 11:08 PM
My congrats to ESP for his succesful installation however, I have solved the same problem in a much much easier way.

1) got the Binary RPM from here:
http://www.linuxant.com/drivers/hsf/downloads.html
2) Now you must do some configuration work with the rpm database as the rpm command wan't work on a standard knoppix installation so first create the necessary /var/lib/rpm directory and than
3) rpm --initdb
4) position yourself where your hsf....linuxantfile.rpm is (I used /usr)
5) rpm -i --nodeps [yourcompletehsfpackagename]
6) everything is ready now for "hsfconfig" to complete the installation and configure your modem.
you'll find all necessary information at the linuxant web page:
http://www.linuxant.com/drivers/hsf/install.html
and of corse at "man rpm"

It worked with me I hope it will for you....:-)
Good luck!
Pieter[/b]

VxJasonxV
06-04-2003, 02:53 AM
Welp, I tried EPS's method last night, but HSF's and HCF's are just dissimilar enough that I couldn't get it to work.
Kinda sad because I got to step 10.
Ah well, I'll be trying arthur's method tonight most likely.

FranklinIII
06-19-2003, 02:45 PM
Hi.

I'm usin Knoppix 3.2 and I would like to use mie HCF Connexant Modem (Actually it is an Elsa 56k PCI modem but the chipset is teh connexant HCF) I would like to make it work on the CD Knoppix so I don't have to install Knoppix. I could certenly do that but i just don't want to. It sounds good to me to do that with a modified boot floppy. It would even be fine for me to remaster the Knoppix CD and then be abel to use my modem. The thing is the above diskription for HSF modems from Conexant doesn't seem to work. (i didn't try it due to teh above statement). I would be very happy for help.

Thenk you all.

Franklin

garyng
06-21-2003, 07:50 AM
I hope that no converted windozer see this .
All this to make a modem work ? Brrrrrrrrrrrrrrrr.....
You'll give him the creeps :shock: :shock: :shock:
Any more elegant Fabian stylish solution ?

ROFL. Window is way too ahead in software/driver installation. For noice user, the only steps they know are :

1. plug the device
2. insert the driver CD(on XP, this step is not needed)
3. answer some trivial question(again on XP, usually not needed)

and the driver is available for use.

For the more sophisticated one who knows where to go on the internet, just click an setup.exe link and everything should be taken care of.

When are we going to see this kind of installation in linux ?

ipc
06-26-2003, 02:30 AM
i have the same question.it's a method to boot up with a floppy disk,but i wonder if we can find a way to remaster within the modem driver?

FranklinIII
06-27-2003, 09:44 PM
I do not have a problem reading long instruktions about how to install drivers for hcf modems The problem is I don't whant to install Knoppix to HD and how to get the driver to work with a floppy or how to remaster the knoppix cd ist a litle to much work for right now. I just do not have enough time to read about 200 pages which I have to find first. Finding the right information is usually harder than doing the things you've got to do to make the modem work

Best regard Benjamin Bergmann

ipc
07-02-2003, 11:03 AM
I have tried to remaster one cd with my win-modem driver and config file what have been tested ok in my hdd-installed system.
but when i boot up with this CD,the modem can't be accessed.
it's sure that modules have been probed.
and in this condition, hsfconfig can't modify the file on the cd....

i365
09-06-2003, 03:31 AM
Great job EPS! I followed your method on my dell computer and finally got my Conexant HSF modem work.

user unknown
05-03-2004, 07:13 PM
garyng: If you install from .rpm or .deb, it's not far away.
The question is: when will hardwaremanufactors support linux?

And I prefer to install from tar.bz2, so I can take more influence on the process.
Installing from source often means, that the same sourcecode is used for very different unix-like platforms, and you may optimize for size or speed, or debugging - however you want.

I recently installed a testversion of .Net.
Drive C: 300 M free space
Dirve D: 3 G free space.

Though I told to use Drive D: for installation, it failed because insufficient space on drive C:
And no way round.
Glorious windows-way to install without involving the user too much!

---
Back to hardware (conexant/ linuxant-modem):
I switched to knoppix 3.4 recently and installed a new kernel (2.6.4) as well.
Since the kernel changed the module-interface, the old driver didn't work.
I downloaded a new one, but linuxant changed their licence politic.
You may get the driver in a crippled-version for free, but it is restricted to 14.400 speed.
Or you pay a small fee (10$ or 20$ as far as I know).
I tried the new (crippled) driver, but it didn't work.
But I had changed my telephone-provider and switched to adsl, so I don't need the new driver, and so I stopped investigating the errorcodes, settings, and so on.

But keep this in mind when changing to kernel 2.6!