Re: Brian, CANADA, kernel 2.6.35-22-generic

Antonio Olivares <[email protected]>
Newsgroups gmane.linux.linmodem
Message-ID <[email protected]>
Brian,

$ make
$ sudo make install
might have worked, but instructions specifically say to run the
commands I referenced, see below for a successfull compilation

bash-4.1$ cd martian-full-20100123
bash-4.1$ uname -r
2.6.37.6
bash-4.1$ uname -a
Linux GHS-E213-2 2.6.37.6 #3 SMP Sat Apr 9 22:49:32 CDT 2011 x86_64
AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ AuthenticAMD GNU/Linux

README file:

x86_64 platform.
----------------

martian_modem is a 32-bit application. It can be built on x86_64 the
way prescribed, but you need 32-bit development environment for that.
Second option is to use binary built on i386.

To compile and install module only do
$ make -C kmodule/ modules
$ su
# make -C kmodule/ install


bash-4.1$ make -C kmodule/ modules
make: Entering directory
`/home/olivares/Downloads/martian-full-20100123/kmodule'
make -C /lib/modules/2.6.37.6/build
M="/home/olivares/Downloads/martian-full-20100123/kmodule"  modules
make[1]: Entering directory `/usr/src/linux-2.6.37.6'
  CC [M]  /home/olivares/Downloads/martian-full-20100123/kmodule/martian.o
/home/olivares/Downloads/martian-full-20100123/kmodule/martian.c: In
function 'martian_isr':
/home/olivares/Downloads/martian-full-20100123/kmodule/martian.c:135:27:
warning: value computed is not used
  CC [M]  /home/olivares/Downloads/martian-full-20100123/kmodule/marsio.o
/home/olivares/Downloads/martian-full-20100123/kmodule/marsio.c:358:11:
warning: 'mars_read_register_rem' defined but not used
/home/olivares/Downloads/martian-full-20100123/kmodule/marsio.c:371:13:
warning: 'mars_write_register_rem' defined but not used
  CC [M]  /home/olivares/Downloads/martian-full-20100123/kmodule/mfifo.o
  LD [M]  /home/olivares/Downloads/martian-full-20100123/kmodule/martian_dev.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/olivares/Downloads/martian-full-20100123/kmodule/martian_dev.mod.o
  LD [M]  /home/olivares/Downloads/martian-full-20100123/kmodule/martian_dev.ko
make[1]: Leaving directory `/usr/src/linux-2.6.37.6'
make: Leaving directory `/home/olivares/Downloads/martian-full-20100123/kmodule'
bash-4.1$

Then running install would install the martian driver successfully and
$ sudo modprobe martian_dev for Debian/Ubuntu distros
# sudo modprobe martian_dev in non Debian/Ubuntu distros
$ sudo martian_modem or
# martian_modem

Try to do it but with :

$ make clean
$ make -C kmodule/ modules
$ sudo make -C kmodule/ install

then
$ sudo modprobe martian_dev
$ sudo martian_modem

leave it running then run
$ sudo wvdialconf /etc/wvdial.conf
to see if it finds /dev/ttySM0 as the modem port.

Regards,

Antonio




On Mon, May 9, 2011 at 4:26 PM, Brian <[email protected]> wrote:
> Yes I did, but with some caveats. The command "$ make -C kmodule /modules"
> yielded errors. I looked at the README file, as you suggested, and it
> directed me to the developer's page (http://martian.barrelsoutofbond.org),
> where I found revisions to the commands. I used the commands "$ make all",
> and "# make install". So I may have made an error.
>
> I have since run "$ which martian_modem", and it has returned no output
> whatsoever.
>
> -----Original Message-----
> From: Antonio Olivares [mailto:[email protected]]
> Sent: May 9, 2011 3:41 PM
> To: [email protected]
> Cc: Linmodems
> Subject: Re: Brian, CANADA, kernel 2.6.35-22-generic
>
> Brian,
>
> You did run all the commands without problems:
>
> $ tar -zxvf martian-full-20100123.tar.gz
> $ cd martian-full-20101023
>
> Since your machine is 64 bit, you will need different comands than 32 bit:
> $ cd kmodule
> $ make -C kmodule/ modules
> $ su
> # make -C kmodule/ install
>
> or similar command.  Check README for instructions in case I made a
> mistake/typo.
>
> then after successfull install run
> $ sudo modprobe martian_dev
>
> Before you did
> $ sudo martian_modem
>
> You did get to do:
> ``$ sudo modprobe martian_dev``
> right?
>
> If you did, then would you post output of
> $ which martian_modem
> and send to list([email protected])
>
> Regards,
>
> Antonio
>
> On Mon, May 9, 2011 at 2:23 PM, Brian <[email protected]> wrote:
>> OK. I've followed your instructions, and have made it as far as the
> command
>> $ sudo martian_modem. At this point the machine returns "command not
> found".
>> Suggestions?
>>
>>
>> -----Original Message-----
>> From: Antonio Olivares [mailto:[email protected]]
>> Sent: May 9, 2011 1:22 PM
>> To: [email protected]
>> Subject: Re: Brian, CANADA, kernel 2.6.35-22-generic
>>
>> Brian,
>>
>> It is a development package that was recommended when installing the
>> martian modem drivers.  It might be present already on new systems?
>>
>> Regards,
>>
>> Antonio
>>
>> On Mon, May 9, 2011 at 10:14 AM, Brian <[email protected]> wrote:
>>> Thank-you Sir. I'm just collecting the required files now. What is
>>> libc6-devel and what do I do with it?
>>>
>>> -----Original Message-----
>>> From: Antonio Olivares [mailto:[email protected]]
>>> Sent: May 6, 2011 2:42 PM
>>> To: [email protected]
>>> Cc: [email protected]
>>> Subject: Re: Brian, CANADA, kernel 2.6.35-22-generic
>>>
>>> Brian,
>>>
>>> scanModem reports that your modem is an Agere DSP modem that is
>>> supported through martian-full-20100123.tar.gz drivers from linmodems
>>> page:
>>>
>>>
>>
> http://linmodems.technion.ac.il/packages/ltmodem/kernel-2.6/martian/martian-
>>> full-20100123.tar.gz
>>>
>>> Download it and also download: libc6-devel if not installed*
>>>
>>> Copy them to your linux partition and run
>>> $ tar -zxvf martian-full-20100123.tar.gz
>>> $ cd martian-full-20101023
>>>
>>> Since your machine is 64 bit, you will need different comands than 32
> bit:
>>> $ cd kmodule
>>> $ make -C kmodule/ modules
>>> $ su
>>> # make -C kmodule/ install
>>>
>>> or similar command.  Check README for instructions in case I made a
>>> mistake/typo.
>>>
>>> then after successfull install run
>>> $ sudo modprobe martian_dev
>>> $ sudo martian_modem
>>>
>>> leave it running and openup another terminal/tab and run without quotes.
>>> $ sudo wvdialconf /etc/wvdial.conf
>>>
>>> and add edit it with sudo priviledges
>>> $ sudo gedit /etc/wvdial.conf
>>>
>>> and add username, password, ISP phone number and a line "Carrier Check
>>> = no" without "'s
>>>
>>> then try a connection.
>>>
>>> $ sudo wvdial
>>>
>>> Report back if you have questions.
>>>
>>> Regards,
>>>
>>> Antonio
>>>
>>>
>>> For candidate card in slot 03:05.0, firmware information and bootup
>>> diagnostics are:
>>>  PCI slot       PCI ID          SubsystemID     Name
>>>  ----------     ---------       ---------       --------------
>>>  03:05.0        11c1:0440       11c1:0440       Communication controller:
>>> Agere Systems 56k WinModem
>>>
>>>  Modem interrupt assignment and sharing:
>>>  --- Bootup diagnostics for card in PCI slot 03:05.0 ----
>>> [    0.850090] pci 0000:03:05.0: reg 10: [mem 0xfebffc00-0xfebffcff]
>>> [    0.850097] pci 0000:03:05.0: reg 14: [io  0xec00-0xec07]
>>> [    0.850105] pci 0000:03:05.0: reg 18: [io  0xe800-0xe8ff]
>>> [    0.850153] pci 0000:03:05.0: supports D2
>>> [    0.850155] pci 0000:03:05.0: PME# supported from D2 D3hot D3cold
>>> [    0.850159] pci 0000:03:05.0: PME# disabled
>>>
>>>  The PCI slot 03:05.0 of the modem card may be disabled early in
>>>  a bootup process,  but then enabled later. If modem drivers load
>>>  but the  modem is not responsive, read DOCs/Bootup.txt about possible
>>> fixes.
>>>  Send dmesg.txt along with ModemData.txt to [email protected]
>>>  if help is needed.
>>>
>>>
>>>
>>> On Fri, May 6, 2011 at 1:05 PM, Brian <[email protected]> wrote:
>>>> Hello,
>>>>
>>>> I am a very new Linux user, and have just installed Ubuntu 10.10 on a
> new
>>>> AMD machine. I do have some very limited experience with Solaris, and
>>>> running some Unix commands. I am unfortunately in an area that only has
>>>> dial-up Internet service available. I need to get a modem working and
>> wish
>>>> to try the Winmodem I have installed. I have installed and successfully
>>> run
>>>> the scanmodem tool which has yielded the following output. I am
> uncertain
>>>> what to do next. Any assistance would be greatly appreciated.
>>>>
>>>> Thank-you very much for your time and attention!
>>>>
>>>> The following is the text of the Modemdata.txt file generated by
>> scanmodem
>>>> on my system:
>>>>
>>>>
>>>>
>>>> Only plain text email is forwarded by the  [email protected] List
>>>> Server,
>>>>  as HTML can contain viruses. Use as the email Subject Line:
>>>>           YourName, YourCountry  kernel 2.6.35-22-generic
>>>>  With this Subject Line cogent experts will be alerted, and useful case
>>>> names left in the Archive.
>>>>  YourCountry will enable Country specific guidance. Linux experts in
>>>> YourCountry
>>>>  can be found through: http://www.linux.org/groups/index.html.
>>>> They will know your Country's modem code, which may be essential for
>>> dialup
>>>> service.
>>>> Responses from [email protected] are sometimes blocked by an
> Internet
>>>> Provider mail filters.
>>>>  So in a day, also check the Archived responses at
>>> http://www.linmodems.org
>>>> --------------------------  System information
>>> ----------------------------
>>>> CPU=x86_64,  Ubuntu ,  ALSA_version=1.0.23
>>>> Linux version 2.6.35-22-generic (buildd@allspice) (gcc version 4.4.5
>>>> (Ubuntu/Linaro 4.4.4-14ubuntu4) ) #33-Ubuntu SMP Sun Sep 19 20:32:27 UTC
>>>> 2010
>>>>  scanModem update of:  2011_02_04
>>>>
>>>> Distrib_ID=Ubuntu
>>>> DistribCodeName=maverick
>>>> AptRepositoryStem=http://ca.archive.ubuntu.com/ubuntu/
>>>>
>>>>
>>>> Presently install your Linux Distributions dkms package. It provides for
>>>> automated driver updates,
>>>> following upgrade of your kernel.  For details see
>>>> http://linux.dell.com/projects.shtml#dkms
>>>>
>>>>
>>>> Some modem drivers can only be used in 32 bit modem on x86_64 systems,
>>>> while some others are competent on x86_64 Systems.  Cases are:
>>>> 1) http://linmodems.technion.ac.il/bigarch/archive-seventh/msg03119.html
>>>> for the snd-hda-intel audio+modem driver. Also applicable to AC97 modem
>>>> controllers.
>>>> In both cases, 32 bit libraries must be installed to support the
> slmodemd
>>>> helper having a precompiled 32 bit component.
>>>> 2) For USB modems using the slusb.ko driver. 32 bit libraries must be
>>>> installed to support the slmodemd helper having a precompiled 32 bit
>>>> component
>>>> 3) The hsfmodem and hcfpcimodem drivers for Conexant chipsest modes are
>>>> x86_64 competent.
>>>> 4) agrsm packages for LSI/AgereSystems softmodems are not competent on
>>>> x86_64 systems.
>>>>
>>>>  There are no blacklisted modem drivers in /etc/modprobe*  files
>>>>
>>>>  Potentially useful modem drivers now loaded are:
>>>>       snd_hda_intel
>>>>
>>>> Attached USB devices are:
>>>>  ID 046d:c00e Logitech, Inc. M-BJ58/M-BJ69 Optical Wheel Mouse
>>>>  ID 051d:0002 American Power Conversion Uninterruptible Power Supply
>>>> If a cellphone is not detected, see
>>>> http://ubuntuforums.org/archive/index.php/t-878554.html
>>>> A sample report is:
>>>> http://linmodems.technion.ac.il/bigarch/archive-nineth/msg00578.html
>>>>
>>>> If a USB modem or cellphone is attached and was not detected, please
>>>> provide available information in your request to [email protected]
>>>>
>>>> Candidate PCI devices with modem chips are:
>>>> 03:05.0 Communication controller: Agere Systems 56k WinModem (rev 01)
>>>> 00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
>>>> 01:05.1 Audio device: ATI Technologies Inc RS880 Audio Device [Radeon HD
>>>> 4200]
>>>> High Definition Audio cards can host modem chips.
>>>>
>>>> For candidate card in slot 03:05.0, firmware information and bootup
>>>> diagnostics are:
>>>>  PCI slot       PCI ID          SubsystemID     Name
>>>>  ----------     ---------       ---------       --------------
>>>>  03:05.0        11c1:0440       11c1:0440       Communication
> controller:
>>>> Agere Systems 56k WinModem
>>>>
>>>>  Modem interrupt assignment and sharing:
>>>>  --- Bootup diagnostics for card in PCI slot 03:05.0 ----
>>>> [    0.850090] pci 0000:03:05.0: reg 10: [mem 0xfebffc00-0xfebffcff]
>>>> [    0.850097] pci 0000:03:05.0: reg 14: [io  0xec00-0xec07]
>>>> [    0.850105] pci 0000:03:05.0: reg 18: [io  0xe800-0xe8ff]
>>>> [    0.850153] pci 0000:03:05.0: supports D2
>>>> [    0.850155] pci 0000:03:05.0: PME# supported from D2 D3hot D3cold
>>>> [    0.850159] pci 0000:03:05.0: PME# disabled
>>>>
>>>>  The PCI slot 03:05.0 of the modem card may be disabled early in
>>>>  a bootup process,  but then enabled later. If modem drivers load
>>>>  but the  modem is not responsive, read DOCs/Bootup.txt about possible
>>>> fixes.
>>>>  Send dmesg.txt along with ModemData.txt to [email protected]
>>>>  if help is needed.
>>>>
>>>>
>>>> For candidate card in slot 00:14.2, firmware information and bootup
>>>> diagnostics are:
>>>>  PCI slot       PCI ID          SubsystemID     Name
>>>>  ----------     ---------       ---------       --------------
>>>>  00:14.2        1002:4383       1043:836c       Audio device: ATI
>>>> Technologies Inc SBx00 Azalia
>>>>
>>>>  Modem interrupt assignment and sharing:
>>>>  16:      10435          0          5       2416   IO-APIC-fasteoi
>>>> ohci_hcd:usb3, ohci_hcd:usb4, hda_intel
>>>>  --- Bootup diagnostics for card in PCI slot 00:14.2 ----
>>>> [    0.834264] pci 0000:00:14.2: reg 10: [mem 0xfe8f4000-0xfe8f7fff
>> 64bit]
>>>> [    0.834303] pci 0000:00:14.2: PME# supported from D0 D3hot D3cold
>>>> [    0.834306] pci 0000:00:14.2: PME# disabled
>>>> [    8.077752] HDA Intel 0000:00:14.2: PCI INT A -> GSI 16 (level, low)
>> ->
>>>> IRQ 16
>>>>
>>>>  The PCI slot 00:14.2 of the modem card may be disabled early in
>>>>  a bootup process,  but then enabled later. If modem drivers load
>>>>  but the  modem is not responsive, read DOCs/Bootup.txt about possible
>>>> fixes.
>>>>  Send dmesg.txt along with ModemData.txt to [email protected]
>>>>  if help is needed.
>>>>
>>>>
>>>> For candidate card in slot 01:05.1, firmware information and bootup
>>>> diagnostics are:
>>>>  PCI slot       PCI ID          SubsystemID     Name
>>>>  ----------     ---------       ---------       --------------
>>>>  01:05.1        1002:970f       1043:843e       Audio device: ATI
>>>> Technologies Inc RS880 Audio Device [Radeon HD 4200]
>>>>
>>>>  Modem interrupt assignment and sharing:
>>>>  19:          0         73          0      34595   IO-APIC-fasteoi
>>>> ehci_hcd:usb2, hda_intel
>>>>  --- Bootup diagnostics for card in PCI slot 01:05.1 ----
>>>> [    0.834555] pci 0000:01:05.1: reg 10: [mem 0xfeaf4000-0xfeaf7fff]
>>>> [    0.834571] pci 0000:01:05.1: supports D1 D2
>>>> [    8.253772] HDA Intel 0000:01:05.1: PCI INT B -> GSI 19 (level, low)
>> ->
>>>> IRQ 19
>>>> [    8.253801] HDA Intel 0000:01:05.1: setting latency timer to 64
>>>>
>>>> === Finished firmware and bootup diagnostics, next deducing cogent
>>> software.
>>>> ===
>>>>
>>>> Predictive  diagnostics for card in bus 03:05.0:
>>>>        Modem chipset  detected on
>>>> NAME="Communication controller: Agere Systems 56k WinModem "
>>>> CLASS=0780
>>>> PCIDEV=11c1:0440
>>>> SUBSYS=11c1:0440
>>>> IRQ=11
>>>> HDA2=00:14.2
>>>> HDA2=01:05.1
>>>> IDENT=Agere.DSP
>>>>
>>>>  For candidate modem in:  03:05.0
>>>>   0780 Communication controller: Agere Systems 56k WinModem
>>>>      Primary device ID:  11c1:0440
>>>>  Support type needed or chipset:        Agere.DSP
>>>>
>>>>
>>>>
>>>>
>>>> Predictive  diagnostics for card in bus 00:14.2:
>>>>        Modem chipset not detected on
>>>> NAME="Audio device: ATI Technologies Inc SBx00 Azalia "
>>>> CLASS=0403
>>>> PCIDEV=1002:4383
>>>> SUBSYS=1043:836c
>>>> IRQ=16
>>>>
>>>>  For candidate modem in:  00:14.2
>>>>   0403 Audio device: ATI Technologies Inc SBx00 Azalia
>>>>      Primary device ID:  1002:4383
>>>>  Support type needed or chipset:
>>>>
>>>>
>>>>
>>>> Predictive  diagnostics for card in bus 01:05.1:
>>>>        Modem chipset not detected on
>>>> NAME="Audio device: ATI Technologies Inc RS880 Audio Device [Radeon HD
>>>> 4200]"
>>>> CLASS=0403
>>>> PCIDEV=1002:970f
>>>> SUBSYS=1043:843e
>>>> IRQ=19
>>>>
>>>>  For candidate modem in:  01:05.1
>>>>   0403 Audio device: ATI Technologies Inc RS880 Audio Device [Radeon HD
>>>> 4200]
>>>>      Primary device ID:  1002:970f
>>>>  Support type needed or chipset:
>>>>
>>>>
>>>>  Completed candidate modem analyses.
>>>>
>>>>  The base of the UDEV device file system is: /dev/.udev
>>>>
>>>>  Versions adequately match for the compiler installed: 4.4.5
>>>>             and the compiler used in kernel assembly: 4.4.5
>>>>
>>>>  linux-headers-2.6.35-22-generic resources needed for compiling are not
>>>> manifestly ready!
>>>>  The patch utility is needed for compiling ALSA drivers, and possibly
>>>> others.
>>>>
>>>>  If compiling is necessary packages must be installed, providing:
>>>>         linux-headers-2.6.35-22-generic
>>>>
>>>>
>>>> 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 packages.
>>>> 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 321592 2010-07-09 16:10 /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
>>>>
>>>> For guidance on FAX usage, get from
>>>> http://linmodems.technion.ac.il/packages/  get faxing.tar.gz
>>>> It has samples for a modem using port /dev/ttySL0, which must be changed
>>> to
>>>> match your modem's port.
>>>>
>>>> Read Modem/DOCs/YourSystem.txt concerning other COMM channels: eth0
>>>> Which can interfere with Browser naviagation.
>>>>
>>>>  Don't worry about the following, it is for experts should trouble
>>> shooting
>>>> be necessary.
>>>> ==========================================================
>>>>
>>>>  Checking for modem support lines:
>>>>  --------------------------------------
>>>>     /device/modem symbolic link:
>>>> slmodemd created symbolic link /dev/ttySL0:
>>>>     Within /etc/udev/ files:
>>>>
>>>>     Within /etc/modprobe.conf files:
>>>> /etc/modprobe.d/blacklist-modem.conf:# Uncomment these entries in order
>> to
>>>> blacklist unwanted modem drivers
>>>> /etc/modprobe.d/blacklist-modem.conf:# blacklist snd-atiixp-modem
>>>> /etc/modprobe.d/blacklist-modem.conf:# blacklist snd-via82xx-modem
>>>> /etc/modprobe.d/alsa-base.conf:options snd-atiixp-modem index=-2
>>>> /etc/modprobe.d/alsa-base.conf: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 --------
>>>>
>>>>
>>>
>>>
>>
>>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.