tazpkg install linux-source
# Just open the file and edit manually OR
sed -i 's/hda_hwdep.h>/hda_hwdep.h> \n EXPORT_SYMBOL(snd_hda_codec_read); \n EXPORT_SYMBOL(snd_hda_codec_write); /' /usr/src/linux/sound/pci/hda/hda_codec.c
cd /usr/src/linux
make oldconfig
make modules
cp sound/pci/hda/snd_hda_intel.ko /lib/modules/`uname -r`/kernel/sound/pci/hda/snd-hda-intel.ko
tazpkg search-pkgname agrmodem
hwsetup wvdial
ln -s /dev/ttyAGS3 /dev/modemthen try
wvdialconfand try to connect with
wvdial
cat /etc/wvdial.conf?
cat /etc/group
[Dialer defaults]
# Lines begining with # are comments.
# wvdial will look for this file at /etc/wvdial.conf
# or /home/LoginName/.wvdial.rc
Baud = 57600
Modem = /dev/ttySAGR
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
# Lack of dialtone acquisition can be due to low line voltage,
# a common problem in Italy.
# Try inserting a "dial without waiting": X3
# Init2 = ATQ0 V1 E1 S0=0 X3 &C1 &D2 +FCLASS=0
# In case of connection instabilities, specify a lower frequency:
# Init2 = ATQ0 V1 E1 S0=0 X3 &C1 &D2 +MS=34
## Outside the USA, a country setting may be needed
# Init3 = AT+CGI=hexadecimal_country_code
ISDN = 0
Modem Type = Analog Modem
Phone = Dialout_phone_number
# if going through a switch board, a perhaps necessary pause can produced with a comma:
# Phone = 1,Dialout_phone_number
Username = LoginName
# if Internet Provider is MSN.net, use under Linux: MSN/LoginName
Password = YourPassWord
## If CONNECT is achieved but browsing fails, try activating the following line
# Auto DNS = yes
## To make a logfile wvdial.out
# wvdial 2>&1 | tee wvdial.out
# # For some Internet providers, the following line is necessary
# Stupid Mode = yes
## for other wvdial options, do "man wvdial" or see the documentation in
## /usr/share/doc/wvdial/
## End wvdial.conf
Modem Port Scan<*1>: S0 S1 S2 S3 Killed
-------
This establishes that drivers loading is OK.
The current problem is modem hardware detection even with the drivers loaded.
Since your hardware under ALSA analysis is:
--
Codec: LSI Si3054
Vendor Id: 0x11c13026
there should now be tested the slmodemd activation approach.
Use the SLMODEMD_gcc4.4_alsa1.0.21.tar.gz previously sent.
With this package in your personal folder:
$ ls SL*
should show the package. Then
$ tar zxf SLM*.tar.gz
$ ls -d SL*
to display the new folder.
Move in with:
$ cd SLMODEMD_gcc4.4_alsa1.0.21
$ ls
to list the files, which you should browse. There is a file setup. Run with
$ sudo ./setup
This just copies slmodemd to /usr/sbin/slmodemd
and does not have to be repeated.
Thereafter when you open a console, it will suffice to:
$ sudo slmodemd -c USA --alsa modem:1
should activate the modem with annoucement of:
/dev/ttySL0 -> /dev/pts/N
Try this approach and report back.
MarvS
On Sat, Jan 30, 2010 at 7:51 AM, Jin wrote:
> Linmodems
>
> J
>
>
wvdialconf /etc/wvdial.conf
1) Next load the drivers
sudo modprobe agrmodem
sudo modprobe agrserial
which should announce creation of /dev/ttyAGS3
2) It is convient to create symbolic links, which dialer utilities will follow,
to the real port /dev/ttyAGS3 .
sudo ln -s /dev/ttyAGS3 /dev/ttySAGR
sudo ln -s /dev/ttyAGS3 /dev/modem
Check with:
ls -l /dev/ttyAGS3 /dev/ttySAGR /dev/modem
whose output should include:
/dev/modem --> /dev/ttyAGS3
/dev/ttySAGR --> /dev/ttyAGS3
3) The first critical functial test is:
sudo wvdialconf /etc/wvdial.conf
which searches through potential ports for modem responses.
A success will end with a section like:
--------
ttySAGR<*1>: Modem Identifier: ATI -- Agere SoftModem Version 2.1.40
ttySAGR<*1>: Speed 4800: AT -- OK
ttySAGR<*1>: Speed 9600: AT -- OK
ttySAGR<*1>: Speed 19200: AT -- OK
ttySAGR<*1>: Speed 38400: AT -- OK
ttySAGR<*1>: Speed 57600: AT -- OK
ttySAGR<*1>: Speed 115200: AT -- OK
ttySAGR<*1>: Max speed is 115200; that should be safe.
ttySAGR<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found a modem on /dev/ttySAGR.
Modem configuration written to /etc/wvdial.conf.
ttySAGR: Speed 115200; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
--------
Then you can proceed to try a dialout (see below).
ttySAGR: Device or resource busy
Modem Port Scan<*1>: SAGR
Sorry, no modem was detected! Is it in use by another program?
Did you configure it properly with setserial?
# For the 11c11040 case you must determine your ALSA drivers version. You MUST be using the version of ALSA that came with your current kernel. If you have since upgraded to a newer version of the ALSA modules, you will need to revert to the old version (or if this is not possible, upgrade your kernel.) To find your ALSA module version, issue in a terminal the command:
cat /proc/asound/version
with a typical output like:
Advanced Linux Sound Architecture Driver Version 1.0.16.
Compiled on Jun 18 2008 for kernel 2.6.24-19-generic (SMP).
wherein the ALSA driver version is the 1.0.16 .
Remember this number, as other steps in this HOWTO depend on it!
# Patch your sound driver file hda_codec.cto for export symbols needed by the drivers:
1. Use your favourite PLAIN TEXT editor, such as vi or gedit, and with root permission. This file is typically located at /usr/src/linux/sound/pci/hda/hda_codec.c
2. Add the lines EXPORT_SYMBOL(snd_hda_codec_read); and EXPORT_SYMBOL(snd_hda_codec_write); to the file, after the list of '#include' statements in the beginning.
3. Save the file.
# Rebuild and install the new modules:
1. In /usr/src/linux, run the following commands:
2. sudo make oldconfig
3. sudo make modules NOTE: This command will take a while, and give lots of ouptut. Watch for any errors when it finishes. (Warnings are okay).
4. Copy the newly built module to your modules directory: sudo cp sound/pci/hda/snd_hda_intel.ko /lib/modules/`uname -r`/kernel/sound/pci/hda/snd-hda-intel.ko NOTE: Some systems (e.g. Ubuntu) deviate form this as the module's path. When in doubt, use a file search utility to search for an existing snd-hda-intel.ko file in /lib/modules/ and replace it with your patched version.
5. Restart your computer to activate the new module.
6. Verify that your sound still works.
# Obtain the correct agrsm driver from the linmodems 11c11040 pit. The file you get depends on the ALSA version you found in step 1:
* If your ALSA modules version is 1.0.15 or older, get the file agrsm-HDA-20080721-ALSA15.tar.bz2
* If you have ALSA modules version 1.0.16 or newer, get the file agrsm-HDA-20080721.tar.bz2
It looks like you're new here. If you want to get involved, click one of these buttons!