Touchscreen with LinuxCNC

More
14 Jun 2013 22:33 #35630 by conorm
Replied by conorm on topic Touchscreen with LinuxCNC
Thanks

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)


File Attachment:

File Name: kernlog-6-14.txt
File Size:80 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
14 Jun 2013 22:44 #35632 by ArcEye
Replied by ArcEye on topic Touchscreen with LinuxCNC
Afraid that isn't very illuminating, both logs end just after apparmor load.

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.

More
14 Jun 2013 23:52 - 14 Jun 2013 23:56 #35640 by conorm
Replied by conorm on topic Touchscreen with LinuxCNC
Let me know if these help out at all.

Thanks

File Attachment:

File Name: terminaloutput.txt
File Size:2 KB


File Attachment:

File Name: dmesg.txt
File Size:53 KB


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.
Attachments:
Last edit: 14 Jun 2013 23:56 by conorm.

Please Log in or Create an account to join the conversation.

More
15 Jun 2013 00:29 #35642 by ArcEye
Replied by ArcEye on topic Touchscreen with LinuxCNC
Hi

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

Linux 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 appears to be a later build using the stock 12.04 kernel as a base

minibox@minibox:~/emc2-dev/src$ linuxcnc

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

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.

More
15 Jun 2013 02:10 - 15 Jun 2013 02:11 #35648 by conorm
Replied by conorm on topic Touchscreen with LinuxCNC
Thanks

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:

minibox@minibox:~/emc2-dev$ . ../scripts/rip-environment
bash: ../scripts/rip-environment: No such file or directory

or

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...
Last edit: 15 Jun 2013 02:11 by conorm.

Please Log in or Create an account to join the conversation.

More
15 Jun 2013 05:20 #35652 by andypugh
Replied by andypugh on topic Touchscreen with LinuxCNC

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.

More
15 Jun 2013 14:26 - 15 Jun 2013 17:43 #35668 by ArcEye
Replied by ArcEye on topic Touchscreen with LinuxCNC
Once you have got the environment sorted out, if you still have problems, try running axis_mm.ini from the sims

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.
Last edit: 15 Jun 2013 17:43 by ArcEye. Reason: add info

Please Log in or Create an account to join the conversation.

Time to create page: 0.262 seconds
Powered by Kunena Forum