Touchscreen with LinuxCNC
Must've been the file size for the kern.log. Here's today (most of the information should be on the 6-13 file, though)
Please Log in or Create an account to join the conversation.
Re-boot and select the xenomai kernel
From a terminal run linuxcnc until error. Then cut and paste the terminal output to a file
This should show exactly what happened
Run dmesg > dmesg.txt straight after, this should show a corresponding segfault and hopefully some other info
Post both files
regards
Please Log in or Create an account to join the conversation.
Thanks
edit: Also, in case you were wondering (and as it mentions to run it) I had run the latency test before and after. Seems like max jitter is 29000ns/19000ns for servo and base thread, respectively.
Please Log in or Create an account to join the conversation.
Nothing leaps out I'm afraid
The terminal output is all about realtime delays, base-thread overruns and then an xserver error
dmesg just getting as far as an apparmor DENIED print
It doesn't help that this is not even the 3.5.7 based xenomai kernel that I am familiar with
This appears to be a later build using the stock 12.04 kernel as a baseLinux version 3.2.21-xenomai+ (root@sil1) (gcc version 4.7.2 (Debian 4.7.2-4) ) #3 SMP PREEMPT Tue Dec 25 23:33:36 UTC 2012
This is a little puzzling - but unlikely to be the causeminibox@minibox:~/emc2-dev/src$ linuxcnc
Why are you starting linuxcnc from inside the /src directory?
If it is a RIP build you should be running . ./scripts/rip-environment from ~/emc2-dev and then linuxcnc from the same dir
I will have to have a think and maybe suggest another kernel to try.
I am currently trialling a 3.5.7-rtai kernel, but it is very early days yet
regards
Please Log in or Create an account to join the conversation.
I figured it would make sense to start with 12.04 as I knew that would run the touchscreen and it seemed like it would run linuxcnc fine from comments on some of the other posts.
I updated the kernel based on the information from these 3 posts:
static.mah.priv.at/public/xenomai-debs/README
wiki.linuxcnc.org/cgi-bin/wiki.pl?NewRTInstall
www.anderswallin.net/2012/12/linuxcnc-on-ubuntu-12-04lts/
I don't think I chose the 3.2.21 xenomai kernel over the 3.5.7 kernel for any reason other than the former was in the tutorials.
This is a little puzzling - but unlikely to be the cause
Why are you starting linuxcnc from inside the /src directory?
If it is a RIP build you should be running . ./scripts/rip-environment from ~/emc2-dev and then linuxcnc from the same dir
So, that is something that has been bothering me a bit. I was in that directory during the initial build and it seemed to work. But now, if I try and run it as you were saying I get this:
orminibox@minibox:~/emc2-dev$ . ../scripts/rip-environment
bash: ../scripts/rip-environment: No such file or directory
minibox@minibox:~/emc2-dev$ ../scripts/rip-environment
bash: ../scripts/rip-environment: No such file or directory
I can run the linuxcnc command out of the /emc2-dev directory though...
Please Log in or Create an account to join the conversation.
minibox@minibox:~/emc2-dev$ ../scripts/rip-environment/quote]
From /src/ is is . ../ (dot space dot dot slash)
From emc2-dev is it . ./ (dot space dot slash).
That is because ./ means "here" and ../ means back-on-level.
Then the dot-space means "run as an instruction to the shell"
All totally intuitive
Please Log in or Create an account to join the conversation.
That does not use the base thread, just servo, so will eliminate any actual realtime errors on the base thread.
(although it is specified in the .ini file, if you look at it in Hal Configuration it has 0,0 timings and nothing is attached to it)
See what happens.
Please Log in or Create an account to join the conversation.