[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: [rtl] rt_com



Arturo Espinosa Soley <arturoe@terraba.fing.ucr.ac.cr> wrote
> 
> im having trouble compiling/installing this module,...
> 
> will anyone who's got it working please tell me how to do it....?
> 
> i've tried modyfing one of the included Makefiles,... but all i get when i
> do
> #insmod rt_com.o 
> is a lot of unsersolved symbols about private and public variables,...
> 
> r_restore_flags
> __inbc
> __outbc
> __outb
> r_cli
> __inb
>
--------------- 
Arturo,

without your source code and compiler options it may be impossible to
help you but I'll try. First, you need to include the right include
files. You'll need a set like:

#include <linux/module.h>
#include <asm/rt_irq.h>
#include <asm/io.h>
#include <asm/rt_time.h>
#include <rtl_sched.h>
#include <rtl_fifo.h>
#include <linux/cons.h>

and the compiler options are also important:

gcc -I/root/linuxrt/linux/include -I/root/linuxrt/rtl/include -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer -fno-strength-reduce -D__RT__ -D__KERNEL__ -DMODULE -c -o YourFile.o YourFile.c

Please note the -O2 option(!) See "man outb" for explanation.

I hope this helps.

Regards,

pa


..........................................................................
Pavel Andris                               | tel: +421 7 5941 2167
Institute of Control Theory and Robotics   | fax: +421 7 376  045
Slovak Academy of Sciences                 | 
Dubravska cesta 9                          | e-mail: utrrandr@savba.sk
Slovakia                                   |
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.cs.nmt.edu OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.cs.nmt.edu
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/