- From: Everett X. Wang <everteq_at_sbcglobal.net>
- Date: Sun, 29 Feb 2004 12:49:31 -0800
Hi All,
I have been trying to install comedi-0.7.68 to RTAI-3.0r2 and linux 2.4.24
I am not sure I did it correctly. But I managered to compile and install
the comedi package on my P3 450Mhz machine.
1) compile and install linux 2.4.24 with legacy patch
That went fine.
2) compile RTAI-3.0r2
in the make menuconfig, I turned on comedi switch. That went fine with the
new kernel.
latancy test seems to be fine:
min -838, max 6973, average 350
3)Install comedi-0.7.68,
This one gave me most trouble:
I untar the comedi-0.7.68
./configure
....
checking for Linux 2.4
CFLAGS... -D__KERNEL__ -I/home/everett/embedded/kernel/linux-2.4.20/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-commo
n -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODU
LE -DMODULE -D__MODULE_KERNEL_i686=1 -D__BOOT_KERNEL_ENTERPRISE=0 -D__BOOT_K
ERNEL_UP=1 -D__BOOT_KERNEL_SMP=0 -D__BOOT_KERNEL_BIGMEM=0 -D__BOOT_KERNEL_HU
GEMEM=0
checking for Linux 2.4 LDFLAGS...
configure: creating modtool
checking Linux config option CONFIG_RTHAL... yes
checking RTAI directory /usr/src/rtai... ./configure: line 3741: -d: command
not found
configure: error: incorrect RTAI directory?
I changed the configure file on line 5541:
from
if -d ${RTAI_DIR}/rtai-core/include ; then
to
if [ -d ${RTAI_DIR}/rtai-core/include ] ; then
The .configure ran through fine
make failed, complaining no rtai_config.h
fix:
cd rtai-3.0r2/rtai-core/include
ln -s ../../rtai_config.h .
make then ran fine. :-D, with some warns about VERSION, PACKAGE_NAME etc
been redefined.
make install failed, due to no depmod,
edit Makefile and replace depmod by /sbin/depmod
then make install ran fine
Is this the right thing to do? How to test if my comedi is install
successfully? I did a /sbin/modprobe dt2801. Here is the output:
[root_at_localhost comedi]# /sbin/modprobe dt2801
/lib/modules/2.4.24-rthal5/comedi/comedi.o: unresolved
symbol rt_shutdown_irq
/lib/modules/2.4.24-rthal5/comedi/comedi.o: unresolved
symbol
rt_free_global_irq/lib/modules/2.4.24-rthal5/comedi/comedi.o:
unresolved symbol rt_printk
/lib/modules/2.4.24-rthal5/comedi/comedi.o: unresolved
symbol rt_free_srq
/lib/modules/2.4.24-rthal5/comedi/comedi.o: unresolved
symbol rt_request_srq
/lib/modules/2.4.24-rthal5/comedi/comedi.o: unresolved
symbol rt_startup_irq
/lib/modules/2.4.24-rthal5/comedi/comedi.o: unresolved
symbol rt_mount_rtai
/lib/modules/2.4.24-rthal5/comedi/comedi.o: unresolved
symbol rt_request_global_irq
/lib/modules/2.4.24-rthal5/comedi/comedi.o: unresolved
symbol rt_umount_rtai
/lib/modules/2.4.24-rthal5/comedi/comedi.o: unresolved
symbol rt_pend_linux_srq
/lib/modules/2.4.24-rthal5/comedi/comedi.o: insmod
/lib/modules/2.4.24-rthal5/comedi/comedi.o failed
/lib/modules/2.4.24-rthal5/comedi/comedi.o: insmod
dt2801 failed
I don't have the dt2801 hardware installed on my machine yet. Shall I put
the card in and try the same thing?
Any suggestions?
Everett
Received on 2004-02-29Z20:49:31