Jetson Nano as LinuxCNC driver

More
6 years 4 months ago #172161 by hobbyno1
Hi Cerna,
Thanks for letting me try this version. The good news is, it installed, it opens up the "Linuxcnc configuration selector " page when I launch it from the command line. When I select a configuration the Banner for "Enhanced Machine controller" comes up. There is a linuxcnc folder in my home directory which has subfolders /configs and /nc_files each of which seem full with files. The configuration file I selected on the selector page has its own subfolder in the /configs folder with the correct hal and ini files. There is a shortcut on the desktop since I checked the box on the "Linuxcnc configuration selector".

The not so good news is that this is as far as it goes. At the first two launches the machine hung at this point and on restarting sent an error report to ubuntu. I did not record the details but it did mention about a kernel loop. The third and fourth time the machine did not hang, but it returned me to the terminal window with an error message that I have pasted below. It says it is a configuration error that is preventing it from running and it seems to be looking for a parport, however it might be more than that since the machine hung on the first two launches.

Some info on the installation. The first time I tried dpkg -i it seemed to remove all the :armhf packages. It then returned an error message re unmet dependencies. Then I did sudo --fix -broken install, this still gave an error message at the end of a long list of fixes, so I tried dpkg -i again and it installed.

Some other info, I don't see a .exe icon, I can only launch from the terminal. It doesn't seem to be on the list of installed software on the desktop. There doesn't seem to be a home/user1/linuxcnc_debug.txt or print.tex as mentioned at the end of this error message

user1@computer1:~$ linuxcnc
LINUXCNC - 2.8.0~pre1
Machine configuration directory is '/home/user1/linuxcnc/configs/by_interface.parport.etch-servo'
Machine configuration file is 'etch.ini'
Starting LinuxCNC...
Found file(REL): ./etch.hal
Waiting for component 'trivkins' to become ready..Waited 3 seconds for master. giving up.
.Note: Using POSIX realtime

Unexpected realtime delay on task 0 with period 20000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
config string '0x378'
Linux parallel port @888 not found
invalid inifile value for [TRAJ] HOME: 0 0
emcMotionInit: emcTrajInit failed
invalid inifile value for [TRAJ] HOME: 0 0
emcMotionInit: emcTrajInit failed
note: MAXV max: 30.000 units/sec 1800.000 units/min
note: LJOG max: 30.000 units/sec 1800.000 units/min
note: LJOG default: 1.000 units/sec 60.000 units/min
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
Waiting for component 'inihal' to become ready..waiting for s.joints<0>, s.kinematics_type<0>
.invalid inifile value for [TRAJ] HOME: 0 0
emcMotionInit: emcTrajInit failed
.....waiting for s.joints<0>, s.kinematics_type<0>
.....invalid inifile value for [TRAJ] HOME: 0 0
emcMotionInit: emcTrajInit failed
........waiting for s.joints<0>, s.kinematics_type<0>
...invalid inifile value for [TRAJ] HOME: 0 0
emcMotionInit: emcTrajInit failed
..........invalid inifile value for [TRAJ] HOME: 0 0
emcMotionInit: emcTrajInit failed
..........invalid inifile value for [TRAJ] HOME: 0 0
emcMotionInit: emcTrajInit failed
..A configuration error is preventing LinuxCNC from starting.
More information may be available when running from a terminal.
Shutting down and cleaning up LinuxCNC...
........invalid inifile value for [TRAJ] HOME: 0 0
emcMotionInit: emcTrajInit failed
....HAL: ERROR: exit called before init
<commandline>:0: waitpid failed milltask inihal

<commandline>:0: milltask exited without becoming ready
Note: Using POSIX realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/user1/linuxcnc_debug.txt
and
/home/user1/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

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

More
6 years 4 months ago #172162 by tommylight
Try some other sim configs, and attach the debug part of the report.
You are trying to run a parallel port config that uses actual parallel port, not a simulator, and i think Nano does not have one.
The following user(s) said Thank You: hobbyno1

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

More
6 years 4 months ago #172163 by hobbyno1
Hi Tommylight,
Success! fantastic, I selected sim axis config. It opens up the usual Linuxcnc window(some delay). I ran the sim axis config and it completed the demo of cutting the words "Linux CNC" . I've included the terminal o/p below.
many thx

user1@computer1:~$ linuxcnc
LINUXCNC - 2.8.0~pre1
Machine configuration directory is '/home/user1/linuxcnc/configs/sim.axis'
Machine configuration file is 'axis.ini'
Starting LinuxCNC...
Found file(lib): /usr/share/linuxcnc/hallib/core_sim.hal
Note: Using POSIX realtime
Found file(lib): /usr/share/linuxcnc/hallib/sim_spindle_encoder.hal
Found file(lib): /usr/share/linuxcnc/hallib/axis_manualtoolchange.hal
Found file(lib): /usr/share/linuxcnc/hallib/simulated_home.hal
Found file(lib): /usr/share/linuxcnc/hallib/check_xyz_constraints.hal
note: MAXV max: 5.000 units/sec 300.000 units/min
note: LJOG max: 5.000 units/sec 300.000 units/min
note: LJOG default: 0.250 units/sec 15.000 units/min
note: jog_order='XYZ'
note: jog_invert=set([])
task: main loop took 0.011198 seconds
task: main loop took 0.010072 seconds
task: main loop took 0.020327 seconds
task: main loop took 0.017018 seconds
task: main loop took 0.097378 seconds
task: main loop took 0.024232 seconds
task: main loop took 0.011755 seconds
task: main loop took 0.022386 seconds
task: main loop took 0.101848 seconds
task: main loop took 0.022579 seconds
Shutting down and cleaning up LinuxCNC...
task: 500873 cycles, min=0.000164, max=0.102898, avg=0.001066, 11 latency excursions (> 10x expected cycle time of 0.001000s)
Note: Using POSIX realtime
user1@computer1:~$

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

More
6 years 4 months ago #172164 by hobbyno1
Hi Cerna,
Success, fantastic, its' working with the sim axis.
many thx

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

More
6 years 4 months ago - 6 years 4 months ago #172165 by hobbyno1
Hi andypugh,
Success, fantastic, it is working with the sim axis.
many thx
Last edit: 6 years 4 months ago by hobbyno1.

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

More
6 years 4 months ago #172166 by tommylight

hobbyno1 wrote: Note: Using POSIX realtime

That is the only important part from the last log, it is using a real time kernel, so you are good.

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

Time to create page: 0.304 seconds
Powered by Kunena Forum