Compiling module for interface ( Realtek r1000 )

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

I'm new to openSSI and very impressed by the software and its functionality.
So far, however, I was able to install and test it only via fast
ethernet (e100 etc) interfaces.

The mainboards I use are Gigabyte GA-945-GM-S2 with on-bard Realtek
RTL-8168 gigabit interfaces. These are supported by the r8169 module
in newer distributions e.g. I tested  edubuntu 7.04 with LAN boot of
clients via ltsp. Unfortunately, the r8169 module shipped with Fedora
Core 3 (or debian sarge) does not recognise this interface at boot and
it does not help to include it in /etc/modprobe.conf before installing
openssi. Neither the first node nor any additional nodes can
communicate via their 8168 interfaces.

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 no idea what to make of this - should I convince the compiler
to ignore these errors or is it possible to include the compilation
into the openssi
install scripts? Any help or comment will be greatly appreciated.
I've already spent some nights on trying to set up different
implementations of mosix-migrating clustering and so far all failed to
solve this issue.

Thank you reading this and for any comments,
 cerbo


# make -C /lib/modules/2.6.10-ssi_3develsmp/build
SUBDIRS=/root/r1000_v1.05/src modules
make: Entering directory `/lib/modules/2.6.10-ssi_3develsmp/build'
 CC [M]  /root/r1000_v1.05/src/r1000_n.o
In file included from include/linux/module.h:10,
                from /root/r1000_v1.05/src/r1000.h:1,
                from /root/r1000_v1.05/src/r1000_n.c:5:
include/linux/sched.h:38:33: cluster/synch_types.h: No such file or directory
include/linux/sched.h:45:43: cluster/ssi/mosixll/mosixtask.h: No such
file or directory
In file included from include/linux/module.h:10,
                from /root/r1000_v1.05/src/r1000.h:1,
                from /root/r1000_v1.05/src/r1000_n.c:5:
include/linux/sched.h:632: error: syntax error before "EVENT_T"
include/linux/sched.h:632: warning: no semicolon at end of struct or union
include/linux/sched.h:654: error: syntax error before ':' token
include/linux/sched.h:749: error: syntax error before '}' token
include/linux/sched.h: In function `process_group':
include/linux/sched.h:753: error: dereferencing pointer to incomplete type
...
include/linux/sched.h: In function `pid_alive':
include/linux/sched.h:766: error: dereferencing pointer to incomplete type
include/linux/sched.h: In function `ssi_isremote':
include/linux/sched.h:808: error: dereferencing pointer to incomplete type
...
many more dereferencing pointer to incomplete type errors
in include/linux/sched.h as well as in (not all lines included)
 include/linux/mm.h:552:
 include/linux/smp_lock.h:37:
 include/linux/netdevice.h:866:
Then, probably due to definitions the the included header files,
conflicting types errors appear for the r1000 code
/root/r1000_v1.05/src/r1000_n.c:1295: error: conflicting types for
'r1000_tx_action'
/root/r1000_v1.05/src/r1000_n.c:137: error: previous declaration of
'r1000_tx_action' was here
...
some more of these, but only for 'r1000_tx_action', finally
...
include/linux/sched.h:747: error: storage size of `mosix' isn't known

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