slmodem-2.9.11-20070204 and ungrab-winmodem work on slax6rc

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

 



Dear all,

   Since I also use Slax linux live CD, I would like
to inform you that now slax contains development
module, which means we could compile stuff that we
need to compile, ie., nvidia, slmodem, martian, etc.

So I tried compiling slmodemd and it worked, I tried
ungrab-winmodem and it failed.  But not something that
could not be fixed.  Line 14 

#include <linux/config.h>

needs to be commented out to
/* #include <linux/config.h> */

after which ungrab-winmodem compiles successfully. 
Slax does not have wvdial though, and wvdial streams,
but kppp is there and we can configure it without
problems.  Only thing is that we need to include an
init string otherwise we will have hard time to
connect.  
We need to add the following on init2 line  because of
Carrier Check = no, and no wvdial 

Init2:  ATQ0 V1 E1 S0=0 X3 &C1 &D2  +MS=34
and by changing to +MS=90 we can possibly get a higher
connecting speed.  

slmodemd on Slax works beautifully!  Here are the
details

root@darkstar:~# ls
Desktop/  slmodem-2.9.11-20070204.tar.gz* 
ungrab-winmodem.tar.gz*
root@darkstar:~# tar -zxvf
slmodem-2.9.11-20070204.tar.gz
slmodem-2.9.11-20070204/
slmodem-2.9.11-20070204/slamr_compile.txt
slmodem-2.9.11-20070204/Changes
slmodem-2.9.11-20070204/drivers/
slmodem-2.9.11-20070204/drivers/kernel-ver.c
slmodem-2.9.11-20070204/drivers/amrmo_init.c
slmodem-2.9.11-20070204/drivers/old_st7554.c
slmodem-2.9.11-20070204/drivers/Modules.symvers
slmodem-2.9.11-20070204/drivers/Makefile
slmodem-2.9.11-20070204/drivers/sysdep_amr.c
slmodem-2.9.11-20070204/drivers/st7554.c
slmodem-2.9.11-20070204/drivers/amrlibs.o
slmodem-2.9.11-20070204/drivers/Module.symvers
slmodem-2.9.11-20070204/Makefile
slmodem-2.9.11-20070204/README
slmodem-2.9.11-20070204/COPYING
slmodem-2.9.11-20070204/scripts/
slmodem-2.9.11-20070204/scripts/slmodemd.ubuntu.italy
slmodem-2.9.11-20070204/scripts/slmodem.spec
slmodem-2.9.11-20070204/scripts/suse/
slmodem-2.9.11-20070204/scripts/suse/slmodemd.SUSE
slmodem-2.9.11-20070204/scripts/suse/slmodemd.conf
slmodem-2.9.11-20070204/scripts/slackware/
slmodem-2.9.11-20070204/scripts/slackware/README
slmodem-2.9.11-20070204/scripts/slackware/rc.slmodemd
slmodem-2.9.11-20070204/scripts/slmodemd
slmodem-2.9.11-20070204/scripts/mandrake/
slmodem-2.9.11-20070204/scripts/mandrake/slmodemd
slmodem-2.9.11-20070204/scripts/debian/
slmodem-2.9.11-20070204/scripts/debian/slmodemd
slmodem-2.9.11-20070204/modem/
slmodem-2.9.11-20070204/modem/modem_main.c
slmodem-2.9.11-20070204/modem/sysdep_common.c
slmodem-2.9.11-20070204/modem/modem_ec.c
slmodem-2.9.11-20070204/modem/modem.c
slmodem-2.9.11-20070204/modem/modem_test.c
slmodem-2.9.11-20070204/modem/modem_param.c
slmodem-2.9.11-20070204/modem/modem_comp.c
slmodem-2.9.11-20070204/modem/modem_cmdline.c
slmodem-2.9.11-20070204/modem/modem_datafile.c
slmodem-2.9.11-20070204/modem/Makefile
slmodem-2.9.11-20070204/modem/modem_debug.h
slmodem-2.9.11-20070204/modem/modem.h
slmodem-2.9.11-20070204/modem/modem_pack.c
slmodem-2.9.11-20070204/modem/modem_homolog.h
slmodem-2.9.11-20070204/modem/modem_defs.h
slmodem-2.9.11-20070204/modem/modem_param.h
slmodem-2.9.11-20070204/modem/modem_timer.h
slmodem-2.9.11-20070204/modem/modem_timer.c
slmodem-2.9.11-20070204/modem/modem_debug.c
slmodem-2.9.11-20070204/modem/dsplibs.o
slmodem-2.9.11-20070204/modem/dp_dummy.c
slmodem-2.9.11-20070204/modem/modem_dp.h
slmodem-2.9.11-20070204/modem/modem_at.c
slmodem-2.9.11-20070204/modem/homolog_data.c
slmodem-2.9.11-20070204/modem/dp_sinus.c
slmodem-2.9.11-20070204/patches/
slmodem-2.9.11-20070204/patches/alsa-linux-2.6.0.patch
slmodem-2.9.11-20070204/patches/slmodem-usb-2.6.16.patch
slmodem-2.9.11-20070204/Smartlink.txt
root@darkstar:~# ls
Desktop/                 
slmodem-2.9.11-20070204.tar.gz*
slmodem-2.9.11-20070204/  ungrab-winmodem.tar.gz*
root@darkstar:~# tar -zxvf ungrab-winmodem.tar.gz
ungrab-winmodem/
ungrab-winmodem/Makefile
ungrab-winmodem/ungrab-winmodem.c
ungrab-winmodem/Readme.txt
root@darkstar:~# cd sl
slmodem-2.9.11-20070204/       
slmodem-2.9.11-20070204.tar.gz
root@darkstar:~# cd slmodem-2.9.11-20070204
root@darkstar:~/slmodem-2.9.11-20070204# ls
COPYING  Makefile  Smartlink.txt  modem/    scripts/
Changes  README    drivers/       patches/ 
slamr_compile.txt
root@darkstar:~/slmodem-2.9.11-20070204# make
KERNEL_DIR=/lib/modules/2.6.20/build
make -C modem all
make[1]: Entering directory
`/root/slmodem-2.9.11-20070204/modem'
rebuild profile...
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o
modem_main.o -c modem_main.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o
modem_cmdline.o -c modem_cmdline.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem.o
-c modem.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o
modem_datafile.o -c modem_datafile.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o
modem_at.o -c modem_at.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o
modem_timer.o -c modem_timer.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o
modem_pack.o -c modem_pack.c
modem_pack.c: In function 'modem_async_get_bits':
modem_pack.c:100: warning: pointer targets in passing
argument 2 of 'm->get_chars' differ in signedness
modem_pack.c: In function 'modem_async_put_bits':
modem_pack.c:148: warning: pointer targets in passing
argument 2 of 'm->put_chars' differ in signedness
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o
modem_ec.o -c modem_ec.c
modem_ec.c: In function 'tx_info':
modem_ec.c:723: warning: pointer targets in passing
argument 2 of 'l->modem->get_chars' differ in
signedness
modem_ec.c: In function 'push_rest_data':
modem_ec.c:811: warning: pointer targets in passing
argument 2 of 'l->modem->put_chars' differ in
signedness
modem_ec.c: In function 'rx_info':
modem_ec.c:860: warning: pointer targets in passing
argument 2 of 'l->modem->put_chars' differ in
signedness
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o
modem_comp.o -c modem_comp.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o
modem_param.o -c modem_param.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o
modem_debug.o -c modem_debug.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o
homolog_data.o -c homolog_data.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o
dp_sinus.o -c dp_sinus.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o
dp_dummy.o -c dp_dummy.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o
sysdep_common.o -c sysdep_common.c
gcc  -o slmodemd modem_main.o modem_cmdline.o modem.o
modem_datafile.o modem_at.o modem_timer.o modem_pack.o
modem_ec.o modem_comp.o modem_param.o modem_debug.o
homolog_data.o dp_sinus.o dp_dummy.o dsplibs.o
sysdep_common.o
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o
modem_test.o -c modem_test.c
gcc  -o modem_test modem_test.o modem_cmdline.o
modem.o modem_datafile.o modem_at.o modem_timer.o
modem_pack.o modem_ec.o modem_comp.o modem_param.o
modem_debug.o homolog_data.o dp_sinus.o dp_dummy.o
dsplibs.o sysdep_common.o
make[1]: Leaving directory
`/root/slmodem-2.9.11-20070204/modem'
make -C drivers KERNEL_DIR=/lib/modules/2.6.20/build
make[1]: Entering directory
`/root/slmodem-2.9.11-20070204/drivers'
cc -I/lib/modules/2.6.20/build/include -o kernel-ver
kernel-ver.c
make all KERNEL_VER=2.6.20
make[2]: Entering directory
`/root/slmodem-2.9.11-20070204/drivers'
make modules -C /lib/modules/2.6.20/build
SUBDIRS=/root/slmodem-2.9.11-20070204/drivers
make[3]: Entering directory `/usr/src/linux-2.6.20'

  WARNING: Symbol version dump
/usr/src/linux-2.6.20/Module.symvers
           is missing; modules will have no
dependencies and modversions.

  CC [M] 
/root/slmodem-2.9.11-20070204/drivers/amrmo_init.o
  CC [M] 
/root/slmodem-2.9.11-20070204/drivers/sysdep_amr.o
  CC [M] 
/root/slmodem-2.9.11-20070204/drivers/st7554.o
  LD [M] 
/root/slmodem-2.9.11-20070204/drivers/slamr.o
  LD [M] 
/root/slmodem-2.9.11-20070204/drivers/slusb.o
  Building modules, stage 2.
  MODPOST 2 modules
  CC     
/root/slmodem-2.9.11-20070204/drivers/slamr.mod.o
  LD [M] 
/root/slmodem-2.9.11-20070204/drivers/slamr.ko
  CC     
/root/slmodem-2.9.11-20070204/drivers/slusb.mod.o
  LD [M] 
/root/slmodem-2.9.11-20070204/drivers/slusb.ko
make[3]: Leaving directory `/usr/src/linux-2.6.20'
make[2]: Leaving directory
`/root/slmodem-2.9.11-20070204/drivers'
make[1]: Leaving directory
`/root/slmodem-2.9.11-20070204/drivers'
root@darkstar:~/slmodem-2.9.11-20070204# make
make -C modem all
make[1]: Entering directory
`/root/slmodem-2.9.11-20070204/modem'
make[1]: Leaving directory
`/root/slmodem-2.9.11-20070204/modem'
make -C drivers KERNEL_DIR=/lib/modules/2.6.20/build
make[1]: Entering directory
`/root/slmodem-2.9.11-20070204/drivers'
cc -I/lib/modules/2.6.20/build/include -o kernel-ver
kernel-ver.c
make all KERNEL_VER=2.6.20
make[2]: Entering directory
`/root/slmodem-2.9.11-20070204/drivers'
make modules -C /lib/modules/2.6.20/build
SUBDIRS=/root/slmodem-2.9.11-20070204/drivers
make[3]: Entering directory `/usr/src/linux-2.6.20'

  WARNING: Symbol version dump
/usr/src/linux-2.6.20/Module.symvers
           is missing; modules will have no
dependencies and modversions.

  Building modules, stage 2.
  MODPOST 2 modules
make[3]: Leaving directory `/usr/src/linux-2.6.20'
make[2]: Leaving directory
`/root/slmodem-2.9.11-20070204/drivers'
make[1]: Leaving directory
`/root/slmodem-2.9.11-20070204/drivers'
root@darkstar:~/slmodem-2.9.11-20070204# make install
make -C modem all
make[1]: Entering directory
`/root/slmodem-2.9.11-20070204/modem'
make[1]: Leaving directory
`/root/slmodem-2.9.11-20070204/modem'
make -C drivers KERNEL_DIR=/lib/modules/2.6.20/build
make[1]: Entering directory
`/root/slmodem-2.9.11-20070204/drivers'
cc -I/lib/modules/2.6.20/build/include -o kernel-ver
kernel-ver.c
make all KERNEL_VER=2.6.20
make[2]: Entering directory
`/root/slmodem-2.9.11-20070204/drivers'
make modules -C /lib/modules/2.6.20/build
SUBDIRS=/root/slmodem-2.9.11-20070204/drivers
make[3]: Entering directory `/usr/src/linux-2.6.20'

  WARNING: Symbol version dump
/usr/src/linux-2.6.20/Module.symvers
           is missing; modules will have no
dependencies and modversions.

  Building modules, stage 2.
  MODPOST 2 modules
make[3]: Leaving directory `/usr/src/linux-2.6.20'
make[2]: Leaving directory
`/root/slmodem-2.9.11-20070204/drivers'
make[1]: Leaving directory
`/root/slmodem-2.9.11-20070204/drivers'
make install -C drivers
KERNEL_DIR=/lib/modules/2.6.20/build
make[1]: Entering directory
`/root/slmodem-2.9.11-20070204/drivers'
cc -I/lib/modules/2.6.20/build/include -o kernel-ver
kernel-ver.c
mkdir -p /dev
mknod -m 600 /dev/slamr0 c 242 0 ;   mknod -m 600
/dev/slamr1 c 242 1 ;   mknod -m 600 /dev/slamr2 c 242
2 ;   mknod -m 600 /dev/slamr3 c 242 3 ;  echo -n
mknod -m 600 /dev/slusb0 c 243 0 ;   mknod -m 600
/dev/slusb1 c 243 1 ;   mknod -m 600 /dev/slusb2 c 243
2 ;   mknod -m 600 /dev/slusb3 c 243 3 ;  echo -n
make install KERNEL_VER=2.6.20
make[2]: Entering directory
`/root/slmodem-2.9.11-20070204/drivers'
install -D -m 644 slamr.ko
/lib/modules/2.6.20/extra/slamr.ko
install -D -m 644 slusb.ko
/lib/modules/2.6.20/extra/slusb.ko
/sbin/depmod -a
make[2]: Leaving directory
`/root/slmodem-2.9.11-20070204/drivers'
make[1]: Leaving directory
`/root/slmodem-2.9.11-20070204/drivers'
install -D -m 755 modem/slmodemd /usr/sbin/slmodemd
rm -f -rf /var/lib/slmodem
install -d -D -m 755 /var/lib/slmodem
root@darkstar:~/slmodem-2.9.11-20070204# cd ../un
ungrab-winmodem/        ungrab-winmodem.tar.gz
root@darkstar:~/slmodem-2.9.11-20070204# cd
../ungrab-winmodem
root@darkstar:~/ungrab-winmodem# make
make modules -C /lib/modules/2.6.20/build
SUBDIRS=/root/ungrab-winmodem
make[1]: Entering directory `/usr/src/linux-2.6.20'

  WARNING: Symbol version dump
/usr/src/linux-2.6.20/Module.symvers
           is missing; modules will have no
dependencies and modversions.

  CC [M]  /root/ungrab-winmodem/ungrab-winmodem.o
/root/ungrab-winmodem/ungrab-winmodem.c:14:26: error:
linux/config.h: No such file or directory
make[2]: *** [/root/ungrab-winmodem/ungrab-winmodem.o]
Error 1
make[1]: *** [_module_/root/ungrab-winmodem] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.20'
make: *** [all] Error 2
root@darkstar:~/ungrab-winmodem# ls
Makefile  Readme.txt  ungrab-winmodem.c
root@darkstar:~/ungrab-winmodem# kwrite
ungrab-winmodem.c &
[1] 6738
root@darkstar:~/ungrab-winmodem# make
make modules -C /lib/modules/2.6.20/build
SUBDIRS=/root/ungrab-winmodem
make[1]: Entering directory `/usr/src/linux-2.6.20'

  WARNING: Symbol version dump
/usr/src/linux-2.6.20/Module.symvers
           is missing; modules will have no
dependencies and modversions.

  CC [M]  /root/ungrab-winmodem/ungrab-winmodem.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /root/ungrab-winmodem/ungrab-winmodem.mod.o
  LD [M]  /root/ungrab-winmodem/ungrab-winmodem.ko
make[1]: Leaving directory `/usr/src/linux-2.6.20'
[1]+  Done                    kwrite ungrab-winmodem.c
root@darkstar:~/ungrab-winmodem# make install
make modules -C /lib/modules/2.6.20/build
SUBDIRS=/root/ungrab-winmodem
make[1]: Entering directory `/usr/src/linux-2.6.20'

  WARNING: Symbol version dump
/usr/src/linux-2.6.20/Module.symvers
           is missing; modules will have no
dependencies and modversions.

  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-2.6.20'
install -D -m 644 ungrab-winmodem.ko
/lib/modules/2.6.20/extra/ungrab-winmodem.ko
/sbin/depmod -a
root@darkstar:~/ungrab-winmodem# df -l
Filesystem           1K-blocks      Used Available
Use% Mounted on
tmpfs                   229644     15180    214464  
7% /
/dev/hda1               101086     26592     69275 
28% /mnt/hda1_disk
/dev/sda1               124940     81705     43235 
66% /mnt/sda1_removable
root@darkstar:~/ungrab-winmodem# modprobe
ungrab-winmodem
root@darkstar:~/ungrab-winmodem# modprobe slamr
root@darkstar:~/ungrab-winmodem# slmodemd -c USA
/dev/slamr0
SmartLink Soft Modem: version 2.9.11 Apr 13 2007
23:42:17
symbolic link `/dev/ttySL0' -> `/dev/pts/2' created.
modem `slamr0' created. TTY is `/dev/pts/2'
Use `/dev/ttySL0' as modem device, Ctrl+C for
termination.

Kernel 2.6.20 
root@darkstar:~# uname -a
Linux darkstar 2.6.20 #1 SMP Fri Apr 6 19:11:34 GMT
2007 i686 athlon-4 i386 GNU/Linux



Regards,

Antonio 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

  Powered by Linux