ubuntu 14.04.1 linuxcnc help
19 Nov 2015 01:29 #65474
by tjmarch
Replied by tjmarch on topic ubuntu 14.04.1 linuxcnc help
Still at work had some time forgot had VM on my laptop. So I compiled LCNC on Linuxmint 17.2 with Xenomai kernel. File /var/log/dmesg shows:
0.934582] I-pipe: head domain Xenomai registered.
[ 0.934585] Xenomai: hal/i386 started.
[ 0.934803] Xenomai: scheduling class idle registered.
[ 0.934804] Xenomai: scheduling class rt registered.
[ 0.935024] Xenomai: real-time nucleus v2.6.3 (Lies and Truths) loaded.
[ 0.935024] Xenomai: debug mode enabled.
[ 0.935056] Xenomai: starting native API services.
[ 0.935057] Xenomai: starting POSIX services.
[ 0.935066] Xenomai: starting RTDM services.
Attached file is the whole file dmesg
I will still check desktop when I get home,(but it will be late Central time) is this the info you are looking for
Tim
0.934582] I-pipe: head domain Xenomai registered.
[ 0.934585] Xenomai: hal/i386 started.
[ 0.934803] Xenomai: scheduling class idle registered.
[ 0.934804] Xenomai: scheduling class rt registered.
[ 0.935024] Xenomai: real-time nucleus v2.6.3 (Lies and Truths) loaded.
[ 0.935024] Xenomai: debug mode enabled.
[ 0.935056] Xenomai: starting native API services.
[ 0.935057] Xenomai: starting POSIX services.
[ 0.935066] Xenomai: starting RTDM services.
Attached file is the whole file dmesg
I will still check desktop when I get home,(but it will be late Central time) is this the info you are looking for
Tim
Please Log in or Create an account to join the conversation.
19 Nov 2015 01:33 #65475
by tjmarch
Replied by tjmarch on topic ubuntu 14.04.1 linuxcnc help
No I do not work for redhat, I am a old Robotic Engineer, (fancy term for robot programmer)
Tim
Tim
Please Log in or Create an account to join the conversation.
19 Nov 2015 08:29 #65487
by tjmarch
Replied by tjmarch on topic ubuntu 14.04.1 linuxcnc help
Here are the results for desktop computer running Debian Wheezy
/var/log/dmesg shows:
[ 0.448038] I-pipe: head domain Xenomai registered.
[ 0.448075] Xenomai: hal/i386 started.
[ 0.448094] Xenomai: scheduling class idle registered.
[ 0.448096] Xenomai: scheduling class rt registered.
[ 0.448914] Xenomai: real-time nucleus v2.6.3 (Lies and Truths) loaded.
[ 0.448916] Xenomai: debug mode enabled.
[ 0.449101] Xenomai: SMI-enabled chipset found
[ 0.449110] Xenomai: SMI workaround enabled
[ 0.449136] Xenomai: starting native API services.
[ 0.449138] Xenomai: starting POSIX services.
[ 0.449163] Xenomai: starting RTDM services.
Latency is high I enable kernel boot parameter xeno_hal.smi=1 which lowered it some
As last post attached file is the whole file dmesg
Tim
/var/log/dmesg shows:
[ 0.448038] I-pipe: head domain Xenomai registered.
[ 0.448075] Xenomai: hal/i386 started.
[ 0.448094] Xenomai: scheduling class idle registered.
[ 0.448096] Xenomai: scheduling class rt registered.
[ 0.448914] Xenomai: real-time nucleus v2.6.3 (Lies and Truths) loaded.
[ 0.448916] Xenomai: debug mode enabled.
[ 0.449101] Xenomai: SMI-enabled chipset found
[ 0.449110] Xenomai: SMI workaround enabled
[ 0.449136] Xenomai: starting native API services.
[ 0.449138] Xenomai: starting POSIX services.
[ 0.449163] Xenomai: starting RTDM services.
Latency is high I enable kernel boot parameter xeno_hal.smi=1 which lowered it some
As last post attached file is the whole file dmesg
Tim
Please Log in or Create an account to join the conversation.
19 Nov 2015 10:05 #65489
by andypugh
Did you start LinuxCNC? There is no sign of any LinuxCNC logging to the kernel log, but I don't know if it does with uspace.
If you start LinuxCNC from the command-line then there may be some useful info.
My guess is that "uspace" on a Xenomai system doesn't actually find Xenomai, and defualts to POSIX non-realtime threads. (ie, close to what used to be called "sim"). But I would like to be wrong.
Replied by andypugh on topic ubuntu 14.04.1 linuxcnc help
Still at work had some time forgot had VM on my laptop. So I compiled LCNC on Linuxmint 17.2 with Xenomai kernel. File /var/log/dmesg shows:
[ 0.935057] Xenomai: starting POSIX services.
[ 0.935066] Xenomai: starting RTDM services.
I will still check desktop when I get home,(but it will be late Central time) is this the info you are looking for
Did you start LinuxCNC? There is no sign of any LinuxCNC logging to the kernel log, but I don't know if it does with uspace.
If you start LinuxCNC from the command-line then there may be some useful info.
My guess is that "uspace" on a Xenomai system doesn't actually find Xenomai, and defualts to POSIX non-realtime threads. (ie, close to what used to be called "sim"). But I would like to be wrong.
Please Log in or Create an account to join the conversation.
19 Nov 2015 14:20 - 19 Nov 2015 14:27 #65502
by tjmarch
Replied by tjmarch on topic ubuntu 14.04.1 linuxcnc help
Andy
Started LCNC SIM from terminal terminal output is:
tim@tim-barn:~/linuxcnc_source$ cd ~;. /home/`whoami`/linuxcnc_source/scripts/rip-environment;cd /home/`whoami`/linuxcnc_source
tim@tim-barn:~/linuxcnc_source$ linuxcnc
LINUXCNC - 2.7.2
Machine configuration directory is '/home/tim/linuxcnc_source/configs/sim/axis'
Machine configuration file is 'axis.ini'
Starting LinuxCNC...
Found file(lib): /home/tim/linuxcnc_source/lib/hallib/core_sim.hal
Note: Using POSIX non-realtime
Found file(lib): /home/tim/linuxcnc_source/lib/hallib/sim_spindle_encoder.hal
Found file(lib): /home/tim/linuxcnc_source/lib/hallib/axis_manualtoolchange.hal
Found file(lib): /home/tim/linuxcnc_source/lib/hallib/simulated_home.hal
Found file(REL): ./check_constraints.hal
task: main loop took 0.010002 seconds
task: main loop took 0.011695 seconds
task: main loop took 0.012012 seconds
task: main loop took 0.010902 seconds
task: main loop took 0.010387 seconds
task: main loop took 0.010028 seconds
task: main loop took 0.035761 seconds
task: main loop took 0.089628 seconds
task: main loop took 0.034395 seconds
task: main loop took 0.015404 seconds
Also attached new dmesg file with LCNC running
Tim
Started LCNC SIM from terminal terminal output is:
tim@tim-barn:~/linuxcnc_source$ cd ~;. /home/`whoami`/linuxcnc_source/scripts/rip-environment;cd /home/`whoami`/linuxcnc_source
tim@tim-barn:~/linuxcnc_source$ linuxcnc
LINUXCNC - 2.7.2
Machine configuration directory is '/home/tim/linuxcnc_source/configs/sim/axis'
Machine configuration file is 'axis.ini'
Starting LinuxCNC...
Found file(lib): /home/tim/linuxcnc_source/lib/hallib/core_sim.hal
Note: Using POSIX non-realtime
Found file(lib): /home/tim/linuxcnc_source/lib/hallib/sim_spindle_encoder.hal
Found file(lib): /home/tim/linuxcnc_source/lib/hallib/axis_manualtoolchange.hal
Found file(lib): /home/tim/linuxcnc_source/lib/hallib/simulated_home.hal
Found file(REL): ./check_constraints.hal
task: main loop took 0.010002 seconds
task: main loop took 0.011695 seconds
task: main loop took 0.012012 seconds
task: main loop took 0.010902 seconds
task: main loop took 0.010387 seconds
task: main loop took 0.010028 seconds
task: main loop took 0.035761 seconds
task: main loop took 0.089628 seconds
task: main loop took 0.034395 seconds
task: main loop took 0.015404 seconds
Also attached new dmesg file with LCNC running
Tim
Last edit: 19 Nov 2015 14:27 by tjmarch.
Please Log in or Create an account to join the conversation.
19 Nov 2015 14:32 #65504
by andypugh
I think this means that it runs in "sim" mode (ie no realtime) on a Xenomai kernel, ie exactly like on a standard kernel without PREEMPT RT or RTAI.
Replied by andypugh on topic ubuntu 14.04.1 linuxcnc help
Note: Using POSIX non-realtime
I think this means that it runs in "sim" mode (ie no realtime) on a Xenomai kernel, ie exactly like on a standard kernel without PREEMPT RT or RTAI.
Please Log in or Create an account to join the conversation.
19 Nov 2015 15:23 - 19 Nov 2015 15:25 #65508
by tjmarch
Replied by tjmarch on topic ubuntu 14.04.1 linuxcnc help
Last edit: 19 Nov 2015 15:25 by tjmarch.
Please Log in or Create an account to join the conversation.
19 Nov 2015 15:44 #65510
by andypugh
There is a certain amount of confusion here due to terminological inexactitude.
There are "sim" configs supplied with LinuxCNC. These have HAL simulations of things like home switches.
There also used to be dedicated "simulator" builds of LinuxCNC, intended to be used on machines without realtime kernels.
(for example; wiki.linuxcnc.org/cgi-bin/wiki.pl?LinuxCNC_Pure_Simulator )
With the development of "uspace" there is now no need for a "pure simulator" build, and you can run a "uspace" build on any kernel and it will work. It may even be able to drive hardware, but probably not well.
Your dmesg output shows that the system is running a Xenomai kernel. I think that the "POSIX non-realtime" message implies that LinuxCNC has not found the Xenomai kernel, or does not know how to interact with it.
The Machinekit project is the result of a team doing an awful lot of work to make LinuxCNC run on Xenomai, and then having that work rejected by the release manager. I rather wish that hadn't happened.
Replied by andypugh on topic ubuntu 14.04.1 linuxcnc help
If you noticed I said I started LCNC in SIM mode
There is a certain amount of confusion here due to terminological inexactitude.
There are "sim" configs supplied with LinuxCNC. These have HAL simulations of things like home switches.
There also used to be dedicated "simulator" builds of LinuxCNC, intended to be used on machines without realtime kernels.
(for example; wiki.linuxcnc.org/cgi-bin/wiki.pl?LinuxCNC_Pure_Simulator )
With the development of "uspace" there is now no need for a "pure simulator" build, and you can run a "uspace" build on any kernel and it will work. It may even be able to drive hardware, but probably not well.
Your dmesg output shows that the system is running a Xenomai kernel. I think that the "POSIX non-realtime" message implies that LinuxCNC has not found the Xenomai kernel, or does not know how to interact with it.
The Machinekit project is the result of a team doing an awful lot of work to make LinuxCNC run on Xenomai, and then having that work rejected by the release manager. I rather wish that hadn't happened.
Please Log in or Create an account to join the conversation.
19 Nov 2015 16:22 - 19 Nov 2015 16:23 #65514
by tjmarch
Replied by tjmarch on topic ubuntu 14.04.1 linuxcnc help
Andy
I made similar script file for Machinekit and posted on Machinekit google group but withdrew post because Machinekit will not build on Ubuntu based distro Ubuntu or Mint anymore, I do not like Debian prefer Mint. From what I gather from reading there is no plans to correct this problem. Plus over there they are really stuck on BBB not much said about PC based machine control. I do not want to use BBB, stepper driver for cape have limited current capabilities. That is why I am now focused on LCNC.
Tim
I made similar script file for Machinekit and posted on Machinekit google group but withdrew post because Machinekit will not build on Ubuntu based distro Ubuntu or Mint anymore, I do not like Debian prefer Mint. From what I gather from reading there is no plans to correct this problem. Plus over there they are really stuck on BBB not much said about PC based machine control. I do not want to use BBB, stepper driver for cape have limited current capabilities. That is why I am now focused on LCNC.
Tim
Last edit: 19 Nov 2015 16:23 by tjmarch.
Please Log in or Create an account to join the conversation.
- Razor_keen
- Offline
- Premium Member
Less
More
- Posts: 114
- Thank you received: 4
19 Nov 2015 16:23 #65515
by Razor_keen
Replied by Razor_keen on topic ubuntu 14.04.1 linuxcnc help
Other than the confusion over the xenomai kernel, the preempt kernel should work just fine right?
although, with an older kernel some ubuntu functions like app armor may not work. This was the problem i ran into using kernels from kernel.org.
also, the weird thing is, that when i run xconfig, it changes the settings in the stock config as well. it seems like that shouldnt happen.
although, with an older kernel some ubuntu functions like app armor may not work. This was the problem i ran into using kernels from kernel.org.
also, the weird thing is, that when i run xconfig, it changes the settings in the stock config as well. it seems like that shouldnt happen.
Please Log in or Create an account to join the conversation.
Time to create page: 0.147 seconds