Compiling module for interface ( Realtek r1000 )

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

thank you for your comments and tips.
This helped me cook down the problem somewhat, though not yet solve it.

The first point is that the r1000 as a module for add-on hardware does
not rely on
finding the source code in /usr/src/linux or any other subdir of
/usr/src but rather
uses the tree on

/lib/modules/$(KVER)/build   with KVER=$(sh uname -r) .

However, this tree is _not_ consistent for KVER=2.6.10-ssi_3develsmp :
the subdir 'cluster' does not contain 'synch_types.h' and other header
files referred
to by 'include/linux/sched.h'.

This point I solved by creating a tar of  the headers in the 'cluster' subdir
# cd /usr/src/redhat/BUILD/kernel-ssi-2.6.10/linux/include
# tar cf cluster.tar cluster

and expanded this into
# cp cluster.tar /lib/modules/2.6.10-ssi_3develsmp/build/include
# cd /lib/modules/2.6.10-ssi_3develsmp/build/include
# tar xf cluster.tar

This removes all 'No such file ..' errors and errors related to these.

Unfortunately, a problem remains related to declarations in r1000_n.c :
line:
136:  static void r1000_rx_action(struct net_device *netdev);
137:  static void r1000_tx_action(struct net_device *netdev);

1295: static void FASTCALL (r1000_tx_action(struct net_device *netdev));
1344: static void FASTCALL (r1000_rx_action(struct net_device *netdev));

The compiler throws an 'error: conflicting types for 'r1000_tx_action'
and 'error: previous declaration of 'r1000_rx_action' was here'  (same for rx).

The definition of FASTCALL is identical in both trees for KVER=
2.6.10-ssi_3develsmp
and KVER=2.6.9-1.667smp , so I suspect that the declaration of the
struct net_device
in some way differs, though I could not find a place for that so far.

Does anybody know if

  struct net_device

is defined differently in openssi and how to resolve this?

Thank you for any comments or suggestions.

Cheers, cerbo

On 5/10/07, augier <[email protected]> wrote:
> >
> > A working solution for this interface is the installation of the r1000
> > module provided by the manufacturer Realtek. However, this works only
> > before the installation of openssi. Unpacking the r1000_v1.05.tar.gz
> > and issuing 'make modules' in the r1000_v1.05 directory builds the
> > module against the 2.6.9-1.667smp kernel. It can then be installed and
> > supports the RTL-8168 interface in the original FC3 environment.
> >
> > After installation of openssi the module has to be recompiled for the
> > 2.6.10-ssi_3develsmp kernel. This step results in a list of warnings
> > and errors. I include part of the listing below.

> I have the same probleme to compile an intel e1000 driver.
>
> To solve it i make the link :
>
> ln -s /usr/src/redhat/BUILD/kernel-ssi-2.6.10/linux /usr/src/linux
>
...

>
> After make and make install work fine.
> I hope that your Makefile in on the same model than the e1000 !
>
> Regards,
>
> Fred
>
> =======================
> Frederic Augier

-------------------------------------------------------------------------
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.