Results 1 to 11 of 11

Thread: Compiling at76c503a module for ASUS

  1. #1

    Compiling at76c503a module for ASUS

    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

  2. #2
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    377
    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", maybe this works out of the Box.

  3. #3
    You were right. The build environment was incorrect... I had to add new CFLAGS to the Makefile. Now it compiles correctly.
    Thanks!

    /rp

  4. #4
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    I read your posts here and I am confused: Are you compiling the drivers for the ethernet ports for WL500g here? If so, why?

  5. #5
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    377
    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

  6. #6
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    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

  7. #7
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    377
    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...

  8. #8

    Question

    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

  9. #9
    I have the same problem with the zd1211 wlan driver:

    Code:
    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.

  10. #10
    Hi,
    is there nobody out there who knows something about cross compiling and could help me with this error:

    Code:
    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

  11. #11
    I found some CFLAGS with wich the driver compiles fine, but when I try to insmod the driver:
    Code:
    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:
    Code:
    CFLAGS =  -mcpu=r4600 -mips2 -m4710a0kern
    Maybe somebody could point me into the right direction.

    Darkstar.

Similar Threads

  1. PL2303 module backport from 2.6.8 to 2.4.20
    By kodomo in forum WL-500g Custom Development
    Replies: 18
    Last Post: 24-07-2009, 19:20
  2. ip6tables and filter module
    By Veri in forum WL-500g Custom Development
    Replies: 0
    Last Post: 18-07-2005, 02:43
  3. Motherboard Bluetooth module from Asus
    By TuTu in forum WL-500g Custom Development
    Replies: 0
    Last Post: 16-05-2005, 13:43
  4. can't insmod module usb-storage
    By mirco in forum WL-500g Q&A
    Replies: 3
    Last Post: 16-09-2004, 12:57

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •