Re: 11c11040 Re: Feras Allaou,Syria,Kernel ,2.6.28-11-generic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Feras,

Please send to the List, not me.

Run
$ sudo agrsm-test
and it will test the modem. Skip the compiling part of the attached

MarvS

On Tue, May 19, 2009 at 1:05 PM, feras allaou <feras.allaou@xxxxxxxxx> wrote:
> i had the packages already installed in my system , so where can I find them
> ?
>
> On Tue, May 19, 2009 at 6:19 PM, Marvin Stodolsky
> <marvin.stodolsky@xxxxxxxxx> wrote:
>>
>> Put the agrsm-tools and dkms-agrsm packages in your home folder and:
>> $ sudo dpkg -i *.deb
>>
>> Afterward run:
>> $ sudo agrsm-test
>>
>> Which will hopefully find the modem. If so:
>> $ sudo gedit  /etc/wvdial.conf
>> removing symbols < > ;
>> as you put in your dialout info.
>>
>> Then dialout with:
>> $ sudo wvdial
>>
>> A reboot may be necessary.  To set up the modem after a boot up in the
>> futuer:
>> $ sudo modprobe agrserial
>>
>> MarvS
>>
>>
>>
>> On Tue, May 19, 2009 at 10:15 AM, feras allaou <feras.allaou@xxxxxxxxx>
>> wrote:
>> > Dear MarvS:
>> >
>> > Thank u for ur assistance , I have dkms package already installed ,
>> > what should I do next ?
>> >
>> > Regards
>> > Feras
>> >
>> > On Tue, May 19, 2009 at 3:20 PM, Marvin Stodolsky
>> > <marvin.stodolsky@xxxxxxxxx> wrote:
>> >> Feras,
>> >>
>> >> Under Jaunty 9.04, for
>> >>
>> >>   0403 Audio device: Intel Corporation 82801H
>> >>      Primary device ID:  8086:284b
>> >>    Subsystem PCI_id  1179:ff00
>> >>    Softmodem codec or chipset from diagnostics: 0x11c11040
>> >>
>> >> The dkms package must first be installed.  If not on your CD, get it
>> >> from:
>> >> http://packages.ubuntu.com/jaunty/dkms  and any other dependent
>> >> packages that may  be needed.
>> >>
>> >> Then the dkms-agrsm installed that I'll separately forward can be used.
>> >> Such packages can be installed with commands like:
>> >> $ sudo dpkg -i Name*.deb
>> >> and multiple packages with:
>> >> $ sudo dpkg -i  *.deb
>> >>
>> >> MarvS
>> >> scanModem maintainer
>> >>
>> >>
>> >>
>> >>
>> >> For an example of what to expect, read
>> >> http://linmodems.technion.ac.il/bigarch/archive-eighth/msg03863.html
>> >> On Tue, May 19, 2009 at 8:08 AM, feras allaou <feras.allaou@xxxxxxxxx>
>> >> wrote:
>> >>> --
>> >>> http://www.feras.ws
>> >>>
>> >>
>> >
>> >
>> >
>> > --
>> > http://www.feras.ws
>> >
>
>
>
> --
> http://www.feras.ws
>







This instruction set was provided by Hugo Canilli. He has thus had success with this AGRSM code requiring modem, under Linuxes: Ubuntu versions 6.10, 7.04, 7.10 and slackware 12.0. Marv Stodolsky lightly edited the text. 

00) Be sure than kernel headers are installed. Under Ubuntu, 
they are provided by a package pair with name format like
	linux-headers-2.6.22-14 linux-headers-2.6.22-14-generic
with 2.6.22-14-generic being the boot kernel version

0) Download the package agrsm-20070804.tar.gz to your Desktop.
Open a terminal.
Type the following:
	cd ~/Desktop
	tar xzvf agrsm-20080203.tar.gz 
	cd agrsm
	make 
	sudo make install
Note: the sudo is for usage in Ubuntu related Linux Distros/
For other Linuxes, first acquire Root/Adm powers with:
su - root
which will typically return a leading line with # ,
and Commands can be given without sudo:
	make install

This completes the driver installation.
The two above steps need only be repeated when a new kernel is installed,
which always requires matching drivers.

1) Next load the drivers
	sudo modprobe agrmodem
	sudo modprobe agrserial
which should announce creation of /dev/ttyAGS3. 
This port can be displayed with:
	ls -l /dev/ttyA* 
crw-rw---- 1 root dialout 62, 67 2008-02-03 13:00 /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<Info>: Speed 115200; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
--------
Then you can proceed to try a dialout (see below).

A failure will include lines like:
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1   S2   S3   
Sorry, no modem was detected! 

In this case there are a few Remedies to try.
Note: On 2008-02-03 , a patch was applied which should bypass the need for R1 just below)
R1) edit your grub or lilo parameter to the kernel with the option "pci=noacpi"
For example in a Ubuntu system, gedit can be used to modify the file 		/boot/grub/menu.lst 
with command:
	sudo gedit /boot/grub/menu.lst

The middle of menu.lst includes sections correponding to each bootup choice like:

title		Ubuntu 7.10, kernel 2.6.22-14-generic
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.22-14-generic ro quiet splash
initrd		/boot/initrd.img-2.6.22-14-generic
quiet

Make a copy of this section, and edit to:
title		Ubuntu 7.10, kernel 2.6.22-14-generic without acpi
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.22-14-generic ro quiet splash pci=noacpi
initrd		/boot/initrd.img-2.6.22-14-generic
quiet

Save the edit
Restart the computer.
Among the bootup options, make the new choice:
     Ubuntu 7.10, kernel 2.6.22-14-generic without acpi
Test for modem detection, through steps  1,2 and 3
Go to the dialout test if successful.

R2) If not, try to disable the sound in the bootup BIOS.
R2a) Note a success can sometimes be achieved by moving the modem card to other PCI slot. But this option is not available on laptops.
See success report: http://linmodems.technion.ac.il/bigarch/archive-eighth/msg00304.html

Follow prior steps 1,2 and 3 for testing, retaining the bootup acpi=off parameter. 

Dialout procedure
------------------
First edit in your dialout information with:
	sudo gedit /etc/wvdial.conf
In the sample below, the lines beginning with are informative, not essential.
The line order is not important.

[Dialer defaults]
# Lines begining with # are comments.
# wvdial will look for this file at  /etc/wvdial.conf 
#  or  /home/LoginName/.wvdial.rc
Baud = 115200
Modem = /dev/ttySAGR3
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

--------
Automation - Do NOT do this until full functionality of the modem is
achieved, or testing the issues will be confused. The following SINGLE LINE
can be added (depending upon your Linux distro) to /etc/modprobe.conf or
(Debian/Ubuntu) a file with folder /etc/modprobe.d/, perhaps /etc/modprobe.d/agr

install agrserial modprobe --ignore-install agrmodem ; modprobe --ignore-install agrserial ; test -e /dev/ttyAGS3 ; ln -s /dev/ttyAGS3 /dev/ttySAGR ; ln -s /dev/ttyAGS3 /dev/modem

Then there will be the following responses upon:
$ sudo modprobe agrserial
marv@marvdesk:~$ Feb  3 13:15:14 marvdesk kernel: [ 5714.932000] agrsm: created 0 infos
Feb  3 13:15:14 marvdesk kernel: [ 5715.000000] ttyAGS3 at I/O 0x400 (irq = 3) is a AgereModem
Feb  3 13:15:14 marvdesk kernel: [ 5715.000000] agrserial: 
  Loading module Agere Modem Interface driver version 2.1.60.0.Linspire (2005-11-16)

With ports displayed by:
$ ls -l /dev/ttyA* /dev/ttyS* /dev/modem
lrwxrwxrwx 1 root root        12 2008-02-03 13:07 /dev/modem -> /dev/ttyAGS3
crw-rw---- 1 root dialout 62, 67 2008-02-03 13:15 /dev/ttyAGS3
crw-rw---- 1 root dialout  4, 64 2008-02-03 06:40 /dev/ttyS0
crw-rw---- 1 root dialout  4, 65 2008-02-03 06:40 /dev/ttyS1
crw-rw---- 1 root dialout  4, 66 2008-02-03 06:40 /dev/ttyS2
crw-rw---- 1 root dialout  4, 67 2008-02-03 06:40 /dev/ttyS3
lrwxrwxrwx 1 root root        12 2008-02-03 13:07 /dev/ttySAGR ->/dev/ttyAGS3

the /dev/ttyS1-4 are the ports for older Controller Chip modems and usually
created by default upon bootup.



[Index of Archives]     [Linux Media Development]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Fedora Women]     [Linux USB]

  Powered by Linux