On Wednesday 04 October 2017 14:17:16 Nicklas Karlsson wrote: > On Wed, 4 Oct 2017 14:05:31 -0400 > > Gene Heskett <ghesk...@shentel.net> wrote: > > Greetings; > > > > The hm2_spi.c is Jeff Eplers code, so perhaps Jeff might shed some > > light here. > > > > 1. Bertho's hm2_rpspi.c contains a rather extensive set of tests to > > make sure its actually running on an r-pi board. > > > > 2. This is preventing it from running on the rock64, which claims to > > have a pi compatible gpio in it. > > A warning might be better than an error? > Or better yet, get it to printout what it finds in the prelude to the case statement. Look at the code starting at line 1092 in hm2_rpspi.c, I fail to grok how that is being fed to the output of a printf that I am seeing on screen.
Note: Using POSIX non-realtime hm2: loading Mesa HostMot2 driver version 0.15 hm2_rpspi: Unsupported Platform, only Raspberry1/2/3 supported. hm2_rpspi: rtapi_app_main: Operation not permitted (-1) ./hm2-7i90-stepper.hal:34: waitpid failed /home/rock64/linuxcnc-dev/bin/rtapi_app hm2_rpspi ./hm2-7i90-stepper.hal:34: /home/rock64/linuxcnc-dev/bin/rtapi_app exited without becoming ready ./hm2-7i90-stepper.hal:34: insmod for hm2_rpspi failed, returned -1 I've a query out on the rock64 forum asking what all the "revision " code strippage is presenting to the case statements. So far no answer. For all I know, that prelude code is getting garbage on a rock64. In the meantime, I changed the .ini entry at the end of the file from hm2_rpspi to hm2_spi, and got this response on attempting to run linuxcnc: hm2: loading Mesa HostMot2 driver version 0.15 Unknown parameter `spiclk_rate=41666' ./hm2-7i90-stepper.hal:34: waitpid failed /home/rock64/linuxcnc-dev/bin/rtapi_app hm2_spi ./hm2-7i90-stepper.hal:34: /home/rock64/linuxcnc-dev/bin/rtapi_app exited without becoming ready ./hm2-7i90-stepper.hal:34: insmod for hm2_spi failed, returned -1 Is this something that can be fixed? Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users