Re: Compiling module for interface ( Realtek r1000 )

cerbo <[email protected]>
Newsgroups gmane.linux.cluster.ssic.user
Message-ID <[email protected]>
Fred,

GREAT!
Thank you for your invaluable help and time you invested in this!!

Following your advice compilation and installation worked fine. I have no
physical access to the cluster at the moment so I cannot test if the
card actually works and if also the clients will connect.
I will report on this and give a full account of all steps to get the RTL8168
working as soon as I return to the lab (Wednesday).

Thank you once more, merci beaucoup!
cerbo

ps: apparently you also changed the Makefile, could you give details?
Using the original r1000 Makefile, your version of r1000_n.c and including the
missing header files in the cluster subdir in
  /lib/modules/2.6.10-ssi_3develsmp/build
I succeeded by issuing
  [root@cluster r1000_v1.05]# make -C src/ modules

On 5/11/07, [email protected] <[email protected]> wrote:
>
> Hi,
>
> I try to compile the r1000_v1.05 driver for RTL-8168 (i suppose it is the
> version that  give you problems) and i think i get the same errors than
> you discribe :
>
> [root@node2 r1000_v1.05]# make modules
> make -C src/ modules
> make[1]: Entering directory `/tmp/r1000_v1.05/src'
> make -C /usr/src/linux SUBDIRS=/tmp/r1000_v1.05/src modules
> make[2]: Entering directory `/usr/src/redhat/BUILD/kernel-ssi-2.6.10/linux'
>   CC [M]  /tmp/r1000_v1.05/src/r1000_n.o
> /tmp/r1000_v1.05/src/r1000_n.c:1295: error: conflicting types for
> 'r1000_tx_action'
> /tmp/r1000_v1.05/src/r1000_n.c:137: error: previous declaration of
> 'r1000_tx_action' was here
> /tmp/r1000_v1.05/src/r1000_n.c:1295: error: conflicting types for
> 'r1000_tx_action'
> /tmp/r1000_v1.05/src/r1000_n.c:137: error: previous declaration of
> 'r1000_tx_action' was here
> /tmp/r1000_v1.05/src/r1000_n.c:1344: error: conflicting types for
> 'r1000_rx_action'
> /tmp/r1000_v1.05/src/r1000_n.c:136: error: previous declaration of
> 'r1000_rx_action' was here
> /tmp/r1000_v1.05/src/r1000_n.c:1344: error: conflicting types for
> 'r1000_rx_action'
> /tmp/r1000_v1.05/src/r1000_n.c:136: error: previous declaration of
> 'r1000_rx_action' was here
> /tmp/r1000_v1.05/src/r1000_n.c:136: warning: 'r1000_rx_action' declared
> `static' but never defined
> /tmp/r1000_v1.05/src/r1000_n.c:137: warning: 'r1000_tx_action' used but
> never defined
> /tmp/r1000_v1.05/src/r1000_n.c:1296: warning: 'r1000_tx_action' defined
> but not used
> /tmp/r1000_v1.05/src/r1000_n.c:1345: warning: 'r1000_rx_action' defined
> but not used
> make[3]: *** [/tmp/r1000_v1.05/src/r1000_n.o] Error 1
> make[2]: *** [_module_/tmp/r1000_v1.05/src] Error 2
> make[2]: Leaving directory `/usr/src/redhat/BUILD/kernel-ssi-2.6.10/linux'
> make[1]: *** [modules] Error 2
> make[1]: Leaving directory `/tmp/r1000_v1.05/src'
> make: *** [modules] Error 2
>
>
>
> So I make tow modifications in the file r1000_n.c
>
> comment line 136 137 1295 1344 and copy the tow last in place of tow first
>
> Here is the diff :
>
> diff  r1000_n.c r1000_n.c.new
> 136,137c136,139
> < static void r1000_rx_action(struct net_device *netdev);
> < static void r1000_tx_action(struct net_device *netdev);
> ---
> > //static void r1000_rx_action(struct net_device *netdev);
> > static void FASTCALL (r1000_rx_action(struct net_device *netdev));
> > //static void r1000_tx_action(struct net_device *netdev);
> > static void FASTCALL (r1000_tx_action(struct net_device *netdev));
> 1295c1297
> < static void FASTCALL (r1000_tx_action(struct net_device *netdev));
> ---
> > //static void FASTCALL (r1000_tx_action(struct net_device *netdev));
> 1344c1346
> < static void FASTCALL (r1000_rx_action(struct net_device *netdev));
> ---
> > //static void FASTCALL (r1000_rx_action(struct net_device *netdev));
>
>
> after the compilation seem to work.
>
> root@node2 r1000_v1.05]# make modules
> make -C src/ modules
> make[1]: Entering directory `/tmp/r1000_v1.05/src'
> make -C /usr/src/linux SUBDIRS=/tmp/r1000_v1.05/src modules
> make[2]: Entering directory `/usr/src/redhat/BUILD/kernel-ssi-2.6.10/linux'
>   CC [M]  /tmp/r1000_v1.05/src/r1000_n.o
>   CC [M]  /tmp/r1000_v1.05/src/r1000_ioctl.o
>   LD [M]  /tmp/r1000_v1.05/src/r1000.o
>   Building modules, stage 2.
> make[3]: Warning: File `/tmp/r1000_v1.05/src/r1000.o' has modification
> time 0.38 s in the future
>   MODPOST
>   CC      /tmp/r1000_v1.05/src/r1000.mod.o
>   LD [M]  /tmp/r1000_v1.05/src/r1000.ko
> make[3]: warning:  Clock skew detected.  Your build may be incomplete.
> make[2]: Leaving directory `/usr/src/redhat/BUILD/kernel-ssi-2.6.10/linux'
> strip --strip-debug r1000.ko
> make[1]: Leaving directory `/tmp/r1000_v1.05/src'
>
>
> Unfortunatly i can't test the module !
>
> Fred
>
> --------------------------
> Frederic Augier
> CRMCN-CNRS
> Campus de Luminy, Case 913
> 13288 Marseille Cedex 9
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.