Can Asus Tinker Board run LINUXCNC

More
24 Oct 2019 00:57 #148663 by terry1992
The problem is the parallel port of my PC is not set to EPP 1.9 mode.
Thanks for your help.

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

More
06 Nov 2019 08:20 #149675 by terry1992
I can communication (readhmid) with the 7i90 card by spi.
And I got a tinker board mesaflash driver from the author of
.
The driver link is www.youtube.com/redirect?redir_token=qq6...QZC_8&event=comments
However when I tried to load the hm2_tkboard.
An error occured as follows.
halcmd: loadrt hostmot2
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
halcmd: loadrt hm2_tkboard
Invalid cookie
Read: 00000000 00000000 00000000 00000000
hm2_tkboard: rtapi_app_main: No such device (-19)
<stdin>:2: waitpid failed /home/atech/linuxcnc-dev/bin/rtapi_app hm2_tkboard
<stdin>:2: /home/atech/linuxcnc-dev/bin/rtapi_app exited without becoming ready
<stdin>:2: insmod for hm2_tkboard failed, returned -1

Could anyone give me some advice to fix it?

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

More
06 Nov 2019 11:16 #149691 by tommylight
That has to be compiled and installed before use, did you do that?
The following user(s) said Thank You: terry1992

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

More
06 Nov 2019 12:41 #149700 by terry1992
I have do the halcompile command before.
The result are
atech@tinkerboard:~/linuxcnc-dev/src$ halcompile --install ./hm2_tkboard.c
Compiling realtime hm2_tkboard.c
Linking hm2_tkboard.so
cp hm2_tkboard.so /home/atech/linuxcnc-dev/rtlib/

Do it means the compile is already done? Or there are something I have to do before I tried to do the loadrt command?

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

More
06 Nov 2019 21:50 #149758 by andypugh
No, that has installed and compiled.

It has also, fairly clearly, run. It has got as far as talking to the Mesa card but has not seen the response expected. I would suspect an issue with physical wiring, or possibly the SPI needs enabling in firmware? This certainly needs to be done with the Pi.
The following user(s) said Thank You: terry1992

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

More
06 Nov 2019 21:53 #149759 by andypugh
Reading between the lines here: tinkerboarding.co.uk/forum/thread-85-post-1285.html

You may need to edit /boot/hw_intf.conf
The following user(s) said Thank You: terry1992

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

More
06 Nov 2019 21:54 #149760 by andypugh
Has anyone tried the Tinkerboard with the 7C80 or 7C81?

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

More
06 Nov 2019 23:35 #149772 by PCW
The 7C80 or 7C81 should be identical in behavior to a 7I90 as far as the SPI interface goes, The fact that mesaflash works suggest you have the correct SPI wiring (unless the driver uses a different port)

Are you sure the driver is a hal component? That seems a bit odd

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

More
06 Nov 2019 23:52 #149777 by andypugh

Are you sure the driver is a hal component? That seems a bit odd


All the drivers are HAL components. i am a bit surprised that it compiled cleanly with halcompile, as typically it is hard to get the includes right, but it did, so looks like OK to me.

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

More
06 Nov 2019 23:55 - 07 Nov 2019 00:04 #149778 by PCW
I guess I just meant that that using halcompile outside of the norrnal LinuxCNC source tree for hm2 drivers seem odd
Last edit: 07 Nov 2019 00:04 by PCW.

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

Time to create page: 0.108 seconds
Powered by Kunena Forum