You are not logged in.

#1 2008-02-18 05:58:54

NoOneImportant
Member
From: Deep Southern California
Registered: 2007-02-13
Posts: 178

getting latest rt2870 driver to compile

Hi

I'm trying to get the rt2870 open source drivers to compile in arch with the latest kernel. (Get them here)

I was first having problems with the deprecated macro SET_MODULE_OWNER until I fixed it by appending

#ifndef SET_MODULE_OWNER
#define SET_MODULE_OWNER(x) do {\
    x->xmit_lock_owner = THIS_MODULE;\
    } while(0)
#endif

but now I'm having problems with another error that I'm getting

/home/mrmeh/RT2870/os/linux/../../os/linux/rt_main_dev.c:671: warning: assignment from incompatible pointer type
/home/mrmeh/RT2870/os/linux/../../os/linux/rt_main_dev.c:694: warning: passing argument 1 of 'dev_get_by_name' from incompatible pointer type
/home/mrmeh/RT2870/os/linux/../../os/linux/rt_main_dev.c:694: error: too few arguments to function 'dev_get_by_name'
/home/mrmeh/RT2870/os/linux/../../os/linux/rt_main_dev.c: In function 'rt28xx_probe':
/home/mrmeh/RT2870/os/linux/../../os/linux/rt_main_dev.c:1157: warning: assignment makes integer from pointer without a cast
make[2]: *** [/home/mrmeh/RT2870/os/linux/../../os/linux/rt_main_dev.o] Error 1
make[1]: *** [_module_/home/mrmeh/RT2870/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24-ARCH'
make: *** [LINUX] Error 2

anyone have any ideas?

Offline

#2 2008-02-18 11:30:28

baude
Member
From: France, Toulouse
Registered: 2007-08-22
Posts: 18

Re: getting latest rt2870 driver to compile

Hi,

I also have problems to compile the v4l-experimental driver (for DVB purpose).
I think this is due to the fact that the kernel-headers packet has not been updated. I am still waiting for the new version, it should come soon.

@+

Offline

#3 2008-02-18 11:57:19

NoOneImportant
Member
From: Deep Southern California
Registered: 2007-02-13
Posts: 178

Re: getting latest rt2870 driver to compile

perhaps

when will they be updated? would I have to build from abs?

Offline

#4 2008-02-18 12:12:12

baude
Member
From: France, Toulouse
Registered: 2007-08-22
Posts: 18

Re: getting latest rt2870 driver to compile

They are currently flagged out-of-date... I don't know when they are updated.

Offline

#5 2008-02-18 12:42:09

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: getting latest rt2870 driver to compile

Kernel modules such as those mentioned are compiled against the in-kernel headers located in /usr/src/linux-<version>/include. The kernel-headers package installs 'sanitised' headers in /usr/include for use in user-space applications. Is it likely that your driver's source code has not been updated to accommodate the latest changes in the 2.6.24 kernel.

Offline

#6 2008-02-18 14:10:04

NoOneImportant
Member
From: Deep Southern California
Registered: 2007-02-13
Posts: 178

Re: getting latest rt2870 driver to compile

tomk wrote:

Kernel modules such as those mentioned are compiled against the in-kernel headers located in /usr/src/linux-<version>/include. The kernel-headers package installs 'sanitised' headers in /usr/include for use in user-space applications. Is it likely that your driver's source code has not been updated to accommodate the latest changes in the 2.6.24 kernel.

thanks

that was actually my first theory

I guess I'll wait until ralink updates the drivers

Offline

#7 2008-02-18 14:50:51

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: getting latest rt2870 driver to compile

You could also have a look at the rt2x00 project, which is working on rt28xx support at the moment. You can check their progress in their forum.

Offline

#8 2008-02-18 15:06:28

baude
Member
From: France, Toulouse
Registered: 2007-08-22
Posts: 18

Re: getting latest rt2870 driver to compile

Thank you tomk for your answer !

Offline

#9 2008-02-28 13:59:00

NoOneImportant
Member
From: Deep Southern California
Registered: 2007-02-13
Posts: 178

Re: getting latest rt2870 driver to compile

So I emailed the ralink folks a few weeks back and I got a reply

Dear Sir,

1.      Attached file is patch code for compile error on 2.6.24.
2.      2870_main_dev.c is use for modul owner patch.
3.      In case you got problem on 2.6.24, please do below modification on
kernel tree.

        ./usr/src/linux-2.6.24/drivers/usb/host/ehci-q.c :: static unsigned
qh_completions (struct ehci_hcd *ehci, struct ehci_qh *qh)
     {
                struct ehci_qtd         *last = NULL, *end = qh->dummy;
                struct list_head                *entry, *tmp;

                // please remark this one and add new one
                //int                           last_status = -EINPROGRESS;

                Int                             last_status = 0;
// assign init value to "0"

                int                             stopped;
                unsigned                        count = 0;
                int                             do_status = 0;
                u8                              state;
                u32                             halt = HALT_BIT(ehci);
                ..........

How nice of them, eh?

Offline

#10 2008-03-01 10:47:34

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: getting latest rt2870 driver to compile

Unbelievable... they really wrote "Dear Sir"??

I thought only bank managers and lawyers did that... tongue

On topic: well done. Have you tried it yet?

Offline

Board footer

Powered by FluxBB