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

building at76c503a on a cobalt qube 2 running Sarge fails

Hey guys,

I am trying to build at76c503a on a Cobalt Qube 2 running Debian Sarge 3.1. As I am fairly new to Debian and totally new to MIPS, here's a short summary of what I did trying to get the job done:

- got the kernel sources (2.4.27)
- applied the cobalt patches to the kernel sources using dpatch and verified they were applied correctly
- got at76c503a-source and atmel-firmware packages

Then I executed `m-a build at76c503a`. This fails with the following error messages:

gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing
-fno-common -Wno-sign-compare -Wno-unused -D__KERNEL__ -DMODULE
-DEXPORT_SYMTAB -I/usr/src/kernel-source-2.4.27/include -DMODVERSIONS
-include /usr/src/kernel-source-2.4.27/include/linux/modversions.h -c
{standard input}: Assembler messages:
{standard input}:6575: Error: opcode not supported on this processor:
mips1 (mips1) `ll $4,44($2)'
{standard input}:6577: Error: opcode not supported on this processor:
mips1 (mips1) `sc $4,44($2)'
{standard input}:6582: Error: opcode not supported on this processor:
mips1 (mips1) `ll $2,44($3)'
---snap--- and so on.

I figured i should do some research but all I could come up with was to add -mips2 to $CFLAGS in the Makefile of at76c503a, based on some messages I found on a NetBSD mailing list. So, I did the same procedure as described above again, this time using my freshly patched Makefile. My 2nd approach died complaining:

gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing
-fno-common -Wno-sign-compare -Wno-unused -mips2 -D__KERNEL__ -DMODULE
-DEXPORT_SYMTAB -I/usr/src/kernel-source-2.4.27/include -DMODVERSIONS
-include /usr/src/kernel-source-2.4.27/include/linux/modversions.h -c
{standard input}: Assembler messages:
{standard input}:19052: Error: Cannot branch to symbol in another
make[2]: *** [at76c503.o] Error 1
make[2]: Leaving directory `/usr/src/modules/at76c503a'
make[1]: *** [build-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/at76c503a'
make: *** [kdist_image] Error 2

Now, even though I don't know a whole lot about Debian and MIPS, I have a feeling that this is because the Debian 2.4.27 cobalt stock kernel image is *not* compiled using -mips2.

Any help is certainly much appreciated as I have been stuck for the past month now trying to get *any* wireless network card running using debian packages.

Maybe I am totally wrong with my approaches -- I don't know. I do know, however, that the Cobalt Qube 2 is equipped with a little-endian QED RM5231-250Q CPU, which should execute at least MIPS I and II instructions. And I also know that at76c503a can successfully be compiled on MIPS processors due to this thread: http://www.dealdatabase.com/forum/showthread.php?s=d9c3e56c5b6ffe3f62a87bbd9ee21d07&t=24626 where someone uploaded binaries.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply to: