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:
>
>
> 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 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:
> https://github.com/zhivko/machinekit/blob/master/myini/MKSOCFPGA.ini
> and
> https://github.com/zhivko/machinekit/blob/master/myini/MKSOCFPGA.hal
>
> What would "*Unknown parameter*" mean? What am I missing?
>
>
> 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 [email protected] <javascript:>.
> Visit this group at https://groups.google.com/group/machinekit.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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