Can Asus Tinker Board run LINUXCNC

More
7 years 1 month ago - 7 years 1 month ago #144792 by terry1992
I tried to install LinuxCNC 2.7.14 on my Tinker Board S for few days.
The deb file I download is "LinuxCNC Uspace 2.7.14 Docs".
When I install it, terminal window shows
Code:
atech@tinkerboard:~/Downloads$ sudo dpkg -i linuxcnc-doc-en_2.7.14_all.deb [sudo] password for atech: Selecting previously unselected package linuxcnc-doc-en. (Reading database ... 171926 files and directories currently installed.) Preparing to unpack linuxcnc-doc-en_2.7.14_all.deb ... Unpacking linuxcnc-doc-en (1:2.7.14) ... Setting up linuxcnc-doc-en (1:2.7.14) ... Processing triggers for desktop-file-utils (0.23-4) ... Processing triggers for mime-support (3.62) ...
Does that means the installation done?
How should I run it?
Last edit: 7 years 1 month ago by terry1992.

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

More
7 years 1 month ago #144805 by tommylight
@terry
That is the documents you have installed, not Linuxcnc.
You need the deb without the doc in the name.
The following user(s) said Thank You: terry1992

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

More
7 years 1 month ago #144824 by PCW
What are the permissions of the SPI device?
( ls -l /dev/sp* )

I know mesaflash works on the Raspberry PI and it uses the SPI device
(and it needed to be enabled before it worked with mesaflash)

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

More
7 years 1 month ago #144871 by JackyWu
The permissions are as follows
Code:
atech@tinkerboard:~$ ls -l /dev/sp* crw------- 1 root root 153, 1 Sep 12 09:07 /dev/spidev0.0 crw------- 1 root root 153, 0 Sep 12 09:07 /dev/spidev0.1 crw------- 1 root root 153, 3 Sep 12 09:07 /dev/spidev2.0 crw------- 1 root root 153, 2 Sep 12 09:07 /dev/spidev2.1

It seems that the file can be read and write, but not executable.
Is it normal to a LinuxCNC system?
If it is abnormal, how can I deal with it ?

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

More
7 years 1 month ago #144886 by PCW
Not sure, I'll take a look at my RPI tomorrow and see what its SPI device
permissions are

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

More
7 years 1 month ago - 7 years 1 month ago #145647 by JackyWu
I was finished install hm2_tkboard.c. And I loaded halrun with hm2_tkboard, but the error was as follows:
Code:
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/
Code:
atech@tinkerboard:~/linuxcnc-dev/src$ halrun halcmd: loadrt hostmot2 Note: Using POSIX realtime hm2: loading Mesa HostMot2 driver version 0.15 halcmd: loadrt hm2_tkboard Invalid cookie Read: ffffffff ffffffff ffffffff ffffffff hm2_tkboard: rtapi_app_main: No such device (-19) <stdin>:4: waitpid failed /home/atech/linuxcnc-dev/bin/rtapi_app hm2_tkboard <stdin>:4: /home/atech/linuxcnc-dev/bin/rtapi_app exited without becoming ready <stdin>:4: insmod for hm2_tkboard failed, returned -1

I also tried to use mesaflash utility by running this command:
Code:
atech@tinkerboard:~/mesaflash$ sudo ./mesaflash --device 7I90 --spi --addr /dev/spidev0.0 --fallback --write ../7i90/configs/fallback/7i90_spi_fallback.bit [sudo] password for atech: unable to set bpw32, fallback to bpw8 Unexpected cookie at 0100..0110: ffffffff ffffffff ffffffff No 7I90 board found
Code:
atech@tinkerboard:~/mesaflash$ sudo ./mesaflash --device 7i90 --spi --write /home/atech/Downloads/7i90/configs/hostmot2/7i90_spi_svst4_8.bit open: Bad address No 7I90 board found
How can I flash firmware spi for mesa 7i90hd board?
Can you help me?
Thank you very much!
Last edit: 7 years 1 month ago by JackyWu.

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

Time to create page: 0.075 seconds
Powered by Kunena Forum