Hi all,
I'm trying to compile a RTL module in my desktop (with RedHat 6.0 and
kernel version 2.2.13-RTL2.0) to use in MiniRTL, the module compiles well
but when i try insmod in MiniRTL I get a Segmentation Fault, so when i
type lsmod i get adv_new.o (unitialized) and i can't remove the module,
the message when i type rmmod is something like "module is been used". I'd
appreciate very much a fast answer or hint because i'm with this problem
for a long time. Thank you very much,
Daniela.
My Makefile:;
all: adv_new.o monitor
# simple.o
include rtl.mk
monitor: monitor.c
$(CC) ${INCLUDE} -static -O2 -Wall monitor.c -o monitor
adv_new.o:
adv_new.c
$(CC) ${INCLUDE} ${CFLAGS} -c adv_new.c -o adv_new.o
#test,
remove any modules, load new ones and run monitor
test: all
-rmmod hello
-rmmod sound
-rmmod rt_process
-rmmod adv_new
(./rmrtl)
@echo "Now
insert the fifo and scheduler"
@echo "Type <return> to continue"
@read
junk
(./insrtl)
@echo "Now start the real-time task module"
@echo "Type
<return> to continue"
@read junk
@insmod adv_new.o
@echo "Now start the
application"
@echo "Type <return> to continue"
@read junk
@./monitor
clean:
rm -f monitor *.o
P.S. rtl.mk is the same one that comes with RTL
module.zip