Hi,
I am trying to get the rt_com running in rt-linux-2.3. I tried to
inert the module but this is what i got:
[root@linuxclient rt_com]# insmod rt_com.o
rt_com.o: unresolved symbol rtl_register_rtldev
rt_com.o: unresolved symbol rtl_unregister_rtldev
I then looked for the "rtl_register_rtldev" string in all the files in
the rt_com directory to trace the problem but looks like that the only
file having this is the rt_com.o module itself.
I did un-rem the NMT RT_Linux CFLAG in the Makefile as per what Jochen
says next, but that didn't work either. It looks like Michael has
already taken care of that in this distribution of the Makefile.
i am nearly running out of educated guesses and am approaching the realm
of un-educated ones now which has been, on occasions, quite disasterous
in the past.
Please let me know what i am doing wrong.
Yours , Emeel.
Sydney, Australia.
P.S. A printout of the results that i am getting is attached.
[root@linuxclient rt_com]# rm *.o
rm: remove `rt_com.o'? y
[root@linuxclient rt_com]# make
gcc -I/usr/src/rtlinux-2.3/linux/include -I/usr/src/rtlinux-2.3/include
-I/usr/src/rtlinux-2.3 -I/usr/src/rtlinux-2.3/include/posix -Wall -Wstrict-prototypes
-O2 -D__SMP__ -D__RTL__ -D__KERNEL__ -DMODULE -pipe -fno-strength-reduce -m486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -g -c rt_com.c
[root@linuxclient rt_com]# ls *.o
-rw-r--r-- 1 root root 128036 Jun 22 11:47 rt_com.o
[root@linuxclient rt_com]# make install
install -c rt_com.o /lib/modules/`uname -r`/misc/rt_com.o
[root@linuxclient rt_com]# ls
total 300
drwxr-xr-x 2 root root 4096 Jun 22 11:47 .
drwxr-xr-x 4 root root 4096 Mar 29 18:50 ..
-rw-r--r-- 1 root root 15131 Mar 29 18:50 COPYING
-rw-r--r-- 1 root root 3224 Mar 29 18:50 ChangeLog
-rw-r--r-- 1 root root 0 Jun 21 16:46 ComPresults.txt
-rw-r--r-- 1 root root 354 Mar 29 18:50 License
-rw-r--r-- 1 root root 398 Jun 22 11:47 Makefile
-rw-r--r-- 1 root root 397 Jun 22 11:39 Makefile~
-rw-r--r-- 1 root root 528 Mar 29 18:50 README
-rw-r--r-- 1 root root 798 Mar 29 18:50 README.RTL
-rw-r--r-- 1 root root 330 Mar 29 18:50 TODO
-rw-r--r-- 1 root root 1371 Mar 29 18:50 com_posix.c
-rw-r--r-- 1 root root 5848 Mar 29 18:50 rt_com-1.html
-rw-r--r-- 1 root root 11305 Mar 29 18:50 rt_com.c
-rw-r--r-- 1 root root 749 Mar 29 18:50 rt_com.h
-rw-r--r-- 1 root root 574 Mar 29 18:50 rt_com.html
-rw-r--r-- 1 root root 7709 Mar 29 18:50 rt_com.lyx
-rw-r--r-- 1 root root 128036 Jun 22 11:47 rt_com.o
-rw-r--r-- 1 root root 61150 Mar 29 18:50 rt_com.ps
-rw-r--r-- 1 root root 2464 Mar 29 18:50 rt_comP.h
-rw-r--r-- 1 root root 585 May 31 17:05 rtl.mk
-rw-r--r-- 1 root root 1221 Mar 29 18:50 testcom.c
[root@linuxclient rt_com]# ls *.o
-rw-r--r-- 1 root root 128036 Jun 22 11:47 rt_com.o
[root@linuxclient rt_com]# make tests
gcc -I/usr/src/rtlinux-2.3/linux/include -I/usr/src/rtlinux-2.3/include
-I/usr/src/rtlinux-2.3 -I/usr/src/rtlinux-2.3/include/posix -Wall -Wstrict-prototypes
-O2 -D__SMP__ -D__RTL__ -D__KERNEL__ -DMODULE -pipe -fno-strength-reduce -m486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -g -c testcom.c -o
testcom.o
gcc -I/usr/src/rtlinux-2.3/linux/include -I/usr/src/rtlinux-2.3/include
-I/usr/src/rtlinux-2.3 -I/usr/src/rtlinux-2.3/include/posix -Wall -Wstrict-prototypes
-O2 -D__SMP__ -D__RTL__ -D__KERNEL__ -DMODULE -pipe -fno-strength-reduce -m486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -g -c com_posix.c -o
com_posix.o
[root@linuxclient rt_com]# ls *.o
-rw-r--r-- 1 root root 123716 Jun 22 11:48 com_posix.o
-rw-r--r-- 1 root root 128036 Jun 22 11:47 rt_com.o
-rw-r--r-- 1 root root 122252 Jun 22 11:48 testcom.o
[root@linuxclient rt_com]# lsmod
Module Size Used by
[root@linuxclient rt_com]# insmod rt_com.o
rt_com.o: unresolved symbol rtl_register_rtldev
rt_com.o: unresolved symbol rtl_unregister_rtldev
[root@linuxclient rt_com]# insmod testcom.o
testcom.o: unresolved symbol rtl_printf
testcom.o: unresolved symbol gethrtime
testcom.o: unresolved symbol rt_com_read
testcom.o: unresolved symbol rt_com_write
testcom.o: unresolved symbol pthread_delete_np
testcom.o: unresolved symbol pthread_make_periodic_np
testcom.o: unresolved symbol pthread_wait_np
testcom.o: unresolved symbol rt_com_setup
testcom.o: unresolved symbol __pthread_create
[root@linuxclient rt_com]#