Re: Ryan Stewart, USA, kernel 2.6.24-16-generic

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

 



Ryan,

<quote>
 The modem has a Lucent/Agere/LSI Mars or Apollo DSP (digital signal
processing) chipset.
Support packages for 2.6.n kernels are at:
 http://linmodems.technion.ac.il/packages/ltmodem/kernel-2.6/martian/
, with current update martian-full-20071011.tar.gz

 See AgereDSP.txt for Details.

 Minimal compiling resources appear complete:
  make utility - /usr/bin/make
  Compiler version 4.2
  linuc_headers base folder /lib/modules/2.6.24-16-generic/build

 However some compilations and executable functions may need additional files,
 in the FileNames.h (so called kernel "h"eaders) collection installed
in  /usr/include/ .
 For martian_modem, additional required packages are libc6-dev (and
for Debian/Ubuntu,  linux-libc-dev). The also required headers of
package libc6 are commonly installed by default.
</quote>

Download the file

http://linmodems.technion.ac.il/packages/ltmodem/kernel-2.6/martian/martian-full-20071011.tar.gz

copy it to your linux partition, open up a terminal window and begin doing
$ tar -zxvf martian-full-20071011.tar.gz
$ cd martian-full-20071011/
$ cd kmodule/

open with your favorite editor the file martian.c, do a search and
replace or goto line 656 and make he change below
$ cd ..
$ cd modem/

open the file mport.c and make the change below.

You will need to make at least two modifications

1)

Open martian-full-20071011/kmodule/martian.c with your favorite
editor, do a find and replace function:

search for `SA_INTERRUPT | SA_SHIRQ' and replace it with
`IRQF_DISABLED | IRQF_SHARED'

in kmodule/martian.c: replace
SA_INTERRUPT | SA_SHIRQ,
by
IRQF_DISABLED | IRQF_SHARED,

and
in kmodule/Makefile replace
CPPFLAGS += -DKMARTIAN_STAMP=20061202
by
KBUILD_CPPFLAGS += -DKMARTIAN_STAMP=20061202

as suggested by the patch sent by Stephan Puch:

*** martian.c   2008-01-25 17:58:35.245626264 +0100
--- martian.c-work      2008-01-25 17:58:28.924387700 +0100
***************
*** 656,662 ****
       ret = request_irq(
               metrics->irq,
               martian_isr,
!               SA_INTERRUPT | SA_SHIRQ,
               "164x",
               mdev
       );
--- 656,662 ----
       ret = request_irq(
               metrics->irq,
               martian_isr,
!               IRQF_DISABLED | IRQF_SHARED,
               "164x",
               mdev
       );


2)  add to mport.c in about lines 319 or so make the additions + to the file

--- modem/mport.c.orig  2008-03-10 17:50:03.000000000 +0000
+++ modem/mport.c       2008-03-10 17:47:29.000000000 +0000
@@ -319,6 +319,9 @@
               0x0
               );

+        strcpy (common->kstamp, "20061202\0");
+        strcpy (common->tsignature, "martiaN\0");
+
       if (common == MAP_FAILED) {
               LOGSYSERR (Error, "mmap");
               LOGERR ("Failed to map device common data block\n");

After making the changes suggested here,
$ make all
$ sudo make install
$ sudo modprobe martian_dev
$ sudo  martian_modem

Leave the terminal open and open a tab or another terminal window, do a
$ sudo wvdialconf /etc/wvdial.conf
and it should find your modem
/dev/ttySM0 is the modem port
edit phone number , username, password, etc in wvdial.conf, add a line
Carrier Check = no, also add a line Stupid Mode = yes if it is not
there already.

Try to connect to your ISP and report back success/failure.

I hope that you do not run into trouble and should you run into any,
please report back to the list.  The kernel 2.6.24-16 < 2.6.25 which
causes certain troubles, so you should be safe.

Regards,

Antonio


On 4/25/08, Ryan Stewart <rds6235@xxxxxxxxx> wrote:
> I'm new to linux and trying to get a modem working. I've run scanModem
> and tried compiling the martian driver, which I believe is what it
> indicated I needed, but I'm getting compilation errors. This is a
> fresh install of Ubuntu 8.04. Below is my ModemData.txt.
>
> Thanks for any help. I've been running around in circles trying to
> figure all this stuff out.
>
>
> --------------------------  System information ----------------------------
> CPU=i686,
> Linux version 2.6.24-16-generic (buildd@palmer) (gcc version 4.2.3
> (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Thu Apr 10 13:23:42 UTC 2008
>  scanModem update of:  2008_04_16
>
>  There are no blacklisted modem drivers in /etc/modprobe*  files
> USB modem not detected by lsusb
>
> For candidate card in slot 01:05.0, firmware information and bootup
> diagnostics are:
>  PCI slot       PCI ID          SubsystemID     Name
>  ----------     ---------       ---------       --------------
>  01:05.0        11c1:044c       11c1:044c       Communication controller: Agere Systems
> LT WinModem
>
>  Modem interrupt assignment and sharing:
>  --- Bootup diagnostics for card in PCI slot 01:05.0 ----
>
> === Finished firmware and bootup diagnostics, next deducing cogent software. ===
>
> Predictive diagnostics for card in bus 01:05.0:
>        Modem chipset  detected on
> CLASS="Class 0780: 11c1:044c"
> NAME="Communication controller: Agere Systems LT WinModem "
> PCIDEV=11c1:044c
> SUBSYS=11c1:044c
> IRQ=3
> IDENT=Agere.DSP
>
>  For candidate modem in:  01:05.0
>   Class 0780: 11c1:044c Communication controller: Agere Systems LT WinModem
>      Primary PCI_id  11c1:044c
>  Support type needed or chipset:        Agere.DSP
>
>
> ----------------end Softmodem section --------------
>
>  The modem has a Lucent/Agere/LSI Mars or Apollo DSP (digital signal
> processing) chipset.
> Support packages for 2.6.n kernels are at:
>  http://linmodems.technion.ac.il/packages/ltmodem/kernel-2.6/martian/
> , with current update martian-full-20071011.tar.gz
>
>  See AgereDSP.txt for Details.
>
>
>  Vendor 11c1 is Lucent Technologies with modem technology now under LSI Inc.
> Their Linux  code developer/maintainer is Soumyendu Sarkar. Support
> for a chipset and its
>  continued maintenance is only initiated at the request of a major
> chipset buyer,
>  or comparable sponsor. Several different  modem chipset types  are produced:
>  with varying support under Linux.
>  Device ID  Support        Name           Comment
>  ---------  -------------  -----------    -----------------------------
>  0480       serial drivers Venus           controller chipset 1673JV7
>  0440-045d  martian        Mars/Apollo     DSP (digital signal
> processing) chipsets
>  0462       none           56K.V90/ADSL Wildwire
>  048d none                 SV2P            soft modem
>  048(c or f) AGRSM         SV2P            soft modem
>  0600       none           soft modem, very few in the field.
>  0620       AGRSM          Pinball  soft modem, in some HP desktop PCs
>  062(1-3)   none           SV92PP,Pinball  soft modem, in some HP desktop PCs
>
> martian - At http://linmodems.technion.ac.il/packages/ltmodem/kernel-2.6/martian/
>
> AGRSM - At http://linmodems.technion.ac.il/packages/ltmodem/sv92/
> The  suse-10-2a.tar.gz has newer Agere/LSI code, but there are
> compiling problems with newer kernels/
>
>  0x044c -- Mars 3 Perseus data/fax only:North America and Global board
>  0x044c -- Mars 3.2 Mercury data fax only when no eeprom is present,
> North America DAA
> -------------- end Agere Systems section -------------------
>
>  Completed candidate modem analyses.
>
>  The base of the UDEV device file system is: /dev/.udev
>
>  Versions adequately match for the compiler installed: 4.2.3
>             and the compiler used in kernel assembly: 4.2.3
>
>
>
>  Minimal compiling resources appear complete:
>   make utility - /usr/bin/make
>   Compiler version 4.2
>   linuc_headers base folder /lib/modules/2.6.24-16-generic/build
>
>  However some compilations and executable functions may need additional files,
>  in the FileNames.h (so called kernel "h"eaders) collection installed
> in  /usr/include/ .
>  For martian_modem, additional required packages are libc6-dev (and
> for Debian/Ubuntu,  linux-libc-dev). The also required headers of
> package libc6 are commonly installed by default.
>
>
>
> If a driver compilation fails, with message including some lack of
> some FileName.h (stdio.h for example), then
> Some additional kernel-header files need installation to /usr/include.
> The minimal additional packages are libc6-dev
> and any of its dependents, under Ubuntu linux-libc-dev
>
> If an alternate ethernet connection is available,
> $  apt-get update
> $  apt-get -s install linux-kernel-devel
> will install needed package
> For Debian/Ubuntu related distributions, run the following command to
> display the needed package list:
>
> Otherwise packages have to be found through http://packages.ubuntu.com
> Once downloaded and transferred into a Linux partition,
> they can be installed alltogether with:
> $ sudo dpkg -i *.deb
>
>
> Checking pppd properties:
>        -rwsr-xr-- 1 root dip 269256 2007-10-04 14:57 /usr/sbin/pppd
>
> In case of an "error 17" "serial loopback" problem, see:
>    http://linmodems.technion.ac.il/linmodems/archive-sixth/msg02637.html
>
> To enable dialout without Root permission do:
>        $ su - root  (not for Ubuntu)
>        sudo chmod a+x /usr/sbin/pppd
> or under Ubuntu related Linuxes
>        sudo chmod a+x /usr/sbin/pppd
>
> Checking settings of:   /etc/ppp/options
> asyncmap 0
> noauth
> crtscts
> lock
> hide-password
> modem
> proxyarp
> lcp-echo-interval 30
> lcp-echo-failure 4
> noipx
>
> In case of a message like:
>   Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
> see http://linmodems.technion.ac.il/bigarch/archive-sixth/msg04656.html
>
> Read Modem/YourSystem.txt concerning other COMM channels: eth0
> Which can interfere with Browser naviagation.
>
>  Don't worry about the following, it is for the experts
>  should trouble shooting be necessary.
> ==========================================================
>
>  Checking for modem support lines:
>  --------------------------------------
>     /device/modem symbolic link:   crw-rw---- 2 root dialout 4, 64
> 2008-04-24 16:00 /dev/modem
> slmodemd created symbolic link /dev/ttySL0:
>     Within /etc/udev/ files:
>
>     Within /etc/modprobe.conf files:
> /etc/modprobe.d/blacklist-modem:# Uncomment these entries in order to
> blacklist unwanted modem drivers
> /etc/modprobe.d/blacklist-modem:# blacklist snd-atiixp-modem
> /etc/modprobe.d/blacklist-modem:# blacklist snd-via82xx-modem
> /etc/modprobe.d/alsa-base:options snd-atiixp-modem index=-2
> /etc/modprobe.d/alsa-base:options snd-via82xx-modem index=-2
>     Within any ancient /etc/devfs files:
>
>     Within ancient kernel 2.4.n /etc/module.conf files:
>
> --------- end modem support lines --------
>

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

  Powered by Linux