PDA

Bekijk de volledige versie : Compiling at76c503a module for ASUS



rlopes
08-08-2004, 17:33
Hi all!

I'm trying to compile the ATMEL Lan driver module for the wl500g. I downloaded the sources, applied Oleg's patches and I'm trying to compile the files from http://at76c503a.berlios.de/

However, I'm getting the following error:
mipsel-linux-gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing -fno-common -Wno-sign-compare -Wno-unused -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -DDRIVER_VERSION=\"v0.12beta14\" -I/mnt/media/tmp/wl500g/GPL_1.7.5.6/WL500gb_1.7.5.6_GPL/release/src/linux/linux/include -c at76c503.c
{standard input}: Assembler messages:
{standard input}:4921: Error: opcode not supported on this processor: R3000 (MIPS1) `ll'
{standard input}:4923: Error: opcode not supported on this processor: R3000 (MIPS1) `sc'
{standard input}:4928: Error: opcode not supported on this processor: R3000 (MIPS1) `ll'
{standard input}:4930: Error: opcode not supported on this processor: R3000 (MIPS1) `sc'
...
and so on

Since I do not understand much about other platforms, can anyone provide me some info on this?

Thanks a lot!

/rp

WlanMan
08-08-2004, 21:23
From my view, the Driver uses Assembler Language Snipets which are not for the cpu of the router.
or maybe your Build envoierement is not set up correkty ...
I have this Driver build for a Notebook and it works. You can try the "Atmel Wlan Driver (http://atmelwlandriver.sourceforge.net/)", maybe this works out of the Box.

rlopes
08-08-2004, 23:01
You were right. The build environment was incorrect... I had to add new CFLAGS to the Makefile. Now it compiles correctly.
Thanks!

/rp

Styno
09-08-2004, 08:40
I read your posts here and I am confused: Are you compiling the drivers for the ethernet ports for WL500g here? If so, why?

WlanMan
09-08-2004, 12:21
This Atmel Chipset ist Mostly build into Cheap 11b USB Sticks, so i thought he builds it for USB ... The Chip has a 2nd pcmcia interface, but this is rarely used.

Would be nice if you write a little tutorial what you have changed, and what you want with the 2nd wlan on the router then.

Greets

Styno
10-08-2004, 09:53
Hmm, if there is a second PCMCIA port on this thing, would there be a possibility to add USB 2.0 to the box? I really need USB 2.0 because my DivX movies won't play smoothly over USB 1.1...

Well, just did a google search on PCMCIA (CARDBUS) USB 2.0 adapters, but they cost $50,- and up. I might just wait for the 500gx to save me a lot of work :p

WlanMan
10-08-2004, 11:17
No, you misunderstood me.

The Atmel Chipset has a PCMCIA and USB Interface, where the USB is comonly used for interfacing to the pc. The Wl500g has only the USB1.1 Port and the minipci internal where the wlan is connekted. So, to get USB2.0 i think you have to buy a newer Broadcom Router...

mkulacz
02-02-2005, 14:30
rlopes - I know you posted your question quite a while ago, but I was hoping you could recall what CFLAGS you needed to ask and let me know. I just ran into the same problem cross-compiling a MIPS FibreChannel driver. The ll and sc instructions are for read-modify-write operations and are specific to the R4000 and later processors, and my reserach suggests wont work on the R3000 (hence the upset assembler). My target is a Broadcom SiByte (SB-1 core), which is of the R4000 family. Thanks - Mark

Darkstar
21-06-2005, 10:14
I have the same problem with the zd1211 wlan driver:


mipsel-uclibc-gcc -O -Wall -Wstrict-prototypes -Wno-unused -pipe -fomit-frame-pointer -DAMAC -DGCCK -DOFDM -DUSE_EP4_SET_REG -DfTX_GAIN_OFDM=0 -DENHANCE_RX=1 -I/usr/src/broadcom/src/linux/linux/include -Isrc/include/ -Isrc -D__KERNEL__ -DMODULE=1 -c src/zddebug.c -o src/zddebug.o
{standard input}: Assembler messages:
{standard input}:111: Error: opcode not supported on this processor: R3000 (MIPS1) `ll $2,44($3)'
{standard input}:113: Error: opcode not supported on this processor: R3000 (MIPS1) `sc $2,44($3)'

Can anybody help me with this?

Darkstar.

Darkstar
24-06-2005, 10:05
Hi,
is there nobody out there who knows something about cross compiling and could help me with this error:


mipsel-uclibc-gcc -O -Wall -Wstrict-prototypes -Wno-unused -pipe -fomit-frame-pointer -DAMAC -DGCCK -DOFDM -DUSE_EP4_SET_REG -DfTX_GAIN_OFDM=0 -DENHANCE_RX=1 -I/usr/src/broadcom/src/linux/linux/include -Isrc/include/ -Isrc -D__KERNEL__ -DMODULE=1 -c src/zddebug.c -o src/zddebug.o
{standard input}: Assembler messages:
{standard input}:111: Error: opcode not supported on this processor: R3000 (MIPS1) `ll $2,44($3)'
{standard input}:113: Error: opcode not supported on this processor: R3000 (MIPS1) `sc $2,44($3)'

Darkstar

Darkstar
24-06-2005, 22:43
I found some CFLAGS with wich the driver compiles fine, but when I try to insmod the driver:

error inserting 'zd1211.o': -1 Invalid module format
I think I saw these options somewhere during the compile process of the firmware, but they are obviosly wrong:

CFLAGS = -mcpu=r4600 -mips2 -m4710a0kern
Maybe somebody could point me into the right direction.

Darkstar.