Oleksis, Cuba kernel 2.6.37

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

 




Utility commands to display information on the Kernel and Modem

universo:~# uname -a
Linux universo 2.6.37 #1 SMP Thu Jan 13 05:14:10 CST 2011 i686 GNU/Linux

universo:~# uname -r
2.6.37

universo:~# lspci
...
01:0a.0 Modem: Motorola SM56 Data Fax Modem (rev 04)


The problem is when I try to compile the driver gives the following error slamr shown below. Using the kernel source linux-6.2.37. How to solve this problem? Thanks for the help!


Patching for slmodem

universo:~/MyDocument/slmodem-2.9.11-20100718# patch -p1 < slmodem-2.6.36.patch


Compile the driver

universo:~/MyDocument/slmodem-2.9.11-20100718# make
make -C modem all
make[1]: se ingresa al directorio `/root/MyDocument/slmodem-2.9.11-20100718/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
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_ec.o -c modem_ec.c
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]: se sale del directorio `/root/MyDocument/slmodem-2.9.11-20100718/modem'
make -C drivers KERNEL_DIR=/lib/modules/2.6.37/build
/bin/sh: line 0: [: 37/build: integer expression expected
make[1]: se ingresa al directorio `/root/MyDocument/slmodem-2.9.11-20100718/drivers'
doing kernel-ver::
cc -I/lib/modules/2.6.37/build/include -o kernel-ver kernel-ver.c
make all KERNEL_VER=2.6.37
/bin/sh: line 0: [: 37/build: integer expression expected
make[2]: se ingresa al directorio `/root/MyDocument/slmodem-2.9.11-20100718/drivers'
	obj-m=slamr.o  slusb.o
	slamr-objs=amrmo_init.o sysdep_amr.o amrlibs.o
make modules -C /lib/modules/2.6.37/build SUBDIRS=/root/MyDocument/slmodem-2.9.11-20100718/drivers
make[3]: se ingresa al directorio `/usr/src/linux-2.6.37'
/bin/sh: line 0: [: 37/build: integer expression expected
CC [M] /root/MyDocument/slmodem-2.9.11-20100718/drivers/amrmo_init.o /root/MyDocument/slmodem-2.9.11-20100718/drivers/amrmo_init.c: In function ?amrmo_ioctl?: /root/MyDocument/slmodem-2.9.11-20100718/drivers/amrmo_init.c:453: warning: ignoring return value of ?copy_from_user?, declared with attribute warn_unused_result CC [M] /root/MyDocument/slmodem-2.9.11-20100718/drivers/sysdep_amr.o
  CC [M]  /root/MyDocument/slmodem-2.9.11-20100718/drivers/st7554.o
/root/MyDocument/slmodem-2.9.11-20100718/drivers/st7554.c:236: warning: type defaults to ?int? in declaration of ?DECLARE_MUTEX? /root/MyDocument/slmodem-2.9.11-20100718/drivers/st7554.c:236: warning: parameter names (without types) in function declaration /root/MyDocument/slmodem-2.9.11-20100718/drivers/st7554.c: In function ?st7554_open?: /root/MyDocument/slmodem-2.9.11-20100718/drivers/st7554.c:1001: error: ?open_sem? undeclared (first use in this function) /root/MyDocument/slmodem-2.9.11-20100718/drivers/st7554.c:1001: error: (Each undeclared identifier is reported only once /root/MyDocument/slmodem-2.9.11-20100718/drivers/st7554.c:1001: error: for each function it appears in.) /root/MyDocument/slmodem-2.9.11-20100718/drivers/st7554.c: In function ?st7554_probe?: /root/MyDocument/slmodem-2.9.11-20100718/drivers/st7554.c:1237: error: implicit declaration of function ?init_MUTEX? /root/MyDocument/slmodem-2.9.11-20100718/drivers/st7554.c:1320: error: ?open_sem? undeclared (first use in this function) /root/MyDocument/slmodem-2.9.11-20100718/drivers/st7554.c:1336: warning: passing argument 2 of ?device_create? makes pointer from integer without a cast /root/MyDocument/slmodem-2.9.11-20100718/drivers/st7554.c:1336: warning: passing argument 3 of ?device_create? makes integer from pointer without a cast /root/MyDocument/slmodem-2.9.11-20100718/drivers/st7554.c:1336: warning: passing argument 5 of ?device_create? makes pointer from integer without a cast /root/MyDocument/slmodem-2.9.11-20100718/drivers/st7554.c: In function ?st7554_disconnect?: /root/MyDocument/slmodem-2.9.11-20100718/drivers/st7554.c:1367: error: ?open_sem? undeclared (first use in this function) make[4]: *** [/root/MyDocument/slmodem-2.9.11-20100718/drivers/st7554.o] Error 1 make[3]: *** [_module_/root/MyDocument/slmodem-2.9.11-20100718/drivers] Error 2
make[3]: se sale del directorio `/usr/src/linux-2.6.37'
make[2]: *** [all] Error 2
make[2]: se sale del directorio `/root/MyDocument/slmodem-2.9.11-20100718/drivers'
make[1]: *** [all] Error 2
make[1]: se sale del directorio `/root/MyDocument/slmodem-2.9.11-20100718/drivers'
make: *** [drivers] Error 2



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

  Powered by Linux