I do that in the same way, but the modem doesn't work. Can you send your kernel messages? if i load the martian_dev module, i get a message like that: "CommAddres = 0x0". I'm not sure wether this is correct. Thanks Rudolf Am Mittwoch, 29. April 2009 04:23:13 schrieb Antonio Olivares: > Joern, > > Thank you for your advice! Since my machine is 64 bit, x86_64, I got > used to do the > $ make -C kmodule/ modules > > but never tried a straight compile. I don't know why, but the > martian-full-20080625.tar.gz code always gave me an > unrecognized error message, now I tried it and compiled it straight > and it worked! :) > > Here's what I did: > > I commented out the linux/ioct32.h file , but still could not compile the > code. > > [olivares@localhost martian]$ make clean > make -C kmodule/ clean > make[1]: Entering directory > `/home/olivares/Download/temp/2629/martian/kmodule' make -C > /lib/modules/2.6.29.2/build > M="/home/olivares/Download/temp/2629/martian/kmodule" clean > make[2]: Entering directory `/home/olivares/Download/linux-2.6.29.2' > CLEAN /home/olivares/Download/temp/2629/martian/kmodule/.tmp_versions > make[2]: Leaving directory `/home/olivares/Download/linux-2.6.29.2' > make[1]: Leaving directory > `/home/olivares/Download/temp/2629/martian/kmodule' make -C modem/ clean > make[1]: Entering directory > `/home/olivares/Download/temp/2629/martian/modem' RM OBJS > RM BINS > RM TOOLS > make[1]: Leaving directory > `/home/olivares/Download/temp/2629/martian/modem' [olivares@localhost > martian]$ amke > bash: amke: command not found > [olivares@localhost martian]$ make > make -C kmodule/ modules > make[1]: Entering directory > `/home/olivares/Download/temp/2629/martian/kmodule' make -C > /lib/modules/2.6.29.2/build > M="/home/olivares/Download/temp/2629/martian/kmodule" modules > make[2]: Entering directory `/home/olivares/Download/linux-2.6.29.2' > CC [M] /home/olivares/Download/temp/2629/martian/kmodule/martian.o > /home/olivares/Download/temp/2629/martian/kmodule/martian.c:54:29: > error: linux/ioctl32.h: No such file or directory > /home/olivares/Download/temp/2629/martian/kmodule/martian.c: In > function ‘martian_isr’: > /home/olivares/Download/temp/2629/martian/kmodule/martian.c:160: > warning: value computed is not used > /home/olivares/Download/temp/2629/martian/kmodule/martian.c: In > function ‘martian_add’: > /home/olivares/Download/temp/2629/martian/kmodule/martian.c:662: > warning: passing argument 2 of ‘request_irq’ from incompatible pointer > type > make[3]: *** [/home/olivares/Download/temp/2629/martian/kmodule/martian.o] > Error 1 > make[2]: *** [_module_/home/olivares/Download/temp/2629/martian/kmodule] > Error 2 make[2]: Leaving directory `/home/olivares/Download/linux-2.6.29.2' > make[1]: *** [modules] Error 2 > make[1]: Leaving directory > `/home/olivares/Download/temp/2629/martian/kmodule' make: *** [all] Error 2 > [olivares@localhost martian]$ cd kmodule/ > [olivares@localhost kmodule]$ vi mar > marsio.c martian.c martian.c.rej > marsio.h martian.c.orig martian_ids.c > [olivares@localhost kmodule]$ vi mar > marsio.c martian.c martian.c.rej > marsio.h martian.c.orig martian_ids.c > [olivares@localhost kmodule]$ vi martian.c > [olivares@localhost kmodule]$ cd .. > [olivares@localhost martian]$ make clean > make -C kmodule/ clean > make[1]: Entering directory > `/home/olivares/Download/temp/2629/martian/kmodule' make -C > /lib/modules/2.6.29.2/build > M="/home/olivares/Download/temp/2629/martian/kmodule" clean > make[2]: Entering directory `/home/olivares/Download/linux-2.6.29.2' > CLEAN /home/olivares/Download/temp/2629/martian/kmodule/.tmp_versions > make[2]: Leaving directory `/home/olivares/Download/linux-2.6.29.2' > make[1]: Leaving directory > `/home/olivares/Download/temp/2629/martian/kmodule' make -C modem/ clean > make[1]: Entering directory > `/home/olivares/Download/temp/2629/martian/modem' RM OBJS > RM BINS > RM TOOLS > make[1]: Leaving directory > `/home/olivares/Download/temp/2629/martian/modem' [olivares@localhost > martian]$ make > make -C kmodule/ modules > make[1]: Entering directory > `/home/olivares/Download/temp/2629/martian/kmodule' make -C > /lib/modules/2.6.29.2/build > M="/home/olivares/Download/temp/2629/martian/kmodule" modules > make[2]: Entering directory `/home/olivares/Download/linux-2.6.29.2' > CC [M] /home/olivares/Download/temp/2629/martian/kmodule/martian.o > /home/olivares/Download/temp/2629/martian/kmodule/martian.c: In > function ‘martian_isr’: > /home/olivares/Download/temp/2629/martian/kmodule/martian.c:160: > warning: value computed is not used > /home/olivares/Download/temp/2629/martian/kmodule/martian.c: In > function ‘martian_add’: > /home/olivares/Download/temp/2629/martian/kmodule/martian.c:662: > warning: passing argument 2 of ‘request_irq’ from incompatible pointer > type > CC [M] /home/olivares/Download/temp/2629/martian/kmodule/marsio.o > CC [M] /home/olivares/Download/temp/2629/martian/kmodule/mfifo.o > LD [M] /home/olivares/Download/temp/2629/martian/kmodule/martian_dev.o > Building modules, stage 2. > MODPOST 1 modules > WARNING: modpost: Found 1 section mismatch(es). > To see full details build your kernel with: > 'make CONFIG_DEBUG_SECTION_MISMATCH=y' > CC > /home/olivares/Download/temp/2629/martian/kmodule/martian_dev.mod.o LD [M] > /home/olivares/Download/temp/2629/martian/kmodule/martian_dev.ko make[2]: > Leaving directory `/home/olivares/Download/linux-2.6.29.2' make[1]: Leaving > directory `/home/olivares/Download/temp/2629/martian/kmodule' make -C > modem/ all > make[1]: Entering directory > `/home/olivares/Download/temp/2629/martian/modem' CC main.o > CC dumpers.o > CC log.o > CC session.o > CC mport.o > mport.c:8:41: error: asm/page.h: No such file or directory > mport.c: In function ‘mport_init’: > mport.c:315: error: ‘PAGE_SIZE’ undeclared (first use in this function) > mport.c:315: error: (Each undeclared identifier is reported only once > mport.c:315: error: for each function it appears in.) > mport.c:315: error: ‘PAGE_SHIFT’ undeclared (first use in this function) > make[1]: *** [mport.o] Error 1 > make[1]: Leaving directory > `/home/olivares/Download/temp/2629/martian/modem' make: *** [all] Error 2 > > > > > > ================================== > > [olivares@localhost 2629]$ tar -zxvf martian-full-20080625.tar.gz > martian-full-20080625/ > martian-full-20080625/martian.h > martian-full-20080625/Makefile > martian-full-20080625/INSTALL > martian-full-20080625/Concept > martian-full-20080625/Makefile~ > martian-full-20080625/Cleaning.txt > martian-full-20080625/README > martian-full-20080625/kmodule/ > martian-full-20080625/kmodule/Makefile > martian-full-20080625/kmodule/marsio.h > martian-full-20080625/kmodule/kmartian.h > martian-full-20080625/kmodule/martian_ids.c > martian-full-20080625/kmodule/fifo.h > martian-full-20080625/kmodule/mfifo.h > martian-full-20080625/kmodule/martian.c > martian-full-20080625/kmodule/marsio.c > martian-full-20080625/kmodule/mfifo.c > martian-full-20080625/kmodule/mixspinlock.h > martian-full-20080625/scripts/ > martian-full-20080625/scripts/martian > martian-full-20080625/scripts/remove_outdated.sh > martian-full-20080625/scripts/martian.in > martian-full-20080625/scripts/wv.conf > martian-full-20080625/scripts/automate.sh > martian-full-20080625/ChangeLog > martian-full-20080625/modem/ > martian-full-20080625/modem/Makefile > martian-full-20080625/modem/tweakcore.sh > martian-full-20080625/modem/main.c > martian-full-20080625/modem/debug_script.in > martian-full-20080625/modem/ltmdmobj.o > martian-full-20080625/modem/watch.gdb > martian-full-20080625/modem/sysdep.h > martian-full-20080625/modem/watch3.gdb > martian-full-20080625/modem/dumpers.c > martian-full-20080625/modem/elf386tweakrelocs.c > martian-full-20080625/modem/log.h > martian-full-20080625/modem/core_if.c > martian-full-20080625/modem/coreadd.c > martian-full-20080625/modem/mport.h > martian-full-20080625/modem/coresubst.c > martian-full-20080625/modem/ASWMLICENSE > martian-full-20080625/modem/README > martian-full-20080625/modem/mport.c > martian-full-20080625/modem/isr.c > martian-full-20080625/modem/core.h > martian-full-20080625/modem/watch2.gdb > martian-full-20080625/modem/tweakrelocsdynamic.c > martian-full-20080625/modem/log.c > martian-full-20080625/modem/session.c > martian-full-20080625/modem/watch4.gdb > martian-full-20080625/modem/pty.c > martian-full-20080625/modem/sysdep.c > martian-full-20080625/modem/common.h > martian-full-20080625/modem/main.h > martian-full-20080625/modem/smp.c > martian-full-20080625/modem/watch.h > martian-full-20080625/modem/overriden_core_functions > martian-full-20080625/modem/profile.c > martian-full-20080625/modem/link.c > martian-full-20080625/modem/mixspinlock.h > [olivares@localhost 2629]$ cd martian-full-20080625 > [olivares@localhost martian-full-20080625]$ make > make -C kmodule/ modules > make[1]: Entering directory > `/home/olivares/Download/temp/2629/martian-full-20080625/kmodule' > make -C /lib/modules/2.6.29.2/build > M="/home/olivares/Download/temp/2629/martian-full-20080625/kmodule" > modules > make[2]: Entering directory `/home/olivares/Download/linux-2.6.29.2' > CC [M] > /home/olivares/Download/temp/2629/martian-full-20080625/kmodule/martian.o > /home/olivares/Download/temp/2629/martian-full-20080625/kmodule/martian.c: > In function ‘martian_isr’: > /home/olivares/Download/temp/2629/martian-full-20080625/kmodule/martian.c:1 >31: warning: value computed is not used > CC [M] > /home/olivares/Download/temp/2629/martian-full-20080625/kmodule/marsio.o > /home/olivares/Download/temp/2629/martian-full-20080625/kmodule/marsio.c:35 >9: warning: ‘mars_read_register_rem’ defined but not used > /home/olivares/Download/temp/2629/martian-full-20080625/kmodule/marsio.c:37 >2: warning: ‘mars_write_register_rem’ defined but not used > CC [M] > /home/olivares/Download/temp/2629/martian-full-20080625/kmodule/mfifo.o LD > [M] > /home/olivares/Download/temp/2629/martian-full-20080625/kmodule/martian_dev >.o Building modules, stage 2. > MODPOST 1 modules > CC > /home/olivares/Download/temp/2629/martian-full-20080625/kmodule/martian_dev >.mod.o LD [M] > /home/olivares/Download/temp/2629/martian-full-20080625/kmodule/martian_dev >.ko make[2]: Leaving directory `/home/olivares/Download/linux-2.6.29.2' > make[1]: Leaving directory > `/home/olivares/Download/temp/2629/martian-full-20080625/kmodule' > make -C modem/ all > make[1]: Entering directory > `/home/olivares/Download/temp/2629/martian-full-20080625/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 > `/home/olivares/Download/temp/2629/martian-full-20080625/modem' > [olivares@localhost martian-full-20080625]$ su > Password: > [root@localhost martian-full-20080625]# make install > make -C kmodule/ install > make[1]: Entering directory > `/home/olivares/Download/temp/2629/martian-full-20080625/kmodule' > make -C /lib/modules/2.6.29.2/build > M="/home/olivares/Download/temp/2629/martian-full-20080625/kmodule" > modules_install > make[2]: Entering directory `/home/olivares/Download/linux-2.6.29.2' > INSTALL > /home/olivares/Download/temp/2629/martian-full-20080625/kmodule/martian_dev >.ko DEPMOD 2.6.29.2 > make[2]: Leaving directory `/home/olivares/Download/linux-2.6.29.2' > if ! /sbin/modprobe -nq martian_dev ; then /sbin/depmod -a; fi > make[1]: Leaving directory > `/home/olivares/Download/temp/2629/martian-full-20080625/kmodule' > make -C modem/ install > make[1]: Entering directory > `/home/olivares/Download/temp/2629/martian-full-20080625/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/olivares/Download/temp/2629/martian-full-20080625/modem' > [root@localhost martian-full-20080625]# > [root@localhost martian-full-20080625]# su - > [root@localhost ~]# modprobe martian_dev > [root@localhost ~]# martian_modem > martian: info: Your port is /dev/ttySM0 > martian: info: session: Started Tue Apr 28 21:24:02 2009 > > [olivares@localhost ~]$ uname -r > 2.6.29.2 > [olivares@localhost ~]$ uname -a > Linux localhost.localdomain 2.6.29.2 #1 SMP Mon Apr 27 19:29:38 CDT > 2009 x86_64 x86_64 x86_64 GNU/Linux > > [root@localhost ~]# 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 Tue Apr 28 21:25:42 2009 > --> Pid of pppd: 4122 > --> Using interface ppp0 > --> pppd: 0 > --> pppd: 0 > --> pppd: 0 > --> pppd: 0 > --> local IP address 66.201.8.231 > --> pppd: 0 > --> remote IP address 66.201.8.6 > --> pppd: 0 > --> primary DNS address 66.201.0.203 > --> pppd: 0 > --> secondary DNS address 66.94.120.9 > > > Thank you very much for your suggestion! > > Regards, > > Antonio > > On Tue, Apr 28, 2009 at 8:43 PM, Joern Wuestenfeld <j.wuestenfeld@xxxxxx> wrote: > > Hi Antonio, > > > > I believe, that in your martian code the "#include <linux/ioctl32.h>" > > can savely be replaced by "#include <linux/ioctl.h>". The ioctl32.h > > does not exist already in 2.6.25, which I checked. > > Concerning your problem with martian-full code, did you check, that > > martian-modem an martian-dev are from the same package? It looks like > > that you use an martian-modem from the older installation. They have to > > be from the same version. > > > > Don't just do: > > > > [olivares@localhost martian-full-20080625]$ make -C kmodule/ modules > > > > instead do a simple make, which will also compile the helper application, > > and use this for the test. > > > > Regards, Jörn