--
To unsubscribe send email to bifferboard...@googlegroups.com
I did software PWM like this (see LED pulse example):
https://sites.google.com/site/bifferboard/openwrt-svn/rtai
Link for asm to asm-i386 is broken in RTAI Makefile.
Edit file ~/package/rtai/Makefile and change this line :
$(LN) $(1)/usr/include/asm-i386 $(1)/usr/include/asm
by this :
$(LN) $(STAGING_DIR)/usr/include/asm-i386 $(STAGING_DIR)/usr/include/asm
Biff, can you confirm that and edit git if its ok ?
2011/6/16 Philipp Peter Tahiri <phili...@arcor.de>
You can start with package "rtai-examples" in git.
With this Makefile, I got just a pthread error :
---------------------------------------------
CC = $(shell $(STAGING_DIR)/usr/bin/rtai-config --cc)
LXRT_CFLAGS = $(shell $(STAGING_DIR)/usr/bin/rtai-config --lxrt-cflags)
LXRT_LDFLAGS = -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lpthread
all: rtai-led-blink
rtai-led-blink: rtai-led-blink.c
$(CC) $(LXRT_CFLAGS) --static -o $@ $< $(LXRT_LDFLAGS) -llxrt
clean:
rm -f *.o *~ rtai-led-blink
---------------------------------------------
I will try again when I have more time.
2011/6/17 nicolas le falher <n.lef...@gmail.com>:
--
Nicolas Le Falher.
Two diff files for packages "rtai" and "rtai-examples".
Compile works and modules load without problems.
Binary "rtai-led-blink" running, but error led not blinking (maybe
normal with a pull on every 0.5 seconds).
If someone can confirm its works.
2011/6/17 biff...@yahoo.co.uk <biff...@yahoo.co.uk>:
Biff example code for RTAI works.
You can adapt your code for make a pkg.
Led not blinking because period (0.5 seconds), if you set a lower value, led blinking.
Try to load your modules without .ko.
root@OpenWrt:/# insmod rtai_hal
I-pipe: Domain RTAI registered.
RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.7-03.
RTAI[hal]: compiled with gcc version 4.1.2.
RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs
DISPATCHED), ISOL_CPUS_MASK: 0).
PIPELINE layers:
c39a5380 9ac15d93 RTAI
2011/7/24 Philipp Peter Tahiri <phili...@arcor.de>:
Or make a new package and adapt from rtai-examples directory.
@Biff, can you edit Rtai documentation about insmod ?
2011/7/25 Philipp Peter Tahiri <phili...@arcor.de>: