Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread Klemen Zhivko
YES - that did it - thank you all guys! You ALL are just great! Dne torek, 14. februar 2017 22.48.50 UTC+1 je oseba Charles Steinkuehler napisala: > > On 2/14/2017 3:15 PM, Klemen Zhivko wrote: > > > > I have a feeling that something on mksocfpga itself prevents fpga > firmware to > > be wr

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread Charles Steinkuehler
On 2/14/2017 3:15 PM, Klemen Zhivko wrote: > > I have a feeling that something on mksocfpga itself prevents fpga firmware > to > be written. That is quite possible. > Can you check 6 bit switch SW10 on your board? I moved all switches > to ON. Maybe this is wrong? I have switchs 2,4 = OFF,

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread Klemen Zhivko
OK I downloaded image, burned sdcard and error is same: machinekit@mksocfpga:~/machinekit$ machinekit ./configs/hm2-soc-stepper/5i25-socfpga.ini MACHINEKIT - 0.1 Machine configuration directory is '/home/machinekit/machinekit/./configs/hm2-soc-stepper' Machine configuration file is '5i25-socfpga

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread schooner30@btinternet
On 14/02/17 17:32, Klemen Zhivko wrote: The image you are pushing - this is pre multicore image right? If yes - why not have latest multicore with corrrect rfb-s (if they exist) ? No it is not, it was created today, just check the git history Just download the image, write to SD and run it

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread schoone...@btinternet.com
On 14/02/17 17:25, schoone...@btinternet.com wrote: I have just pushed a new image to the server. Give me 5 minutes to move it to where it should be and I will give you a link to download from I suspect you are mixing old

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread Klemen Zhivko
The image you are pushing - this is pre multicore image right? If yes - why not have latest multicore with corrrect rfb-s (if they exist) ? Is this shomewhere available to download? Maybe I am hitting something that ArcEyed described as: " Do a *sudo apt-get update* and install any extra packag

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread schoone...@btinternet.com
I have just pushed a new image to the server. Give me 5 minutes to move it to where it should be and I will give you a link to download from I suspect you are mixing old and new, it just isn't worth messing with On 14/02/17 17:09, Klemen Živkovič

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread Klemen Živkovič
With SIM it's same: machinekit@mksocfpga:~/git/machinekitOff/src$ DEBUG=5 machinekit@mksocfpga:~/git/machinekitOff/src$ machinekit ~/git/machinekitOff/configs/hm2-soc-stepper/5i25-socfpga.ini MACHINEKIT - 0.1 Machine configuration directory is '/home/machinekit/git/machinekitOff/configs/hm2-soc-st

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread Klemen Živkovič
Yes - it's part of documentation :) (http://www.machinekit.io/docs/developing/machinekit-developing/) On Tue, Feb 14, 2017 at 5:58 PM, Charles Steinkuehler < char...@steinkuehler.net> wrote: > Did you run: > > sudo make setuid > > ...after "make -j2" completed? > > On 2/14/2017 10:51 AM, Klemen

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread schoone...@btinternet.com
On 14/02/17 16:50, Klemen Zhivko wrote: 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 ima

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread schoone...@btinternet.com
Run the sim first If that works, it is your configuration If it doesn't, there is something screwy with your image, works fine here I should have a working image before too long to post for download, just compressing the hell out of it at present

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread Charles Steinkuehler
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 compl

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread Bas de Bruijn
> On 14 Feb 2017, at 17:51, Klemen Zhivko wrote: > > Should I run machinekit with sudo?? As I remember this is somehow not good > practice? No you shouldnt. Did you run sudo make setuid after you compiled? -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https:/

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread Klemen Zhivko
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:~$

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread Klemen Zhivko
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 M

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread Charles Steinkuehler
On 2/14/2017 8:12 AM, schoone...@btinternet.com 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

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread schoone...@btinternet.com
On 14/02/17 13:52, Klemen Zhivko wrote: Yes... my build crashed because of lack of swap... No, I haven't try to run SIM .. I took "build from source" granted so I started to build from source... I created swap now wit

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread Klemen Zhivko
Yes... my build crashed because of lack of swap... No, I haven't try to run SIM .. I took "build from source" granted so I started to build from source... I created swap now with: sudo mkdir -p /var/cache/swap/ sudo swapoff /var/cache/swap/swapfile sudo dd if=/dev/zero of=/var/cache/swap/swapfil

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread schoone...@btinternet.com
On 14/02/17 12:34, Klemen Zhivko wrote: rtapi_app:22811:user Invalid parameter `--' That is because as I said, the image is pre multicore merge Did you try running the sim that is with the image? > It seems I need to build mk from official source, but what threads I need to use on mksocfp

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread Klemen Zhivko
I guess mksocfpga can be treaded like "for PC platforms" so i used preempt and posix, without xenomai. I hope its OK... its compiling now... :) Dne torek, 14. februar 2017 13.34.03 UTC+1 je oseba Klemen Zhivko napisala: > > With Arceye's image and commands you posted I get in linuxcnc.log: > > Fe

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread Klemen Zhivko
With Arceye's image and commands you posted I get in linuxcnc.log: Feb 13 22:03:56 mksocfpga msgd:0: startup pid=22806 flavor=rt-preempt rtlevel=1 usrlevel=1 halsize=524288 shm=Posix gcc=4.9.2 version=unknown Feb 13 22:03:56 mksocfpga msgd:0: ĂMQ=4.0.5 czmq=3.0.2 protobuf=2.6.1 libwebsockets= Fe

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-14 Thread schoone...@btinternet.com
On 13/02/17 21:25, Klemen Zhivko wrote: OK finaly got the board (the right one :) ) . I have burned latest ArcEye's image from: http://blog.machinekit.io/2016/11/de0-nano-soc-update-on-sd-card-images.html to the SD card, I ha

Re: [Machinekit] Re: de0 nano soc for MK

2017-02-13 Thread Charles Steinkuehler
You are probably running into a change that is required after the recent multicore merge. See the multicore post from about a week ago for details (folks using the FPGA+SoC driver are one of the few instances where the changes were not transparent). Make sure you have the latest version of Machin

[Machinekit] Re: de0 nano soc for MK

2017-02-13 Thread Klemen Zhivko
OK finaly got the board (the right one :) ) . I have burned latest ArcEye's image from: http://blog.machinekit.io/2016/11/de0-nano-soc-update-on-sd-card-images.html to the SD card, I haven't troubled to extend rootfs partition. This is what I get when starting my adapted ini and hal: machinekit@

[Machinekit] Re: de0 nano soc for MK

2017-02-01 Thread Schooner
Just to clarify, because there are a plethora of different kits and boards with similar names etc. The DE0-NANO-Soc we used is the PO286-ND http://www.digikey.co.uk/product-detail/en/P0286/P0286-ND/5222193?WT.mc_id=IQ_7628_G_pla5222193&wt.srch=1&wt.medium=cpc&WT.srch=1&mkwid=s&pcrid=106285396226&