Search found 9 matches

by niklas.b
Thu 20. Oct 2016, 15:17
Forum: Linux
Topic: Documentation to use / test the driver in RTAI?
Replies: 10
Views: 20304

Re: Documentation to use / test the driver in RTAI?

Hi,

this is after driver is loaded and before any tests run.
cat /proc/interrupts

CPU0 CPU1 CPU2 CPU3
0: 128 0 0 0 IO-APIC-edge timer
1: 3 0 0 0 IO-APIC-edge i8042
8: 0 0 0 1 IO-APIC-edge rtc0
9: 0 0 0 0 IO-APIC-fasteoi acpi
12: 4 0 0 0 IO-APIC-edge i8042
16: 17 2 8 3 IO-APIC-fasteoi ...
by niklas.b
Wed 19. Oct 2016, 09:30
Forum: Linux
Topic: Documentation to use / test the driver in RTAI?
Replies: 10
Views: 20304

Re: Documentation to use / test the driver in RTAI?

Hi,

thanks for the hints. However, I actually create a RT task in all of my examples using

RT_TASK *trx_task = rt_task_init_schmod(102, 2, 0, 0, SCHED_FIFO, 0xF);
rt_make_hard_real_time();
...
// the realtime stuff
...
rt_make_soft_real_time();
rt_task_delete(trx_task);


I now moved the ...
by niklas.b
Mon 17. Oct 2016, 10:31
Forum: Linux
Topic: Documentation to use / test the driver in RTAI?
Replies: 10
Views: 20304

Wrote some minimal tests

Hi,

I wrote own, minimal tests (< 100 lines) for RTAI and PCAN now to tackle down the problem, please have a look at the attachement. To make it short, I posted one of the tests below.

What I found out was that I cannot open multiple ports at the same time using can_handle = LINUX_Can_Open("/dev ...
by niklas.b
Fri 7. Oct 2016, 10:39
Forum: Linux
Topic: Documentation to use / test the driver in RTAI?
Replies: 10
Views: 20304

Re: Documentation to use / test the driver in RTAI?

Hi,

so I tried to use the "receivetest" and "transmittest" in the "test" directory, by having multiple terminals open:

in terminal 1:
./receivetest -f=/dev/pcan0 -b=0x14
(With -f=pcan0 it doesn NOT work: "cannot open ...". Also, the "-n" option in the manual is deprecated.)

in terminal 2 ...
by niklas.b
Tue 4. Oct 2016, 16:08
Forum: Linux
Topic: Documentation to use / test the driver in RTAI?
Replies: 10
Views: 20304

Documentation to use / test the driver in RTAI?

Hi,

I installed the pcan driver on a RTAI patched Linux according to the manual. Commands like
cat /proc/pcan
or
for f in /sys/class/pcan/pcanpci0/*; do [ -f $f ] && echo -n "'basename $f' = " && cat $f; done
shows me, that the driver seems to be installed correctly and ready for use.

But how ...
by niklas.b
Tue 27. Sep 2016, 17:17
Forum: Linux
Topic: "Warning: ...undefined" when installing driver for RTAI
Replies: 6
Views: 9712

Solved

I got it working. Just in case someone have the same trouble, for me this worked:

The order of loading the 4 required rtai modules was crucial. The following code snippets can be put in /etc/rc_local before the exit so that the driver is loaded automatically on startup:

# go to the RTAI modules ...
by niklas.b
Mon 26. Sep 2016, 16:41
Forum: Linux
Topic: "Warning: ...undefined" when installing driver for RTAI
Replies: 6
Views: 9712

Re: "Warning: ...undefined" when installing driver for RTAI

Does the PCAN driver with RT support rely on any specific rtai module? Because it seems, that one of them cannot be loaded:

root@tux1035:/usr/src/can_driver/peak-linux-driver-8.1# cd /usr/realtime/modules
root@tux1035:/usr/realtime/modules# modprobe *.ko
modprobe: FATAL: Module latency_rt.ko not ...
by niklas.b
Mon 26. Sep 2016, 16:32
Forum: Linux
Topic: "Warning: ...undefined" when installing driver for RTAI
Replies: 6
Views: 9712

Re: "Warning: ...undefined" when installing driver for RTAI

Interestingly enough make install does not give me any errors.

When I try to load the pcan driver, I get:

root@tux1035:/usr/src/can_driver/peak-linux-driver-8.1# modprobe pcan
modprobe: ERROR: could not insert 'pcan': Unknown symbol in module, or unknown parameter (see dmesg)

root@tux1035:/usr ...
by niklas.b
Mon 26. Sep 2016, 09:47
Forum: Linux
Topic: "Warning: ...undefined" when installing driver for RTAI
Replies: 6
Views: 9712

"Warning: ...undefined" when installing driver for RTAI

Hi, I'm trying to install the 8.1 driver for a RTAI patched Linux for the PCAN-PCI 4-Channel card.

I have the linux headers, libpopt-dev and libstdc++6 installed and followed the installation instructions for the driver via the manual. When building the driver with make RT=RTAI I get the following ...