Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Problems with Motorola SM56 driver, Error while MAKE INSTALL< Next Oldest | Next Newest >
Diogo Offline





Group: Members
Posts: 1
Joined: June 2006
Posted: June 05 2006,21:25 QUOTE

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
Back to top
Profile PM 
IDtucho Offline





Group: Members
Posts: 12
Joined: Feb. 2007
Posted: Feb. 11 2007,20:13 QUOTE

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!
Back to top
Profile PM 
IDtucho Offline





Group: Members
Posts: 12
Joined: Feb. 2007
Posted: Feb. 15 2007,04:52 QUOTE

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!
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Feb. 15 2007,05:14 QUOTE

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.
Back to top
Profile PM 
IDtucho Offline





Group: Members
Posts: 12
Joined: Feb. 2007
Posted: Feb. 15 2007,20:22 QUOTE

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
?
:
Back to top
Profile PM 
5 replies since June 05 2006,21:25 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Problems with Motorola SM56 driver

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code