rt73 driver donīt compile on embeddedarm ts-7200

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=4887

luquin

15-07-2008 00:15:44

Hi,
I'm tried to compile the rt73 driver several times without success. I download the latest tarball for rt73 (usb) , the file is rt73-cvs-2008070918. The steps that I done are this

1. I Unpack the driver sources and I went to the Module directory
$ tar -xvzf rt73-cvs-daily.tar.gz
$ cd ./rt73-cvs-YYYYMMDDHH/Module

2. When I tried to Compile the driver sources with
$ make

this is what happens
-------------------------------------
root@ts7000Module# make
Makefile201 /lib/modules/2.4.26-ts11/build/Rules.make No such file or directory
make *** No rule to make target `/lib/modules/2.4.26-ts11/build/Rules.make'. Stop.
------------------------------------

I'm working under debian sarge in an embeddedarm ts-7200 . The kernel is 2.3.26-ts11.

please help me cry !!

Starcrasher

16-07-2008 10:35:09

The kernel is 2.3.26-ts11.[/quote3r9rgsxf]
No, according to the error, it is not. It appears to be 2.4.26-ts1 and you should verify that you have the matching kernel sources installed. You also may have to install matching headers if existing.

build in folder /lib/modules/2.4.26-ts11/ should be a symlink to the actual sources for your kernel. Usually they can be found in something like /usr/src/2.4.26-ts11/ .

luquin

16-07-2008 16:40:11

------ I'm working under debian sarge in an embeddedarm ts-7200 . The kernel is 2.3.26-ts11.

sorry about my mistake (typing mistake),try to write "kernel 2.4.26-ts11" ..... anyway I think taht you're right and build is a symlink...I searched the folder and appears en this way /lib/modules/2.4.26-ts11/build@ ... but I couldn't find out the other folder that you say ... /usr/src/2.4.26-ts11 .... what kind of files should I find there??

best regards

luquin

16-07-2008 19:54:54

I just change the PATH of "/lib/modules/2.4.26-ts11/build/" to "/lib/modules/lib/modules/2.4.26-ts11/build/" , I don't know if this is ok or not...anyway then I tried to do the "make" again and this error comes

root@ts7000Module# make
make[1] Entering directory `/linux24'
make -C /root/rt73-cvs-2008070918/Module CFLAGS="-D__KERNEL__ -I/linux24/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=4 -march=armv4 -mtune=arm9tdmi -msoft-float -Uarm -DMODULE" MAKING_MODULES=1 modules
make[2] Entering directory `/root/rt73-cvs-2008070918/Module'
arm-linux-gcc -D__KERNEL__ -I/linux24/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=4 -march=armv4 -mtune=arm9tdmi -msoft-float -Uarm -DMODULE -I. -DAGGREGATION_SUPPORT -DWMM_SUPPORT -nostdinc -iwithprefix include -DKBUILD_BASENAME=rtmp_main -c -o rtmp_main.o rtmp_main.c

arm-linux-gcc Internal error Killed (program cc1)

Please submit a full bug report.
See <URLhttp//gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URLfile///usr/share/doc/gcc-3.3/README.Bugs>.

make[2] *** [rtmp_main.o] Error 1
make[2] Leaving directory `/root/rt73-cvs-2008070918/Module'
make[1] *** [_mod_/root/rt73-cvs-2008070918/Module] Error 2
make[1] Leaving directory `/linux24'
rt73.o failed to build!
make *** [module] Error 1


I think that I need to change some parameters of the "Makefile" of the folder "/lib/modules/lib/modules/2.4.26-ts11/build" ... but I don't have any idea of what to be change.. Please please help me cry or I gonna give up

Zi7

17-07-2008 08:05:45

[quote23a36qf6]I just change the PATH of "/lib/modules/2.4.26-ts11/build/" to "/lib/modules/lib/modules/2.4.26-ts11/build/" , I don't know if this is ok or not[/quote23a36qf6]
It's not. )

As hinted by starcrasher, you need your kernel sources, or i should say your kernel headers.
If there's nothing in /usr/src you most probably need to install a new package.
It's useless to play with 'build' symlinks unless you have something to point to.