Are you handy with Python?

That's almost certainly a problem with the ADC entries in /sysfs,
which I believe have moved in the 4.x kernels vs. 3.8.13.  The current
script is expecting them to be in:

/sys/devices/ocp.*/44e0d000.tscadc/tiadc/iio:device0/

https://github.com/machinekit/machinekit/blob/master/src/hal/user_comps/hal_temp_bbb.py#L154

On 7/28/2017 2:59 PM, Daren Schwenke wrote:
> Ok.  Pointed it directly at your file.  Further:
> machinekit@beaglebone:~/machinekit/configs/ARM/BeagleBone/Fabrikator-Mini-CRAMPS$
>  ./run.py
> loading cramps2_cape.bbio... done
> starting configserver... done
> starting linuxcnc... MACHINEKIT - 0.1
> Machine configuration directory is 
> '/home/machinekit/machinekit/configs/ARM/BeagleBone/Fabrikator-Mini-CRAMPS'
> Machine configuration file is 'fabrikator-mini.ini'
> Starting Machinekit...
> done
> io started
> halcmd loadusr io started
> Traceback (most recent call last):
>    File "/home/machinekit/machinekit/bin/hal_temp_bbb", line 198, in <module>
>      checkAdcInput(pin)
>    File "/home/machinekit/machinekit/bin/hal_temp_bbb", line 156, in 
> checkAdcInput
>      pin.filename = tempName[0]
> IndexError: list index out of range
> Traceback (most recent call last):
>    File "fabrikator_mini.py", line 20, in <module>
>      hardware.init_hardware()
>    File 
> "/home/machinekit/machinekit/configs/ARM/BeagleBone/Fabrikator-Mini-CRAMPS/cramps.py",
>  
> line 41, in init_hardware
>      wait_name='temp')
>    File "machinekit/hal_loadusr.pyx", line 38, in machinekit.hal.loadusr 
> (hal/cython/machinekit/hal.c:26061)
> RuntimeError: hal_temp_bbb exited with return code 1
> Shutting down and cleaning up Machinekit...
> Cleanup done
> Machinekit terminated with an error.  You can find more information in the 
> log:
>      /home/machinekit/linuxcnc_debug.txt
> and
>      /home/machinekit/linuxcnc_print.txt
> as well as in the output of the shell command 'dmesg' and in the terminal
> stopping configserver... done
> machinekit@beaglebone:~/machinekit/configs/ARM/BeagleBone/Fabrikator-Mini-CRAMPS$
> 
> On Friday, July 28, 2017 at 3:40:16 PM UTC-4, Charles Steinkuehler wrote:
> 
>     On 7/28/2017 1:44 PM, Daren Schwenke wrote:
>      >
>      > machinekit@beaglebone:~/Arcus-3D-M2$ ./run.py
>      > loading cramps_cape.bbio... done
>      > starting configserver... done
>      > starting linuxcnc... MACHINEKIT - 0.1
>      > Machine configuration directory is '/home/machinekit/Arcus-3D-M2'
>      > Machine configuration file is 'Arcus-3D-M2.ini'
>      > Starting Machinekit...
>      > done
>      > io started
>      > halcmd loadusr io started
>      > Arcus-3D-M2.hal:31: insmod failed, returned -1:
>      > rtapi_app_main(hal_pru_generic): -1 Operation not permitted
> 
>     This is yet another case of "not very helpful error messages".
> 
>     I poked around on your system and the problem is you didn't build the
>     Xeonomai configuration as well as the preemprt-rt, so you don't have
>     the PRU binary file in your rtlib directory.  So the operation you are
>     not permitted to do is read from a non-existing file!
> 
>     I installed the machinekit-xenomai package (it will happily co-exist
>     with a run-in-place source build) and was able to load the
>     hal_pru_generic driver.
> 
>     Change the "prucode=..." part of the HAL file you want to use so it
>     points to the binary file installed as part of the package:
> 
>        prucode=/usr/lib/linuxcnc/xenomai/pru_generic.bin
> 
>     ...and you should get a bit farther.
> 
>     -- 
>     Charles Steinkuehler
>     [email protected] <javascript:>
> 
> -- 
> website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
> https://github.com/machinekit
> ---
> You received this message because you are subscribed to the Google Groups 
> "Machinekit" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email 
> to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/machinekit.
> For more options, visit https://groups.google.com/d/optout.
> 


-- 
Charles Steinkuehler
[email protected]

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to