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/
>


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

  Powered by Linux