Re: How to build martian_modem on x86_64 Slackware 13.1 system if possible?

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

 



Dear all,

A friend of mine lent me a modem US Robotics(the good one) and all is well :)

CPU=x86_64,
Welcome ,  ALSA_version=1.0.22
Linux version 2.6.34 (root@darkstar) (gcc version 4.4.4 (GCC) ) #1 SMP
Mon May 31 05:58:15 CDT 2010
 scanModem update of:  2010_05_29

Predictive  diagnostics for card in bus 05:02.0:
        Modem chipset  detected on
NAME="Serial controller: 3Com Corp, Modem Division 56K FaxModem Model 5610 "
CLASS=0700
PCIDEV=12b9:1008
SUBSYS=12b9:00d3
IRQ=18
IDENT=USrobotics.serial

 For candidate modem in:  05:02.0
   0700 Serial controller: 3Com Corp, Modem Division 56K FaxModem Model 5610
      Primary device ID:  12b9:1008
 Support type needed or chipset:        USrobotics.serial




root@darkstar:/home/olivares/Downloads# wvdialconf /etc/wvdial.conf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- OK
ttyS0<*1>: ATQ0 V1 E1 Z -- OK
ttyS0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyS0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyS0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyS0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyS0<*1>: Modem Identifier: ATI -- 5601
ttyS0<*1>: Speed 4800: AT -- OK
ttyS0<*1>: Speed 9600: AT -- OK
ttyS0<*1>: Speed 19200: AT -- OK
ttyS0<*1>: Speed 38400: AT -- OK
ttyS0<*1>: Speed 57600: AT -- OK
ttyS0<*1>: Speed 115200: AT -- OK
ttyS0<*1>: Max speed is 115200; that should be safe.
ttyS0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Modem Port Scan<*1>: S2   S3

Found a modem on /dev/ttyS0.
Modem configuration written to /etc/wvdial.conf.
ttyS0<Info>: Speed 115200; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

root@darkstar:/home/olivares/Downloads# wvdial
--> WvDial: Internet dialer version 1.61
--> 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.
--> Idle Seconds = 300, disabling automatic reconnect.
--> Sending: ATDT7072000
--> Waiting for carrier.
ATDT7072000
CONNECT 49333/ARQ/V90/LAPM/V42BIS
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Mon May 31 23:11:29 2010
--> Pid of pppd: 3177
--> Using interface ppp0
--> pppd: í[7f]
--> pppd: í[7f]
--> pppd: í[7f]
--> pppd: í[7f]
--> local  IP address 66.201.8.220
--> pppd: í[7f]
--> remote IP address 66.201.8.6
--> pppd: í[7f]
--> primary   DNS address 66.201.0.203
--> pppd: í[7f]
--> secondary DNS address 66.94.120.9
--> pppd: í[7f]


I can now rest assured that the connection is going to work well.  I
can still use the modem on another PC but with 32 bit Linux only.  The
64 bit part works well in Fedora, but I could not manage to get it
working in Slackware.  Might not have been patient at all, but at
least I can connect :)

Regards,

Antonio

On 5/31/10, Antonio Olivares <olivares14031@xxxxxxxxx> wrote:
> Dear folks,
>
> I am having difficulties with martian_modem (getting it to work on
> Slackware 13.1 x86_64), I have compiled successfully built
> martian_dev.ko under 2.6.33.4 and have compiled and installed 2.6.34
> kernel and there too, I have built it:
>
> olivares@darkstar:~$ cat /etc/slackware-version
> Slackware 13.1.0
> olivares@darkstar:~$ uname -a
> Linux darkstar 2.6.34 #1 SMP Mon May 31 05:58:15 CDT 2010 x86_64
> Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz GenuineIntel GNU/Linux
>
>
> However the file /usr/sbin/martian_modem is not created under 64 bit
> and since it is 32 bit one has to use a prebuilt martian_modem binary.
>  Marv has kindly made it for me.  It has worked before under Fedora
> x86_64 , but not with Slackware :(
>
> root@darkstar:~/Downloads# mv martian_modem /usr/sbin/
> root@darkstar:~/Downloads# chmod +x /usr/sbin/martian_modem
> root@darkstar:~/Downloads# /usr/sbin/martian_modem --help
> -su: /usr/sbin/martian_modem: No such file or directory
> root@darkstar:~/Downloads# uname -a
> Linux darkstar 2.6.34 #1 SMP Mon May 31 05:58:15 CDT 2010 x86_64
> Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz GenuineIntel GNU/Linux
> root@darkstar:~/Downloads# modprobe martian_dev
> root@darkstar:~/Downloads# /usr/sbin/martian_modem --help
> -su: /usr/sbin/martian_modem: No such file or directory
> root@darkstar:~/Downloads# /usr/sbin/./martian_modem --help
>
> Here's how I built the driver for 2.6.34
>
>
> olivares@darkstar:~/Downloads/martian-full-20100123$ make -C kmodule/ clean
> make: Entering directory
> `/home/olivares/Downloads/martian-full-20100123/kmodule'
> make -C /lib/modules/2.6.34/build
> M="/home/olivares/Downloads/martian-full-20100123/kmodule" clean
> make[1]: Entering directory `/usr/src/linux-2.6.34'
> make[1]: Leaving directory `/usr/src/linux-2.6.34'
> make: Leaving directory
> `/home/olivares/Downloads/martian-full-20100123/kmodule'
> olivares@darkstar:~/Downloads/martian-full-20100123$ make -C modem/ clean
> make: Entering directory
> `/home/olivares/Downloads/martian-full-20100123/modem'
>     RM  OBJS
>     RM  BINS
>     RM  TOOLS
> make: Leaving directory
> `/home/olivares/Downloads/martian-full-20100123/modem'
> olivares@darkstar:~/Downloads/martian-full-20100123$ make -C kmodule/
> module
> make: Entering directory
> `/home/olivares/Downloads/martian-full-20100123/kmodule'
> make: *** No rule to make target `module'.  Stop.
> make: Leaving directory
> `/home/olivares/Downloads/martian-full-20100123/kmodule'
> olivares@darkstar:~/Downloads/martian-full-20100123$ make -C kmodule/
> modules
> make: Entering directory
> `/home/olivares/Downloads/martian-full-20100123/kmodule'
> make -C /lib/modules/2.6.34/build
> M="/home/olivares/Downloads/martian-full-20100123/kmodule"  modules
> make[1]: Entering directory `/usr/src/linux-2.6.34'
>   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:
> 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:
> warning: 'mars_read_register_rem' defined but not used
> /home/olivares/Downloads/martian-full-20100123/kmodule/marsio.c:371:
> 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.34'
> make: Leaving directory
> `/home/olivares/Downloads/martian-full-20100123/kmodule'
> olivares@darkstar:~/Downloads/martian-full-20100123$ su -c 'make -C
> kmodule/ install'
> Password:
> make: Entering directory
> `/home/olivares/Downloads/martian-full-20100123/kmodule'
> make -C /lib/modules/2.6.34/build
> M="/home/olivares/Downloads/martian-full-20100123/kmodule"
> modules_install
> make[1]: Entering directory `/usr/src/linux-2.6.34'
>   INSTALL
> /home/olivares/Downloads/martian-full-20100123/kmodule/martian_dev.ko
>   DEPMOD  2.6.34
> make[1]: Leaving directory `/usr/src/linux-2.6.34'
> if ! /sbin/modprobe -nq martian_dev ; then /sbin/depmod -a; fi
> make: Leaving directory
> `/home/olivares/Downloads/martian-full-20100123/kmodule'
> olivares@darkstar:~/Downloads/martian-full-20100123$
>
> root@darkstar:~/Downloads# gunzip martian_modem.gz
> root@darkstar:~/Downloads# mv martian_modem /usr/sbin/
> root@darkstar:~/Downloads# chmod +x /usr/sbin/martian_modem
> root@darkstar:~/Downloads# /usr/sbin/martian_modem --help
> -su: /usr/sbin/martian_modem: No such file or directory
> root@darkstar:~/Downloads# uname -a
> Linux darkstar 2.6.34 #1 SMP Mon May 31 05:58:15 CDT 2010 x86_64
> Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz GenuineIntel GNU/Linux
> root@darkstar:~/Downloads# modprobe martian_dev
> root@darkstar:~/Downloads# /usr/sbin/martian_modem --help
> -su: /usr/sbin/martian_modem: No such file or directory
> root@darkstar:~/Downloads# /usr/sbin/./martian_modem --help
> -su: /usr/sbin/./martian_modem: No such file or directory
>
> olivares@darkstar:~/Downloads/martian-full-20100123/modem$ make clean
>     RM  OBJS
>     RM  BINS
>     RM  TOOLS
> olivares@darkstar:~/Downloads/martian-full-20100123/modem$ mak
> bash: mak: command not found
> olivares@darkstar:~/Downloads/martian-full-20100123/modem$ make
>     CC  main.o
> main.c: In function 'monitor_state':
> main.c:698: warning: format '%d' expects type 'int', but argument 4
> has type 'long int'
> main.c:699: warning: format '%d' expects type 'int', but argument 4
> has type 'long int'
> main.c:700: warning: format '%d' expects type 'int', but argument 4
> has type 'long int'
> main.c:701: warning: format '%d' expects type 'int', but argument 4
> has type 'long int'
> main.c:702: warning: format '%d' expects type 'int', but argument 4
> has type 'long int'
>     CC  dumpers.o
>     CC  log.o
>     CC  session.o
>     CC  mport.o
> mport.c: In function 'mport_init':
> mport.c:336: warning: cast to pointer from integer of different size
>     CC  pty.o
>     CC  sysdep.o
>     CC  isr.o
> isr.c: In function 'serve_interrupts':
> isr.c:62: warning: cast from pointer to integer of different size
>     CC  smp.o
>     CC  core_if.o
> core_if.c: In function 'Get_PCI_BASE_ADDRESS_IO_MASK':
> core_if.c:368: warning: large integer implicitly truncated to unsigned type
>     CC  coresubst.o
>     CC  link.o
> link.c: In function 'link_to_driver':
> link.c:100: warning: cast from pointer to integer of different size
> link.c:104: warning: cast from pointer to integer of different size
> link.c:112: warning: cast from pointer to integer of different size
>     CC  tweakrelocsdynamic.o
> tweakrelocsdynamic.c: In function 'tweak_areloc':
> tweakrelocsdynamic.c:176: warning: cast to pointer from integer of
> different size
> tweakrelocsdynamic.c:180: warning: cast to pointer from integer of
> different size
> tweakrelocsdynamic.c:221: warning: cast to pointer from integer of
> different size
> tweakrelocsdynamic.c: In function 'relocate_symbol':
> tweakrelocsdynamic.c:303: warning: cast from pointer to integer of
> different size
> tweakrelocsdynamic.c: In function 'locate_map_using_proc':
> tweakrelocsdynamic.c:331: warning: cast to pointer from integer of
> different size
>     CC  coreadd.o
>     CC  elf386tweakrelocs
>     LD  marscore.o
> ld: Relocatable linking with relocations from format elf32-i386
> (ltmdmobj.o) to format elf64-x86-64 (marscore.o) is not supported
> make: *** [marscore.o] Error 1
>
>
> Is there any way I can build martian_modem and use it successfully?
> I want to make use of 64 bit power, and not install 32 bit linux.
>
> Thanks in Advance,
>
> Antonio
>
> NOTE:
> on Fedora x86_64 systems with Fedora kernels, I used Marv's
> martian_modem script he built for me and it worked.  Then I got
> kernels from kernel.org and ran
> $ make all
> $ su -c 'make install'
>
> and it worked well.  I try to do the same with Slackware and I get errors
> :(
>
> olivares@darkstar:~/Downloads/martian-full-20100123$ make clean
> /bin/sh: line 0: [: 34/build: integer expression expected
> make -C kmodule/ clean
> make[1]: Entering directory
> `/home/olivares/Downloads/martian-full-20100123/kmodule'
> make -C /lib/modules/2.6.34/build
> M="/home/olivares/Downloads/martian-full-20100123/kmodule" clean
> make[2]: Entering directory `/usr/src/linux-2.6.34'
> make[2]: Leaving directory `/usr/src/linux-2.6.34'
> make[1]: Leaving directory
> `/home/olivares/Downloads/martian-full-20100123/kmodule'
> make -C modem/ clean
> make[1]: Entering directory
> `/home/olivares/Downloads/martian-full-20100123/modem'
>     RM  OBJS
>     RM  BINS
>     RM  TOOLS
> make[1]: Leaving directory
> `/home/olivares/Downloads/martian-full-20100123/modem'
> olivares@darkstar:~/Downloads/martian-full-20100123$ make all
> /bin/sh: line 0: [: 34/build: integer expression expected
> make: *** No rule to make target `all'.  Stop.
>



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

  Powered by Linux