Did you run: sudo make setuid
...after "make -j2" completed? On 2/14/2017 10:51 AM, Klemen Zhivko wrote: > Should I run machinekit with sudo?? As I remember this is somehow not good > practice? > > Dne torek, 14. februar 2017 17.50.15 UTC+1 je oseba Klemen Zhivko napisala: > > OK it completed with -j2 without problem - there is wnother error now > present in command line I get: > > machinekit@mksocfpga:~$ machinekit ~/myconfig/mksocfpga.ini > MACHINEKIT - 0.1 > Machine configuration directory is '/home/machinekit/myconfig' > Machine configuration file is 'mksocfpga.ini' > Starting Machinekit... > io started > halcmd loadusr io started > mksocfpga.hal:40: rc=-1: hal_call_usrfunct(newinst,-- > config="firmware=socfpga/dtbo/DE0_Nano_SoC_DB25.7I76_7I85S_GPIO_GPIO.dtbo > num_stepgens=4 num_encoders=1 num_mencoders=4") failed: -1 - Operation not > permitted > 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 > machinekit@mksocfpga:~$ DEBUG=5 > machinekit@mksocfpga:~$ export DEBUG=5 > machinekit@mksocfpga:~$ machinekit ~/myconfig/mksocfpga.ini > MACHINEKIT - 0.1 > Machine configuration directory is '/home/machinekit/myconfig' > Machine configuration file is 'mksocfpga.ini' > Starting Machinekit... > io started > <commandline>:0: Component 'iocontrol' ready > <commandline>:0: Program 'io' started > halcmd loadusr io started > mksocfpga.hal:29: Realtime module 'trivkins' loaded > mksocfpga.hal:33: Realtime module 'tp' loaded > mksocfpga.hal:37: Realtime module 'hostmot2' loaded > mksocfpga.hal:40: Realtime module 'hm2_soc_ol' loaded > mksocfpga.hal:40: rc=-1: hal_call_usrfunct(newinst,-- > config="firmware=socfpga/dtbo/DE0_Nano_SoC_DB25.7I76_7I85S_GPIO_GPIO.dtbo > num_stepgens=4 num_encoders=1 num_mencoders=4") failed: -1 - Operation not > permitted > Shutting down and cleaning up Machinekit... > <commandline>:0: Realtime threads stopped > <commandline>:0: Realtime module 'hm2_soc_ol' unloaded > <commandline>:0: Realtime module 'hostmot2' unloaded > <commandline>:0: Realtime module 'tp' unloaded > <commandline>:0: Realtime module 'trivkins' unloaded > <commandline>:0: Realtime threads stopped > 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 > > In dmesg Iget: > > [ 4054.891575] fpga_manager fpga0: writing > socfpga/DE0_Nano_SoC_DB25.7I76_7I85S_GPIO_GPIO.rbf to Altera SOCFPGA FPGA > Manager > [ 4055.106816] fpga_manager fpga0: Error after writing image data to FPGA > [ 4055.113936] failed to load fpga image > > > > > > Dne torek, 14. februar 2017 15.29.07 UTC+1 je oseba Charles Steinkuehler > napisala: > > On 2/14/2017 8:12 AM, [email protected] wrote: > > > > I found that only an actual swap partition of at least 512MB worked > reliably > > using *make -j2* > > I usually go even farther and run: > > make -j1 > > ...unless I'm building on something with more memory. It is also > pretty easy to cross-build if you have a decent x86 machine that runs > Docker, but you'd have to copy over the build directory (the kernel > doesn't have dnotify enabled so won't support NFS). > > -- > 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] > <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.
