Re: Marc - US - CentOS release 4.3 (Final) Kernel kernel 2.6.18.1 - segmentation fault on first run of wvdial

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

 



Marc,

>From the dmesg data, there are some severe resource conflicts,
at least under your older 2.6.18 kernel.

You might try using the alternate ltmodem packages at
http://linmodems.technion.ac.il/packages/ltmodem/kernel-2.6/
the ltmodem-20080619.tar.gz    or  ltmodem-20090420.tar.gz
These provide resources for compiling a ltmodem.ko ltserial.ko  driver
pair, to be loaded in order:
# modprobe ltmodem
# modprobe ltserial
and the port name is /dev/ttyLTM0
Read the included documentation carefully.

MarvS
scanModem maintianer

On Sat, Apr 24, 2010 at 9:32 PM, Marc <schmrack@xxxxxxxxx> wrote:
> Ran scanModem, Agere LT modem, compiled martian-full-20080407 as
> recommended (2.6.18 kernel, so it said to use this, not a newer
> version).  Everything seemed to go fine until first run of wvdial,
> which produced the following:
> (Further below are the output of demsg after the crash, output of the
> compile and install, and finally ModemData.txt.)
>
> Help?!?  Thanks!!!
>
> $ sudo wvdial
> --> WvDial: Internet dialer version 1.54.0
> martian: info: session: Started Fri Apr 23 21:59:41 2010
> martian: info: Core vars (mcb at 0xb7fc6000):
> martian: info: Variable                 Value
> martian: info: BaseAddress                      0x2040
> martian: info: BaseAddress2                     0x2042
> martian: info: BaseAddressIndex         0x2040
> martian: info: BaseValue                        0xd7
> martian: info: BaseAddressData                  0x2041
> martian: info: dp_bamil_rd7                     0xfd
> martian: info: x_dsp_mars                       1
> martian: info: dce_rx:
> martian: info:  buf at 0xb7fc6820
> martian: info:  rptr -> 0xb7fc6820
> martian: info:  wptr -> 0xb7fc6840
> martian: info:  um   =  0xb7fc6820
> martian: info: dce_tx:
> martian: info:  buf at 0xb7fc6014
> martian: info:  rptr -> 0xb7fc6014
> martian: info:  wptr -> 0xb7fc6014
> martian: info:  um   =  0xb7fc6014
> martian: info: pdm_rx:
> martian: info:  buf at 0xb7fc782c
> martian: info:  rptr -> 0x0
> martian: info:  wptr -> 0x0
> martian: info:  um   =  0xb7fc782c
> martian: info: mcb dump 7812 bytes at 0x80ac000
> restarting
> --> Cannot open /dev/ttySM0: Input/output error
> --> Cannot open /dev/ttySM0: No such file or directory
> --> Cannot open /dev/ttySM0: No such file or directory
> [1]+  Segmentation fault      sudo /usr/sbin/martian_modem  (wd:
> ~/martian-full-20080407)
>
>
> _________________________________________________________________________
> Dmesg output after above fault:
> From dmesg:
> martian loaded - 20061202
> "martian_dev": detaching 11c1:445 from serial
> ACPI: PCI interrupt for device 0000:00:09.1 disabled
> PCI: Enabling device 0000:00:09.1 (0000 -> 0003)
> ACPI: PCI Interrupt 0000:00:09.1[A] -> Link [C185] -> GSI 11 (level,
> low) -> IRQ 11
> "martian_dev": added device 11c1:445 BaseAddress = 0x2040, CommAddres
> = 0xc155a800, irq = 11
> "martian_dev": serving irqs in module
> "martian_dev": martian_modem is attached.
> BUG: sleeping function called from invalid context at mm/rmap.c:84
> in_atomic():0, irqs_disabled():1
>  [<c011424f>] __might_sleep+0x92/0x9a
>  [<c01465d6>] anon_vma_prepare+0x1a/0xbd
>  [<c0142a7c>] do_anonymous_page+0x36/0x169
>  [<c0142f79>] __handle_mm_fault+0xe4/0x1eb
>  [<c02d874d>] do_page_fault+0x233/0x4e6
>  [<c0150ffc>] sys_read+0x3c/0x62
>  [<c015101a>] sys_read+0x5a/0x62
>  [<c02d851a>] do_page_fault+0x0/0x4e6
>  [<c0102d89>] error_code+0x39/0x40
> "martian_dev": martian_modem is detached
> "martian_dev": serving irqs in module
> "martian_dev": martian_modem is attached.
> BUG: sleeping function called from invalid context at mm/rmap.c:84
> in_atomic():0, irqs_disabled():1
>  [<c011424f>] __might_sleep+0x92/0x9a
>  [<c01465d6>] anon_vma_prepare+0x1a/0xbd
>  [<c0142a7c>] do_anonymous_page+0x36/0x169
>  [<c0142f79>] __handle_mm_fault+0xe4/0x1eb
>  [<c02d874d>] do_page_fault+0x233/0x4e6
>  [<c02d851a>] do_page_fault+0x0/0x4e6
>  [<c0102d89>] error_code+0x39/0x40
> "martian_dev": martian_modem is detached
> "martian_dev": serving irqs in module
> "martian_dev": martian_modem is attached.
> BUG: sleeping function called from invalid context at mm/rmap.c:84
> in_atomic():0, irqs_disabled():1
>  [<c011424f>] __might_sleep+0x92/0x9a
>  [<c01465d6>] anon_vma_prepare+0x1a/0xbd
>  [<c0144ced>] expand_stack+0xd/0x67
>  [<c02d86fd>] do_page_fault+0x1e3/0x4e6
>  [<c02d851a>] do_page_fault+0x0/0x4e6
>  [<c0102d89>] error_code+0x39/0x40
> "martian_dev": martian_modem is detached
>
>
> ----------------------------------------------------------------------------------------------------------------------------
>
> Compile and install:
>
> $ make all
> make -C kmodule/ modules
> make[1]: Entering directory `/home/marc/martian-full-20080407/kmodule'
> make -C /lib/modules/2.6.18.1/build
> M="/home/marc/martian-full-20080407/kmodule"  modules
> make[2]: Entering directory `/local/source/linux-2.6.18.1'
>  CC [M]  /home/marc/martian-full-20080407/kmodule/martian.o
>  CC [M]  /home/marc/martian-full-20080407/kmodule/marsio.o
>  CC [M]  /home/marc/martian-full-20080407/kmodule/mfifo.o
>  LD [M]  /home/marc/martian-full-20080407/kmodule/martian_dev.o
>  Building modules, stage 2.
>  MODPOST
>  CC      /home/marc/martian-full-20080407/kmodule/martian_dev.mod.o
>  LD [M]  /home/marc/martian-full-20080407/kmodule/martian_dev.ko
> make[2]: Leaving directory `/local/source/linux-2.6.18.1'
> make[1]: Leaving directory `/home/marc/martian-full-20080407/kmodule'
> make -C modem/ all
> make[1]: Entering directory `/home/marc/martian-full-20080407/modem'
>    CC  main.o
>    CC  dumpers.o
>    CC  log.o
>    CC  session.o
>    CC  mport.o
>    CC  pty.o
>    CC  sysdep.o
>    CC  isr.o
>    CC  smp.o
>    CC  core_if.o
>    CC  coresubst.o
> coresubst.c: In function `mdual_port_rx':
> coresubst.c:100: warning: 'lastptr' might be used uninitialized in
> this function    CC  link.o
>    CC  tweakrelocsdynamic.o
>    CC  coreadd.o
>    CC  elf386tweakrelocs
>    LD  marscore.o
>    TWEAK       marscore.o
>    LD  martian_modem
> make[1]: Leaving directory `/home/marc/martian-full-20080407/modem'
>
>
> $ sudo make install
> Password:
> make -C kmodule/ install
> make[1]: Entering directory `/home/marc/martian-full-20080407/kmodule'
> make -C /lib/modules/2.6.18.1/build
> M="/home/marc/martian-full-20080407/kmodule" modules_install
> make[2]: Entering directory `/local/source/linux-2.6.18.1'
>  INSTALL /home/marc/martian-full-20080407/kmodule/martian_dev.ko
>  DEPMOD  2.6.18.1
> make[2]: Leaving directory `/local/source/linux-2.6.18.1'
> if ! /sbin/modprobe -nq martian_dev ; then /sbin/depmod -a; fi
> make[1]: Leaving directory `/home/marc/martian-full-20080407/kmodule'
> make -C modem/ install
> make[1]: Entering directory `/home/marc/martian-full-20080407/modem'
>    LD  martian_modem.debug
>    STRIP       martian_modem.debug
>    STRIP       martian_modem.stripped
>    INSTALL     /usr/sbin/martian_modem
>    INSTALL     /usr/lib/debug/usr/sbin/martian_modem.debug
> make[1]: Leaving directory `/home/marc/martian-full-20080407/modem'
> $
>
> ----------------------------------------------------------------------------------------
> ModemData.txt:
>
>
>  Only plain text email is forwarded by the  Discuss@xxxxxxxxxxxxx List Server,
>  as HTML can contain viruses. Use as the email Subject Line:
>           YourName, YourCountry CentOS release 4.3 (Final)
> Kernel  kernel 2.6.18.1
>  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 Discuss@xxxxxxxxxxxxx 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=i686,  CentOS
> Kernel ,  ALSA_version=1.0.13
> Linux version 2.6.18.1 (root@cards) (gcc version 3.4.5 20051201 (Red
> Hat 3.4.5-2)) #2 Sat Nov 4 22:15:25 PST 2006
>  scanModem update of:  2010_03_18
>
> /etc/lsb-release not found
>
>
> 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
>
>  There are no blacklisted modem drivers in /etc/modprobe*  files
>
>  Potentially useful modem drivers now loaded are:
>
>
> If a USB modem or cellphone is attached and was not detected, please
> provide available information in your request to discuss@xxxxxxxxxxxxx
>
> Candidate PCI devices with modem chips are:
> 00:09.1 Serial controller: Agere Systems LT WinModem
> High Definition Audio cards can host modem chips.
>
> For candidate card in slot 00:09.1, firmware information and bootup
> diagnostics are:
>  PCI slot       PCI ID          SubsystemID     Name
>  ----------     ---------       ---------       --------------
>  00:09.1        11c1:0445       8086:2203       Serial controller:
> Agere Systems LT WinModem
>
>  Modem interrupt assignment and sharing:
>  11:     606637          XT-PIC  ESS Maestro, uhci_hcd:usb1, eth0
>  --- Bootup diagnostics for card in PCI slot 00:09.1 ----
> ACPI: PCI Interrupt 0000:00:09.1[A] -> Link [C185] -> GSI 11 (level,
> low) -> IRQ 11
>
> === Finished firmware and bootup diagnostics, next deducing cogent software. ===
> Predictive  diagnostics for card in bus 00:09.1:
>        Modem chipset  detected on
> NAME="Serial controller: Agere Systems LT WinModem"
> CLASS=0700
> PCIDEV=11c1:0445
> SUBSYS=8086:2203
> IRQ=11
> IDENT=Agere.DSP
>
>  For candidate modem in:  00:09.1
>   0700 Serial controller: Agere Systems LT WinModem
>      Primary device ID:  11c1:0445
>  Support type needed or chipset:        Agere.DSP
>
>
>
>  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/
>  http://packages.debian.org/sid/martian-modem-source/
> Always use the most update for kernels after 2.6.20, currently
> martian-full-20080625.tar.gz
> For kernels 2.6.20 and less, usr martian-full-20080407.tar.gz.
>
>  See DOCs/AgereDSP.txt for Details.
>
>  At http://linmodems.technion.ac.il/packages/ltmodem/kernel-2.6/martian/
> get the martian-full-20080625.tar.gz and follow Readme-NOW.html
>  0x0445 -- Apollo 2 Global Board data/fax only : Modem/LAN combo board
> Apollo behind an Intel 82559
> -------------- end Agere Systems section -------------------
>
>  Completed candidate modem analyses.
>
>  The base of the UDEV device file system is: /dev/.udev.tdb
>
>  Versions adequately match for the compiler installed: 3.4.5
>             and the compiler used in kernel assembly: 3.4.5
>
>
>
>  Minimal compiling resources appear complete:
>   make utility - /usr/bin/make
>   Compiler version 3.4
>   linuc_headers base folder /lib/modules/2.6.18.1/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 needed. The also
> required headers of package libc6 are commonly installed by default.
>  Compiling hsfmodem drivers does require linux-libc-dev and libc6-dev
> packages, for kernels 2.6.24 and later versions.
>  In not included on your install CD, search for them at
> http://packages.ubuntu.com
>  or comparable Repository for other Linux distros.
>  When compiling ALSA drivers, the utility "patch" will also be needed.
>
>
>
>
> 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:
>        -r-xr-xr-x  1 root root 250996 Feb 21  2005 /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)
>         chmod a+x /usr/sbin/pppd
> or under Ubuntu related Linuxes
>         chmod a+x /usr/sbin/pppd
>
> Checking settings of:   /etc/ppp/options
> lock
>
> 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:
>
>     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