You are not logged in.
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
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
perhaps
when will they be updated? would I have to build from abs?
Offline
They are currently flagged out-of-date... I don't know when they are updated.
Offline
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
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
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
Thank you tomk for your answer !
Offline
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
Unbelievable... they really wrote "Dear Sir"??
I thought only bank managers and lawyers did that...
On topic: well done. Have you tried it yet?
Offline