|  Problems with Motorola SM56 driverForum: Networking
 Topic: Problems with Motorola SM56 driver
 started by: Diogo
 
  Posted by Diogo on June 05 2006,21:25 Hi 
 I'm using DSL 2.4 for a little while and i still don't know much on how to do something... even so everything is working great. The olny problem i got was on trying to install my modem Motorola SM56 and i really need some help with that.
 
 following some information i found, here is how i did it:
 
 I downloaded and installed the Kernel-source; Kernel-headers; and gcc1
 
 Them i downloaded the driver sm56.tar.gz from www.sm56.tk
 unpacked it and get to the directory
 
 I tried the ./configure but it have no efects
 
 Them i tried "make install" and it gives me some errors, here is the log:
 
 
 | Quote |  | Script started on Dom 04 Jun 2006 23:01:51 EDT
 dsl@box:~/diogo/sm56$ make install
 make all
 make[1]: Entering directory `/home/dsl/diogo/sm56'
 echo "Writing Version.c"
 Writing Version.c
 echo "#define UTS_RELEASE \""`uname -r`"\"" >version.c
 echo "const char attributemodule_using_checksums[] ((section(\".modinfo\"))) = \"using_checksums=1\";" >>version.c
 echo "#endif">>version.c
 echo Compiling version.c
 Compiling version.c
 gcc -D -DMODULE -Wall -O -fomit-frame-pointer -o version.a  -c version.c
 echo Linking output version.a with Motorola proprietary sm56.lib
 Linking output version.a with Motorola proprietary sm56.lib
 ld -r -o sm56.a  version.a sm56.lib
 echo Updating kernel symbols in output sm56.a
 Updating kernel symbols in output sm56.a
 objcopy --redefine-sym kmalloc=kmalloc_hack --redefine-sym KERNEL__ -DMODULE -Wall -O -I/usr/src/linux-2.4/include -fomit-frame-pointer -o kmhack.o -c kludge.c
 In file included from /usr/include/asm/smp.h:18,
 from /usr/include/linux/smp.h:17,
 from /usr/include/linux/topology.h:33,
 from /usr/include/linux/mmzone.h:296,
 from /usr/include/linux/gfp.h:4,
 from /usr/include/linux/slab.h:15,
 from kludge.c:13:
 /usr/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
 In file included from /usr/include/asm/smp.h:18,
 from /usr/include/linux/smp.h:17,
 from /usr/include/linux/topology.h:33,
 from /usr/include/linux/mmzone.h:296,
 from /usr/include/linux/gfp.h:4,
 from /usr/include/linux/slab.h:15,
 from kludge.c:13:
 /usr/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function)
 /usr/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function)
 /usr/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function)
 /usr/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function)
 /usr/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function)
 /usr/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function)
 /usr/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
 /usr/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
 /usr/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
 /usr/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function)
 /usr/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
 /usr/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus'
 /usr/include/asm/mpspec.h:54: error: `MAX_APICS' undeclared here (not in a function)
 In file included from /usr/include/asm/smp.h:20,
 from /usr/include/linux/smp.h:17,
 from /usr/include/linux/topology.h:33,
 from /usr/include/linux/mmzone.h:296,
 from /usr/include/linux/gfp.h:4,
 from /usr/include/linux/slab.h:15,
 from kludge.c:13:
 /usr/include/asm/io_apic.h:120: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
 /usr/include/asm/io_apic.h:120: error: conflicting types for `mp_irqs'
 /usr/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
 In file included from /usr/include/linux/smp.h:17,
 from /usr/include/linux/topology.h:33,
 from /usr/include/linux/mmzone.h:296,
 from /usr/include/linux/gfp.h:4,
 from /usr/include/linux/slab.h:15,
 from kludge.c:13:
 /usr/include/asm/smp.h:73:26: mach_apicdef.h: No such file or directory
 make[1]: ** [all] Erro 1
 make[1]: Leaving directory `/home/dsl/diogo/sm56'
 make: ** [install] Erro 2
 dsl@box:~/diogo/sm56$ exit
 Script done on Dom 04 Jun 2006 23:01:58 EDT
 
 | 
 
 also tried only make and them make install but gives the same result... and tried as root also...
 
 i really need to get this working right..
 any help will be very good..
 
 Thanks for the atention
 
  Posted by IDtucho on Feb. 11 2007,20:13 I had exactly the same problem ...... I have this modem and I don`t know how to install it .... I saw the script ... and is same what happened to me . if I find some information I`ll post here
 see  ya!
 
  Posted by IDtucho on Feb. 15 2007,04:52 my friend I solved the problem .... you just have to edit the makefile of the folder sm56 in makefile  has a line like this usr/src/linux-2.4/include
 and must be like this usr/src/linux-2.4.x/include
 x= version of your kernel
 see ya!
 
  Posted by Juanito on Feb. 15 2007,05:14 It would be good to email your compiled module (plus md5sum plus info file) to extensions@damnsmalllinux.org so others can benefit from your hard work. 
  Posted by IDtucho on Feb. 15 2007,20:22 yeah yeah ..... I'll put here a link to download the file...but I have a big big big problem ..... I have to recompile my kernel to make my module works! I found informations.. to do this
 but in the first command that I type it gives command not found
 its make menuconfig
 what is necessary to recompile and make this command works
 ?
 :
 
  Posted by Juanito on Feb. 16 2007,05:18 You need gnu-utils, gcc1-with-libs and gcc-2.95 to recompile 
 |