Can Asus Tinker Board run LINUXCNC

More
13 Apr 2019 18:52 - 15 Apr 2019 22:36 #130785 by berin
My current project is getting the cnc interface figured out, any help would be great. For now my direction is to use the GPIO headers as a direct step/dir end stops, spindle control etc... setup. I'm trying to put together information on what the best plan for the board would be. Any advice is more then welcome. I'm currently amassing different HAL_GPIO.c file versions with different design logic idea. SPI HAL and others. My ideal goal is to get the GPIO port to work like a parallel port in function. If I have to go external hardware like mesa or some other system I will, But I consider it last resort. The next task is tuning the system for performance. It has been suggested that one of the cores be isolated for RT functions only.
Last edit: 15 Apr 2019 22:36 by berin.

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

More
14 Apr 2019 08:38 #130835 by pl7i92
on the Grup you can just do a ISOCPU
"isolcpus=2,3" as many you like you can also check if not the first is the fastest and use that one with the lowest latency

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

More
29 Apr 2019 22:20 #132318 by berin
if anyone is loooking for more information I have posted a lot here forum.armbian.com/topic/10007-tinker-boa...-working-free-offer/ more or less the home base for info...

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

More
01 May 2019 02:21 #132403 by berin
pl7i92 noted.

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

More
02 Sep 2019 06:38 #143884 by terry1992
I have installed the RT kernel and Linuxcnc in my Tinker Board S. However it shows error when I choose the mesa 7i90 in hm2_stepper. The error shows in the terminal is as follows. Do anyone knows what is wrong?

atech@tinkerboard:~/linuxcnc-dev/src$ linuxcnc
LINUXCNC - 2.9.0~pre0
Machine configuration directory is '/home/atech/linuxcnc-dev/configs/by_interface/mesa/hm2-stepper'
Machine configuration file is '7i90.ini'
Starting LinuxCNC...
Found file(REL): ./hm2-stepper.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
hm2_7i90: loading HostMot2 Mesa 7i90 driver version 0.3
Linux parallel port #0 not found
hm2_7i90: rtapi_app_main: No such file or directory (-2)
./hm2-stepper.hal:38: waitpid failed /home/atech/linuxcnc-dev/bin/rtapi_app hm2_7i90
./hm2-stepper.hal:38: /home/atech/linuxcnc-dev/bin/rtapi_app exited without becoming ready
./hm2-stepper.hal:38: insmod for hm2_7i90 failed, returned -1
Shutting down and cleaning up LinuxCNC...
hm2: unloading
Note: Using POSIX realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/atech/linuxcnc_debug.txt
and
/home/atech/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
02 Sep 2019 08:41 #143889 by pl7i92
is the 7i90 powerd at PC Startup and connected
can you ping the CARD IP
what does in terminal
dmesg | grep parpo*
output
can you plese get the HAL and ii Files posted
are you working wqith the NEW or old Statments of Parport in the Config
when did you last time update the 2.9 it has changed over the weekend in parport behave

I personly recomend you to get the 2.7.14 version as you run a standard mashine
if you plan to get tandem like XXYZ Stay at 2.9
the 2.7.14 is very clean and will get you fast to a working mashine
The following user(s) said Thank You: terry1992

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

More
02 Sep 2019 19:21 #143925 by PCW
The hm2_7i90 driver is a EPP parallel port driver so its not going to work on a Tinker board.

If you intend to use a SPI interface, you might try the generic hm2_spi driver though there is no guarantee that it will work (it depends an the availability and quality of the Tinkers OS spi driver)

I suspect that a custom driver would be needed perhaps based on the
hm2_rpspi driver used with the Raspberry Pi

In addition to having a working SPI driver on the host CPU you also need to install SPI
firmware on the 7I90 (via EPP and mesaflash is probably the easiest way)
The following user(s) said Thank You: terry1992

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

More
06 Sep 2019 08:38 #144340 by terry1992
Sorry about asking stupid questions. I am a rookie of using Linux and LinuxCNC.
I have found some data on github such as ( github.com/LinuxCNC/linuxcnc/blob/master...hostmot2/hm2_rpspi.c )

The question is that I don't know how to use or install it.
Could anyone teach me how to do it?
( It will be very appreciate if you could offer me the command in the terminal and explain the meaning of it)

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

More
06 Sep 2019 16:43 #144399 by PCW
Loading information is in a hm2_rpspi manual page:

man hm2_rpspi

But note, the hm2_rpspi drives works only with the Raspberry PI,
I would try the generic spi driver first on the Tinkerboard:

man hm2_spi

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

More
09 Sep 2019 08:20 #144571 by JackyWu
I tried to load hm2_spi and hm2_rpspi today.
But both of them showed errors.

The error are as follows
halcmd: loadrt hm2_spi
probe 24000000
hm2_spi: rtapi_app_main: No such file or directory (-2)
<stdin>:6: waitpid failed /home/atech/linuxcnc-dev/bin/rtapi_app hm2_spi
<stdin>:6: /home/atech/linuxcnc-dev/bin/rtapi_app exited without becoming ready
<stdin>:6: insmod for hm2_spi failed, returned -1
halcmd: loadrt hm2_rpspi
hm2_rpspi: Unsupported Platform, only Raspberry1/2/3 supported.
hm2_rpspi: rtapi_app_main: Operation not permitted (-1)
<stdin>:7: waitpid failed /home/atech/linuxcnc-dev/bin/rtapi_app hm2_rpspi
<stdin>:7: /home/atech/linuxcnc-dev/bin/rtapi_app exited without becoming ready
<stdin>:7: insmod for hm2_rpspi failed, returned -1

Is that means something is missing?
How can I fix it?

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

Time to create page: 0.102 seconds
Powered by Kunena Forum