de0 nano soc for MK

276 views
Skip to first unread message

Klemen Zhivko

unread,
Jan 27, 2017, 9:42:45 AM1/27/17
to Machinekit
Does anybody know where in Europe I can buy de0 nano soc (Cyclone 5 i think).
I would like to control 3 servos - with machinekit.
Are stepper and servo configuration posibble on machinekit (on de nano soc) ?

regards

Bas de Bruijn

unread,
Jan 27, 2017, 9:56:39 AM1/27/17
to Klemen Zhivko, machi...@googlegroups.com

> On 27 Jan 2017, at 15:42, Klemen Zhivko <klemenz...@gmail.com> wrote:
>
> Does anybody know where in Europe I can buy de0 nano soc (Cyclone 5 i think).

I’d try the terasic website, mouser or digikey.

> I would like to control 3 servos - with machinekit.
> Are stepper and servo configuration posibble on machinekit (on de nano soc) ?

yes they are. If you are going to use a mesa board (4 7i76 boards possible for example) then you should have an adapter board that Charles designed.

You can make custom configurations to suit your need, but then you will probably have to design and make your own hardware.

Bas

schoo...@btinternet.com

unread,
Jan 27, 2017, 11:49:07 AM1/27/17
to machi...@googlegroups.com
I used Digikey, they seem to have a web presence for most countries, but
everything tends to get shipped from the US anyway.
Arrived pretty fast.

Currently show having over 14K units available @ £67 for a single unit here
The price takes account of any customs charges etc for that country.

Klemen Zhivko

unread,
Jan 30, 2017, 7:29:22 AM1/30/17
to Machinekit
The guy from elca.de told me that:
is discontinued... ???

Is that true?

Any alternatives to this nice board possibly with long term support?

regards

Dne petek, 27. januar 2017 17.49.07 UTC+1 je oseba Schooner napisala:

Klemen Živkovič

unread,
Jan 30, 2017, 7:41:07 AM1/30/17
to Machinekit
Sorry guys - false alarm - this guy just sent me email: he has mix it up with with the SoCKit.

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to a topic in the Google Groups "Machinekit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/machinekit/XtlppKIxkBs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to machinekit+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Schooner

unread,
Feb 1, 2017, 4:31:06 AM2/1/17
to Machinekit
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&pkw=&pmt=&pdv=c

I inadvertently referred to another kit at £67, this correct one is £83 from Digikey, which appears to be the cheapest available,
with Mouser a few £ more

Klemen Zhivko

unread,
Feb 13, 2017, 4:25:13 PM2/13/17
to Machinekit
OK finaly got the board (the right one :) ) . I have burned latest ArcEye's image from:

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@mksocfpga:/lib/firmware/socfpga/dtbo$ machinekit ~/machinekit/configs/hm2-soc-stepper/MKSOCFPGA.ini
MACHINEKIT - 0.1
Machine configuration directory is '/home/machinekit/machinekit/configs/hm2-soc-stepper'
Machine configuration file is 'MKSOCFPGA.ini'
Starting Machinekit...
io started
halcmd loadusr io started
MKSOCFPGA.hal:34: insmod failed, returned -1:
Unknown parameter `config=firmware=socfpga/dtbo/DE0_Nano_SoC_DB25.7I76_7I76_7I76_7I76.dtbo num_encoders=2 num_stepgens=4'
See /var/log/linuxcnc.log for more information.
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


My configs are here:
and

What would "Unknown parameter" mean? What am I missing?


Dne sreda, 01. februar 2017 10.31.06 UTC+1 je oseba Schooner napisala:

Charles Steinkuehler

unread,
Feb 13, 2017, 4:51:52 PM2/13/17
to machi...@googlegroups.com
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 Machinekit (either built from
source or installed via packages), and make sure you have added the
required "--" separator to the hm2_soc_ol driver in your HAL file.
> What would "*Unknown parameter*" mean? What am I missing?
>
>
> Dne sreda, 01. februar 2017 10.31.06 UTC+1 je oseba Schooner napisala:
>
> 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&pkw=&pmt=&pdv=c
> <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&pkw=&pmt=&pdv=c>
>
> I inadvertently referred to another kit at £67, this correct one is £83 from
> Digikey, which appears to be the cheapest available,
> with Mouser a few £ more
>
> On Friday, 27 January 2017 14:42:45 UTC, Klemen Zhivko wrote:
>
> Does anybody know where in Europe I can buy de0 nano soc (Cyclone 5 i
> think).
> I would like to control 3 servos - with machinekit.
> Are stepper and servo configuration posibble on machinekit (on de nano
> soc) ?
>
> regards
>
> 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 machinekit+...@googlegroups.com
> <mailto:machinekit+...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/machinekit.
> For more options, visit https://groups.google.com/d/optout.
>


--
Charles Steinkuehler
cha...@steinkuehler.net

schoo...@btinternet.com

unread,
Feb 14, 2017, 4:12:30 AM2/14/17
to machi...@googlegroups.com
If you are using that image unaltered, it has not been updated with the multicore code.
If you have updated anything - you will be falling between 2 stools most likely

Does the sim at ~/machinekit/configs/hm2-soc-stepper/5i25-socfpga.ini run properly?

The 'unknown parameter' error is misleading.  It is the heading for an error code and often does not reflect properly what went on.

In a terminal run
DEBUG=5 realtime restart
halcmd loadrt hostmot2
halcmd newinst hm2_soc_ol hm2-socfpga0 config=firmware=socfpga/dtbo/DE0_Nano_SoC_DB25.7I76_7I76_7I76_7I76.dtbo num_encoders=2 num_stepgens=4

Then look at /var/log/linuxcnc.log and prior to the error message it will show a better idea of why it rejected the param.

The best thing to do would be, as Charles said, probably be to clone the current machinekit repo, having renamed ~/machinekit/machinekit to machinekit.old or similar

If you create a proper swapfile you can build with make -j2, which speeds things up a bit, otherwise the g++ compiler will eat all the memory and fail at other than just make.

Then run the amended hm2-soc-stepper sim and all should be well, as the changes Charles mentioned are incorporated
Use that as the base for the driver loading section of your config.

I am currently using a 8GB image, with a 512MB swap partition, when I clean that up, I will post it - but it is currently running a machine.



Dne sreda, 01. februar 2017 10.31.06 UTC+1 je oseba Schooner napisala:
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&pkw=&pmt=&pdv=c

I inadvertently referred to another kit at £67, this correct one is £83 from Digikey, which appears to be the cheapest available,
with Mouser a few £ more

On Friday, 27 January 2017 14:42:45 UTC, Klemen Zhivko wrote:
Does anybody know where in Europe I can buy de0 nano soc (Cyclone 5 i think).
I would like to control 3 servos - with machinekit.
Are stepper and servo configuration posibble on machinekit (on de nano soc) ?

regards
--
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 machinekit+...@googlegroups.com.

Klemen Zhivko

unread,
Feb 14, 2017, 7:34:03 AM2/14/17
to Machinekit
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=<no version symbol>
Feb 13 22:03:56 mksocfpga msgd:0: configured: sha=a158163
Feb 13 22:03:56 mksocfpga msgd:0: built:      Aug 24 2016 23:50:48 sha=a158163
Feb 13 22:03:56 mksocfpga msgd:0: register_stuff: actual hostname as announced by avahi='mksocfpga.local'
Feb 13 22:03:56 mksocfpga msgd:0: zeroconf: registering: 'Log service on mksocfpga.local pid 22806'
Feb 13 22:03:56 mksocfpga msgd:0: rtapi_app:22811:user accepting commands at ipc:///tmp/0.rtapi.a42c8c6b-4025-4f83-ba28-dad21114744a
Feb 13 22:03:56 mksocfpga rtapi:0: Invalid parameter `--'
Feb 13 22:03:56 mksocfpga msgd:0: hal_lib:22811:rt hm2: loading Mesa HostMot2 driver version 0.15
Feb 13 22:03:56 mksocfpga msgd:0: rtapi_app:22811:user Invalid parameter `--'
Feb 13 22:03:57 mksocfpga msgd:0: zeroconf: registered 'Log service on mksocfpga.local pid 22806' _machinekit._tcp 0 TXT "uuid=a42c8c6b-4025-4f83-ba28-dad21114744a" "instance=505a0ee8-f238-11e6-a65a-bad04a9c4ece" "service=log" "dsn=ipc:///tmp/0.log.a42c8c6b-4025-4f83-ba28-dad21114744a"
Feb 13 22:03:58 mksocfpga msgd:0: hal_lib:22811:rt hm2: unloading
Feb 13 22:04:01 mksocfpga rtapi:0: unload: 'trivkins' not loaded
Feb 13 22:04:01 mksocfpga rtapi:0: unload: 'tp' not loaded
Feb 13 22:04:01 mksocfpga rtapi:0: unload: 'motmod' not loaded
Feb 13 22:04:01 mksocfpga rtapi:0: unload: 'hostmot2' not loaded
Feb 13 22:04:01 mksocfpga msgd:0: rtapi_app exit detected - scheduled shutdown
Feb 13 22:04:03 mksocfpga msgd:0: msgd shutting down
Feb 13 22:04:03 mksocfpga msgd:0: zeroconf: unregistering 'Log service on mksocfpga.local pid 22806'
Feb 13 22:04:03 mksocfpga msgd:0: log buffer hwm: 0% (2 msgs, 151 bytes out of 524288)
Feb 13 22:04:03 mksocfpga msgd:0: normal shutdown - global segment detached
Feb 14 12:27:45 mksocfpga msgd:0: startup pid=23467 flavor=rt-preempt rtlevel=5 usrlevel=5 halsize=524288 shm=Posix gcc=4.9.2 version=unknown
Feb 14 12:27:45 mksocfpga msgd:0: ĂMQ=4.0.5 czmq=3.0.2 protobuf=2.6.1 libwebsockets=<no version symbol>
Feb 14 12:27:45 mksocfpga msgd:0: configured: sha=a158163
Feb 14 12:27:45 mksocfpga msgd:0: built:      Aug 24 2016 23:50:48 sha=a158163
Feb 14 12:27:49 mksocfpga rtapi:0: rtapi_app:0: ERROR: global segment magic not changing to ready: magic=0xeadbeef
Feb 14 12:27:49 mksocfpga rtapi:0: rtapi:0: FATAL - failed to attach to global segment
Feb 14 12:27:53 mksocfpga msgd:0: register_stuff: actual hostname as announced by avahi='mksocfpga.local'
Feb 14 12:27:53 mksocfpga msgd:0: zeroconf: registering: 'Log service on mksocfpga.local pid 23467'
Feb 14 12:27:54 mksocfpga msgd:0: zeroconf: registered 'Log service on mksocfpga.local pid 23467' _machinekit._tcp 0 TXT "uuid=a42c8c6b-4025-4f83-ba28-dad21114744a" "instance=fcf93502-f2b0-11e6-a65a-bad04a9c4ece" "service=log" "dsn=ipc:///tmp/0.log.a42c8c6b-4025-4f83-ba28-dad21114744a"


It seems I need to build mk from official source, but what threads I need to use on mksocfpga? posix, xenomai or preempt? 

Dne torek, 14. februar 2017 10.12.30 UTC+1 je oseba Schooner napisala:

Klemen Zhivko

unread,
Feb 14, 2017, 7:43:59 AM2/14/17
to Machinekit
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:

schoo...@btinternet.com

unread,
Feb 14, 2017, 7:52:13 AM2/14/17
to machi...@googlegroups.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 mksocfpga? posix, xenomai or preempt?

The image has a rt-preempt kernel, you just need to
./autogen.sh
./configure --with-platform-socfpga
make -j2 (assuming you have a swapfile or swap partition)

I have just brought mine up from the workshop, cloned the repo, built
and run the sim
so it works fine

Klemen Zhivko

unread,
Feb 14, 2017, 8:52:38 AM2/14/17
to Machinekit
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/swapfile bs=3M count=256
sudo chmod 0600 /var/cache/swap/swapfile
sudo mkswap /var/cache/swap/swapfile
sudo swapon /var/cache/swap/swapfile

And restarted build. I hope everything will be OK this time.

Dne torek, 14. februar 2017 13.52.13 UTC+1 je oseba Schooner napisala:

schoo...@btinternet.com

unread,
Feb 14, 2017, 9:12:52 AM2/14/17
to machi...@googlegroups.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 with:
sudo mkdir -p /var/cache/swap/
sudo swapoff /var/cache/swap/swapfile
sudo dd if=/dev/zero of=/var/cache/swap/swapfile bs=3M count=256
sudo chmod 0600 /var/cache/swap/swapfile
sudo mkswap /var/cache/swap/swapfile
sudo swapon /var/cache/swap/swapfile

And restarted build. I hope everything will be OK this time.


You may still find that the build halts because of lack of memory.

I found that only an actual swap partition of at least 512MB worked reliably using make -j2

Just run with make if that happens, take longer to mess around to try and fix.

I have written my 8GB image to image, now going to write it back to SD, reduce to 4GB but keep the
swap partition, then I will use that for the new image.
It was only ever that size to allow me to have multiple RIPs for testing etc


Charles Steinkuehler

unread,
Feb 14, 2017, 9:29:07 AM2/14/17
to machi...@googlegroups.com
On 2/14/2017 8:12 AM, schoo...@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 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
cha...@steinkuehler.net

Klemen Zhivko

unread,
Feb 14, 2017, 11:50:15 AM2/14/17
to Machinekit
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:

Klemen Zhivko

unread,
Feb 14, 2017, 11:51:08 AM2/14/17
to Machinekit
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:

Bas de Bruijn

unread,
Feb 14, 2017, 11:57:53 AM2/14/17
to Klemen Zhivko, Machinekit


> On 14 Feb 2017, at 17:51, Klemen Zhivko <klemenz...@gmail.com> 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?

Charles Steinkuehler

unread,
Feb 14, 2017, 11:58:36 AM2/14/17
to machi...@googlegroups.com
Did you run:

sudo make setuid

...after "make -j2" completed?
> --
> 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 machinekit+...@googlegroups.com
> <mailto:machinekit+...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/machinekit.
> For more options, visit https://groups.google.com/d/optout.
>


--
Charles Steinkuehler
cha...@steinkuehler.net

Klemen Živkovič

unread,
Feb 14, 2017, 12:00:03 PM2/14/17
to Charles Steinkuehler, Machinekit


> Visit this group at https://groups.google.com/group/machinekit.
> For more options, visit https://groups.google.com/d/optout.
>


--
Charles Steinkuehler
cha...@steinkuehler.net
You received this message because you are subscribed to a topic in the Google Groups "Machinekit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/machinekit/XtlppKIxkBs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to machinekit+unsubscribe@googlegroups.com.

schoo...@btinternet.com

unread,
Feb 14, 2017, 12:00:55 PM2/14/17
to machi...@googlegroups.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

You don't need root for anything
--

schoo...@btinternet.com

unread,
Feb 14, 2017, 12:05:32 PM2/14/17
to machi...@googlegroups.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 image
This shows that the config string was passed OK to the hm2_soc_ol
driver, but there was a problem
either with the board or the .rbf file

I don't know how good the error reporting is with fpga

First thing to check is that the .rbf file exists and is not corrupted

Klemen Živkovič

unread,
Feb 14, 2017, 12:09:37 PM2/14/17
to schoo...@btinternet.com, Machinekit
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-stepper'
Machine configuration file is '5i25-socfpga.ini'
Starting Machinekit...
io started
<commandline>:0: Component 'iocontrol' ready
<commandline>:0: Program 'io' started
halcmd loadusr io started
hm2-soc-ol-stepper-5i25.hal:29: Realtime module 'trivkins' loaded
hm2-soc-ol-stepper-5i25.hal:33: Realtime module 'tp' loaded
hm2-soc-ol-stepper-5i25.hal:37: Realtime module 'hostmot2' loaded
hm2-soc-ol-stepper-5i25.hal:40: Realtime module 'hm2_soc_ol' loaded
hm2-soc-ol-stepper-5i25.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

There are rbf files:

machinekit@mksocfpga:~/git/machinekitOff/src$ ls /lib/firmware/socfpga -R -all
/lib/firmware/socfpga:
total 5036
drwxr-xr-x  3 root root    4096 Nov 12 16:33 .
drwxr-xr-x 17 root root    4096 Nov 12 16:31 ..
-rw-r--r--  1 root root 1790908 Oct 28 21:21 DE0_Nano_SoC_DB25.7I76_7I76_7I76_7I76.rbf
-rw-r--r--  1 root root 1709760 Oct 28 21:21 DE0_Nano_SoC_DB25.7I76_7I85S_GPIO_GPIO.rbf
-rw-r--r--  1 root root 1634572 Oct 28 21:21 DE0_Nano_SoC_DB25.7I77_7I76_GPIO_GPIO.rbf
drwxr-xr-x  2 root root    4096 Nov 12 16:33 dtbo

/lib/firmware/socfpga/dtbo:
total 40
drwxr-xr-x 2 root root 4096 Nov 12 16:33 .
drwxr-xr-x 3 root root 4096 Nov 12 16:33 ..
-rw-r--r-- 1 root root 1001 Oct 28 21:21 DE0_Nano_SoC_DB25.7I76_7I76_7I76_7I76.dtbo
-rw-r--r-- 1 root root 1046 Oct 28 21:21 DE0_Nano_SoC_DB25.7I76_7I76_7I76_7I76.dts
-rw-r--r-- 1 root root 1001 Oct 28 21:21 DE0_Nano_SoC_DB25.7I76_7I85S_GPIO_GPIO.dtbo
-rw-r--r-- 1 root root 1047 Oct 28 21:21 DE0_Nano_SoC_DB25.7I76_7I85S_GPIO_GPIO.dts
-rw-r--r-- 1 root root 1001 Oct 28 21:21 DE0_Nano_SoC_DB25.7I77_7I76_GPIO_GPIO.dtbo
-rw-r--r-- 1 root root 1046 Oct 28 21:21 DE0_Nano_SoC_DB25.7I77_7I76_GPIO_GPIO.dts
-rw-r--r-- 1 root root  940 Oct 28 21:21 Makefile
-rw-r--r-- 1 root root 1007 Oct 28 21:21 template.dts

BUT these might come from ArcEye's image and not from build I just make. I am not sure who or how this rbf files could be (re)created...



--- You received this message because you are subscribed to a topic in the Google Groups "Machinekit" group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/machinekit/XtlppKIxkBs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to machinekit+unsubscribe@googlegroups.com.

schoo...@btinternet.com

unread,
Feb 14, 2017, 12:25:20 PM2/14/17
to machi...@googlegroups.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
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 machinekit+...@googlegroups.com.

schoo...@btinternet.com

unread,
Feb 14, 2017, 12:31:46 PM2/14/17
to machi...@googlegroups.com

On 14/02/17 17:25, schoo...@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 and new, it just isn't worth messing with

Klemen Zhivko

unread,
Feb 14, 2017, 12:32:08 PM2/14/17
to Machinekit
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 packages you require, 
but do NOT apt-get upgrade if you are using this image, because there is a later one, and upgrading will overwrite its components and I could not get that one to work.
"

??


Dne torek, 14. februar 2017 18.25.20 UTC+1 je oseba Schooner napisala:
To unsubscribe from this group and all its topics, send an email to machinekit+...@googlegroups.com.

schooner30@btinternet

unread,
Feb 14, 2017, 1:29:00 PM2/14/17
to machi...@googlegroups.com

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

If you start 'updating' or doing anything else before establishing it runs, you are on your own.



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 packages you require, 
but do NOT apt-get upgrade if you are using this image, because there is a later one, and upgrading will overwrite its components and I could not get that one to work.
"

??


That is taken from and even older blog entry and relate to the problem that was solved some time back.

Klemen Zhivko

unread,
Feb 14, 2017, 4:15:43 PM2/14/17
to Machinekit
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.ini'
Starting Machinekit...
io started
halcmd loadusr io started
hm2-soc-ol-stepper-5i25.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

I have a feeling that something  on mksocfpga itself prevents fpga firmware to be written. Can you check 6 bit switch SW10 on your board? I moved all switches to ON. Maybe this is wrong?

Regards

Dne torek, 14. februar 2017 19.29.00 UTC+1 je oseba Schooner napisala:

Charles Steinkuehler

unread,
Feb 14, 2017, 4:48:50 PM2/14/17
to machi...@googlegroups.com
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, switches 1,3,5,6 = ON, as detailed in
MHaberler's gist instructions:

https://gist.github.com/mhaberler/89a813dc70688e35d8848e8e467a1337

--
Charles Steinkuehler
cha...@steinkuehler.net

Klemen Zhivko

unread,
Feb 14, 2017, 4:55:15 PM2/14/17
to Machinekit
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:
Reply all
Reply to author
Forward
0 new messages