Re: RaLink rt3090 bauen geht schief

Philipp Thomas <[email protected]> Sun, 15 Nov 2009 02:02:24 +0100
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
On Sat, 14 Nov 2009 20:33:49 +0100, you wrote:

>Leider geht das Bauen in die Hose mit folgenden Meldungen:
>
>/home/stf/tmp/2009_0903_RT3090_Linux_STA_v2.2.0.1/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSTaskAttach’:
>/home/stf/tmp/2009_0903_RT3090_Linux_STA_v2.2.0.1/os/linux/../../os/linux/rt_linux.c:1304: warning: unused variable ‘pid_number’
>/home/stf/tmp/2009_0903_RT3090_Linux_STA_v2.2.0.1/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSNetDevAttach’:
>/home/stf/tmp/2009_0903_RT3090_Linux_STA_v2.2.0.1/os/linux/../../os/linux/rt_linux.c:1646: error: ‘struct net_device’ has no member named ‘open’
>/home/stf/tmp/2009_0903_RT3090_Linux_STA_v2.2.0.1/os/linux/../../os/linux/rt_linux.c:1647: error: ‘struct net_device’ has no member named ‘stop’
>/home/stf/tmp/2009_0903_RT3090_Linux_STA_v2.2.0.1/os/linux/../../os/linux/rt_linux.c:1648: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
>/home/stf/tmp/2009_0903_RT3090_Linux_STA_v2.2.0.1/os/linux/../../os/linux/rt_linux.c:1649: error: ‘struct net_device’ has no member named ‘do_ioctl’
>/home/stf/tmp/2009_0903_RT3090_Linux_STA_v2.2.0.1/os/linux/../../os/linux/rt_linux.c:1655: error: ‘struct net_device’ has no member named ‘get_stats’
>/home/stf/tmp/2009_0903_RT3090_Linux_STA_v2.2.0.1/os/linux/../../os/linux/rt_linux.c:1689: error: ‘struct net_device’ has no member named ‘validate_addr’
>make[4]: *** [/home/stf/tmp/2009_0903_RT3090_Linux_STA_v2.2.0.1/os/linux/../../os/linux/rt_linux.o] Fehler 1
>make[3]: *** [_module_/home/stf/tmp/2009_0903_RT3090_Linux_STA_v2.2.0.1/os/linux] Fehler 2
>make[2]: *** [sub-make] Fehler 2
>make[1]: *** [all] Fehler 2
>make[1]: Leaving directory `/usr/src/linux-2.6.31.5-0.1-obj/i386/default'
>make: *** [LINUX] Fehler 2

Dann passt der Code nicht zum Kernel. Im Zweifel mal, wenn
kernel-source installiert ist, in den Kernelheadern unter
/usr/src/linux/include nachsehen.

>Von C habe ich leider 0-Ahnung!

Selbst mit C-Kenntnissen müsstest Du dich schon einigermassen gut mit
Kernel-Programmierung auskennen, um das ggfs. zu korrigieren.

>Ein rpm fuer Kernel 2.6.31.5 gibt es nur fuer Mandrake.
>Laesst sich das konvertieren?

Nur wenn es ein .src.rpm gibt. Aber ich würde testweise einfach das
rpm mit unrpm auspacken und den Treiber an die richtige Stelle unter
/lib/modules/$(uname -r) kopieren.

Philipp