1.
I had read the hm2_spi manual(
linuxcnc.org/docs/2.7/html/man/man9/hm2_spi.9.html
).
And I checked the file in the default folder ( /dev/spidev1.0 ).
I found that I don't have the file named "spidev1.0", but there are "spidev0.0", "spidev0.1", "spidev2.0", "spidev2.1".
So I tried to change the default folder. The error shows as follows
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_spi spidev_path=/dev/spidev0.0
probe 24000000
hm2_spi: rtapi_app_main: Permission denied (-13)
<stdin>:2: waitpid failed /home/atech/linuxcnc-dev/bin/rtapi_app hm2_spi
<stdin>:2: /home/atech/linuxcnc-dev/bin/rtapi_app exited without becoming ready
<stdin>:2: insmod for hm2_spi failed, returned -1
atech@tinkerboard:~/linuxcnc-dev/src$ halrun
halcmd: loadrt hostmot2
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
halcmd: loadrt hm2_spi spidev_path=/dev/spidev0.1
probe 24000000
hm2_spi: rtapi_app_main: Permission denied (-13)
<stdin>:2: waitpid failed /home/atech/linuxcnc-dev/bin/rtapi_app hm2_spi
<stdin>:2: /home/atech/linuxcnc-dev/bin/rtapi_app exited without becoming ready
<stdin>:2: insmod for hm2_spi failed, returned -1
atech@tinkerboard:~/linuxcnc-dev/src$ halrun
halcmd: loadrt hostmot2
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
halcmd: loadrt hm2_spi spidev_path=/dev/spidev2.0
probe 24000000
hm2_spi: rtapi_app_main: Permission denied (-13)
<stdin>:2: waitpid failed /home/atech/linuxcnc-dev/bin/rtapi_app hm2_spi
<stdin>:2: /home/atech/linuxcnc-dev/bin/rtapi_app exited without becoming ready
<stdin>:2: insmod for hm2_spi failed, returned -1
atech@tinkerboard:~/linuxcnc-dev/src$ halrun
halcmd: loadrt hostmot2
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
halcmd: loadrt hm2_spi spidev_path=/dev/spidev2.1
probe 24000000
hm2_spi: rtapi_app_main: Permission denied (-13)
<stdin>:2: waitpid failed /home/atech/linuxcnc-dev/bin/rtapi_app hm2_spi
<stdin>:2: /home/atech/linuxcnc-dev/bin/rtapi_app exited without becoming ready
<stdin>:2: insmod for hm2_spi failed, returned -1
Since the error shows permission denied, I also tried to do it at root.
However, I even can't use halrun at root.
2.
Since I found this (
forum.linuxcnc.org/27-driver-boards/30548-mesa-7i90-in-spi-mode
).
I also tried to install mesaflash, but it didn't work, either.
The error are as follows
Code:
atech@tinkerboard:~/mesaflash$ ./mesaflash --device 7I90 --spi --addr /dev/spidev0.0 --readhmid
open: Permission denied
No 7I90 board found
Does anyone know the reason of permission denied?
Is it because of I execute these commands without linking the mesa 7i90 card ?