tkArena
 
Go Back   tkArena Forums > Tech Knowledge Arena > Linux Arena
Sponsored Links
TKArena Forum
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-05-08, 06:26 AM
N00B
 
Join Date: May 2008
Posts: 3
fojtik is on a distinguished road
Default How to compile rhinefet driver?

Hi,

I have attempted to compile rhinefet driver 5.8. All fixes mentioned in a thread
rhinefet compilation fail
are already included in 5.8.
http://drivers.viaarena.com/rhinefet...212111037).tgz
VIA Arena - Display Drivers
But a compilation did not succeed.
Is it possible to find a newer rhinefet anywhere? Or does any fix exist?


make -C /lib/modules/2.6.21.5/build SUBDIRS=/tmp/rhinefet/src58 modules
make[1]: Entering directory `/I/USR_SRC/linux-2.6.21.5'
CC [M] /tmp/rhinefet/src58/rhine_main.o
/tmp/rhinefet/src58/rhine_main.c: In function 'rhine_open':
/tmp/rhinefet/src58/rhine_main.c:1587: warning: passing argument 2 of 'request_irq' from incompatible pointer type
/tmp/rhinefet/src58/rhine_main.c: In function 'rhine_xmit':
/tmp/rhinefet/src58/rhine_main.c:1737: error: 'CHECKSUM_HW' undeclared (first use in this function)
/tmp/rhinefet/src58/rhine_main.c:1737: error: (Each undeclared identifier is reported only once
/tmp/rhinefet/src58/rhine_main.c:1737: error: for each function it appears in.)
make[2]: *** [/tmp/rhinefet/src58/rhine_main.o] Error 1
make[1]: *** [_module_/tmp/rhinefet/src58] Error 2
make[1]: Leaving directory `/I/USR_SRC/linux-2.6.21.5'
make: *** [default] Error 2

thanks
Jara
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-07-08, 01:44 PM
N00B
 
Join Date: May 2008
Posts: 3
fojtik is on a distinguished road
Lightbulb I have finanlly found a solution. Use this patch

I have finanlly found a solution. Use this patch :

*** rhine_main.old 2008-07-06 15:37:17.000000000 +0200
--- rhine_main.c 2008-07-06 15:36:01.000000000 +0200
***************
*** 49,54 ****
--- 49,58 ----
MODULE_DESCRIPTION("VIA Rhine Family Fast Ethernet Adapter Driver");


+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
+ #define CHECKSUM_HW CHECKSUM_PARTIAL
+ #endif
+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
#define RHINE_PARAM(N,D) \
static int N[MAX_UINTS]=OPTION_DEFAULT;\
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
         All times are GMT. The time now is 06:30 PM.

LinkBacks Enabled by vBSEO 3.1.0