Re: Patch for kernel version 2.6.24

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

 



Success!!
Dear all,
with the new patch , martian_modem works
root@slax:~/martian-full-20071011# make clean
make -C kmodule/ clean
make[1]: Entering directory `/root/martian-full-20071011/kmodule'
make -C /lib/modules/2.6.24/build M="/root/martian-full-20071011/kmodule" clean
make[2]: Entering directory `/usr/src/linux-2.6.24'
CLEAN /root/martian-full-20071011/kmodule/.tmp_versions
CLEAN /root/martian-full-20071011/kmodule/Module.symvers
make[2]: Leaving directory `/usr/src/linux-2.6.24'
make[1]: Leaving directory `/root/martian-full-20071011/kmodule'
make -C modem/ clean
make[1]: Entering directory `/root/martian-full-20071011/modem'
RM OBJS
RM BINS
RM TOOLS
make[1]: Leaving directory `/root/martian-full-20071011/modem'
root@slax:~/martian-full-20071011# make all
make -C kmodule/ modules
make[1]: Entering directory `/root/martian-full-20071011/kmodule'
make -C /lib/modules/2.6.24/build
M="/root/martian-full-20071011/kmodule" modules
make[2]: Entering directory `/usr/src/linux-2.6.24'
WARNING: Symbol version dump /usr/src/linux-2.6.24/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /root/martian-full-20071011/kmodule/martian.o
/root/martian-full-20071011/kmodule/martian.c: In function 'martian_isr':
/root/martian-full-20071011/kmodule/martian.c:160: warning: value
computed is not used
/root/martian-full-20071011/kmodule/martian.c: In function 'martian_add':
/root/martian-full-20071011/kmodule/martian.c:663: warning: passing
argument 2 of 'request_irq' from incompatible pointer type
CC [M] /root/martian-full-20071011/kmodule/marsio.o
CC [M] /root/martian-full-20071011/kmodule/mfifo.o
LD [M] /root/martian-full-20071011/kmodule/martian_dev.o
Building modules, stage 2.
MODPOST 1 modules
CC /root/martian-full-20071011/kmodule/martian_dev.mod.o
LD [M] /root/martian-full-20071011/kmodule/martian_dev.ko
make[2]: Leaving directory `/usr/src/linux-2.6.24'
make[1]: Leaving directory `/root/martian-full-20071011/kmodule'
make -C modem/ all
make[1]: Entering directory `/root/martian-full-20071011/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
CC link.o
CC tweakrelocsdynamic.o
CC coreadd.o
CC elf386tweakrelocs
LD marscore.o
TWEAK marscore.o
LD martian_modem
make[1]: Leaving directory `/root/martian-full-20071011/modem'
root@slax:~/martian-full-20071011# make install
make -C kmodule/ install
make[1]: Entering directory `/root/martian-full-20071011/kmodule'
make -C /lib/modules/2.6.24/build
M="/root/martian-full-20071011/kmodule" modules_install
make[2]: Entering directory `/usr/src/linux-2.6.24'
INSTALL /root/martian-full-20071011/kmodule/martian_dev.ko
DEPMOD 2.6.24
make[2]: Leaving directory `/usr/src/linux-2.6.24'
if ! /sbin/modprobe -nq martian_dev ; then /sbin/depmod -a; fi
make[1]: Leaving directory `/root/martian-full-20071011/kmodule'
make -C modem/ install
make[1]: Entering directory `/root/martian-full-20071011/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 `/root/martian-full-20071011/modem'
root@slax:~/martian-full-20071011# modprobe martian_dev
root@slax:~/martian-full-20071011# martian_modem
martian: info: Your port is /dev/ttySM0
martian: info: session: Started Mon Mar 10 20:42:13 2008
martian: info: session: client's gone
martian: info: session: Closed Mon Mar 10 20:42:14 2008
martian: info: session: Started Mon Mar 10 20:44:19 2008
martian: info: session: carrier lost
martian: info: session: Closed Mon Mar 10 20:45:02 2008
martian: info: session: Started Mon Mar 10 20:45:17 2008
martian: info: session: carrier lost
martian: info: session: Closed Mon Mar 10 20:46:02 2008
martian: info: session: Started Mon Mar 10 20:47:39 2008
martian: info: session: carrier lost
martian: info: session: Closed Mon Mar 10 20:48:27 2008
martian: info: session: Started Mon Mar 10 20:48:27 2008
martian: info: session: client's gone
martian: info: session: Closed Mon Mar 10 20:48:32 2008
martian: info: session: Started Mon Mar 10 20:48:39 2008
and on another terminal, I fired up wvdialconf
root@slax:~# wvdialconf /etc/wvdial.conf
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
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.
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S2 S3
WvModem<*1>: Cannot get information for serial port.
ttySM0<*1>: ATQ0 V1 E1 -- OK
ttySM0<*1>: ATQ0 V1 E1 Z -- OK
ttySM0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttySM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttySM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttySM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttySM0<*1>: Modem Identifier: ATI -- LT V.92 Data+Fax Modem Version 8.30
ttySM0<*1>: Speed 4800: AT -- OK
ttySM0<*1>: Speed 9600: AT -- OK
ttySM0<*1>: Speed 19200: AT -- OK
ttySM0<*1>: Speed 38400: AT -- OK
ttySM0<*1>: Speed 57600: AT -- OK
ttySM0<*1>: Speed 115200: AT -- OK
ttySM0<*1>: Speed 230400: AT -- OK
ttySM0<*1>: Speed 460800: AT -- OK
ttySM0<*1>: Max speed is 460800; that should be safe.
ttySM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found a modem on /dev/ttySM0.
/etc/wvdial.conf<Warn>: Can't open '/etc/wvdial.conf' for reading: No
such file or directory
/etc/wvdial.conf<Warn>: ...starting with blank configuration.
Modem configuration written to /etc/wvdial.conf.
ttySM0<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
then dialed after setting up the /etc/wvdial.conf
root@slax:~# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT7072000
--> Waiting for carrier.
ATDT7072000
CONNECT 49333 V42bis
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Mon Mar 10 20:48:15 2008
--> Pid of pppd: 13398
--> Using interface ppp0
--> pppd: 0¥[06][08](¨[06][08]
--> pppd: 0¥[06][08](¨[06][08]
--> pppd: 0¥[06][08](¨[06][08]
--> pppd: 0¥[06][08](¨[06][08]
--> Disconnecting at Mon Mar 10 20:48:27 2008
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd
man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
--> Disconnecting at Mon Mar 10 20:48:32 2008
root@slax:~# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT7072000
--> Waiting for carrier.
ATDT7072000
CONNECT 33333 V42bis
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Mon Mar 10 20:49:14 2008
--> Pid of pppd: 13603
--> Using interface ppp0
--> pppd: 0¥[06][08](¨[06][08]
--> pppd: 0¥[06][08](¨[06][08]
--> pppd: 0¥[06][08](¨[06][08]
--> pppd: 0¥[06][08](¨[06][08]
--> local IP address 66.201.10.230
--> pppd: 0¥[06][08](¨[06][08]
--> remote IP address 66.201.8.7
--> pppd: 0¥[06][08](¨[06][08]
--> primary DNS address 66.201.0.203
--> pppd: 0¥[06][08](¨[06][08]
--> secondary DNS address 12.176.80.9
--> pppd: 0¥[06][08](¨[06][08]
Now, I will try to make a module(lzm) for slax so that others who have
such a modem can use this module to get connected with full
instructions to get it working. I will attach ModemData.txt to this
file for completeness.
Regards,
Antonio
On 3/10/08, A.Chentsov <chentsov@xxxxxxx> wrote:
>
> On Mon, 10 Mar 2008 20:50:04 +0200, 3.17 <dp@xxxxxxxxxxxxxx> wrote:
>
> >
> >
> > grujakg wrote:
> >>
> >>
> >>
> >> Stefan Puch-3 wrote:
> >>>
> >>> ...
> >>>
> >>> The patch is attached this mail. Copy it into martian/kmodule and run
> >>> "patch -p0 < martian-patch-kernel-2.6.24.diff"
> >>>
> >>> ...
> >>>
> >>
> >> Got the same problem after updating to 2.6.24.3-12.fc8.
> >>
> >> I've found same appropriate patch on nv forum, but after successful
> >> build
> >> and installation I'm receiving this martian errors:
> >>
> >> ...
> >> kernel: martian loaded - KMARTIAN_STAMP
> >> kernel: ACPI: PCI Interrupt 0000:02:0a.0[A] -> Link [APC3] -> GSI 18
> >> (level, low) -> IRQ 18
> >> kernel: "martian_dev": added device 11c1:440 BaseAddress = 0xa400,
> >> CommAddres = 0xa000, irq = 18
> >> martian: error: Common area unrecognized, no terminating signature
> >> kernel: "martian_dev": martian_modem is detached
> >> ...
> >>
> >> any suggestions, please.
> >>
> >> thanks in advance
> >>
> >
> > In addition to the problem solved by the patch mentioned above,
> > common->kstamp is messed up.
> > This very unclean patch should handle it.
> >
> > --- 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");
> >
> >
> >
> >
>
>
> I doubt it addresses the actual problem. It looks like the common
> structure has different sizes when compiled for kernel module and user
> application. Must be atomic_t type has changed in kernel and correction in
> martian.h is needed. Here are lines in question:
>
> #define LOCK "lock; "
> typedef struct { volatile int counter; } atomic_t;
>
>
> Regards,
> A.Chentsov
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
>
 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 
===============================================================================
 Welcome to Slax                                                         6.0.2 
===============================================================================

 The system is up and running now.

 Login as "root" with password "toor", both without quotes, lowercase.
 If you're new to Slax, visit http://www.slax.org/ for more info.

 After you login, try the following commands:

 mc ....... to start Midnight Commander (edit/copy/move/create/delete files)
 startx ... to run Xwindow system with KDE in VESA mode 1024x768 at 75Hz
 xconf .... to autoconfigure your graphics card for better performance

 Other commands you may find useful (for experts only!):

 activate ..... to insert (install) Slax module into the system on the fly
 deactivate ... to remove (uninstall) Slax module from the root filesystem    
 mkfileswap ... to create a special file on your harddisk for virtual RAM

 When finished, use "poweroff" or "reboot" command and wait until it completes 
=============================================================================== kernel 2.6.24 
 With this Subject Line cogent experts will be alerted, and useful case names left in the Archive.
 YourCountry will enable Country specific guidance. Your contry's local Linux experts
 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,  
===============================================================================
 Welcome to Slax                                                         6.0.2 
===============================================================================

 The system is up and running now.

 Login as "root" with password "toor", both without quotes, lowercase.
 If you're new to Slax, visit http://www.slax.org/ for more info.

 After you login, try the following commands:

 mc ....... to start Midnight Commander (edit/copy/move/create/delete files)
 startx ... to run Xwindow system with KDE in VESA mode 1024x768 at 75Hz
 xconf .... to autoconfigure your graphics card for better performance

 Other commands you may find useful (for experts only!):

 activate ..... to insert (install) Slax module into the system on the fly
 deactivate ... to remove (uninstall) Slax module from the root filesystem    
 mkfileswap ... to create a special file on your harddisk for virtual RAM

 When finished, use "poweroff" or "reboot" command and wait until it completes 
===============================================================================
Linux version 2.6.24 (root@slax) (gcc version 4.2.3) #1 SMP Wed Feb 27 14:33:25 GMT 2008
 scanModem update of:  2008_03_04



Blacklisted modem driver lines in /etc/modprobe*  files are:
/etc/modprobe.d/blacklist:blacklist snd-atiixp-modem
/etc/modprobe.d/blacklist:blacklist snd-via82xx-modem
/etc/modprobe.d/blacklist:blacklist snd-intel8x0m


The Advanced Linux Sound Architecture (ALSA) packages providing audio support, 
also includes drivers for some modems. The ALSA diagnostics are written during 
bootup to /proc/asound/ folders.


The ALSA verion is 1.0.16
The modem cards detected by "aplay -l"  are:


The /proc/asound/pcm file reports:
-----------------------
00-03: YMFPCI - PCM2 : YMFPCI - AC'97 : capture 1
00-02: YMFPCI - Rear : YMFPCI - Rear PCM : playback 1
00-01: YMFPCI - IEC958 : YMFPCI - IEC958 : playback 1
00-00: YMFPCI : YMFPCI : playback 32 : capture 1

about /proc/asound/cards:
------------------------
 0 [YMF724F        ]: YMF724F - Yamaha DS-1 (YMF724F)
                      Yamaha DS-1 (YMF724F) at 0xe8000000, irq 5

USB modem not detected by lsusb

For candidate card in slot 00:0d.0, firmware information and bootup diagnostics are:
 PCI slot	PCI ID		SubsystemID	Name
 ----------	---------	---------	--------------
 00:0d.0	11c1:0442	141b:9300	Communication controller: Agere Systems 56k WinModem 

 Modem interrupt assignment and sharing: 
 10:          1    XT-PIC-XT        uhci_hcd:usb1
 --- Bootup diagnostics for card in PCI slot 00:0d.0 ----


 === Finished modem firmware and bootup diagnostics section. ===
 === Next deducing cogent software ===


Predictive diagnostics for card in bus 00:0d.0:
	Modem chipset  detected on
CLASS="Class 0780: 11c1:0442"
NAME="Communication controller: Agere Systems 56k WinModem "
PCIDEV=11c1:0442
SUBSYS=141b:9300
IRQ=10
IDENT=Agere.DSP

 For candidate modem in:  00:0d.0
   Class 0780: 11c1:0442 Communication controller: Agere Systems 56k WinModem
      Primary PCI_id  11c1:0442
 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/

 0x0442 -- Mars 2 - data/fax/tam only
-------------- 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/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:
	-rwxr-xr-x 1 root root 366440 Jun 29  2006 /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
asyncmap 0
crtscts
lock
modem
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4

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


 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:   
slmodemd created symbolic link /dev/ttySL0:  
     Within /etc/udev/ files:
/etc/udev/rules.d/50-udev-default.rules:KERNEL=="mwave",		NAME="modems/mwave", GROUP="uucp"
     Within /etc/modprobe.conf files:
/etc/modprobe.d/blacklist:# ALSA modules to support sound modems.  These should be loaded manually
/etc/modprobe.d/blacklist:blacklist snd-atiixp-modem
/etc/modprobe.d/blacklist:blacklist snd-via82xx-modem
     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