Discussion:
[Machinekit] using hal_spi module
mngr
2018-09-21 14:31:32 UTC
Permalink
Hi everyone,

I am sorry to post another noob question here, but,

I am trying to use the hal module hal_spi, shortly I tried with
loadrt hal_spi
in the hal file, but
CRAMPS.hal:15: insmod failed, returned -1:
rtapi_rpc(): reply timeout
See /var/log/linuxcnc.log for more information.

in the log
Sep 21 14:22:09 realtimepi msgd:0: startup pid=5979 flavor=posix rtlevel=1
usrlevel=1 halsize=524288 shm=Posix cc=gcc 6.3.0 20170516 version=unknown
Sep 21 14:22:09 realtimepi msgd:0: ØMQ=4.2.1 czmq=4.0.2 protobuf=3.0.0
atomics=gcc intrinsics libwebsockets=2.0.3
Sep 21 14:22:09 realtimepi msgd:0: configured: sha=b87920504
Sep 21 14:22:09 realtimepi msgd:0: built: Sep 18 2018 16:43:17 sha=
b87920504
Sep 21 14:22:09 realtimepi msgd:0: register_stuff: actual hostname as
announced by avahi='realtimepi.local'
Sep 21 14:22:09 realtimepi msgd:0: zeroconf: registering: 'Log service on
realtimepi.local pid 5979'
Sep 21 14:22:10 realtimepi rtapi:0: rtapi_msgd went away, exiting
Sep 21 14:22:10 realtimepi msgd:0: zeroconf: registered 'Log service on
realtimepi.local pid 5979' _machinekit._tcp 0 TXT
"uuid=a42c8c6b-4025-4f83-ba28-dad21114744a"
"instance=b9c730a2-bda9-11e8-bcc3-b827eb4bcf42" "service=log"
"dsn=ipc:///tmp/0.log.a42c8c6b-4025-4f83-ba28-dad21114744a"

I tried launching machinekit without it and adding it later using halcmd
loadrt hal_spi, but with similar results


should I give it some arguments? I don't know how to understand how to
write them from the code...
Maybe the module is old and has lost some compatibility?

right now i am executing from
Linux realtimepi 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST 2018 armv7l
GNU/Linux
Debian Stretch, Machinekit compiled from source
maybe should I explicit the path to hal_spi?

mngr
--
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.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
s***@gmail.com
2018-09-21 14:44:46 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
You are not running with DEBUG=5<br>
<br>
Do so and your linuxcnc.log will have info as to what failed.<br>
<br>
Also as I said in my last reply, it does not look as though you have
a realtime kernel, irrespective of what you have named your pi.<br>
<br>
<div class="moz-cite-prefix">On 21/09/18 15:31, mngr wrote:<br>
</div>
<blockquote
cite="mid:2d6081c1-3d7d-4042-b5db-***@googlegroups.com"
type="cite">
<div dir="ltr">
<div>Hi everyone,</div>
<div><br>
</div>
<div>I am sorry to post another noob question here, but,</div>
<div><br>
</div>
<div>I am trying to use the hal module hal_spi, shortly I tried
with <br>
</div>
<div>
<div style="background-color: rgb(250, 250, 250);
border-color: rgb(187, 187, 187); border-style: solid;
border-width: 1px; overflow-wrap: break-word;"
class="prettyprint"><code class="prettyprint">
<div class="subprettyprint"><span style="color: #000;"
class="styled-by-prettify">loadrt hal_spi<br>
</span></div>
</code></div>
in the hal file, but </div>
<div>
<div style="background-color: rgb(250, 250, 250);
border-color: rgb(187, 187, 187); border-style: solid;
border-width: 1px; overflow-wrap: break-word;"
class="prettyprint"><code class="prettyprint">
<div class="subprettyprint"><span style="color: #000;"
class="styled-by-prettify">CRAMPS</span><span
style="color: #660;" class="styled-by-prettify">.</span><span
style="color: #000;" class="styled-by-prettify">hal</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">15</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #000;" class="styled-by-prettify">
insmod failed</span><span style="color: #660;"
class="styled-by-prettify">,</span><span style="color:
#000;" class="styled-by-prettify"> returned </span><span
style="color: #660;" class="styled-by-prettify">-</span><span
style="color: #066;" class="styled-by-prettify">1</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #000;" class="styled-by-prettify"><br>
rtapi_rpc</span><span style="color: #660;"
class="styled-by-prettify">():</span><span
style="color: #000;" class="styled-by-prettify"> reply
timeout<br>
</span><span style="color: #606;"
class="styled-by-prettify">See</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #660;" class="styled-by-prettify">/</span><span
style="color: #008;" class="styled-by-prettify">var</span><span
style="color: #660;" class="styled-by-prettify">/</span><span
style="color: #000;" class="styled-by-prettify">log</span><span
style="color: #660;" class="styled-by-prettify">/</span><span
style="color: #000;" class="styled-by-prettify">linuxcnc</span><span
style="color: #660;" class="styled-by-prettify">.</span><span
style="color: #000;" class="styled-by-prettify">log </span><span
style="color: #008;" class="styled-by-prettify">for</span><span
style="color: #000;" class="styled-by-prettify"> more
information</span><span style="color: #660;"
class="styled-by-prettify">.</span><span style="color:
#000;" class="styled-by-prettify"><br>
</span></div>
</code></div>
<br>
in the log</div>
<div>
<div style="background-color: rgb(250, 250, 250);
border-color: rgb(187, 187, 187); border-style: solid;
border-width: 1px; overflow-wrap: break-word;"
class="prettyprint"><code class="prettyprint">
<div class="subprettyprint"><span style="color: #606;"
class="styled-by-prettify">Sep</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">21</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">14</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">22</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">09</span><span
style="color: #000;" class="styled-by-prettify">
realtimepi msgd</span><span style="color: #660;"
class="styled-by-prettify">:</span><span style="color:
#066;" class="styled-by-prettify">0</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #000;" class="styled-by-prettify">
startup pid</span><span style="color: #660;"
class="styled-by-prettify">=</span><span style="color:
#066;" class="styled-by-prettify">5979</span><span
style="color: #000;" class="styled-by-prettify">
flavor</span><span style="color: #660;"
class="styled-by-prettify">=</span><span style="color:
#000;" class="styled-by-prettify">posix rtlevel</span><span
style="color: #660;" class="styled-by-prettify">=</span><span
style="color: #066;" class="styled-by-prettify">1</span><span
style="color: #000;" class="styled-by-prettify">
usrlevel</span><span style="color: #660;"
class="styled-by-prettify">=</span><span style="color:
#066;" class="styled-by-prettify">1</span><span
style="color: #000;" class="styled-by-prettify">
halsize</span><span style="color: #660;"
class="styled-by-prettify">=</span><span style="color:
#066;" class="styled-by-prettify">524288</span><span
style="color: #000;" class="styled-by-prettify"> shm</span><span
style="color: #660;" class="styled-by-prettify">=</span><span
style="color: #606;" class="styled-by-prettify">Posix</span><span
style="color: #000;" class="styled-by-prettify"> cc</span><span
style="color: #660;" class="styled-by-prettify">=</span><span
style="color: #000;" class="styled-by-prettify">gcc </span><span
style="color: #066;" class="styled-by-prettify">6.3</span><span
style="color: #660;" class="styled-by-prettify">.</span><span
style="color: #066;" class="styled-by-prettify">0</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">20170516</span><span
style="color: #000;" class="styled-by-prettify">
 version</span><span style="color: #660;"
class="styled-by-prettify">=</span><span style="color:
#000;" class="styled-by-prettify">unknown<br>
</span><span style="color: #606;"
class="styled-by-prettify">Sep</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">21</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">14</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">22</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">09</span><span
style="color: #000;" class="styled-by-prettify">
realtimepi msgd</span><span style="color: #660;"
class="styled-by-prettify">:</span><span style="color:
#066;" class="styled-by-prettify">0</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #660;" class="styled-by-prettify">Ø</span><span
style="color: #000;" class="styled-by-prettify">MQ</span><span
style="color: #660;" class="styled-by-prettify">=</span><span
style="color: #066;" class="styled-by-prettify">4.2</span><span
style="color: #660;" class="styled-by-prettify">.</span><span
style="color: #066;" class="styled-by-prettify">1</span><span
style="color: #000;" class="styled-by-prettify"> czmq</span><span
style="color: #660;" class="styled-by-prettify">=</span><span
style="color: #066;" class="styled-by-prettify">4.0</span><span
style="color: #660;" class="styled-by-prettify">.</span><span
style="color: #066;" class="styled-by-prettify">2</span><span
style="color: #000;" class="styled-by-prettify">
protobuf</span><span style="color: #660;"
class="styled-by-prettify">=</span><span style="color:
#066;" class="styled-by-prettify">3.0</span><span
style="color: #660;" class="styled-by-prettify">.</span><span
style="color: #066;" class="styled-by-prettify">0</span><span
style="color: #000;" class="styled-by-prettify">
atomics</span><span style="color: #660;"
class="styled-by-prettify">=</span><span style="color:
#000;" class="styled-by-prettify">gcc intrinsics  
 libwebsockets</span><span style="color: #660;"
class="styled-by-prettify">=</span><span style="color:
#066;" class="styled-by-prettify">2.0</span><span
style="color: #660;" class="styled-by-prettify">.</span><span
style="color: #066;" class="styled-by-prettify">3</span><span
style="color: #000;" class="styled-by-prettify"><br>
</span><span style="color: #606;"
class="styled-by-prettify">Sep</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">21</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">14</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">22</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">09</span><span
style="color: #000;" class="styled-by-prettify">
realtimepi msgd</span><span style="color: #660;"
class="styled-by-prettify">:</span><span style="color:
#066;" class="styled-by-prettify">0</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #000;" class="styled-by-prettify">
configured</span><span style="color: #660;"
class="styled-by-prettify">:</span><span style="color:
#000;" class="styled-by-prettify"> sha</span><span
style="color: #660;" class="styled-by-prettify">=</span><span
style="color: #000;" class="styled-by-prettify">b87920504<br>
</span><span style="color: #606;"
class="styled-by-prettify">Sep</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">21</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">14</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">22</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">09</span><span
style="color: #000;" class="styled-by-prettify">
realtimepi msgd</span><span style="color: #660;"
class="styled-by-prettify">:</span><span style="color:
#066;" class="styled-by-prettify">0</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #000;" class="styled-by-prettify"> built</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #000;" class="styled-by-prettify">      </span><span
style="color: #606;" class="styled-by-prettify">Sep</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">18</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">2018</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">16</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">43</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">17</span><span
style="color: #000;" class="styled-by-prettify"> sha</span><span
style="color: #660;" class="styled-by-prettify">=</span><span
style="color: #000;" class="styled-by-prettify">b87920504<br>
</span><span style="color: #606;"
class="styled-by-prettify">Sep</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">21</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">14</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">22</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">09</span><span
style="color: #000;" class="styled-by-prettify">
realtimepi msgd</span><span style="color: #660;"
class="styled-by-prettify">:</span><span style="color:
#066;" class="styled-by-prettify">0</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #000;" class="styled-by-prettify">
register_stuff</span><span style="color: #660;"
class="styled-by-prettify">:</span><span style="color:
#000;" class="styled-by-prettify"> actual hostname </span><span
style="color: #008;" class="styled-by-prettify">as</span><span
style="color: #000;" class="styled-by-prettify">
announced </span><span style="color: #008;"
class="styled-by-prettify">by</span><span
style="color: #000;" class="styled-by-prettify"> avahi</span><span
style="color: #660;" class="styled-by-prettify">=</span><span
style="color: #080;" class="styled-by-prettify">'realtimepi.local'</span><span
style="color: #000;" class="styled-by-prettify"><br>
</span><span style="color: #606;"
class="styled-by-prettify">Sep</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">21</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">14</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">22</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">09</span><span
style="color: #000;" class="styled-by-prettify">
realtimepi msgd</span><span style="color: #660;"
class="styled-by-prettify">:</span><span style="color:
#066;" class="styled-by-prettify">0</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #000;" class="styled-by-prettify">
zeroconf</span><span style="color: #660;"
class="styled-by-prettify">:</span><span style="color:
#000;" class="styled-by-prettify"> registering</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #080;" class="styled-by-prettify">'Log
service on realtimepi.local pid 5979'</span><span
style="color: #000;" class="styled-by-prettify"><br>
</span><span style="color: #606;"
class="styled-by-prettify">Sep</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">21</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">14</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">22</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">10</span><span
style="color: #000;" class="styled-by-prettify">
realtimepi rtapi</span><span style="color: #660;"
class="styled-by-prettify">:</span><span style="color:
#066;" class="styled-by-prettify">0</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #000;" class="styled-by-prettify">
rtapi_msgd went away</span><span style="color: #660;"
class="styled-by-prettify">,</span><span style="color:
#000;" class="styled-by-prettify"> exiting<br>
</span><span style="color: #606;"
class="styled-by-prettify">Sep</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">21</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">14</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">22</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">10</span><span
style="color: #000;" class="styled-by-prettify">
realtimepi msgd</span><span style="color: #660;"
class="styled-by-prettify">:</span><span style="color:
#066;" class="styled-by-prettify">0</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #000;" class="styled-by-prettify">
zeroconf</span><span style="color: #660;"
class="styled-by-prettify">:</span><span style="color:
#000;" class="styled-by-prettify"> registered </span><span
style="color: #080;" class="styled-by-prettify">'Log
service on realtimepi.local pid 5979'</span><span
style="color: #000;" class="styled-by-prettify">
_machinekit</span><span style="color: #660;"
class="styled-by-prettify">.</span><span style="color:
#000;" class="styled-by-prettify">_tcp </span><span
style="color: #066;" class="styled-by-prettify">0</span><span
style="color: #000;" class="styled-by-prettify"> TXT </span><span
style="color: #080;" class="styled-by-prettify">"uuid=a42c8c6b-4025-4f83-ba28-dad21114744a"</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #080;" class="styled-by-prettify">"instance=b9c730a2-bda9-11e8-bcc3-b827eb4bcf42"</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #080;" class="styled-by-prettify">"service=log"</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #080;" class="styled-by-prettify">"dsn=ipc:///tmp/0.log.a42c8c6b-4025-4f83-ba28-dad21114744a"</span><span
style="color: #000;" class="styled-by-prettify"><br>
</span></div>
</code></div>
<br>
I tried launching machinekit without it and adding it later
using halcmd loadrt hal_spi, but with similar results<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>should I give it some arguments? I don't know how to
understand how to write them from the code...</div>
<div>Maybe the module is old and has lost some compatibility?</div>
<div><br>
</div>
<div>right now i am executing from</div>
<div>
<div style="background-color: rgb(250, 250, 250);
border-color: rgb(187, 187, 187); border-style: solid;
border-width: 1px; overflow-wrap: break-word;"
class="prettyprint"><code class="prettyprint">
<div class="subprettyprint"><span style="color: #606;"
class="styled-by-prettify">Linux</span><span
style="color: #000;" class="styled-by-prettify">
realtimepi </span><span style="color: #066;"
class="styled-by-prettify">4.14</span><span
style="color: #660;" class="styled-by-prettify">.</span><span
style="color: #066;" class="styled-by-prettify">69</span><span
style="color: #660;" class="styled-by-prettify">-</span><span
style="color: #000;" class="styled-by-prettify">v7</span><span
style="color: #660;" class="styled-by-prettify">+</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #800;" class="styled-by-prettify">#1141
SMP Mon Sep 10 15:26:29 BST 2018 armv7l GNU/Linux</span><span
style="color: #000;" class="styled-by-prettify"><br>
</span></div>
</code></div>
Debian Stretch, Machinekit compiled from source<br>
</div>
<div>maybe should I explicit the path to hal_spi?</div>
<div><br>
</div>
<div>mngr<br>
</div>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true" href="http://blog.machinekit.io">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to the Google
Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails from it,
send an email to <a moz-do-not-send="true"
href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br>
</blockquote>
<br>
</body>
</html>

<p></p>

-- <br />
website: <a href="http://www.machinekit.io">http://www.machinekit.io</a> blog: <a href="http://blog.machinekit.io">http://blog.machinekit.io</a> github: <a href="https://github.com/machinekit">https://github.com/machinekit</a><br />
--- <br />
You received this message because you are subscribed to the Google Groups &quot;Machinekit&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br />
Visit this group at <a href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />
mngr
2018-09-23 10:07:59 UTC
Permalink
Post by s***@gmail.com
You are not running with DEBUG=5
I edited DEBUG = 5 in ini file(in EMC section), nothing changed, then I
exported DEBUG=5 in bash. what is the difference? what is the deBUG setting
in the ini file for?

Attached you can find the ini and the hal file, I edited the CRAMPS
configuration, basically removing everything relative to the PRU, and
adding loadrt hal_spi in CRAMPS.hal (and leaving one only axis)
linuxcnc_old.log is everything before adding loadrt hal_spi.
linuxcnc.log is the execution with loadrt hal_spi and termila_output shows
what has been written, I attached it because it talks about rtapi_rpc():
reply timeout, that is not mentioned in the log

***@realtimepi:~ $ uname -a
Linux realtimepi 4.14.66-rt40-v7 #2 SMP PREEMPT RT Mon Sep 17 21:15:46 UTC
2018 armv7l GNU/Linux
Post by s***@gmail.com
Do so and your linuxcnc.log will have info as to what failed.
Also as I said in my last reply, it does not look as though you have a
realtime kernel, irrespective of what you have named your pi.
Hi everyone,
I am sorry to post another noob question here, but,
I am trying to use the hal module hal_spi, shortly I tried with
loadrt hal_spi
in the hal file, but
rtapi_rpc(): reply timeout
See /var/log/linuxcnc.log for more information.
in the log
Sep 21 14:22:09 realtimepi msgd:0: startup pid=5979 flavor=posix rtlevel=1
usrlevel=1 halsize=524288 shm=Posix cc=gcc 6.3.0 20170516 version=unknown
Sep 21 14:22:09 realtimepi msgd:0: ØMQ=4.2.1 czmq=4.0.2 protobuf=3.0.0
atomics=gcc intrinsics libwebsockets=2.0.3
Sep 21 14:22:09 realtimepi msgd:0: configured: sha=b87920504
Sep 21 14:22:09 realtimepi msgd:0: built: Sep 18 2018 16:43:17 sha=
b87920504
Sep 21 14:22:09 realtimepi msgd:0: register_stuff: actual hostname as
announced by avahi='realtimepi.local'
Sep 21 14:22:09 realtimepi msgd:0: zeroconf: registering: 'Log service on
realtimepi.local pid 5979'
Sep 21 14:22:10 realtimepi rtapi:0: rtapi_msgd went away, exiting
Sep 21 14:22:10 realtimepi msgd:0: zeroconf: registered 'Log service on
realtimepi.local pid 5979' _machinekit._tcp 0 TXT
"uuid=a42c8c6b-4025-4f83-ba28-dad21114744a"
"instance=b9c730a2-bda9-11e8-bcc3-b827eb4bcf42" "service=log"
"dsn=ipc:///tmp/0.log.a42c8c6b-4025-4f83-ba28-dad21114744a"
I tried launching machinekit without it and adding it later using halcmd
loadrt hal_spi, but with similar results
should I give it some arguments? I don't know how to understand how to
write them from the code...
Maybe the module is old and has lost some compatibility?
right now i am executing from
Linux realtimepi 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST 2018
armv7l GNU/Linux
Debian Stretch, Machinekit compiled from source
maybe should I explicit the path to hal_spi?
mngr
--
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
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 machinekit+***@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
s***@gmail.com
2018-09-23 11:41:39 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
The log does not show what your earlier email showed, there is not
mention of an error from insmod<br>
<br>
I think you need to get right back to basics.<br>
<br>
This driver was written 5 years ago and is specific to the BCM2835
chip<br>
It can only have been meant to support Pi v1 &amp; v2 and maybe not
all of them, as they kept changing versions and hardware,<br>
because nothing of a higher version had been released then<br>
<br>
Does this driver support your Pi?<br>
<br>
Regards DEBUG, the ini file bit was explained by the text you
deleted from yours.<br>
It takes a hexidecimal number up to 0x7FFFFFFF, the output is to
terminal and the output is from NML messaging<br>
<br>
The exported DEBUG=5 is the debug setting for logging and relates to
the rtapi system, not NML<br>
<br>
<div class="moz-cite-prefix">On 23/09/18 11:07, mngr wrote:<br>
</div>
<blockquote
cite="mid:5fa1b5bb-efa7-4e57-816b-***@googlegroups.com"
type="cite">
<div dir="ltr"><br>
<br>
Il giorno venerdì 21 settembre 2018 16:44:50 UTC+2, Schooner ha
scritto:
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF"> You are not running
with DEBUG=5<br>
</div>
</blockquote>
<div><br>
</div>
<div>I edited DEBUG = 5 in ini file(in EMC section), nothing
changed, then I exported DEBUG=5 in bash. what is the
difference? what is the deBUG setting in the ini file for?</div>
<div><br>
</div>
<div>Attached you can find the ini and the hal file, I edited
the CRAMPS configuration, basically removing everything
relative to the PRU, and adding loadrt hal_spi in CRAMPS.hal
(and leaving one only axis)<br>
</div>
<div>linuxcnc_old.log is everything before adding loadrt
hal_spi. <br>
</div>
<div>linuxcnc.log is the execution with loadrt hal_spi and
termila_output shows what has been written, I attached it
because it talks about rtapi_rpc(): reply timeout, that is not
mentioned in the log<br>
</div>
<div><br>
</div>
<div>
<div style="background-color: rgb(250, 250, 250);
border-color: rgb(187, 187, 187); border-style: solid;
border-width: 1px; overflow-wrap: break-word;"
class="prettyprint"><code class="prettyprint">
<div class="subprettyprint"><span style="color: #000;"
class="styled-by-prettify">***@realtimepi</span><span
style="color: #660;" class="styled-by-prettify">:~</span><span
style="color: #000;" class="styled-by-prettify"> $
uname </span><span style="color: #660;"
class="styled-by-prettify">-</span><span style="color:
#000;" class="styled-by-prettify">a<br>
</span><span style="color: #606;"
class="styled-by-prettify">Linux</span><span
style="color: #000;" class="styled-by-prettify">
realtimepi </span><span style="color: #066;"
class="styled-by-prettify">4.14</span><span
style="color: #660;" class="styled-by-prettify">.</span><span
style="color: #066;" class="styled-by-prettify">66</span><span
style="color: #660;" class="styled-by-prettify">-</span><span
style="color: #000;" class="styled-by-prettify">rt40</span><span
style="color: #660;" class="styled-by-prettify">-</span><span
style="color: #000;" class="styled-by-prettify">v7 </span><span
style="color: #800;" class="styled-by-prettify">#2 SMP
PREEMPT RT Mon Sep 17 21:15:46 UTC 2018 armv7l
GNU/Linux</span><span style="color: #000;"
class="styled-by-prettify"><br>
</span></div>
</code></div>
<br>
<br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF"> Do so and your
linuxcnc.log will have info as to what failed.<br>
<br>
Also as I said in my last reply, it does not look as though
you have a realtime kernel, irrespective of what you have
named your pi.<br>
<br>
<div>On 21/09/18 15:31, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi everyone,</div>
<div><br>
</div>
<div>I am sorry to post another noob question here, but,</div>
<div><br>
</div>
<div>I am trying to use the hal module hal_spi, shortly
I tried with <br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#000">loadrt hal_spi<br>
</span></div>
</code></div>
in the hal file, but </div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#000">CRAMPS</span><span
style="color:#660">.</span><span
style="color:#000">hal</span><span
style="color:#660">:</span><span
style="color:#066">15</span><span
style="color:#660">:</span><span
style="color:#000"> insmod failed</span><span
style="color:#660">,</span><span
style="color:#000"> returned </span><span
style="color:#660">-</span><span
style="color:#066">1</span><span
style="color:#660">:</span><span
style="color:#000"><br>
rtapi_rpc</span><span style="color:#660">():</span><span
style="color:#000"> reply timeout<br>
</span><span style="color:#606">See</span><span
style="color:#000"> </span><span
style="color:#660">/</span><span
style="color:#008">var</span><span
style="color:#660">/</span><span
style="color:#000">log</span><span
style="color:#660">/</span><span
style="color:#000">linuxcnc</span><span
style="color:#660">.</span><span
style="color:#000">log </span><span
style="color:#008">for</span><span
style="color:#000"> more information</span><span
style="color:#660">.</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
in the log</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> startup pid</span><span
style="color:#660">=</span><span
style="color:#066">5979</span><span
style="color:#000"> flavor</span><span
style="color:#660">=</span><span
style="color:#000">posix rtlevel</span><span
style="color:#660">=</span><span
style="color:#066">1</span><span
style="color:#000"> usrlevel</span><span
style="color:#660">=</span><span
style="color:#066">1</span><span
style="color:#000"> halsize</span><span
style="color:#660">=</span><span
style="color:#066">524288</span><span
style="color:#000"> shm</span><span
style="color:#660">=</span><span
style="color:#606">Posix</span><span
style="color:#000"> cc</span><span
style="color:#660">=</span><span
style="color:#000">gcc </span><span
style="color:#066">6.3</span><span
style="color:#660">.</span><span
style="color:#066">0</span><span
style="color:#000"> </span><span
style="color:#066">20170516</span><span
style="color:#000">  version</span><span
style="color:#660">=</span><span
style="color:#000">unknown<br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#660">Ø</span><span
style="color:#000">MQ</span><span
style="color:#660">=</span><span
style="color:#066">4.2</span><span
style="color:#660">.</span><span
style="color:#066">1</span><span
style="color:#000"> czmq</span><span
style="color:#660">=</span><span
style="color:#066">4.0</span><span
style="color:#660">.</span><span
style="color:#066">2</span><span
style="color:#000"> protobuf</span><span
style="color:#660">=</span><span
style="color:#066">3.0</span><span
style="color:#660">.</span><span
style="color:#066">0</span><span
style="color:#000"> atomics</span><span
style="color:#660">=</span><span
style="color:#000">gcc intrinsics  
 libwebsockets</span><span style="color:#660">=</span><span
style="color:#066">2.0</span><span
style="color:#660">.</span><span
style="color:#066">3</span><span
style="color:#000"><br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> configured</span><span
style="color:#660">:</span><span
style="color:#000"> sha</span><span
style="color:#660">=</span><span
style="color:#000">b87920504<br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> built</span><span
style="color:#660">:</span><span
style="color:#000">      </span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">18</span><span
style="color:#000"> </span><span
style="color:#066">2018</span><span
style="color:#000"> </span><span
style="color:#066">16</span><span
style="color:#660">:</span><span
style="color:#066">43</span><span
style="color:#660">:</span><span
style="color:#066">17</span><span
style="color:#000"> sha</span><span
style="color:#660">=</span><span
style="color:#000">b87920504<br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> register_stuff</span><span
style="color:#660">:</span><span
style="color:#000"> actual hostname </span><span
style="color:#008">as</span><span
style="color:#000"> announced </span><span
style="color:#008">by</span><span
style="color:#000"> avahi</span><span
style="color:#660">=</span><span
style="color:#080">'realtimepi.local'</span><span
style="color:#000"><br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> zeroconf</span><span
style="color:#660">:</span><span
style="color:#000"> registering</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#080">'Log service on
realtimepi.local pid 5979'</span><span
style="color:#000"><br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">10</span><span
style="color:#000"> realtimepi rtapi</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> rtapi_msgd went away</span><span
style="color:#660">,</span><span
style="color:#000"> exiting<br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">10</span><span
style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> zeroconf</span><span
style="color:#660">:</span><span
style="color:#000"> registered </span><span
style="color:#080">'Log service on
realtimepi.local pid 5979'</span><span
style="color:#000"> _machinekit</span><span
style="color:#660">.</span><span
style="color:#000">_tcp </span><span
style="color:#066">0</span><span
style="color:#000"> TXT </span><span
style="color:#080">"uuid=a42c8c6b-4025-4f83-ba28-<wbr>dad21114744a"</span><span
style="color:#000"> </span><span
style="color:#080">"instance=b9c730a2-bda9-11e8-<wbr>bcc3-b827eb4bcf42"</span><span
style="color:#000"> </span><span
style="color:#080">"service=log"</span><span
style="color:#000"> </span><span
style="color:#080">"dsn=ipc:///tmp/0.log.<wbr>a42c8c6b-4025-4f83-ba28-<wbr>dad21114744a"</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
I tried launching machinekit without it and adding it
later using halcmd loadrt hal_spi, but with similar
results<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>should I give it some arguments? I don't know how
to understand how to write them from the code...</div>
<div>Maybe the module is old and has lost some
compatibility?</div>
<div><br>
</div>
<div>right now i am executing from</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#606">Linux</span><span
style="color:#000"> realtimepi </span><span
style="color:#066">4.14</span><span
style="color:#660">.</span><span
style="color:#066">69</span><span
style="color:#660">-</span><span
style="color:#000">v7</span><span
style="color:#660">+</span><span
style="color:#000"> </span><span
style="color:#800">#1141 SMP Mon Sep 10
15:26:29 BST 2018 armv7l GNU/Linux</span><span
style="color:#000"><br>
</span></div>
</code></div>
Debian Stretch, Machinekit compiled from source<br>
</div>
<div>maybe should I explicit the path to hal_spi?</div>
<div><br>
</div>
<div>mngr<br>
</div>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" target="_blank"
rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true" href="http://blog.machinekit.io"
target="_blank" rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" target="_blank"
rel="nofollow"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to
the Google Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails
from it, send an email to <a moz-do-not-send="true"
href="javascript:" target="_blank"
gdf-obfuscated-mailto="LC-72Ra0CQAJ" rel="nofollow"
onmousedown="this.href='javascript:';return true;"
onclick="this.href='javascript:';return true;">machinekit+...@<wbr>googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true" href="http://blog.machinekit.io">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to the Google
Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails from it,
send an email to <a moz-do-not-send="true"
href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br>
</blockquote>
<br>
</body>
</html>

<p></p>

-- <br />
website: <a href="http://www.machinekit.io">http://www.machinekit.io</a> blog: <a href="http://blog.machinekit.io">http://blog.machinekit.io</a> github: <a href="https://github.com/machinekit">https://github.com/machinekit</a><br />
--- <br />
You received this message because you are subscribed to the Google Groups &quot;Machinekit&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br />
Visit this group at <a href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />
mngr
2018-09-23 12:50:55 UTC
Permalink
The log does not show what your earlier email showed, there is not mention
of an error from insmod
I think you need to get right back to basics.
This driver was written 5 years ago and is specific to the BCM2835 chip
It can only have been meant to support Pi v1 & v2 and maybe not all of
them, as they kept changing versions and hardware,
because nothing of a higher version had been released then
Does this driver support your Pi?
In case of doubt I gave a look to wiringPi, it calls ioctl and write/reads
from /dev/spidev.
Is calling that syscall from a hal driver a sane thing to do? (It is for
example used here
<https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_p260c.c>
)
Regards DEBUG, the ini file bit was explained by the text you deleted from
yours.
It takes a hexidecimal number up to 0x7FFFFFFF, the output is to terminal
and the output is from NML messaging
The exported DEBUG=5 is the debug setting for logging and relates to the
rtapi system, not NML
Thanks for the explanation, Schooner
Post by s***@gmail.com
You are not running with DEBUG=5
I edited DEBUG = 5 in ini file(in EMC section), nothing changed, then I
exported DEBUG=5 in bash. what is the difference? what is the deBUG setting
in the ini file for?
Attached you can find the ini and the hal file, I edited the CRAMPS
configuration, basically removing everything relative to the PRU, and
adding loadrt hal_spi in CRAMPS.hal (and leaving one only axis)
linuxcnc_old.log is everything before adding loadrt hal_spi.
linuxcnc.log is the execution with loadrt hal_spi and termila_output shows
reply timeout, that is not mentioned in the log
Linux realtimepi 4.14.66-rt40-v7 #2 SMP PREEMPT RT Mon Sep 17 21:15:46
UTC 2018 armv7l GNU/Linux
Post by s***@gmail.com
Do so and your linuxcnc.log will have info as to what failed.
Also as I said in my last reply, it does not look as though you have a
realtime kernel, irrespective of what you have named your pi.
Hi everyone,
I am sorry to post another noob question here, but,
I am trying to use the hal module hal_spi, shortly I tried with
loadrt hal_spi
in the hal file, but
rtapi_rpc(): reply timeout
See /var/log/linuxcnc.log for more information.
in the log
Sep 21 14:22:09 realtimepi msgd:0: startup pid=5979 flavor=posix rtlevel=
1 usrlevel=1 halsize=524288 shm=Posix cc=gcc 6.3.0 20170516 version=
unknown
Sep 21 14:22:09 realtimepi msgd:0: ØMQ=4.2.1 czmq=4.0.2 protobuf=3.0.0
atomics=gcc intrinsics libwebsockets=2.0.3
Sep 21 14:22:09 realtimepi msgd:0: configured: sha=b87920504
Sep 21 14:22:09 realtimepi msgd:0: built: Sep 18 2018 16:43:17 sha=
b87920504
Sep 21 14:22:09 realtimepi msgd:0: register_stuff: actual hostname as
announced by avahi='realtimepi.local'
Sep 21 14:22:09 realtimepi msgd:0: zeroconf: registering: 'Log service
on realtimepi.local pid 5979'
Sep 21 14:22:10 realtimepi rtapi:0: rtapi_msgd went away, exiting
Sep 21 14:22:10 realtimepi msgd:0: zeroconf: registered 'Log service on
realtimepi.local pid 5979' _machinekit._tcp 0 TXT
"uuid=a42c8c6b-4025-4f83-ba28-dad21114744a"
"instance=b9c730a2-bda9-11e8-bcc3-b827eb4bcf42" "service=log"
"dsn=ipc:///tmp/0.log.a42c8c6b-4025-4f83-ba28-dad21114744a"
I tried launching machinekit without it and adding it later using halcmd
loadrt hal_spi, but with similar results
should I give it some arguments? I don't know how to understand how to
write them from the code...
Maybe the module is old and has lost some compatibility?
right now i am executing from
Linux realtimepi 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST 2018
armv7l GNU/Linux
Debian Stretch, Machinekit compiled from source
maybe should I explicit the path to hal_spi?
mngr
--
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
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
--
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
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 machinekit+***@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
s***@gmail.com
2018-09-23 13:34:53 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
It's not about doubt<br>
cat /proc/cpuinfo<br>
will tell you whether you have BCM2835<br>
<br>
If you do and the driver should work, we can try to find out why it
isn't.<br>
<br>
If you don't, what the differences are from the BCM2837 for example,
I have no idea<br>
<br>
I am guessing you are trying to generate steps using the SPI, that
is an area outside my experience<br>
but there seems to be quite a bit about it on the RPi forums<br>
<br>
<br>
<div class="moz-cite-prefix">On 23/09/18 13:50, mngr wrote:<br>
</div>
<blockquote
cite="mid:e5fca2b7-96f4-4126-94f3-***@googlegroups.com"
type="cite">
<div dir="ltr"><br>
<br>
Il giorno domenica 23 settembre 2018 13:41:42 UTC+2, Schooner ha
scritto:
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF"> The log does not show
what your earlier email showed, there is not mention of an
error from insmod<br>
<br>
I think you need to get right back to basics.<br>
<br>
This driver was written 5 years ago and is specific to the
BCM2835 chip<br>
It can only have been meant to support Pi v1 &amp; v2 and
maybe not all of them, as they kept changing versions and
hardware,<br>
because nothing of a higher version had been released then<br>
<br>
Does this driver support your Pi?<br>
</div>
</blockquote>
<div><br>
</div>
<div>In case of doubt I gave a look to wiringPi, it calls ioctl
and write/reads from /dev/spidev.</div>
<div>Is calling that syscall from a hal driver a sane thing to
do? (It is for example used <a moz-do-not-send="true"
href="https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_p260c.c">here</a>)<br>
</div>
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF"> Regards DEBUG, the ini
file bit was explained by the text you deleted from yours.<br>
It takes a hexidecimal number up to 0x7FFFFFFF, the output
is to terminal and the output is from NML messaging<br>
<br>
The exported DEBUG=5 is the debug setting for logging and
relates to the rtapi system, not NML<br>
</div>
</blockquote>
<div><br>
</div>
<div>Thanks for the explanation, Schooner<br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF">
<div>On 23/09/18 11:07, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<br>
Il giorno venerdì 21 settembre 2018 16:44:50 UTC+2,
Schooner ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> You are not
running with DEBUG=5<br>
</div>
</blockquote>
<div><br>
</div>
<div>I edited DEBUG = 5 in ini file(in EMC section),
nothing changed, then I exported DEBUG=5 in bash. what
is the difference? what is the deBUG setting in the
ini file for?</div>
<div><br>
</div>
<div>Attached you can find the ini and the hal file, I
edited the CRAMPS configuration, basically removing
everything relative to the PRU, and adding loadrt
hal_spi in CRAMPS.hal (and leaving one only axis)<br>
</div>
<div>linuxcnc_old.log is everything before adding loadrt
hal_spi. <br>
</div>
<div>linuxcnc.log is the execution with loadrt hal_spi
and termila_output shows what has been written, I
attached it because it talks about rtapi_rpc(): reply
timeout, that is not mentioned in the log<br>
</div>
<div><br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#000">***@realtimepi</span><span
style="color:#660">:~</span><span
style="color:#000"> $ uname </span><span
style="color:#660">-</span><span
style="color:#000">a<br>
</span><span style="color:#606">Linux</span><span
style="color:#000"> realtimepi </span><span
style="color:#066">4.14</span><span
style="color:#660">.</span><span
style="color:#066">66</span><span
style="color:#660">-</span><span
style="color:#000">rt40</span><span
style="color:#660">-</span><span
style="color:#000">v7 </span><span
style="color:#800">#2 SMP PREEMPT RT Mon Sep
17 21:15:46 UTC 2018 armv7l GNU/Linux</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
<br>
</div>
<div> </div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Do so and your
linuxcnc.log will have info as to what failed.<br>
<br>
Also as I said in my last reply, it does not look as
though you have a realtime kernel, irrespective of
what you have named your pi.<br>
<br>
<div>On 21/09/18 15:31, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi everyone,</div>
<div><br>
</div>
<div>I am sorry to post another noob question
here, but,</div>
<div><br>
</div>
<div>I am trying to use the hal module hal_spi,
shortly I tried with <br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#000">loadrt
hal_spi<br>
</span></div>
</code></div>
in the hal file, but </div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#000">CRAMPS</span><span
style="color:#660">.</span><span
style="color:#000">hal</span><span
style="color:#660">:</span><span
style="color:#066">15</span><span
style="color:#660">:</span><span
style="color:#000"> insmod failed</span><span
style="color:#660">,</span><span
style="color:#000"> returned </span><span
style="color:#660">-</span><span
style="color:#066">1</span><span
style="color:#660">:</span><span
style="color:#000"><br>
rtapi_rpc</span><span
style="color:#660">():</span><span
style="color:#000"> reply timeout<br>
</span><span style="color:#606">See</span><span
style="color:#000"> </span><span
style="color:#660">/</span><span
style="color:#008">var</span><span
style="color:#660">/</span><span
style="color:#000">log</span><span
style="color:#660">/</span><span
style="color:#000">linuxcnc</span><span
style="color:#660">.</span><span
style="color:#000">log </span><span
style="color:#008">for</span><span
style="color:#000"> more information</span><span
style="color:#660">.</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
in the log</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> startup pid</span><span
style="color:#660">=</span><span
style="color:#066">5979</span><span
style="color:#000"> flavor</span><span
style="color:#660">=</span><span
style="color:#000">posix rtlevel</span><span
style="color:#660">=</span><span
style="color:#066">1</span><span
style="color:#000"> usrlevel</span><span
style="color:#660">=</span><span
style="color:#066">1</span><span
style="color:#000"> halsize</span><span
style="color:#660">=</span><span
style="color:#066">524288</span><span
style="color:#000"> shm</span><span
style="color:#660">=</span><span
style="color:#606">Posix</span><span
style="color:#000"> cc</span><span
style="color:#660">=</span><span
style="color:#000">gcc </span><span
style="color:#066">6.3</span><span
style="color:#660">.</span><span
style="color:#066">0</span><span
style="color:#000"> </span><span
style="color:#066">20170516</span><span
style="color:#000">  version</span><span
style="color:#660">=</span><span
style="color:#000">unknown<br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#660">Ø</span><span
style="color:#000">MQ</span><span
style="color:#660">=</span><span
style="color:#066">4.2</span><span
style="color:#660">.</span><span
style="color:#066">1</span><span
style="color:#000"> czmq</span><span
style="color:#660">=</span><span
style="color:#066">4.0</span><span
style="color:#660">.</span><span
style="color:#066">2</span><span
style="color:#000"> protobuf</span><span
style="color:#660">=</span><span
style="color:#066">3.0</span><span
style="color:#660">.</span><span
style="color:#066">0</span><span
style="color:#000"> atomics</span><span
style="color:#660">=</span><span
style="color:#000">gcc intrinsics  
 libwebsockets</span><span
style="color:#660">=</span><span
style="color:#066">2.0</span><span
style="color:#660">.</span><span
style="color:#066">3</span><span
style="color:#000"><br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> configured</span><span
style="color:#660">:</span><span
style="color:#000"> sha</span><span
style="color:#660">=</span><span
style="color:#000">b87920504<br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> built</span><span
style="color:#660">:</span><span
style="color:#000">      </span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">18</span><span
style="color:#000"> </span><span
style="color:#066">2018</span><span
style="color:#000"> </span><span
style="color:#066">16</span><span
style="color:#660">:</span><span
style="color:#066">43</span><span
style="color:#660">:</span><span
style="color:#066">17</span><span
style="color:#000"> sha</span><span
style="color:#660">=</span><span
style="color:#000">b87920504<br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> register_stuff</span><span
style="color:#660">:</span><span
style="color:#000"> actual hostname </span><span
style="color:#008">as</span><span
style="color:#000"> announced </span><span
style="color:#008">by</span><span
style="color:#000"> avahi</span><span
style="color:#660">=</span><span
style="color:#080">'realtimepi.local'</span><span
style="color:#000"><br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> zeroconf</span><span
style="color:#660">:</span><span
style="color:#000"> registering</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#080">'Log service on
realtimepi.local pid 5979'</span><span
style="color:#000"><br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">10</span><span
style="color:#000"> realtimepi rtapi</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> rtapi_msgd went
away</span><span style="color:#660">,</span><span
style="color:#000"> exiting<br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">10</span><span
style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> zeroconf</span><span
style="color:#660">:</span><span
style="color:#000"> registered </span><span
style="color:#080">'Log service on
realtimepi.local pid 5979'</span><span
style="color:#000"> _machinekit</span><span
style="color:#660">.</span><span
style="color:#000">_tcp </span><span
style="color:#066">0</span><span
style="color:#000"> TXT </span><span
style="color:#080">"uuid=a42c8c6b-4025-4f83-ba28-<wbr>dad21114744a"</span><span
style="color:#000"> </span><span
style="color:#080">"instance=b9c730a2-bda9-11e8-<wbr>bcc3-b827eb4bcf42"</span><span
style="color:#000"> </span><span
style="color:#080">"service=log"</span><span
style="color:#000"> </span><span
style="color:#080">"dsn=ipc:///tmp/0.log.<wbr>a42c8c6b-4025-4f83-ba28-<wbr>dad21114744a"</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
I tried launching machinekit without it and
adding it later using halcmd loadrt hal_spi,
but with similar results<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>should I give it some arguments? I don't
know how to understand how to write them from
the code...</div>
<div>Maybe the module is old and has lost some
compatibility?</div>
<div><br>
</div>
<div>right now i am executing from</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#606">Linux</span><span
style="color:#000"> realtimepi </span><span
style="color:#066">4.14</span><span
style="color:#660">.</span><span
style="color:#066">69</span><span
style="color:#660">-</span><span
style="color:#000">v7</span><span
style="color:#660">+</span><span
style="color:#000"> </span><span
style="color:#800">#1141 SMP Mon Sep
10 15:26:29 BST 2018 armv7l GNU/Linux</span><span
style="color:#000"><br>
</span></div>
</code></div>
Debian Stretch, Machinekit compiled from
source<br>
</div>
<div>maybe should I explicit the path to
hal_spi?</div>
<div><br>
</div>
<div>mngr<br>
</div>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io" rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are
subscribed to the Google Groups "Machinekit"
group.<br>
To unsubscribe from this group and stop receiving
emails from it, send an email to <a
moz-do-not-send="true" rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" target="_blank"
rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true" href="http://blog.machinekit.io"
target="_blank" rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" target="_blank"
rel="nofollow"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to
the Google Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails
from it, send an email to <a moz-do-not-send="true"
href="javascript:" target="_blank"
gdf-obfuscated-mailto="LQoxm0FHCgAJ" rel="nofollow"
onmousedown="this.href='javascript:';return true;"
onclick="this.href='javascript:';return true;">machinekit+...@<wbr>googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true" href="http://blog.machinekit.io">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to the Google
Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails from it,
send an email to <a moz-do-not-send="true"
href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br>
</blockquote>
<br>
</body>
</html>

<p></p>

-- <br />
website: <a href="http://www.machinekit.io">http://www.machinekit.io</a> blog: <a href="http://blog.machinekit.io">http://blog.machinekit.io</a> github: <a href="https://github.com/machinekit">https://github.com/machinekit</a><br />
--- <br />
You received this message because you are subscribed to the Google Groups &quot;Machinekit&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br />
Visit this group at <a href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />
mngr
2018-09-23 14:16:21 UTC
Permalink
Post by s***@gmail.com
It's not about doubt
cat /proc/cpuinfo
will tell you whether you have BCM2835
Thanks didn't know about that! on the rpi is written 2837, bit cpuinfo says
2835!
So at least the part that writes in the SPI registers should work.

I tried to add some debug message in hal_spi rtapi_app_main function, but I
don't see them anywhere, I have exported DEBUG=5, and maximized the DEBUG
value in the ini file. I am looking in /var/log/linuxcnc.log and in the
terminal output.
I have tried with different msg types

rtapi_print_msg(RTAPI_MSG_ERR, ": hal_spi init!!!!err\n");
rtapi_print_msg(RTAPI_MSG_DBG, ": hal_spi init!!!!dbg\n");
rtapi_print_msg(RTAPI_MSG_ALL, ": hal_spi init!!!!all\n");

If you do and the driver should work, we can try to find out why it isn't.
Post by s***@gmail.com
If you don't, what the differences are from the BCM2837 for example, I
have no idea
I am guessing you are trying to generate steps using the SPI, that is an
area outside my experience
but there seems to be quite a bit about it on the RPi forums
Actually, I tought that hal_spi is used to write something to a MCU that
will control the motor generating steps.
I think it sends the commanded velocity and the MCU updates the PWM.
I am not sure of those things, though
Post by s***@gmail.com
The log does not show what your earlier email showed, there is not mention
of an error from insmod
I think you need to get right back to basics.
This driver was written 5 years ago and is specific to the BCM2835 chip
It can only have been meant to support Pi v1 & v2 and maybe not all of
them, as they kept changing versions and hardware,
because nothing of a higher version had been released then
Does this driver support your Pi?
In case of doubt I gave a look to wiringPi, it calls ioctl and write/reads
from /dev/spidev.
Is calling that syscall from a hal driver a sane thing to do? (It is for
example used here
<https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_p260c.c>
)
Post by s***@gmail.com
Regards DEBUG, the ini file bit was explained by the text you deleted from
yours.
It takes a hexidecimal number up to 0x7FFFFFFF, the output is to terminal
and the output is from NML messaging
The exported DEBUG=5 is the debug setting for logging and relates to the
rtapi system, not NML
Thanks for the explanation, Schooner
Post by s***@gmail.com
Post by s***@gmail.com
You are not running with DEBUG=5
I edited DEBUG = 5 in ini file(in EMC section), nothing changed, then I
exported DEBUG=5 in bash. what is the difference? what is the deBUG setting
in the ini file for?
Attached you can find the ini and the hal file, I edited the CRAMPS
configuration, basically removing everything relative to the PRU, and
adding loadrt hal_spi in CRAMPS.hal (and leaving one only axis)
linuxcnc_old.log is everything before adding loadrt hal_spi.
linuxcnc.log is the execution with loadrt hal_spi and termila_output shows
reply timeout, that is not mentioned in the log
Linux realtimepi 4.14.66-rt40-v7 #2 SMP PREEMPT RT Mon Sep 17 21:15:46
UTC 2018 armv7l GNU/Linux
Post by s***@gmail.com
Do so and your linuxcnc.log will have info as to what failed.
Also as I said in my last reply, it does not look as though you have a
realtime kernel, irrespective of what you have named your pi.
Hi everyone,
I am sorry to post another noob question here, but,
I am trying to use the hal module hal_spi, shortly I tried with
loadrt hal_spi
in the hal file, but
rtapi_rpc(): reply timeout
See /var/log/linuxcnc.log for more information.
in the log
Sep 21 14:22:09 realtimepi msgd:0: startup pid=5979 flavor=posix rtlevel=
1 usrlevel=1 halsize=524288 shm=Posix cc=gcc 6.3.0 20170516 version=
unknown
Sep 21 14:22:09 realtimepi msgd:0: ØMQ=4.2.1 czmq=4.0.2 protobuf=3.0.0
atomics=gcc intrinsics libwebsockets=2.0.3
Sep 21 14:22:09 realtimepi msgd:0: configured: sha=b87920504
Sep 21 14:22:09 realtimepi msgd:0: built: Sep 18 2018 16:43:17 sha=
b87920504
Sep 21 14:22:09 realtimepi msgd:0: register_stuff: actual hostname as
announced by avahi='realtimepi.local'
Sep 21 14:22:09 realtimepi msgd:0: zeroconf: registering: 'Log service
on realtimepi.local pid 5979'
Sep 21 14:22:10 realtimepi rtapi:0: rtapi_msgd went away, exiting
Sep 21 14:22:10 realtimepi msgd:0: zeroconf: registered 'Log service on
realtimepi.local pid 5979' _machinekit._tcp 0 TXT
"uuid=a42c8c6b-4025-4f83-ba28-dad21114744a"
"instance=b9c730a2-bda9-11e8-bcc3-b827eb4bcf42" "service=log"
"dsn=ipc:///tmp/0.log.a42c8c6b-4025-4f83-ba28-dad21114744a"
I tried launching machinekit without it and adding it later using halcmd
loadrt hal_spi, but with similar results
should I give it some arguments? I don't know how to understand how to
write them from the code...
Maybe the module is old and has lost some compatibility?
right now i am executing from
Linux realtimepi 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST 2018
armv7l GNU/Linux
Debian Stretch, Machinekit compiled from source
maybe should I explicit the path to hal_spi?
mngr
--
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
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
--
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
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 machinekit+***@googlegroups.com <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 machinekit+***@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
s***@gmail.com
2018-09-23 14:43:21 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 23/09/18 15:16, mngr wrote:<br>
</div>
<blockquote
cite="mid:2c63583b-4b89-4a47-9080-***@googlegroups.com"
type="cite">
<div dir="ltr"><br>
<br>
Il giorno domenica 23 settembre 2018 15:34:58 UTC+2, Schooner ha
scritto:
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF"> It's not about doubt<br>
cat /proc/cpuinfo<br>
will tell you whether you have BCM2835<br>
</div>
</blockquote>
<div> </div>
<div>Thanks didn't know about that! on the rpi is written 2837,
bit cpuinfo says 2835!</div>
<div>So at least the part that writes in the SPI registers
should work.</div>
<div><br>
</div>
<div>I tried to add some debug message in hal_spi <span
class="pl-en">rtapi_app_main function, but I don't see them
anywhere, I have exported DEBUG=5, and maximized the DEBUG
value in the ini file. I am looking in /var/log/linuxcnc.log
and in the terminal output.</span></div>
<div><span class="pl-en">I have tried with different msg types <br>
</span></div>
<div><span class="pl-en"><br>
</span></div>
<div><span class="pl-en">rtapi_print_msg(RTAPI_MSG_ERR, ":
hal_spi init!!!!err\n");<br>
rtapi_print_msg(RTAPI_MSG_DBG, ": hal_spi init!!!!dbg\n");<br>
rtapi_print_msg(RTAPI_MSG_ALL, ": hal_spi init!!!!all\n");<br>
</span></div>
</div>
</blockquote>
<br>
There are plenty of error messages in the driver already.  I did not
see any in the log however which makes me<br>
suspect it was never loaded.<br>
If insmod errors it should say why however and that was not in there
either.<br>
<br>
Instead of complicating things with loading a non working config,
just to load the driver, try this in a terminal on your Pi<br>
<br>
sudo &gt; /var/log/linuxcnc.log (you may have to run this a root, it
should zero the log)<br>
DEBUG=5 realtime restart<br>
halcmd loadrt hal_spi<br>
halcmd show all<br>
halrun -U<br>
<br>
That should give you a short log and if it errors loading hal_spi
will be easier to trace through<br>
<br>
In addition to the log do<br>
<br>
dmesg | tail &gt; dmesg.log <br>
<br>
and attach that log too<br>
<br>
<blockquote
cite="mid:2c63583b-4b89-4a47-9080-***@googlegroups.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF"> If you do and the
driver should work, we can try to find out why it isn't.<br>
<br>
If you don't, what the differences are from the BCM2837 for
example, I have no idea<br>
<br>
I am guessing you are trying to generate steps using the
SPI, that is an area outside my experience<br>
but there seems to be quite a bit about it on the RPi forums<br>
</div>
</blockquote>
<div><br>
</div>
<div>Actually, I tought that hal_spi is used to write something
to a MCU that will control the motor generating steps.</div>
<div>I think it sends the commanded velocity and the MCU updates
the PWM.</div>
<div>I am not sure of those things, though<br>
</div>
<div text="#000000" bgcolor="#FFFFFF"><br>
<div>On 23/09/18 13:50, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<br>
Il giorno domenica 23 settembre 2018 13:41:42 UTC+2,
Schooner ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> The log does not
show what your earlier email showed, there is not
mention of an error from insmod<br>
<br>
I think you need to get right back to basics.<br>
<br>
This driver was written 5 years ago and is specific to
the BCM2835 chip<br>
It can only have been meant to support Pi v1 &amp; v2
and maybe not all of them, as they kept changing
versions and hardware,<br>
because nothing of a higher version had been released
then<br>
<br>
Does this driver support your Pi?<br>
</div>
</blockquote>
<div><br>
</div>
<div>In case of doubt I gave a look to wiringPi, it calls
ioctl and write/reads from /dev/spidev.</div>
<div>Is calling that syscall from a hal driver a sane
thing to do? (It is for example used <a
moz-do-not-send="true"
href="https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_p260c.c"
target="_blank" rel="nofollow"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit%2Fmachinekit%2Fblob%2Fmaster%2Fsrc%2Fhal%2Fdrivers%2Fhal_p260c.c\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiiaXDhJO-MrGOOLcvAh8yi4_pxg';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit%2Fmachinekit%2Fblob%2Fmaster%2Fsrc%2Fhal%2Fdrivers%2Fhal_p260c.c\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiiaXDhJO-MrGOOLcvAh8yi4_pxg';return
true;">here</a>)<br>
</div>
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Regards DEBUG,
the ini file bit was explained by the text you deleted
from yours.<br>
It takes a hexidecimal number up to 0x7FFFFFFF, the
output is to terminal and the output is from NML
messaging<br>
<br>
The exported DEBUG=5 is the debug setting for logging
and relates to the rtapi system, not NML<br>
</div>
</blockquote>
<div><br>
</div>
<div>Thanks for the explanation, Schooner<br>
</div>
<div> </div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>On 23/09/18 11:07, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<br>
Il giorno venerdì 21 settembre 2018 16:44:50
UTC+2, Schooner ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> You are
not running with DEBUG=5<br>
</div>
</blockquote>
<div><br>
</div>
<div>I edited DEBUG = 5 in ini file(in EMC
section), nothing changed, then I exported
DEBUG=5 in bash. what is the difference? what is
the deBUG setting in the ini file for?</div>
<div><br>
</div>
<div>Attached you can find the ini and the hal
file, I edited the CRAMPS configuration,
basically removing everything relative to the
PRU, and adding loadrt hal_spi in CRAMPS.hal
(and leaving one only axis)<br>
</div>
<div>linuxcnc_old.log is everything before adding
loadrt hal_spi. <br>
</div>
<div>linuxcnc.log is the execution with loadrt
hal_spi and termila_output shows what has been
written, I attached it because it talks about
rtapi_rpc(): reply timeout, that is not
mentioned in the log<br>
</div>
<div><br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#000">***@realtimepi</span><span
style="color:#660">:~</span><span
style="color:#000"> $ uname </span><span
style="color:#660">-</span><span
style="color:#000">a<br>
</span><span style="color:#606">Linux</span><span
style="color:#000"> realtimepi </span><span
style="color:#066">4.14</span><span
style="color:#660">.</span><span
style="color:#066">66</span><span
style="color:#660">-</span><span
style="color:#000">rt40</span><span
style="color:#660">-</span><span
style="color:#000">v7 </span><span
style="color:#800">#2 SMP PREEMPT RT Mon
Sep 17 21:15:46 UTC 2018 armv7l
GNU/Linux</span><span style="color:#000"><br>
</span></div>
</code></div>
<br>
<br>
</div>
<div> </div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Do so and
your linuxcnc.log will have info as to what
failed.<br>
<br>
Also as I said in my last reply, it does not
look as though you have a realtime kernel,
irrespective of what you have named your pi.<br>
<br>
<div>On 21/09/18 15:31, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi everyone,</div>
<div><br>
</div>
<div>I am sorry to post another noob
question here, but,</div>
<div><br>
</div>
<div>I am trying to use the hal module
hal_spi, shortly I tried with <br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#000">loadrt
hal_spi<br>
</span></div>
</code></div>
in the hal file, but </div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#000">CRAMPS</span><span
style="color:#660">.</span><span
style="color:#000">hal</span><span
style="color:#660">:</span><span
style="color:#066">15</span><span
style="color:#660">:</span><span
style="color:#000"> insmod
failed</span><span
style="color:#660">,</span><span
style="color:#000"> returned </span><span
style="color:#660">-</span><span
style="color:#066">1</span><span
style="color:#660">:</span><span
style="color:#000"><br>
rtapi_rpc</span><span
style="color:#660">():</span><span
style="color:#000"> reply
timeout<br>
</span><span style="color:#606">See</span><span
style="color:#000"> </span><span
style="color:#660">/</span><span
style="color:#008">var</span><span
style="color:#660">/</span><span
style="color:#000">log</span><span
style="color:#660">/</span><span
style="color:#000">linuxcnc</span><span
style="color:#660">.</span><span
style="color:#000">log </span><span
style="color:#008">for</span><span
style="color:#000"> more
information</span><span
style="color:#660">.</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
in the log</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000"> realtimepi
msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> startup pid</span><span
style="color:#660">=</span><span
style="color:#066">5979</span><span
style="color:#000"> flavor</span><span
style="color:#660">=</span><span
style="color:#000">posix rtlevel</span><span
style="color:#660">=</span><span
style="color:#066">1</span><span
style="color:#000"> usrlevel</span><span
style="color:#660">=</span><span
style="color:#066">1</span><span
style="color:#000"> halsize</span><span
style="color:#660">=</span><span
style="color:#066">524288</span><span
style="color:#000"> shm</span><span
style="color:#660">=</span><span
style="color:#606">Posix</span><span
style="color:#000"> cc</span><span
style="color:#660">=</span><span
style="color:#000">gcc </span><span
style="color:#066">6.3</span><span
style="color:#660">.</span><span
style="color:#066">0</span><span
style="color:#000"> </span><span
style="color:#066">20170516</span><span
style="color:#000">  version</span><span
style="color:#660">=</span><span
style="color:#000">unknown<br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000"> realtimepi
msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#660">Ø</span><span
style="color:#000">MQ</span><span
style="color:#660">=</span><span
style="color:#066">4.2</span><span
style="color:#660">.</span><span
style="color:#066">1</span><span
style="color:#000"> czmq</span><span
style="color:#660">=</span><span
style="color:#066">4.0</span><span
style="color:#660">.</span><span
style="color:#066">2</span><span
style="color:#000"> protobuf</span><span
style="color:#660">=</span><span
style="color:#066">3.0</span><span
style="color:#660">.</span><span
style="color:#066">0</span><span
style="color:#000"> atomics</span><span
style="color:#660">=</span><span
style="color:#000">gcc
intrinsics    libwebsockets</span><span
style="color:#660">=</span><span
style="color:#066">2.0</span><span
style="color:#660">.</span><span
style="color:#066">3</span><span
style="color:#000"><br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000"> realtimepi
msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> configured</span><span
style="color:#660">:</span><span
style="color:#000"> sha</span><span
style="color:#660">=</span><span
style="color:#000">b87920504<br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000"> realtimepi
msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> built</span><span
style="color:#660">:</span><span
style="color:#000">      </span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">18</span><span
style="color:#000"> </span><span
style="color:#066">2018</span><span
style="color:#000"> </span><span
style="color:#066">16</span><span
style="color:#660">:</span><span
style="color:#066">43</span><span
style="color:#660">:</span><span
style="color:#066">17</span><span
style="color:#000"> sha</span><span
style="color:#660">=</span><span
style="color:#000">b87920504<br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000"> realtimepi
msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000">
register_stuff</span><span
style="color:#660">:</span><span
style="color:#000"> actual
hostname </span><span
style="color:#008">as</span><span
style="color:#000"> announced </span><span
style="color:#008">by</span><span
style="color:#000"> avahi</span><span
style="color:#660">=</span><span
style="color:#080">'realtimepi.local'</span><span
style="color:#000"><br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000"> realtimepi
msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> zeroconf</span><span
style="color:#660">:</span><span
style="color:#000"> registering</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#080">'Log service
on realtimepi.local pid 5979'</span><span
style="color:#000"><br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">10</span><span
style="color:#000"> realtimepi
rtapi</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> rtapi_msgd
went away</span><span
style="color:#660">,</span><span
style="color:#000"> exiting<br>
</span><span style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">10</span><span
style="color:#000"> realtimepi
msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> zeroconf</span><span
style="color:#660">:</span><span
style="color:#000"> registered </span><span
style="color:#080">'Log service
on realtimepi.local pid 5979'</span><span
style="color:#000"> _machinekit</span><span
style="color:#660">.</span><span
style="color:#000">_tcp </span><span
style="color:#066">0</span><span
style="color:#000"> TXT </span><span
style="color:#080">"uuid=a42c8c6b-4025-4f83-ba28-<wbr>dad21114744a"</span><span
style="color:#000"> </span><span
style="color:#080">"instance=b9c730a2-bda9-11e8-<wbr>bcc3-b827eb4bcf42"</span><span
style="color:#000"> </span><span
style="color:#080">"service=log"</span><span
style="color:#000"> </span><span
style="color:#080">"dsn=ipc:///tmp/0.log.<wbr>a42c8c6b-4025-4f83-ba28-<wbr>dad21114744a"</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
I tried launching machinekit without it
and adding it later using halcmd loadrt
hal_spi, but with similar results<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>should I give it some arguments? I
don't know how to understand how to
write them from the code...</div>
<div>Maybe the module is old and has lost
some compatibility?</div>
<div><br>
</div>
<div>right now i am executing from</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#606">Linux</span><span
style="color:#000"> realtimepi </span><span
style="color:#066">4.14</span><span
style="color:#660">.</span><span
style="color:#066">69</span><span
style="color:#660">-</span><span
style="color:#000">v7</span><span
style="color:#660">+</span><span
style="color:#000"> </span><span
style="color:#800">#1141 SMP Mon
Sep 10 15:26:29 BST 2018 armv7l
GNU/Linux</span><span
style="color:#000"><br>
</span></div>
</code></div>
Debian Stretch, Machinekit compiled from
source<br>
</div>
<div>maybe should I explicit the path to
hal_spi?</div>
<div><br>
</div>
<div>mngr<br>
</div>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog:
<a moz-do-not-send="true"
href="http://blog.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are
subscribed to the Google Groups "Machinekit"
group.<br>
To unsubscribe from this group and stop
receiving emails from it, send an email to <a
moz-do-not-send="true" rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a
moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io" rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed
to the Google Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving
emails from it, send an email to <a
moz-do-not-send="true" rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" target="_blank"
rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true" href="http://blog.machinekit.io"
target="_blank" rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" target="_blank"
rel="nofollow"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to the
Google Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails
from it, send an email to <a moz-do-not-send="true"
href="javascript:" target="_blank"
gdf-obfuscated-mailto="SmL4A3BNCgAJ" rel="nofollow"
onmousedown="this.href='javascript:';return true;"
onclick="this.href='javascript:';return true;">machinekit+...@<wbr>googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout" target="_blank"
rel="nofollow"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true" href="http://blog.machinekit.io">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to the Google
Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails from it,
send an email to <a moz-do-not-send="true"
href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br>
</blockquote>
<br>
</body>
</html>

<p></p>

-- <br />
website: <a href="http://www.machinekit.io">http://www.machinekit.io</a> blog: <a href="http://blog.machinekit.io">http://blog.machinekit.io</a> github: <a href="https://github.com/machinekit">https://github.com/machinekit</a><br />
--- <br />
You received this message because you are subscribed to the Google Groups &quot;Machinekit&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br />
Visit this group at <a href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />
mngr
2018-09-23 15:12:30 UTC
Permalink
Attached.

In the log you can see the message I added in the hal_spi rtapi_app_main.

***@realtimepi:~ $ halcmd loadrt hal_spi
<commandline>:0: insmod failed, returned -1:
rtapi_rpc(): reply timeout
See /var/log/linuxcnc.log for more information.
***@realtimepi:~ $ halcmd show all
halcmd: cant connect to rtapi_app: -1 (uri= uuid=a42c8c6b-4025-4f83-ba28-
dad21114744a): rtapi_rpc(): reply timeout

E: 18-09-23 15:04:20 dangling 'DEALER' socket created at hal/utils/
halcmd_rtapiapp.cc:281
Post by mngr
Post by s***@gmail.com
It's not about doubt
cat /proc/cpuinfo
will tell you whether you have BCM2835
Thanks didn't know about that! on the rpi is written 2837, bit cpuinfo
says 2835!
So at least the part that writes in the SPI registers should work.
I tried to add some debug message in hal_spi rtapi_app_main function, but
I don't see them anywhere, I have exported DEBUG=5, and maximized the DEBUG
value in the ini file. I am looking in /var/log/linuxcnc.log and in the
terminal output.
I have tried with different msg types
rtapi_print_msg(RTAPI_MSG_ERR, ": hal_spi init!!!!err\n");
rtapi_print_msg(RTAPI_MSG_DBG, ": hal_spi init!!!!dbg\n");
rtapi_print_msg(RTAPI_MSG_ALL, ": hal_spi init!!!!all\n");
There are plenty of error messages in the driver already. I did not see
any in the log however which makes me
suspect it was never loaded.
If insmod errors it should say why however and that was not in there
either.
Instead of complicating things with loading a non working config, just to
load the driver, try this in a terminal on your Pi
sudo > /var/log/linuxcnc.log (you may have to run this a root, it should
zero the log)
DEBUG=5 realtime restart
halcmd loadrt hal_spi
halcmd show all
halrun -U
That should give you a short log and if it errors loading hal_spi will be
easier to trace through
In addition to the log do
dmesg | tail > dmesg.log
and attach that log too
If you do and the driver should work, we can try to find out why it isn't.
Post by s***@gmail.com
If you don't, what the differences are from the BCM2837 for example, I
have no idea
I am guessing you are trying to generate steps using the SPI, that is an
area outside my experience
but there seems to be quite a bit about it on the RPi forums
Actually, I tought that hal_spi is used to write something to a MCU that
will control the motor generating steps.
I think it sends the commanded velocity and the MCU updates the PWM.
I am not sure of those things, though
Post by s***@gmail.com
The log does not show what your earlier email showed, there is not
mention of an error from insmod
I think you need to get right back to basics.
This driver was written 5 years ago and is specific to the BCM2835 chip
It can only have been meant to support Pi v1 & v2 and maybe not all of
them, as they kept changing versions and hardware,
because nothing of a higher version had been released then
Does this driver support your Pi?
In case of doubt I gave a look to wiringPi, it calls ioctl and write/reads
from /dev/spidev.
Is calling that syscall from a hal driver a sane thing to do? (It is for
example used here
<https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_p260c.c>
)
Post by s***@gmail.com
Regards DEBUG, the ini file bit was explained by the text you deleted
from yours.
It takes a hexidecimal number up to 0x7FFFFFFF, the output is to terminal
and the output is from NML messaging
The exported DEBUG=5 is the debug setting for logging and relates to the
rtapi system, not NML
Thanks for the explanation, Schooner
Post by s***@gmail.com
Post by s***@gmail.com
You are not running with DEBUG=5
I edited DEBUG = 5 in ini file(in EMC section), nothing changed, then I
exported DEBUG=5 in bash. what is the difference? what is the deBUG setting
in the ini file for?
Attached you can find the ini and the hal file, I edited the CRAMPS
configuration, basically removing everything relative to the PRU, and
adding loadrt hal_spi in CRAMPS.hal (and leaving one only axis)
linuxcnc_old.log is everything before adding loadrt hal_spi.
linuxcnc.log is the execution with loadrt hal_spi and termila_output
shows what has been written, I attached it because it talks about
rtapi_rpc(): reply timeout, that is not mentioned in the log
Linux realtimepi 4.14.66-rt40-v7 #2 SMP PREEMPT RT Mon Sep 17 21:15:46
UTC 2018 armv7l GNU/Linux
Post by s***@gmail.com
Do so and your linuxcnc.log will have info as to what failed.
Also as I said in my last reply, it does not look as though you have a
realtime kernel, irrespective of what you have named your pi.
Hi everyone,
I am sorry to post another noob question here, but,
I am trying to use the hal module hal_spi, shortly I tried with
loadrt hal_spi
in the hal file, but
rtapi_rpc(): reply timeout
See /var/log/linuxcnc.log for more information.
in the log
Sep 21 14:22:09 realtimepi msgd:0: startup pid=5979 flavor=posix rtlevel
=1 usrlevel=1 halsize=524288 shm=Posix cc=gcc 6.3.0 20170516 version=
unknown
Sep 21 14:22:09 realtimepi msgd:0: ØMQ=4.2.1 czmq=4.0.2 protobuf=3.0.0
atomics=gcc intrinsics libwebsockets=2.0.3
Sep 21 14:22:09 realtimepi msgd:0: configured: sha=b87920504
Sep 21 14:22:09 realtimepi msgd:0: built: Sep 18 2018 16:43:17 sha=
b87920504
Sep 21 14:22:09 realtimepi msgd:0: register_stuff: actual hostname as
announced by avahi='realtimepi.local'
Sep 21 14:22:09 realtimepi msgd:0: zeroconf: registering: 'Log service
on realtimepi.local pid 5979'
Sep 21 14:22:10 realtimepi rtapi:0: rtapi_msgd went away, exiting
Sep 21 14:22:10 realtimepi msgd:0: zeroconf: registered 'Log service on
realtimepi.local pid 5979' _machinekit._tcp 0 TXT
"uuid=a42c8c6b-4025-4f83-ba28-dad21114744a"
"instance=b9c730a2-bda9-11e8-bcc3-b827eb4bcf42" "service=log"
"dsn=ipc:///tmp/0.log.a42c8c6b-4025-4f83-ba28-dad21114744a"
I tried launching machinekit without it and adding it later using halcmd
loadrt hal_spi, but with similar results
should I give it some arguments? I don't know how to understand how to
write them from the code...
Maybe the module is old and has lost some compatibility?
right now i am executing from
Linux realtimepi 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST 2018
armv7l GNU/Linux
Debian Stretch, Machinekit compiled from source
maybe should I explicit the path to hal_spi?
mngr
--
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
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
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
--
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
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
--
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
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 machinekit+***@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
s***@gmail.com
2018-09-23 15:47:39 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user hal_spi.so
default iparms: ''<br>
Sep 23 15:03:17 realtimepi rtapi:0: 1:rtapi_app:701:user : hal_spi
init!!!!err<br>
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user : hal_spi
init!!!!dbg<br>
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user
halg_xinitfv:90 HAL: initializing component 'hal_spi' type=1 arg1=0
arg2=0/0x0<br>
<br>
Since you haven't said where these extra prints are located, their
presence means nothing to me<br>
<br>
The module is obviously loading to a point but it does not look as
though the driver is getting any further than hal_init, which calls
halg_xinitfv()<br>
then is failing catastrophically<br>
<br>
You are loading with no args, are the defaults suitable for your
board / setup?<br>
Not that it looks that it gets that far, due the complete absence of
other error or info messages<br>
<br>
The insmod error is completely non specific, so doesn't help, may
just be picking up the last return value.<br>
<br>
What is the output from /proc/cpuinfo and what version etc is your
Pi?<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 23/09/18 16:12, mngr wrote:<br>
</div>
<blockquote
cite="mid:67cb1699-abac-4f94-8e50-***@googlegroups.com"
type="cite">
<div dir="ltr">
<div>Attached.</div>
<div><br>
</div>
<div>In the log you can see the message I added in the hal_spi
rtapi_app_main.</div>
<div><br>
</div>
<div>
<div style="background-color: rgb(250, 250, 250);
border-color: rgb(187, 187, 187); border-style: solid;
border-width: 1px; overflow-wrap: break-word;"
class="prettyprint"><code class="prettyprint">
<div class="subprettyprint"><span style="color: #000;"
class="styled-by-prettify">***@realtimepi</span><span
style="color: #660;" class="styled-by-prettify">:~</span><span
style="color: #000;" class="styled-by-prettify"> $
halcmd loadrt hal_spi<br>
</span><span style="color: #080;"
class="styled-by-prettify">&lt;commandline&gt;</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">0</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #000;" class="styled-by-prettify">
insmod failed</span><span style="color: #660;"
class="styled-by-prettify">,</span><span style="color:
#000;" class="styled-by-prettify"> returned </span><span
style="color: #660;" class="styled-by-prettify">-</span><span
style="color: #066;" class="styled-by-prettify">1</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #000;" class="styled-by-prettify"><br>
rtapi_rpc</span><span style="color: #660;"
class="styled-by-prettify">():</span><span
style="color: #000;" class="styled-by-prettify"> reply
timeout<br>
</span><span style="color: #606;"
class="styled-by-prettify">See</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #660;" class="styled-by-prettify">/</span><span
style="color: #008;" class="styled-by-prettify">var</span><span
style="color: #660;" class="styled-by-prettify">/</span><span
style="color: #000;" class="styled-by-prettify">log</span><span
style="color: #660;" class="styled-by-prettify">/</span><span
style="color: #000;" class="styled-by-prettify">linuxcnc</span><span
style="color: #660;" class="styled-by-prettify">.</span><span
style="color: #000;" class="styled-by-prettify">log </span><span
style="color: #008;" class="styled-by-prettify">for</span><span
style="color: #000;" class="styled-by-prettify"> more
information</span><span style="color: #660;"
class="styled-by-prettify">.</span><span style="color:
#000;" class="styled-by-prettify"><br>
***@realtimepi</span><span style="color: #660;"
class="styled-by-prettify">:~</span><span
style="color: #000;" class="styled-by-prettify"> $
halcmd show all<br>
halcmd</span><span style="color: #660;"
class="styled-by-prettify">:</span><span style="color:
#000;" class="styled-by-prettify"> cant connect to
rtapi_app</span><span style="color: #660;"
class="styled-by-prettify">:</span><span style="color:
#000;" class="styled-by-prettify"> </span><span
style="color: #660;" class="styled-by-prettify">-</span><span
style="color: #066;" class="styled-by-prettify">1</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #660;" class="styled-by-prettify">(</span><span
style="color: #000;" class="styled-by-prettify">uri</span><span
style="color: #660;" class="styled-by-prettify">=</span><span
style="color: #000;" class="styled-by-prettify"> uuid</span><span
style="color: #660;" class="styled-by-prettify">=</span><span
style="color: #000;" class="styled-by-prettify">a42c8c6b</span><span
style="color: #660;" class="styled-by-prettify">-</span><span
style="color: #066;" class="styled-by-prettify">4025</span><span
style="color: #660;" class="styled-by-prettify">-</span><span
style="color: #066;" class="styled-by-prettify">4f83</span><span
style="color: #660;" class="styled-by-prettify">-</span><span
style="color: #000;" class="styled-by-prettify">ba28</span><span
style="color: #660;" class="styled-by-prettify">-</span><span
style="color: #000;" class="styled-by-prettify">dad21114744a</span><span
style="color: #660;" class="styled-by-prettify">):</span><span
style="color: #000;" class="styled-by-prettify">
rtapi_rpc</span><span style="color: #660;"
class="styled-by-prettify">():</span><span
style="color: #000;" class="styled-by-prettify"> reply
timeout<br>
<br>
E</span><span style="color: #660;"
class="styled-by-prettify">:</span><span style="color:
#000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">18</span><span
style="color: #660;" class="styled-by-prettify">-</span><span
style="color: #066;" class="styled-by-prettify">09</span><span
style="color: #660;" class="styled-by-prettify">-</span><span
style="color: #066;" class="styled-by-prettify">23</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #066;" class="styled-by-prettify">15</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">04</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">20</span><span
style="color: #000;" class="styled-by-prettify">
dangling </span><span style="color: #080;"
class="styled-by-prettify">'DEALER'</span><span
style="color: #000;" class="styled-by-prettify">
socket created at hal</span><span style="color: #660;"
class="styled-by-prettify">/</span><span style="color:
#000;" class="styled-by-prettify">utils</span><span
style="color: #660;" class="styled-by-prettify">/</span><span
style="color: #000;" class="styled-by-prettify">halcmd_rtapiapp</span><span
style="color: #660;" class="styled-by-prettify">.</span><span
style="color: #000;" class="styled-by-prettify">cc</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #066;" class="styled-by-prettify">281</span><span
style="color: #000;" class="styled-by-prettify"><br>
</span></div>
</code></div>
<br>
<br>
</div>
<div>Il giorno domenica 23 settembre 2018 16:43:25 UTC+2,
Schooner ha scritto:</div>
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF"> <br>
<div>On 23/09/18 15:16, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<br>
Il giorno domenica 23 settembre 2018 15:34:58 UTC+2,
Schooner ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> It's not about
doubt<br>
cat /proc/cpuinfo<br>
will tell you whether you have BCM2835<br>
</div>
</blockquote>
<div> </div>
<div>Thanks didn't know about that! on the rpi is
written 2837, bit cpuinfo says 2835!</div>
<div>So at least the part that writes in the SPI
registers should work.</div>
<div><br>
</div>
<div>I tried to add some debug message in hal_spi <span>rtapi_app_main
function, but I don't see them anywhere, I have
exported DEBUG=5, and maximized the DEBUG value in
the ini file. I am looking in /var/log/linuxcnc.log
and in the terminal output.</span></div>
<div><span>I have tried with different msg types <br>
</span></div>
<div><span><br>
</span></div>
<div><span>rtapi_print_msg(RTAPI_MSG_ERR, ": hal_spi
init!!!!err\n");<br>
rtapi_print_msg(RTAPI_MSG_DBG, ": hal_spi
init!!!!dbg\n");<br>
rtapi_print_msg(RTAPI_MSG_ALL, ": hal_spi
init!!!!all\n");<br>
</span></div>
</div>
</blockquote>
<br>
There are plenty of error messages in the driver already.  I
did not see any in the log however which makes me<br>
suspect it was never loaded.<br>
If insmod errors it should say why however and that was not
in there either.<br>
<br>
Instead of complicating things with loading a non working
config, just to load the driver, try this in a terminal on
your Pi<br>
<br>
sudo &gt; /var/log/linuxcnc.log (you may have to run this a
root, it should zero the log)<br>
DEBUG=5 realtime restart<br>
halcmd loadrt hal_spi<br>
halcmd show all<br>
halrun -U<br>
<br>
That should give you a short log and if it errors loading
hal_spi will be easier to trace through<br>
<br>
In addition to the log do<br>
<br>
dmesg | tail &gt; dmesg.log <br>
<br>
and attach that log too<br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> If you do and
the driver should work, we can try to find out why
it isn't.<br>
<br>
If you don't, what the differences are from the
BCM2837 for example, I have no idea<br>
<br>
I am guessing you are trying to generate steps using
the SPI, that is an area outside my experience<br>
but there seems to be quite a bit about it on the
RPi forums<br>
</div>
</blockquote>
<div><br>
</div>
<div>Actually, I tought that hal_spi is used to write
something to a MCU that will control the motor
generating steps.</div>
<div>I think it sends the commanded velocity and the MCU
updates the PWM.</div>
<div>I am not sure of those things, though<br>
</div>
<div text="#000000" bgcolor="#FFFFFF"><br>
<div>On 23/09/18 13:50, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<br>
Il giorno domenica 23 settembre 2018 13:41:42
UTC+2, Schooner ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> The log
does not show what your earlier email showed,
there is not mention of an error from insmod<br>
<br>
I think you need to get right back to basics.<br>
<br>
This driver was written 5 years ago and is
specific to the BCM2835 chip<br>
It can only have been meant to support Pi v1
&amp; v2 and maybe not all of them, as they
kept changing versions and hardware,<br>
because nothing of a higher version had been
released then<br>
<br>
Does this driver support your Pi?<br>
</div>
</blockquote>
<div><br>
</div>
<div>In case of doubt I gave a look to wiringPi,
it calls ioctl and write/reads from /dev/spidev.</div>
<div>Is calling that syscall from a hal driver a
sane thing to do? (It is for example used <a
moz-do-not-send="true"
href="https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_p260c.c"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit%2Fmachinekit%2Fblob%2Fmaster%2Fsrc%2Fhal%2Fdrivers%2Fhal_p260c.c\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiiaXDhJO-MrGOOLcvAh8yi4_pxg';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit%2Fmachinekit%2Fblob%2Fmaster%2Fsrc%2Fhal%2Fdrivers%2Fhal_p260c.c\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiiaXDhJO-MrGOOLcvAh8yi4_pxg';return
true;">here</a>)<br>
</div>
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Regards
DEBUG, the ini file bit was explained by the
text you deleted from yours.<br>
It takes a hexidecimal number up to
0x7FFFFFFF, the output is to terminal and the
output is from NML messaging<br>
<br>
The exported DEBUG=5 is the debug setting for
logging and relates to the rtapi system, not
NML<br>
</div>
</blockquote>
<div><br>
</div>
<div>Thanks for the explanation, Schooner<br>
</div>
<div> </div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>On 23/09/18 11:07, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<br>
Il giorno venerdì 21 settembre 2018
16:44:50 UTC+2, Schooner ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
You are not running with DEBUG=5<br>
</div>
</blockquote>
<div><br>
</div>
<div>I edited DEBUG = 5 in ini file(in EMC
section), nothing changed, then I
exported DEBUG=5 in bash. what is the
difference? what is the deBUG setting in
the ini file for?</div>
<div><br>
</div>
<div>Attached you can find the ini and the
hal file, I edited the CRAMPS
configuration, basically removing
everything relative to the PRU, and
adding loadrt hal_spi in CRAMPS.hal (and
leaving one only axis)<br>
</div>
<div>linuxcnc_old.log is everything before
adding loadrt hal_spi. <br>
</div>
<div>linuxcnc.log is the execution with
loadrt hal_spi and termila_output shows
what has been written, I attached it
because it talks about rtapi_rpc():
reply timeout, that is not mentioned in
the log<br>
</div>
<div><br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#000">***@realtimepi</span><span
style="color:#660">:~</span><span
style="color:#000"> $ uname </span><span
style="color:#660">-</span><span
style="color:#000">a<br>
</span><span style="color:#606">Linux</span><span
style="color:#000"> realtimepi </span><span
style="color:#066">4.14</span><span
style="color:#660">.</span><span
style="color:#066">66</span><span
style="color:#660">-</span><span
style="color:#000">rt40</span><span
style="color:#660">-</span><span
style="color:#000">v7 </span><span
style="color:#800">#2 SMP
PREEMPT RT Mon Sep 17 21:15:46
UTC 2018 armv7l GNU/Linux</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
<br>
</div>
<div> </div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Do so and your linuxcnc.log will have
info as to what failed.<br>
<br>
Also as I said in my last reply, it
does not look as though you have a
realtime kernel, irrespective of what
you have named your pi.<br>
<br>
<div>On 21/09/18 15:31, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi everyone,</div>
<div><br>
</div>
<div>I am sorry to post another
noob question here, but,</div>
<div><br>
</div>
<div>I am trying to use the hal
module hal_spi, shortly I tried
with <br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#000">loadrt

hal_spi<br>
</span></div>
</code></div>
in the hal file, but </div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#000">CRAMPS</span><span
style="color:#660">.</span><span
style="color:#000">hal</span><span
style="color:#660">:</span><span
style="color:#066">15</span><span
style="color:#660">:</span><span
style="color:#000">
insmod failed</span><span
style="color:#660">,</span><span
style="color:#000">
returned </span><span
style="color:#660">-</span><span
style="color:#066">1</span><span
style="color:#660">:</span><span
style="color:#000"><br>
rtapi_rpc</span><span
style="color:#660">():</span><span
style="color:#000">
reply timeout<br>
</span><span
style="color:#606">See</span><span
style="color:#000"> </span><span
style="color:#660">/</span><span
style="color:#008">var</span><span
style="color:#660">/</span><span
style="color:#000">log</span><span
style="color:#660">/</span><span
style="color:#000">linuxcnc</span><span
style="color:#660">.</span><span
style="color:#000">log </span><span
style="color:#008">for</span><span
style="color:#000"> more
information</span><span
style="color:#660">.</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
in the log</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000">
realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000">
startup pid</span><span
style="color:#660">=</span><span
style="color:#066">5979</span><span
style="color:#000">
flavor</span><span
style="color:#660">=</span><span
style="color:#000">posix
rtlevel</span><span
style="color:#660">=</span><span
style="color:#066">1</span><span
style="color:#000">
usrlevel</span><span
style="color:#660">=</span><span
style="color:#066">1</span><span
style="color:#000">
halsize</span><span
style="color:#660">=</span><span
style="color:#066">524288</span><span
style="color:#000"> shm</span><span
style="color:#660">=</span><span
style="color:#606">Posix</span><span
style="color:#000"> cc</span><span
style="color:#660">=</span><span
style="color:#000">gcc </span><span
style="color:#066">6.3</span><span
style="color:#660">.</span><span
style="color:#066">0</span><span
style="color:#000"> </span><span
style="color:#066">20170516</span><span
style="color:#000">
 version</span><span
style="color:#660">=</span><span
style="color:#000">unknown<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000">
realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#660">Ø</span><span
style="color:#000">MQ</span><span
style="color:#660">=</span><span
style="color:#066">4.2</span><span
style="color:#660">.</span><span
style="color:#066">1</span><span
style="color:#000"> czmq</span><span
style="color:#660">=</span><span
style="color:#066">4.0</span><span
style="color:#660">.</span><span
style="color:#066">2</span><span
style="color:#000">
protobuf</span><span
style="color:#660">=</span><span
style="color:#066">3.0</span><span
style="color:#660">.</span><span
style="color:#066">0</span><span
style="color:#000">
atomics</span><span
style="color:#660">=</span><span
style="color:#000">gcc
intrinsics  
 libwebsockets</span><span
style="color:#660">=</span><span
style="color:#066">2.0</span><span
style="color:#660">.</span><span
style="color:#066">3</span><span
style="color:#000"><br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000">
realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000">
configured</span><span
style="color:#660">:</span><span
style="color:#000"> sha</span><span
style="color:#660">=</span><span
style="color:#000">b87920504<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000">
realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000">
built</span><span
style="color:#660">:</span><span
style="color:#000">    
 </span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">18</span><span
style="color:#000"> </span><span
style="color:#066">2018</span><span
style="color:#000"> </span><span
style="color:#066">16</span><span
style="color:#660">:</span><span
style="color:#066">43</span><span
style="color:#660">:</span><span
style="color:#066">17</span><span
style="color:#000"> sha</span><span
style="color:#660">=</span><span
style="color:#000">b87920504<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000">
realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000">
register_stuff</span><span
style="color:#660">:</span><span
style="color:#000">
actual hostname </span><span
style="color:#008">as</span><span
style="color:#000">
announced </span><span
style="color:#008">by</span><span
style="color:#000">
avahi</span><span
style="color:#660">=</span><span
style="color:#080">'realtimepi.local'</span><span
style="color:#000"><br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span
style="color:#000">
realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000">
zeroconf</span><span
style="color:#660">:</span><span
style="color:#000">
registering</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#080">'Log
service on
realtimepi.local pid
5979'</span><span
style="color:#000"><br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">10</span><span
style="color:#000">
realtimepi rtapi</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000">
rtapi_msgd went away</span><span
style="color:#660">,</span><span
style="color:#000">
exiting<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span
style="color:#066">21</span><span
style="color:#000"> </span><span
style="color:#066">14</span><span
style="color:#660">:</span><span
style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">10</span><span
style="color:#000">
realtimepi msgd</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000">
zeroconf</span><span
style="color:#660">:</span><span
style="color:#000">
registered </span><span
style="color:#080">'Log
service on
realtimepi.local pid
5979'</span><span
style="color:#000">
_machinekit</span><span
style="color:#660">.</span><span
style="color:#000">_tcp
</span><span
style="color:#066">0</span><span
style="color:#000"> TXT
</span><span
style="color:#080">"uuid=a42c8c6b-4025-4f83-ba28-<wbr>dad21114744a"</span><span
style="color:#000"> </span><span
style="color:#080">"instance=b9c730a2-bda9-11e8-<wbr>bcc3-b827eb4bcf42"</span><span
style="color:#000"> </span><span
style="color:#080">"service=log"</span><span
style="color:#000"> </span><span
style="color:#080">"dsn=ipc:///tmp/0.log.<wbr>a42c8c6b-4025-4f83-ba28-<wbr>dad21114744a"</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
I tried launching machinekit
without it and adding it later
using halcmd loadrt hal_spi, but
with similar results<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>should I give it some
arguments? I don't know how to
understand how to write them
from the code...</div>
<div>Maybe the module is old and
has lost some compatibility?</div>
<div><br>
</div>
<div>right now i am executing from</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#606">Linux</span><span
style="color:#000">
realtimepi </span><span
style="color:#066">4.14</span><span
style="color:#660">.</span><span
style="color:#066">69</span><span
style="color:#660">-</span><span
style="color:#000">v7</span><span
style="color:#660">+</span><span
style="color:#000"> </span><span
style="color:#800">#1141
SMP Mon Sep 10 15:26:29
BST 2018 armv7l
GNU/Linux</span><span
style="color:#000"><br>
</span></div>
</code></div>
Debian Stretch, Machinekit
compiled from source<br>
</div>
<div>maybe should I explicit the
path to hal_spi?</div>
<div><br>
</div>
<div>mngr<br>
</div>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true"
href="http://blog.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because
you are subscribed to the Google
Groups "Machinekit" group.<br>
To unsubscribe from this group and
stop receiving emails from it, send
an email to <a
moz-do-not-send="true"
rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a
moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog:
<a moz-do-not-send="true"
href="http://blog.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are
subscribed to the Google Groups "Machinekit"
group.<br>
To unsubscribe from this group and stop
receiving emails from it, send an email to <a
moz-do-not-send="true" rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a
moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io" rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed
to the Google Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving
emails from it, send an email to <a
moz-do-not-send="true" rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px #ccc
solid;padding-left:1ex"> </blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" target="_blank"
rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true" href="http://blog.machinekit.io"
target="_blank" rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" target="_blank"
rel="nofollow"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to
the Google Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails
from it, send an email to <a moz-do-not-send="true"
href="javascript:" target="_blank"
gdf-obfuscated-mailto="zeZkGCxRCgAJ" rel="nofollow"
onmousedown="this.href='javascript:';return true;"
onclick="this.href='javascript:';return true;">machinekit+...@<wbr>googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true" href="http://blog.machinekit.io">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to the Google
Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails from it,
send an email to <a moz-do-not-send="true"
href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br>
</blockquote>
<br>
</body>
</html>

<p></p>

-- <br />
website: <a href="http://www.machinekit.io">http://www.machinekit.io</a> blog: <a href="http://blog.machinekit.io">http://blog.machinekit.io</a> github: <a href="https://github.com/machinekit">https://github.com/machinekit</a><br />
--- <br />
You received this message because you are subscribed to the Google Groups &quot;Machinekit&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br />
Visit this group at <a href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />
mngr
2018-09-23 17:01:38 UTC
Permalink
Thanks for the explanation about machinkit workings,

I played with the stamps and found that it was blocking on
while (!(BCM2835_SPICS & SPI_CS_DONE)); (Line 438)

removing it halrun loads, now I will see if and what it writes. maybe I
will have to control the low level implementation... but now I know more
things.

One more question, how does a hal module read the args?
Post by s***@gmail.com
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user hal_spi.so
default iparms: ''
Sep 23 15:03:17 realtimepi rtapi:0: 1:rtapi_app:701:user : hal_spi
init!!!!err
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user : hal_spi
init!!!!dbg
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user halg_xinitfv:90
HAL: initializing component 'hal_spi' type=1 arg1=0 arg2=0/0x0
Since you haven't said where these extra prints are located, their
presence means nothing to me
The module is obviously loading to a point but it does not look as though
Post by s***@gmail.com
the driver is getting any further than hal_init, which calls halg_xinitfv()
then is failing catastrophically
You are loading with no args, are the defaults suitable for your board /
setup?
Not that it looks that it gets that far, due the complete absence of other
error or info messages
The insmod error is completely non specific, so doesn't help, may just be
picking up the last return value.
What is the output from /proc/cpuinfo and what version etc is your Pi?
Attached.
In the log you can see the message I added in the hal_spi rtapi_app_main.
rtapi_rpc(): reply timeout
See /var/log/linuxcnc.log for more information.
halcmd: cant connect to rtapi_app: -1 (uri= uuid=a42c8c6b-4025-4f83-ba28-
dad21114744a): rtapi_rpc(): reply timeout
E: 18-09-23 15:04:20 dangling 'DEALER' socket created at hal/utils/
halcmd_rtapiapp.cc:281
Post by mngr
Post by s***@gmail.com
It's not about doubt
cat /proc/cpuinfo
will tell you whether you have BCM2835
Thanks didn't know about that! on the rpi is written 2837, bit cpuinfo
says 2835!
So at least the part that writes in the SPI registers should work.
I tried to add some debug message in hal_spi rtapi_app_main function,
but I don't see them anywhere, I have exported DEBUG=5, and maximized the
DEBUG value in the ini file. I am looking in /var/log/linuxcnc.log and in
the terminal output.
I have tried with different msg types
rtapi_print_msg(RTAPI_MSG_ERR, ": hal_spi init!!!!err\n");
rtapi_print_msg(RTAPI_MSG_DBG, ": hal_spi init!!!!dbg\n");
rtapi_print_msg(RTAPI_MSG_ALL, ": hal_spi init!!!!all\n");
There are plenty of error messages in the driver already. I did not see
any in the log however which makes me
suspect it was never loaded.
If insmod errors it should say why however and that was not in there
either.
Instead of complicating things with loading a non working config, just to
load the driver, try this in a terminal on your Pi
sudo > /var/log/linuxcnc.log (you may have to run this a root, it should
zero the log)
DEBUG=5 realtime restart
halcmd loadrt hal_spi
halcmd show all
halrun -U
That should give you a short log and if it errors loading hal_spi will be
easier to trace through
In addition to the log do
dmesg | tail > dmesg.log
and attach that log too
If you do and the driver should work, we can try to find out why it isn't.
Post by s***@gmail.com
If you don't, what the differences are from the BCM2837 for example, I
have no idea
I am guessing you are trying to generate steps using the SPI, that is an
area outside my experience
but there seems to be quite a bit about it on the RPi forums
Actually, I tought that hal_spi is used to write something to a MCU that
will control the motor generating steps.
I think it sends the commanded velocity and the MCU updates the PWM.
I am not sure of those things, though
Post by s***@gmail.com
The log does not show what your earlier email showed, there is not
mention of an error from insmod
I think you need to get right back to basics.
This driver was written 5 years ago and is specific to the BCM2835 chip
It can only have been meant to support Pi v1 & v2 and maybe not all of
them, as they kept changing versions and hardware,
because nothing of a higher version had been released then
Does this driver support your Pi?
In case of doubt I gave a look to wiringPi, it calls ioctl and
write/reads from /dev/spidev.
Is calling that syscall from a hal driver a sane thing to do? (It is for
example used here
<https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_p260c.c>
)
Post by s***@gmail.com
Regards DEBUG, the ini file bit was explained by the text you deleted
from yours.
It takes a hexidecimal number up to 0x7FFFFFFF, the output is to
terminal and the output is from NML messaging
The exported DEBUG=5 is the debug setting for logging and relates to the
rtapi system, not NML
Thanks for the explanation, Schooner
Post by s***@gmail.com
Post by s***@gmail.com
You are not running with DEBUG=5
I edited DEBUG = 5 in ini file(in EMC section), nothing changed, then I
exported DEBUG=5 in bash. what is the difference? what is the deBUG setting
in the ini file for?
Attached you can find the ini and the hal file, I edited the CRAMPS
configuration, basically removing everything relative to the PRU, and
adding loadrt hal_spi in CRAMPS.hal (and leaving one only axis)
linuxcnc_old.log is everything before adding loadrt hal_spi.
linuxcnc.log is the execution with loadrt hal_spi and termila_output
shows what has been written, I attached it because it talks about
rtapi_rpc(): reply timeout, that is not mentioned in the log
Linux realtimepi 4.14.66-rt40-v7 #2 SMP PREEMPT RT Mon Sep 17 21:15:46
UTC 2018 armv7l GNU/Linux
Post by s***@gmail.com
Do so and your linuxcnc.log will have info as to what failed.
Also as I said in my last reply, it does not look as though you have a
realtime kernel, irrespective of what you have named your pi.
Hi everyone,
I am sorry to post another noob question here, but,
I am trying to use the hal module hal_spi, shortly I tried with
loadrt hal_spi
in the hal file, but
rtapi_rpc(): reply timeout
See /var/log/linuxcnc.log for more information.
in the log
Sep 21 14:22:09 realtimepi msgd:0: startup pid=5979 flavor=posix
rtlevel=1 usrlevel=1 halsize=524288 shm=Posix cc=gcc 6.3.0 20170516
version=unknown
Sep 21 14:22:09 realtimepi msgd:0: ØMQ=4.2.1 czmq=4.0.2 protobuf=3.0.0
atomics=gcc intrinsics libwebsockets=2.0.3
Sep 21 14:22:09 realtimepi msgd:0: configured: sha=b87920504
Sep 21 14:22:09 realtimepi msgd:0: built: Sep 18 2018 16:43:17 sha
=b87920504
Sep 21 14:22:09 realtimepi msgd:0: register_stuff: actual hostname as
announced by avahi='realtimepi.local'
Sep 21 14:22:09 realtimepi msgd:0: zeroconf: registering: 'Log service
on realtimepi.local pid 5979'
Sep 21 14:22:10 realtimepi rtapi:0: rtapi_msgd went away, exiting
Sep 21 14:22:10 realtimepi msgd:0: zeroconf: registered 'Log service
on realtimepi.local pid 5979' _machinekit._tcp 0 TXT
"uuid=a42c8c6b-4025-4f83-ba28-dad21114744a"
"instance=b9c730a2-bda9-11e8-bcc3-b827eb4bcf42" "service=log"
"dsn=ipc:///tmp/0.log.a42c8c6b-4025-4f83-ba28-dad21114744a"
I tried launching machinekit without it and adding it later using
halcmd loadrt hal_spi, but with similar results
should I give it some arguments? I don't know how to understand how to
write them from the code...
Maybe the module is old and has lost some compatibility?
right now i am executing from
Linux realtimepi 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST 2018
armv7l GNU/Linux
Debian Stretch, Machinekit compiled from source
maybe should I explicit the path to hal_spi?
mngr
--
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
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
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
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
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
--
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
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 machinekit+***@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
s***@gmail.com
2018-09-23 17:35:20 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
OK, good there is some progress.<br>
<br>
You will probably find that whilst loaded, it may not work.<br>
<br>
That while statement is actually <br>
while(!( *(spi + 0) &amp; 0x00010000)<br>
which is extremely specific and if something has changed or if SPI
is not enabled, it will hang forever.<br>
<br>
(gripe here, I have asked you 3 specific questions and you have not
answered any of them)<br>
<br>
<br>
<div class="moz-cite-prefix">On 23/09/18 18:01, mngr wrote:<br>
</div>
<blockquote
cite="mid:9b6d61fa-202c-49fa-9cf3-***@googlegroups.com"
type="cite">
<div dir="ltr">
<div>Thanks for the explanation about machinkit workings,</div>
<div><br>
</div>
<div>I played with the stamps and found that it was blocking on</div>
<div><span class="pl-k">while</span> (!(BCM2835_SPICS &amp;
SPI_CS_DONE)); (Line 438)</div>
<div><br>
</div>
<div>removing it halrun loads, now I will see if and what it
writes. maybe I will have to control the low level
implementation... but now I know more things.</div>
<div><br>
</div>
<div>One more question, how does a hal module read the args? <br>
</div>
<div><br>
</div>
<br>
Il giorno domenica 23 settembre 2018 17:47:44 UTC+2, Schooner ha
scritto:
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF"> Sep 23 15:03:17
realtimepi rtapi:0: 4:rtapi_app:701:user hal_spi.so default
iparms: ''<br>
Sep 23 15:03:17 realtimepi rtapi:0: 1:rtapi_app:701:user :
hal_spi init!!!!err<br>
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user :
hal_spi init!!!!dbg<br>
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user
halg_xinitfv:90 HAL: initializing component 'hal_spi' type=1
arg1=0 arg2=0/0x0<br>
<br>
Since you haven't said where these extra prints are located,
their presence means nothing to me<br>
</div>
</blockquote>
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF"> The module is obviously
loading to a point but it does not look as though the driver
is getting any further than hal_init, which calls
halg_xinitfv()<br>
then is failing catastrophically<br>
<br>
You are loading with no args, are the defaults suitable for
your board / setup?<br>
Not that it looks that it gets that far, due the complete
absence of other error or info messages<br>
<br>
The insmod error is completely non specific, so doesn't
help, may just be picking up the last return value.<br>
<br>
What is the output from /proc/cpuinfo and what version etc
is your Pi?<br>
<br>
<br>
<br>
<div>On 23/09/18 16:12, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Attached.</div>
<div><br>
</div>
<div>In the log you can see the message I added in the
hal_spi rtapi_app_main.</div>
<div><br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#000">***@realtimepi</span><span
style="color:#660">:~</span><span
style="color:#000"> $ halcmd loadrt hal_spi<br> </span><span style="color:#080">&lt;commandline&gt;</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> insmod failed</span><span
style="color:#660">,</span><span
style="color:#000"> returned </span><span
style="color:#660">-</span><span
style="color:#066">1</span><span
style="color:#660">:</span><span
style="color:#000"><br>
rtapi_rpc</span><span style="color:#660">():</span><span
style="color:#000"> reply timeout<br>
</span><span style="color:#606">See</span><span
style="color:#000"> </span><span
style="color:#660">/</span><span
style="color:#008">var</span><span
style="color:#660">/</span><span
style="color:#000">log</span><span
style="color:#660">/</span><span
style="color:#000">linuxcnc</span><span
style="color:#660">.</span><span
style="color:#000">log </span><span
style="color:#008">for</span><span
style="color:#000"> more information</span><span
style="color:#660">.</span><span
style="color:#000"><br>
***@realtimepi</span><span style="color:#660">:~</span><span
style="color:#000"> $ halcmd show all<br>
halcmd</span><span style="color:#660">:</span><span
style="color:#000"> cant connect to rtapi_app</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#660">-</span><span
style="color:#066">1</span><span
style="color:#000"> </span><span
style="color:#660">(</span><span
style="color:#000">uri</span><span
style="color:#660">=</span><span
style="color:#000"> uuid</span><span
style="color:#660">=</span><span
style="color:#000">a42c8c6b</span><span
style="color:#660">-</span><span
style="color:#066">4025</span><span
style="color:#660">-</span><span
style="color:#066">4f83</span><span
style="color:#660">-</span><span
style="color:#000">ba28</span><span
style="color:#660">-</span><span
style="color:#000">d<wbr>ad21114744a</span><span
style="color:#660">):</span><span
style="color:#000"> rtapi_rpc</span><span
style="color:#660">():</span><span
style="color:#000"> reply timeout<br>
<br>
E</span><span style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#066">18</span><span
style="color:#660">-</span><span
style="color:#066">09</span><span
style="color:#660">-</span><span
style="color:#066">23</span><span
style="color:#000"> </span><span
style="color:#066">15</span><span
style="color:#660">:</span><span
style="color:#066">04</span><span
style="color:#660">:</span><span
style="color:#066">20</span><span
style="color:#000"> dangling </span><span
style="color:#080">'DEALER'</span><span
style="color:#000"> socket created at hal</span><span
style="color:#660">/</span><span
style="color:#000">utils</span><span
style="color:#660">/</span><span
style="color:#000">halcmd_rtapiapp</span><span
style="color:#660">.</span><span
style="color:#000">cc</span><span
style="color:#660">:</span><span
style="color:#066">2<wbr>81</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
<br>
</div>
<div>Il giorno domenica 23 settembre 2018 16:43:25
UTC+2, Schooner ha scritto:</div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> <br>
<div>On 23/09/18 15:16, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<br>
Il giorno domenica 23 settembre 2018 15:34:58
UTC+2, Schooner ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> It's
not about doubt<br>
cat /proc/cpuinfo<br>
will tell you whether you have BCM2835<br>
</div>
</blockquote>
<div> </div>
<div>Thanks didn't know about that! on the rpi
is written 2837, bit cpuinfo says 2835!</div>
<div>So at least the part that writes in the SPI
registers should work.</div>
<div><br>
</div>
<div>I tried to add some debug message in
hal_spi <span>rtapi_app_main function, but I
don't see them anywhere, I have exported
DEBUG=5, and maximized the DEBUG value in
the ini file. I am looking in
/var/log/linuxcnc.log and in the terminal
output.</span></div>
<div><span>I have tried with different msg types
<br>
</span></div>
<div><span><br>
</span></div>
<div><span>rtapi_print_msg(RTAPI_MSG_ERR, ":
hal_spi init!!!!err\n");<br>
rtapi_print_msg(RTAPI_MSG_DBG, ": hal_spi
init!!!!dbg\n");<br>
rtapi_print_msg(RTAPI_MSG_ALL, ": hal_spi
init!!!!all\n");<br>
</span></div>
</div>
</blockquote>
<br>
There are plenty of error messages in the driver
already.  I did not see any in the log however which
makes me<br>
suspect it was never loaded.<br>
If insmod errors it should say why however and that
was not in there either.<br>
<br>
Instead of complicating things with loading a non
working config, just to load the driver, try this in
a terminal on your Pi<br>
<br>
sudo &gt; /var/log/linuxcnc.log (you may have to run
this a root, it should zero the log)<br>
DEBUG=5 realtime restart<br>
halcmd loadrt hal_spi<br>
halcmd show all<br>
halrun -U<br>
<br>
That should give you a short log and if it errors
loading hal_spi will be easier to trace through<br>
<br>
In addition to the log do<br>
<br>
dmesg | tail &gt; dmesg.log <br>
<br>
and attach that log too<br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> If you
do and the driver should work, we can try to
find out why it isn't.<br>
<br>
If you don't, what the differences are from
the BCM2837 for example, I have no idea<br>
<br>
I am guessing you are trying to generate
steps using the SPI, that is an area outside
my experience<br>
but there seems to be quite a bit about it
on the RPi forums<br>
</div>
</blockquote>
<div><br>
</div>
<div>Actually, I tought that hal_spi is used to
write something to a MCU that will control the
motor generating steps.</div>
<div>I think it sends the commanded velocity and
the MCU updates the PWM.</div>
<div>I am not sure of those things, though<br>
</div>
<div text="#000000" bgcolor="#FFFFFF"><br>
<div>On 23/09/18 13:50, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<br>
Il giorno domenica 23 settembre 2018
13:41:42 UTC+2, Schooner ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
The log does not show what your
earlier email showed, there is not
mention of an error from insmod<br>
<br>
I think you need to get right back to
basics.<br>
<br>
This driver was written 5 years ago
and is specific to the BCM2835 chip<br>
It can only have been meant to support
Pi v1 &amp; v2 and maybe not all of
them, as they kept changing versions
and hardware,<br>
because nothing of a higher version
had been released then<br>
<br>
Does this driver support your Pi?<br>
</div>
</blockquote>
<div><br>
</div>
<div>In case of doubt I gave a look to
wiringPi, it calls ioctl and write/reads
from /dev/spidev.</div>
<div>Is calling that syscall from a hal
driver a sane thing to do? (It is for
example used <a moz-do-not-send="true"
href="https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_p260c.c"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit%2Fmachinekit%2Fblob%2Fmaster%2Fsrc%2Fhal%2Fdrivers%2Fhal_p260c.c\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiiaXDhJO-MrGOOLcvAh8yi4_pxg';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit%2Fmachinekit%2Fblob%2Fmaster%2Fsrc%2Fhal%2Fdrivers%2Fhal_p260c.c\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiiaXDhJO-MrGOOLcvAh8yi4_pxg';return
true;">here</a>)<br>
</div>
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Regards DEBUG, the ini file bit was
explained by the text you deleted from
yours.<br>
It takes a hexidecimal number up to
0x7FFFFFFF, the output is to terminal
and the output is from NML messaging<br>
<br>
The exported DEBUG=5 is the debug
setting for logging and relates to the
rtapi system, not NML<br>
</div>
</blockquote>
<div><br>
</div>
<div>Thanks for the explanation, Schooner<br>
</div>
<div> </div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>On 23/09/18 11:07, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<br>
Il giorno venerdì 21 settembre
2018 16:44:50 UTC+2, Schooner ha
scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF"> You are not
running with DEBUG=5<br>
</div>
</blockquote>
<div><br>
</div>
<div>I edited DEBUG = 5 in ini
file(in EMC section), nothing
changed, then I exported DEBUG=5
in bash. what is the difference?
what is the deBUG setting in the
ini file for?</div>
<div><br>
</div>
<div>Attached you can find the ini
and the hal file, I edited the
CRAMPS configuration, basically
removing everything relative to
the PRU, and adding loadrt
hal_spi in CRAMPS.hal (and
leaving one only axis)<br>
</div>
<div>linuxcnc_old.log is
everything before adding loadrt
hal_spi. <br>
</div>
<div>linuxcnc.log is the execution
with loadrt hal_spi and
termila_output shows what has
been written, I attached it
because it talks about
rtapi_rpc(): reply timeout, that
is not mentioned in the log<br>
</div>
<div><br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#000">***@realtimepi</span><span
style="color:#660">:~</span><span
style="color:#000"> $
uname </span><span
style="color:#660">-</span><span
style="color:#000">a<br>
</span><span
style="color:#606">Linux</span><span
style="color:#000">
realtimepi </span><span
style="color:#066">4.14</span><span
style="color:#660">.</span><span
style="color:#066">66</span><span
style="color:#660">-</span><span
style="color:#000">rt40</span><span
style="color:#660">-</span><span
style="color:#000">v7 </span><span
style="color:#800">#2
SMP PREEMPT RT Mon Sep
17 21:15:46 UTC 2018
armv7l GNU/Linux</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
<br>
</div>
<div> </div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF"> Do so and
your linuxcnc.log will have
info as to what failed.<br>
<br>
Also as I said in my last
reply, it does not look as
though you have a realtime
kernel, irrespective of what
you have named your pi.<br>
<br>
<div>On 21/09/18 15:31, mngr
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi everyone,</div>
<div><br>
</div>
<div>I am sorry to post
another noob question
here, but,</div>
<div><br>
</div>
<div>I am trying to use
the hal module hal_spi,
shortly I tried with <br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#000">loadrt


hal_spi<br>
</span></div>
</code></div>
in the hal file, but </div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#000">CRAMPS</span><span
style="color:#660">.</span><span style="color:#000">hal</span><span
style="color:#660">:</span><span
style="color:#066">15</span><span style="color:#660">:</span><span
style="color:#000">
insmod failed</span><span
style="color:#660">,</span><span style="color:#000"> returned </span><span
style="color:#660">-</span><span style="color:#066">1</span><span
style="color:#660">:</span><span
style="color:#000"><br>
rtapi_rpc</span><span
style="color:#660">():</span><span style="color:#000"> reply timeout<br>
</span><span
style="color:#606">See</span><span
style="color:#000"> </span><span style="color:#660">/</span><span
style="color:#008">var</span><span
style="color:#660">/</span><span style="color:#000">log</span><span
style="color:#660">/</span><span
style="color:#000">linuxcnc</span><span style="color:#660">.</span><span
style="color:#000">log </span><span style="color:#008">for</span><span
style="color:#000"> more information</span><span style="color:#660">.</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
in the log</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> startup pid</span><span style="color:#660">=</span><span
style="color:#066">5979</span><span style="color:#000"> flavor</span><span
style="color:#660">=</span><span style="color:#000">posix rtlevel</span><span
style="color:#660">=</span><span style="color:#066">1</span><span
style="color:#000">
usrlevel</span><span
style="color:#660">=</span><span style="color:#066">1</span><span
style="color:#000">
halsize</span><span
style="color:#660">=</span><span style="color:#066">524288</span><span
style="color:#000">
shm</span><span
style="color:#660">=</span><span style="color:#606">Posix</span><span
style="color:#000">
cc</span><span
style="color:#660">=</span><span
style="color:#000">gcc </span><span style="color:#066">6.3</span><span
style="color:#660">.</span><span style="color:#066">0</span><span
style="color:#000">
</span><span
style="color:#066">20170516</span><span
style="color:#000">  version</span><span style="color:#660">=</span><span
style="color:#000">unknown<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span style="color:#660">Ø</span><span
style="color:#000">MQ</span><span
style="color:#660">=</span><span style="color:#066">4.2</span><span
style="color:#660">.</span><span
style="color:#066">1</span><span style="color:#000"> czmq</span><span
style="color:#660">=</span><span
style="color:#066">4.0</span><span style="color:#660">.</span><span
style="color:#066">2</span><span
style="color:#000"> protobuf</span><span style="color:#660">=</span><span
style="color:#066">3.0</span><span style="color:#660">.</span><span
style="color:#066">0</span><span
style="color:#000"> atomics</span><span style="color:#660">=</span><span
style="color:#000">gcc intrinsics    libwebsockets</span><span
style="color:#660">=</span><span
style="color:#066">2.0</span><span style="color:#660">.</span><span
style="color:#066">3</span><span
style="color:#000"><br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> configured</span><span style="color:#660">:</span><span
style="color:#000"> sha</span><span style="color:#660">=</span><span
style="color:#000">b87920504<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> built</span><span style="color:#660">:</span><span
style="color:#000">
     </span><span
style="color:#606">Sep</span><span style="color:#000"> </span><span
style="color:#066">18</span><span
style="color:#000"> </span><span style="color:#066">2018</span><span
style="color:#000">
</span><span
style="color:#066">16</span><span
style="color:#660">:</span><span style="color:#066">43</span><span
style="color:#660">:</span><span
style="color:#066">17</span><span style="color:#000"> sha</span><span
style="color:#660">=</span><span
style="color:#000">b87920504<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> register_stuff</span><span style="color:#660">:</span><span
style="color:#000"> actual hostname </span><span style="color:#008">as</span><span
style="color:#000"> announced </span><span style="color:#008">by</span><span
style="color:#000"> avahi</span><span style="color:#660">=</span><span
style="color:#080">'realtimepi.local'</span><span
style="color:#000"><br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> zeroconf</span><span style="color:#660">:</span><span
style="color:#000"> registering</span><span style="color:#660">:</span><span
style="color:#000"> </span><span style="color:#080">'Log service on
realtimepi.local
pid 5979'</span><span
style="color:#000"><br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">10</span><span style="color:#000"> realtimepi rtapi</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> rtapi_msgd went away</span><span style="color:#660">,</span><span
style="color:#000"> exiting<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">10</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> zeroconf</span><span style="color:#660">:</span><span
style="color:#000"> registered </span><span style="color:#080">'Log
service on
realtimepi.local
pid 5979'</span><span
style="color:#000"> _machinekit</span><span style="color:#660">.</span><span
style="color:#000">_tcp </span><span style="color:#066">0</span><span
style="color:#000">
TXT </span><span
style="color:#080">"uuid=a42c8c6b-4025-4f83-ba28-<wbr>dad21114744a"</span><span
style="color:#000"> </span><span style="color:#080">"instance=b9c730a2-bda9-11e8-<wbr>bcc3-b827eb4bcf42"</span><span
style="color:#000"> </span><span style="color:#080">"service=log"</span><span
style="color:#000"> </span><span style="color:#080">"dsn=ipc:///tmp/0.log.<wbr>a42c8c6b-4025-4f83-ba28-<wbr>dad21114744a"</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
I tried launching
machinekit without it
and adding it later
using halcmd loadrt
hal_spi, but with
similar results<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>should I give it some
arguments? I don't know
how to understand how to
write them from the
code...</div>
<div>Maybe the module is
old and has lost some
compatibility?</div>
<div><br>
</div>
<div>right now i am
executing from</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#606">Linux</span><span
style="color:#000"> realtimepi </span><span style="color:#066">4.14</span><span
style="color:#660">.</span><span style="color:#066">69</span><span
style="color:#660">-</span><span
style="color:#000">v7</span><span style="color:#660">+</span><span
style="color:#000">
</span><span
style="color:#800">#1141

SMP Mon Sep 10
15:26:29 BST
2018 armv7l
GNU/Linux</span><span
style="color:#000"><br>
</span></div>
</code></div>
Debian Stretch,
Machinekit compiled from
source<br>
</div>
<div>maybe should I
explicit the path to
hal_spi?</div>
<div><br>
</div>
<div>mngr<br>
</div>
</div>
-- <br>
website: <a
moz-do-not-send="true"
href="http://www.machinekit.io"
rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io"
rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a
moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow"
target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message
because you are subscribed
to the Google Groups
"Machinekit" group.<br>
To unsubscribe from this
group and stop receiving
emails from it, send an
email to <a
moz-do-not-send="true"
rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a
moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true"
href="http://blog.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because
you are subscribed to the Google
Groups "Machinekit" group.<br>
To unsubscribe from this group and
stop receiving emails from it, send
an email to <a
moz-do-not-send="true"
rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a
moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog:
<a moz-do-not-send="true"
href="http://blog.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are
subscribed to the Google Groups "Machinekit"
group.<br>
To unsubscribe from this group and stop
receiving emails from it, send an email to <a
moz-do-not-send="true" rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a
moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex"> </blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io" rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are
subscribed to the Google Groups "Machinekit"
group.<br>
To unsubscribe from this group and stop receiving
emails from it, send an email to <a
moz-do-not-send="true" rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" target="_blank"
rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true" href="http://blog.machinekit.io"
target="_blank" rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" target="_blank"
rel="nofollow"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to
the Google Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails
from it, send an email to <a moz-do-not-send="true"
href="javascript:" target="_blank"
gdf-obfuscated-mailto="KdyVlK5UCgAJ" rel="nofollow"
onmousedown="this.href='javascript:';return true;"
onclick="this.href='javascript:';return true;">machinekit+...@<wbr>googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true" href="http://blog.machinekit.io">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to the Google
Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails from it,
send an email to <a moz-do-not-send="true"
href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br>
</blockquote>
<br>
</body>
</html>

<p></p>

-- <br />
website: <a href="http://www.machinekit.io">http://www.machinekit.io</a> blog: <a href="http://blog.machinekit.io">http://blog.machinekit.io</a> github: <a href="https://github.com/machinekit">https://github.com/machinekit</a><br />
--- <br />
You received this message because you are subscribed to the Google Groups &quot;Machinekit&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br />
Visit this group at <a href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />
mngr
2018-09-23 19:35:01 UTC
Permalink
I am really sorry Schooner, I was excited about the findings...
I actually don't know which args suits my setup, I looked in the source,
but I don't know how to find where they are used,
I tried to scroll it all, but found no place that seems to use them.
My board is a Raspberry Pi 3 model B V 1.2 and attached you can find the
cpuinfo output
Spi is enabled from raspi-config, and in /dev there is spidev0.0 and
spidev0.1
Post by s***@gmail.com
OK, good there is some progress.
You will probably find that whilst loaded, it may not work.
That while statement is actually
while(!( *(spi + 0) & 0x00010000)
which is extremely specific and if something has changed or if SPI is not
enabled, it will hang forever.
(gripe here, I have asked you 3 specific questions and you have not
answered any of them)
Thanks for the explanation about machinkit workings,
I played with the stamps and found that it was blocking on
while (!(BCM2835_SPICS & SPI_CS_DONE)); (Line 438)
removing it halrun loads, now I will see if and what it writes. maybe I
will have to control the low level implementation... but now I know more
things.
One more question, how does a hal module read the args?
Post by s***@gmail.com
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user hal_spi.so
default iparms: ''
Sep 23 15:03:17 realtimepi rtapi:0: 1:rtapi_app:701:user : hal_spi
init!!!!err
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user : hal_spi
init!!!!dbg
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user halg_xinitfv:90
HAL: initializing component 'hal_spi' type=1 arg1=0 arg2=0/0x0
Since you haven't said where these extra prints are located, their
presence means nothing to me
The module is obviously loading to a point but it does not look as though
Post by s***@gmail.com
the driver is getting any further than hal_init, which calls halg_xinitfv()
then is failing catastrophically
You are loading with no args, are the defaults suitable for your board /
setup?
Not that it looks that it gets that far, due the complete absence of
other error or info messages
The insmod error is completely non specific, so doesn't help, may just be
picking up the last return value.
What is the output from /proc/cpuinfo and what version etc is your Pi?
Attached.
In the log you can see the message I added in the hal_spi rtapi_app_main.
rtapi_rpc(): reply timeout
See /var/log/linuxcnc.log for more information.
halcmd: cant connect to rtapi_app: -1 (uri= uuid=a42c8c6b-4025-4f83-ba28-
dad21114744a): rtapi_rpc(): reply timeout
E: 18-09-23 15:04:20 dangling 'DEALER' socket created at hal/utils/
halcmd_rtapiapp.cc:281
Post by mngr
Post by s***@gmail.com
It's not about doubt
cat /proc/cpuinfo
will tell you whether you have BCM2835
Thanks didn't know about that! on the rpi is written 2837, bit cpuinfo
says 2835!
So at least the part that writes in the SPI registers should work.
I tried to add some debug message in hal_spi rtapi_app_main function,
but I don't see them anywhere, I have exported DEBUG=5, and maximized the
DEBUG value in the ini file. I am looking in /var/log/linuxcnc.log and in
the terminal output.
I have tried with different msg types
rtapi_print_msg(RTAPI_MSG_ERR, ": hal_spi init!!!!err\n");
rtapi_print_msg(RTAPI_MSG_DBG, ": hal_spi init!!!!dbg\n");
rtapi_print_msg(RTAPI_MSG_ALL, ": hal_spi init!!!!all\n");
There are plenty of error messages in the driver already. I did not see
any in the log however which makes me
suspect it was never loaded.
If insmod errors it should say why however and that was not in there
either.
Instead of complicating things with loading a non working config, just
to load the driver, try this in a terminal on your Pi
sudo > /var/log/linuxcnc.log (you may have to run this a root, it should
zero the log)
DEBUG=5 realtime restart
halcmd loadrt hal_spi
halcmd show all
halrun -U
That should give you a short log and if it errors loading hal_spi will
be easier to trace through
In addition to the log do
dmesg | tail > dmesg.log
and attach that log too
If you do and the driver should work, we can try to find out why it
Post by s***@gmail.com
isn't.
If you don't, what the differences are from the BCM2837 for example, I
have no idea
I am guessing you are trying to generate steps using the SPI, that is
an area outside my experience
but there seems to be quite a bit about it on the RPi forums
Actually, I tought that hal_spi is used to write something to a MCU that
will control the motor generating steps.
I think it sends the commanded velocity and the MCU updates the PWM.
I am not sure of those things, though
Post by s***@gmail.com
The log does not show what your earlier email showed, there is not
mention of an error from insmod
I think you need to get right back to basics.
This driver was written 5 years ago and is specific to the BCM2835 chip
It can only have been meant to support Pi v1 & v2 and maybe not all of
them, as they kept changing versions and hardware,
because nothing of a higher version had been released then
Does this driver support your Pi?
In case of doubt I gave a look to wiringPi, it calls ioctl and
write/reads from /dev/spidev.
Is calling that syscall from a hal driver a sane thing to do? (It is for
example used here
<https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_p260c.c>
)
Post by s***@gmail.com
Regards DEBUG, the ini file bit was explained by the text you deleted
from yours.
It takes a hexidecimal number up to 0x7FFFFFFF, the output is to
terminal and the output is from NML messaging
The exported DEBUG=5 is the debug setting for logging and relates to
the rtapi system, not NML
Thanks for the explanation, Schooner
Post by s***@gmail.com
Post by s***@gmail.com
You are not running with DEBUG=5
I edited DEBUG = 5 in ini file(in EMC section), nothing changed, then I
exported DEBUG=5 in bash. what is the difference? what is the deBUG setting
in the ini file for?
Attached you can find the ini and the hal file, I edited the CRAMPS
configuration, basically removing everything relative to the PRU, and
adding loadrt hal_spi in CRAMPS.hal (and leaving one only axis)
linuxcnc_old.log is everything before adding loadrt hal_spi.
linuxcnc.log is the execution with loadrt hal_spi and termila_output
shows what has been written, I attached it because it talks about
rtapi_rpc(): reply timeout, that is not mentioned in the log
Linux realtimepi 4.14.66-rt40-v7 #2 SMP PREEMPT RT Mon Sep 17 21:15:46
UTC 2018 armv7l GNU/Linux
Post by s***@gmail.com
Do so and your linuxcnc.log will have info as to what failed.
Also as I said in my last reply, it does not look as though you have a
realtime kernel, irrespective of what you have named your pi.
Hi everyone,
I am sorry to post another noob question here, but,
I am trying to use the hal module hal_spi, shortly I tried with
loadrt hal_spi
in the hal file, but
rtapi_rpc(): reply timeout
See /var/log/linuxcnc.log for more information.
in the log
Sep 21 14:22:09 realtimepi msgd:0: startup pid=5979 flavor=posix
rtlevel=1 usrlevel=1 halsize=524288 shm=Posix cc=gcc 6.3.0 20170516
version=unknown
Sep 21 14:22:09 realtimepi msgd:0: ØMQ=4.2.1 czmq=4.0.2 protobuf=3.0.0
atomics=gcc intrinsics libwebsockets=2.0.3
Sep 21 14:22:09 realtimepi msgd:0: configured: sha=b87920504
Sep 21 14:22:09 realtimepi msgd:0: built: Sep 18 2018 16:43:17
sha=b87920504
Sep 21 14:22:09 realtimepi msgd:0: register_stuff: actual hostname as
announced by avahi='realtimepi.local'
Sep 21 14:22:09 realtimepi msgd:0: zeroconf: registering: 'Log
service on realtimepi.local pid 5979'
Sep 21 14:22:10 realtimepi rtapi:0: rtapi_msgd went away, exiting
Sep 21 14:22:10 realtimepi msgd:0: zeroconf: registered 'Log service
on realtimepi.local pid 5979' _machinekit._tcp 0 TXT
"uuid=a42c8c6b-4025-4f83-ba28-dad21114744a"
"instance=b9c730a2-bda9-11e8-bcc3-b827eb4bcf42" "service=log"
"dsn=ipc:///tmp/0.log.a42c8c6b-4025-4f83-ba28-dad21114744a"
I tried launching machinekit without it and adding it later using
halcmd loadrt hal_spi, but with similar results
should I give it some arguments? I don't know how to understand how to
write them from the code...
Maybe the module is old and has lost some compatibility?
right now i am executing from
Linux realtimepi 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST 2018
armv7l GNU/Linux
Debian Stretch, Machinekit compiled from source
maybe should I explicit the path to hal_spi?
mngr
--
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
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
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
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
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
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
--
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
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 machinekit+***@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
s***@gmail.com
2018-09-24 09:41:49 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Well, despite what /proc/cpuinfo says, I don't see how it can be a
BCM2835 Soc.<br>
<br>
The elinux hardware history (<a class="moz-txt-link-freetext" href="https://elinux.org/RPi_HardwareHistory">https://elinux.org/RPi_HardwareHistory</a>)
clearly shows the v3 B has a BCM2037 and even if you<br>
were sold an almost identical v2 B purporting to be a v3 B, it would
have a BCM2036.<br>
<br>
Looks like it is testing CS (chip select) to see if it is in an
active state and waiting until it is?<br>
Hence my question about whether SPI was activated.<br>
The most likely sources of the problem are either that SPI is
inactive or <br>
that whatever address *spi points to it does not contain what is
expected so the &amp; test will never result as expected.<br>
<br>
This in turn makes one suspicious about what will happen when the
driver is attached to a thread and started.<br>
Will it work?<br>
<br>
It might be useful to try to get the hal_gpio demo running on the
board with DEBUG set and look at the output.<br>
<br>
Regards the args, that is peculiar.&nbsp; Just ignore the print out.<br>
Look at hal_gpio.c for an example of how RTAPI_MP_STRING should
appear, and then you can see them being used in the later code.<br>
If there is any initialisation to be done it would normally be in
rtapi_app_main()<br>
<br>
You need to find someone who is up on bit twiddling on the v3 B and
check all the addresses and offsets with them.<br>
(Particularly the SPI_BASE offset, which may or may not vary between
models of Soc)<br>
<br>
<br>
<div class="moz-cite-prefix">On 23/09/18 20:35, mngr wrote:<br>
</div>
<blockquote
cite="mid:8c621169-00eb-4554-b6ce-***@googlegroups.com"
type="cite">
<div dir="ltr">
<div>I am really sorry Schooner, I was excited about the
findings...</div>
<div>I actually don't know which args suits my setup, I looked
in the source, but I don't know how to find where they are
used,</div>
<div>I tried to scroll it all, but found no place that seems to
use them.<br>
</div>
<div>My board is a Raspberry Pi 3 model B&nbsp; V 1.2 and attached
you can find the cpuinfo output<br>
</div>
<div>Spi is enabled from raspi-config, and in /dev there is
spidev0.0 and spidev0.1</div>
<div><br>
</div>
Il giorno domenica 23 settembre 2018 19:35:25 UTC+2, Schooner ha
scritto:
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF"> OK, good there is some
progress.<br>
<br>
You will probably find that whilst loaded, it may not work.<br>
<br>
That while statement is actually <br>
while(!( *(spi + 0) &amp; 0x00010000)<br>
which is extremely specific and if something has changed or
if SPI is not enabled, it will hang forever.<br>
<br>
(gripe here, I have asked you 3 specific questions and you
have not answered any of them)<br>
<br>
<br>
<div>On 23/09/18 18:01, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Thanks for the explanation about machinkit
workings,</div>
<div><br>
</div>
<div>I played with the stamps and found that it was
blocking on</div>
<div><span>while</span> (!(BCM2835_SPICS &amp;
SPI_CS_DONE)); (Line 438)</div>
<div><br>
</div>
<div>removing it halrun loads, now I will see if and
what it writes. maybe I will have to control the low
level implementation... but now I know more things.</div>
<div><br>
</div>
<div>One more question, how does a hal module read the
args? <br>
</div>
<div><br>
</div>
<br>
Il giorno domenica 23 settembre 2018 17:47:44 UTC+2,
Schooner ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Sep 23 15:03:17
realtimepi rtapi:0: 4:rtapi_app:701:user hal_spi.so
default iparms: ''<br>
Sep 23 15:03:17 realtimepi rtapi:0:
1:rtapi_app:701:user : hal_spi init!!!!err<br>
Sep 23 15:03:17 realtimepi rtapi:0:
4:rtapi_app:701:user : hal_spi init!!!!dbg<br>
Sep 23 15:03:17 realtimepi rtapi:0:
4:rtapi_app:701:user halg_xinitfv:90 HAL:
initializing component 'hal_spi' type=1 arg1=0
arg2=0/0x0<br>
<br>
Since you haven't said where these extra prints are
located, their presence means nothing to me<br>
</div>
</blockquote>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> The module is
obviously loading to a point but it does not look as
though the driver is getting any further than
hal_init, which calls halg_xinitfv()<br>
then is failing catastrophically<br>
<br>
You are loading with no args, are the defaults
suitable for your board / setup?<br>
Not that it looks that it gets that far, due the
complete absence of other error or info messages<br>
<br>
The insmod error is completely non specific, so
doesn't help, may just be picking up the last return
value.<br>
<br>
What is the output from /proc/cpuinfo and what
version etc is your Pi?<br>
<br>
<br>
<br>
<div>On 23/09/18 16:12, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Attached.</div>
<div><br>
</div>
<div>In the log you can see the message I added
in the hal_spi rtapi_app_main.</div>
<div><br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#000">***@realtimepi</span><span
style="color:#660">:~</span><span
style="color:#000"> $ halcmd loadrt
hal_spi<br> </span><span style="color:#080">&lt;commandline&gt;</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> insmod failed</span><span
style="color:#660">,</span><span
style="color:#000"> returned </span><span
style="color:#660">-</span><span
style="color:#066">1</span><span
style="color:#660">:</span><span
style="color:#000"><br>
rtapi_rpc</span><span
style="color:#660">():</span><span
style="color:#000"> reply timeout<br>
</span><span style="color:#606">See</span><span
style="color:#000"> </span><span
style="color:#660">/</span><span
style="color:#008">var</span><span
style="color:#660">/</span><span
style="color:#000">log</span><span
style="color:#660">/</span><span
style="color:#000">linuxcnc</span><span
style="color:#660">.</span><span
style="color:#000">log </span><span
style="color:#008">for</span><span
style="color:#000"> more information</span><span
style="color:#660">.</span><span
style="color:#000"><br>
***@realtimepi</span><span
style="color:#660">:~</span><span
style="color:#000"> $ halcmd show all<br>
halcmd</span><span style="color:#660">:</span><span
style="color:#000"> cant connect to
rtapi_app</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#660">-</span><span
style="color:#066">1</span><span
style="color:#000"> </span><span
style="color:#660">(</span><span
style="color:#000">uri</span><span
style="color:#660">=</span><span
style="color:#000"> uuid</span><span
style="color:#660">=</span><span
style="color:#000">a42c8c6b</span><span
style="color:#660">-</span><span
style="color:#066">4025</span><span
style="color:#660">-</span><span
style="color:#066">4f83</span><span
style="color:#660">-</span><span
style="color:#000">ba28</span><span
style="color:#660">-</span><span
style="color:#000">d<wbr>ad21114744a</span><span
style="color:#660">):</span><span
style="color:#000"> rtapi_rpc</span><span
style="color:#660">():</span><span
style="color:#000"> reply timeout<br>
<br>
E</span><span style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#066">18</span><span
style="color:#660">-</span><span
style="color:#066">09</span><span
style="color:#660">-</span><span
style="color:#066">23</span><span
style="color:#000"> </span><span
style="color:#066">15</span><span
style="color:#660">:</span><span
style="color:#066">04</span><span
style="color:#660">:</span><span
style="color:#066">20</span><span
style="color:#000"> dangling </span><span
style="color:#080">'DEALER'</span><span
style="color:#000"> socket created at
hal</span><span style="color:#660">/</span><span
style="color:#000">utils</span><span
style="color:#660">/</span><span
style="color:#000">halcmd_rtapiapp</span><span
style="color:#660">.</span><span
style="color:#000">cc</span><span
style="color:#660">:</span><span
style="color:#066">2<wbr>81</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
<br>
</div>
<div>Il giorno domenica 23 settembre 2018
16:43:25 UTC+2, Schooner ha scritto:</div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> <br>
<div>On 23/09/18 15:16, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<br>
Il giorno domenica 23 settembre 2018
15:34:58 UTC+2, Schooner ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
It's not about doubt<br>
cat /proc/cpuinfo<br>
will tell you whether you have
BCM2835<br>
</div>
</blockquote>
<div>&nbsp;</div>
<div>Thanks didn't know about that! on
the rpi is written 2837, bit cpuinfo
says 2835!</div>
<div>So at least the part that writes in
the SPI registers should work.</div>
<div><br>
</div>
<div>I tried to add some debug message
in hal_spi <span>rtapi_app_main
function, but I don't see them
anywhere, I have exported DEBUG=5,
and maximized the DEBUG value in the
ini file. I am looking in
/var/log/linuxcnc.log and in the
terminal output.</span></div>
<div><span>I have tried with different
msg types <br>
</span></div>
<div><span><br>
</span></div>
<div><span>rtapi_print_msg(RTAPI_MSG_ERR,
": hal_spi init!!!!err\n");<br>
rtapi_print_msg(RTAPI_MSG_DBG, ":
hal_spi init!!!!dbg\n");<br>
rtapi_print_msg(RTAPI_MSG_ALL, ":
hal_spi init!!!!all\n");<br>
</span></div>
</div>
</blockquote>
<br>
There are plenty of error messages in the
driver already.&nbsp; I did not see any in the
log however which makes me<br>
suspect it was never loaded.<br>
If insmod errors it should say why however
and that was not in there either.<br>
<br>
Instead of complicating things with loading
a non working config, just to load the
driver, try this in a terminal on your Pi<br>
<br>
sudo &gt; /var/log/linuxcnc.log (you may
have to run this a root, it should zero the
log)<br>
DEBUG=5 realtime restart<br>
halcmd loadrt hal_spi<br>
halcmd show all<br>
halrun -U<br>
<br>
That should give you a short log and if it
errors loading hal_spi will be easier to
trace through<br>
<br>
In addition to the log do<br>
<br>
dmesg | tail &gt; dmesg.log <br>
<br>
and attach that log too<br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
If you do and the driver should
work, we can try to find out why it
isn't.<br>
<br>
If you don't, what the differences
are from the BCM2837 for example, I
have no idea<br>
<br>
I am guessing you are trying to
generate steps using the SPI, that
is an area outside my experience<br>
but there seems to be quite a bit
about it on the RPi forums<br>
</div>
</blockquote>
<div><br>
</div>
<div>Actually, I tought that hal_spi is
used to write something to a MCU that
will control the motor generating
steps.</div>
<div>I think it sends the commanded
velocity and the MCU updates the PWM.</div>
<div>I am not sure of those things,
though<br>
</div>
<div text="#000000" bgcolor="#FFFFFF"><br>
<div>On 23/09/18 13:50, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<br>
Il giorno domenica 23 settembre
2018 13:41:42 UTC+2, Schooner ha
scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF"> The log
does not show what your
earlier email showed, there is
not mention of an error from
insmod<br>
<br>
I think you need to get right
back to basics.<br>
<br>
This driver was written 5
years ago and is specific to
the BCM2835 chip<br>
It can only have been meant to
support Pi v1 &amp; v2 and
maybe not all of them, as they
kept changing versions and
hardware,<br>
because nothing of a higher
version had been released then<br>
<br>
Does this driver support your
Pi?<br>
</div>
</blockquote>
<div><br>
</div>
<div>In case of doubt I gave a
look to wiringPi, it calls ioctl
and write/reads from
/dev/spidev.</div>
<div>Is calling that syscall from
a hal driver a sane thing to do?
(It is for example used <a
moz-do-not-send="true"
href="https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_p260c.c"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit%2Fmachinekit%2Fblob%2Fmaster%2Fsrc%2Fhal%2Fdrivers%2Fhal_p260c.c\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiiaXDhJO-MrGOOLcvAh8yi4_pxg';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit%2Fmachinekit%2Fblob%2Fmaster%2Fsrc%2Fhal%2Fdrivers%2Fhal_p260c.c\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiiaXDhJO-MrGOOLcvAh8yi4_pxg';return
true;">here</a>)<br>
</div>
<div><br>
</div>
<div>&nbsp;</div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF"> Regards
DEBUG, the ini file bit was
explained by the text you
deleted from yours.<br>
It takes a hexidecimal number
up to 0x7FFFFFFF, the output
is to terminal and the output
is from NML messaging<br>
<br>
The exported DEBUG=5 is the
debug setting for logging and
relates to the rtapi system,
not NML<br>
</div>
</blockquote>
<div><br>
</div>
<div>Thanks for the explanation,
Schooner<br>
</div>
<div>&nbsp;</div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF">
<div>On 23/09/18 11:07, mngr
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<br>
Il giorno venerd&igrave; 21
settembre 2018 16:44:50
UTC+2, Schooner ha
scritto:
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF"> You
are not running with
DEBUG=5<br>
</div>
</blockquote>
<div><br>
</div>
<div>I edited DEBUG = 5 in
ini file(in EMC
section), nothing
changed, then I exported
DEBUG=5 in bash. what is
the difference? what is
the deBUG setting in the
ini file for?</div>
<div><br>
</div>
<div>Attached you can find
the ini and the hal
file, I edited the
CRAMPS configuration,
basically removing
everything relative to
the PRU, and adding
loadrt hal_spi in
CRAMPS.hal (and leaving
one only axis)<br>
</div>
<div>linuxcnc_old.log is
everything before adding
loadrt hal_spi. <br>
</div>
<div>linuxcnc.log is the
execution with loadrt
hal_spi and
termila_output shows
what has been written, I
attached it because it
talks about rtapi_rpc():
reply timeout, that is
not mentioned in the log<br>
</div>
<div><br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#000">***@realtimepi</span><span
style="color:#660">:~</span><span style="color:#000"> $ uname </span><span
style="color:#660">-</span><span style="color:#000">a<br>
</span><span
style="color:#606">Linux</span><span
style="color:#000"> realtimepi </span><span style="color:#066">4.14</span><span
style="color:#660">.</span><span style="color:#066">66</span><span
style="color:#660">-</span><span
style="color:#000">rt40</span><span style="color:#660">-</span><span
style="color:#000">v7
</span><span
style="color:#800">#2

SMP PREEMPT RT
Mon Sep 17
21:15:46 UTC
2018 armv7l
GNU/Linux</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
<br>
</div>
<div>&nbsp;</div>
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF"> Do
so and your
linuxcnc.log will have
info as to what
failed.<br>
<br>
Also as I said in my
last reply, it does
not look as though you
have a realtime
kernel, irrespective
of what you have named
your pi.<br>
<br>
<div>On 21/09/18
15:31, mngr wrote:<br>
</div>
<blockquote
type="cite">
<div dir="ltr">
<div>Hi everyone,</div>
<div><br>
</div>
<div>I am sorry to
post another
noob question
here, but,</div>
<div><br>
</div>
<div>I am trying
to use the hal
module hal_spi,
shortly I tried
with <br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#000">loadrt



hal_spi<br>
</span></div>
</code></div>
in the hal file,
but&nbsp;</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#000">CRAMPS</span><span
style="color:#660">.</span><span style="color:#000">hal</span><span
style="color:#660">:</span><span
style="color:#066">15</span><span style="color:#660">:</span><span
style="color:#000">
insmod failed</span><span
style="color:#660">,</span><span style="color:#000"> returned </span><span
style="color:#660">-</span><span style="color:#066">1</span><span
style="color:#660">:</span><span
style="color:#000"><br>
rtapi_rpc</span><span
style="color:#660">():</span><span style="color:#000"> reply timeout<br>
</span><span
style="color:#606">See</span><span
style="color:#000"> </span><span style="color:#660">/</span><span
style="color:#008">var</span><span
style="color:#660">/</span><span style="color:#000">log</span><span
style="color:#660">/</span><span
style="color:#000">linuxcnc</span><span style="color:#660">.</span><span
style="color:#000">log </span><span style="color:#008">for</span><span
style="color:#000"> more information</span><span style="color:#660">.</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
in the log</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> startup pid</span><span style="color:#660">=</span><span
style="color:#066">5979</span><span style="color:#000"> flavor</span><span
style="color:#660">=</span><span style="color:#000">posix rtlevel</span><span
style="color:#660">=</span><span style="color:#066">1</span><span
style="color:#000">
usrlevel</span><span
style="color:#660">=</span><span style="color:#066">1</span><span
style="color:#000">
halsize</span><span
style="color:#660">=</span><span style="color:#066">524288</span><span
style="color:#000">
shm</span><span
style="color:#660">=</span><span style="color:#606">Posix</span><span
style="color:#000">
cc</span><span
style="color:#660">=</span><span style="color:#000">gcc </span><span
style="color:#066">6.3</span><span
style="color:#660">.</span><span style="color:#066">0</span><span
style="color:#000">
</span><span
style="color:#066">20170516</span><span
style="color:#000"> &nbsp;version</span><span style="color:#660">=</span><span
style="color:#000">unknown<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span style="color:#660">&Oslash;</span><span
style="color:#000">MQ</span><span
style="color:#660">=</span><span style="color:#066">4.2</span><span
style="color:#660">.</span><span
style="color:#066">1</span><span style="color:#000"> czmq</span><span
style="color:#660">=</span><span
style="color:#066">4.0</span><span style="color:#660">.</span><span
style="color:#066">2</span><span
style="color:#000"> protobuf</span><span style="color:#660">=</span><span
style="color:#066">3.0</span><span style="color:#660">.</span><span
style="color:#066">0</span><span
style="color:#000"> atomics</span><span style="color:#660">=</span><span
style="color:#000">gcc intrinsics &nbsp; &nbsp;libwebsockets</span><span
style="color:#660">=</span><span
style="color:#066">2.0</span><span style="color:#660">.</span><span
style="color:#066">3</span><span
style="color:#000"><br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> configured</span><span style="color:#660">:</span><span
style="color:#000"> sha</span><span style="color:#660">=</span><span
style="color:#000">b87920504<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> built</span><span style="color:#660">:</span><span
style="color:#000">
&nbsp; &nbsp; &nbsp;</span><span
style="color:#606">Sep</span><span style="color:#000"> </span><span
style="color:#066">18</span><span
style="color:#000"> </span><span style="color:#066">2018</span><span
style="color:#000">
</span><span
style="color:#066">16</span><span
style="color:#660">:</span><span style="color:#066">43</span><span
style="color:#660">:</span><span
style="color:#066">17</span><span style="color:#000"> sha</span><span
style="color:#660">=</span><span
style="color:#000">b87920504<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> register_stuff</span><span style="color:#660">:</span><span
style="color:#000"> actual hostname </span><span style="color:#008">as</span><span
style="color:#000"> announced </span><span style="color:#008">by</span><span
style="color:#000"> avahi</span><span style="color:#660">=</span><span
style="color:#080">'realtimepi.local'</span><span
style="color:#000"><br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> zeroconf</span><span style="color:#660">:</span><span
style="color:#000"> registering</span><span style="color:#660">:</span><span
style="color:#000"> </span><span style="color:#080">'Log service on
realtimepi.local
pid 5979'</span><span
style="color:#000"><br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">10</span><span style="color:#000"> realtimepi rtapi</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> rtapi_msgd went away</span><span style="color:#660">,</span><span
style="color:#000"> exiting<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">10</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> zeroconf</span><span style="color:#660">:</span><span
style="color:#000"> registered </span><span style="color:#080">'Log
service on
realtimepi.local
pid 5979'</span><span
style="color:#000"> _machinekit</span><span style="color:#660">.</span><span
style="color:#000">_tcp </span><span style="color:#066">0</span><span
style="color:#000">
TXT </span><span
style="color:#080">"uuid=a42c8c6b-4025-4f83-ba28-<wbr>dad21114744a"</span><span
style="color:#000"> </span><span style="color:#080">"instance=b9c730a2-bda9-11e8-<wbr>bcc3-b827eb4bcf42"</span><span
style="color:#000"> </span><span style="color:#080">"service=log"</span><span
style="color:#000"> </span><span style="color:#080">"dsn=ipc:///tmp/0.log.<wbr>a42c8c6b-4025-4f83-ba28-<wbr>dad21114744a"</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
I tried
launching
machinekit
without it and
adding it later
using halcmd
loadrt hal_spi,
but with similar
results<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>should I give
it some
arguments? I
don't know how
to understand
how to write
them from the
code...</div>
<div>Maybe the
module is old
and has lost
some
compatibility?</div>
<div><br>
</div>
<div>right now i
am executing
from</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#606">Linux</span><span
style="color:#000"> realtimepi </span><span style="color:#066">4.14</span><span
style="color:#660">.</span><span style="color:#066">69</span><span
style="color:#660">-</span><span
style="color:#000">v7</span><span style="color:#660">+</span><span
style="color:#000">
</span><span
style="color:#800">#1141


SMP Mon Sep 10
15:26:29 BST
2018 armv7l
GNU/Linux</span><span
style="color:#000"><br>
</span></div>
</code></div>
Debian Stretch,
Machinekit
compiled from
source<br>
</div>
<div>maybe should
I explicit the
path to hal_spi?</div>
<div><br>
</div>
<div>mngr<br>
</div>
</div>
-- <br>
website: <a
moz-do-not-send="true"
href="http://www.machinekit.io" rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io" rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this
message because you
are subscribed to
the Google Groups
"Machinekit" group.<br>
To unsubscribe from
this group and stop
receiving emails
from it, send an
email to <a
moz-do-not-send="true"
rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at
<a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit" rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options,
visit <a
moz-do-not-send="true"
href="https://groups.google.com/d/optout" rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a
moz-do-not-send="true"
href="http://www.machinekit.io"
rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io"
rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a
moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow"
target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message
because you are subscribed
to the Google Groups
"Machinekit" group.<br>
To unsubscribe from this
group and stop receiving
emails from it, send an
email to <a
moz-do-not-send="true"
rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a
moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true"
href="http://blog.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because
you are subscribed to the Google
Groups "Machinekit" group.<br>
To unsubscribe from this group and
stop receiving emails from it, send
an email to <a
moz-do-not-send="true"
rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a
moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex"> </blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true"
href="http://blog.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are
subscribed to the Google Groups
"Machinekit" group.<br>
To unsubscribe from this group and stop
receiving emails from it, send an email to
<a moz-do-not-send="true" rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a
moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io" rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are
subscribed to the Google Groups "Machinekit"
group.<br>
To unsubscribe from this group and stop receiving
emails from it, send an email to <a
moz-do-not-send="true" rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" target="_blank"
rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true" href="http://blog.machinekit.io"
target="_blank" rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" target="_blank"
rel="nofollow"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to
the Google Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails
from it, send an email to <a moz-do-not-send="true"
href="javascript:" target="_blank"
gdf-obfuscated-mailto="BBAp4I5aCgAJ" rel="nofollow"
onmousedown="this.href='javascript:';return true;"
onclick="this.href='javascript:';return true;">machinekit+...@<wbr>googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true" href="http://blog.machinekit.io">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to the Google
Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails from it,
send an email to <a moz-do-not-send="true"
href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br>
</blockquote>
<br>
</body>
</html>

<p></p>

-- <br />
website: <a href="http://www.machinekit.io">http://www.machinekit.io</a> blog: <a href="http://blog.machinekit.io">http://blog.machinekit.io</a> github: <a href="https://github.com/machinekit">https://github.com/machinekit</a><br />
--- <br />
You received this message because you are subscribed to the Google Groups &quot;Machinekit&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br />
Visit this group at <a href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />
mngr
2018-09-26 10:33:31 UTC
Permalink
The cpuinfo information says BCM2835 for any raspberry version you can
have, this helps with something in the kernel, the revision is the filed
actually accurate.
The first version of RPi have the base address at 0x20000000 from RPi 2 on
it is at 0x3F000000

hal gpio recognize this difference, hal_spi does not, I still have to run
hal gpio, though, will do it in next days

https://web.stanford.edu/class/cs140e/docs/BCM2837-ARM-Peripherals.pdf
here is a BCM 2837 datasheet that shows all the addresses, I will try to
correct them in next days

Other <https://ultibo.org/wiki/Unit_BCM2710> says to have a SPI driver for
the 2710 (aka 2837) but it is hard to find the code, in case I will try to
ask directly to them
Well, despite what /proc/cpuinfo says, I don't see how it can be a BCM2835
Soc.
The elinux hardware history (https://elinux.org/RPi_HardwareHistory)
clearly shows the v3 B has a BCM2037 and even if you
were sold an almost identical v2 B purporting to be a v3 B, it would have
a BCM2036.
Looks like it is testing CS (chip select) to see if it is in an active
state and waiting until it is?
Hence my question about whether SPI was activated.
The most likely sources of the problem are either that SPI is inactive or
that whatever address *spi points to it does not contain what is expected
so the & test will never result as expected.
This in turn makes one suspicious about what will happen when the driver
is attached to a thread and started.
Will it work?
It might be useful to try to get the hal_gpio demo running on the board
with DEBUG set and look at the output.
Regards the args, that is peculiar. Just ignore the print out.
Look at hal_gpio.c for an example of how RTAPI_MP_STRING should appear,
and then you can see them being used in the later code.
If there is any initialisation to be done it would normally be in
rtapi_app_main()
You need to find someone who is up on bit twiddling on the v3 B and check
all the addresses and offsets with them.
(Particularly the SPI_BASE offset, which may or may not vary between
models of Soc)
I am really sorry Schooner, I was excited about the findings...
I actually don't know which args suits my setup, I looked in the source,
but I don't know how to find where they are used,
I tried to scroll it all, but found no place that seems to use them.
My board is a Raspberry Pi 3 model B V 1.2 and attached you can find the
cpuinfo output
Spi is enabled from raspi-config, and in /dev there is spidev0.0 and
spidev0.1
Post by s***@gmail.com
OK, good there is some progress.
You will probably find that whilst loaded, it may not work.
That while statement is actually
while(!( *(spi + 0) & 0x00010000)
which is extremely specific and if something has changed or if SPI is not
enabled, it will hang forever.
(gripe here, I have asked you 3 specific questions and you have not
answered any of them)
Thanks for the explanation about machinkit workings,
I played with the stamps and found that it was blocking on
while (!(BCM2835_SPICS & SPI_CS_DONE)); (Line 438)
removing it halrun loads, now I will see if and what it writes. maybe I
will have to control the low level implementation... but now I know more
things.
One more question, how does a hal module read the args?
Post by s***@gmail.com
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user hal_spi.so
default iparms: ''
Sep 23 15:03:17 realtimepi rtapi:0: 1:rtapi_app:701:user : hal_spi
init!!!!err
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user : hal_spi
init!!!!dbg
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user halg_xinitfv:90
HAL: initializing component 'hal_spi' type=1 arg1=0 arg2=0/0x0
Since you haven't said where these extra prints are located, their
presence means nothing to me
The module is obviously loading to a point but it does not look as though
Post by s***@gmail.com
the driver is getting any further than hal_init, which calls halg_xinitfv()
then is failing catastrophically
You are loading with no args, are the defaults suitable for your board /
setup?
Not that it looks that it gets that far, due the complete absence of
other error or info messages
The insmod error is completely non specific, so doesn't help, may just
be picking up the last return value.
What is the output from /proc/cpuinfo and what version etc is your Pi?
Attached.
In the log you can see the message I added in the hal_spi rtapi_app_main.
rtapi_rpc(): reply timeout
See /var/log/linuxcnc.log for more information.
halcmd: cant connect to rtapi_app: -1 (uri= uuid=a42c8c6b-4025-4f83-ba28
-dad21114744a): rtapi_rpc(): reply timeout
E: 18-09-23 15:04:20 dangling 'DEALER' socket created at hal/utils/
halcmd_rtapiapp.cc:281
Post by mngr
Post by s***@gmail.com
It's not about doubt
cat /proc/cpuinfo
will tell you whether you have BCM2835
Thanks didn't know about that! on the rpi is written 2837, bit cpuinfo
says 2835!
So at least the part that writes in the SPI registers should work.
I tried to add some debug message in hal_spi rtapi_app_main function,
but I don't see them anywhere, I have exported DEBUG=5, and maximized the
DEBUG value in the ini file. I am looking in /var/log/linuxcnc.log and in
the terminal output.
I have tried with different msg types
rtapi_print_msg(RTAPI_MSG_ERR, ": hal_spi init!!!!err\n");
rtapi_print_msg(RTAPI_MSG_DBG, ": hal_spi init!!!!dbg\n");
rtapi_print_msg(RTAPI_MSG_ALL, ": hal_spi init!!!!all\n");
There are plenty of error messages in the driver already. I did not
see any in the log however which makes me
suspect it was never loaded.
If insmod errors it should say why however and that was not in there
either.
Instead of complicating things with loading a non working config, just
to load the driver, try this in a terminal on your Pi
sudo > /var/log/linuxcnc.log (you may have to run this a root, it
should zero the log)
DEBUG=5 realtime restart
halcmd loadrt hal_spi
halcmd show all
halrun -U
That should give you a short log and if it errors loading hal_spi will
be easier to trace through
In addition to the log do
dmesg | tail > dmesg.log
and attach that log too
If you do and the driver should work, we can try to find out why it
Post by s***@gmail.com
isn't.
If you don't, what the differences are from the BCM2837 for example, I
have no idea
I am guessing you are trying to generate steps using the SPI, that is
an area outside my experience
but there seems to be quite a bit about it on the RPi forums
Actually, I tought that hal_spi is used to write something to a MCU
that will control the motor generating steps.
I think it sends the commanded velocity and the MCU updates the PWM.
I am not sure of those things, though
Post by s***@gmail.com
The log does not show what your earlier email showed, there is not
mention of an error from insmod
I think you need to get right back to basics.
This driver was written 5 years ago and is specific to the BCM2835 chip
It can only have been meant to support Pi v1 & v2 and maybe not all of
them, as they kept changing versions and hardware,
because nothing of a higher version had been released then
Does this driver support your Pi?
In case of doubt I gave a look to wiringPi, it calls ioctl and
write/reads from /dev/spidev.
Is calling that syscall from a hal driver a sane thing to do? (It is
for example used here
<https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_p260c.c>
)
Post by s***@gmail.com
Regards DEBUG, the ini file bit was explained by the text you deleted
from yours.
It takes a hexidecimal number up to 0x7FFFFFFF, the output is to
terminal and the output is from NML messaging
The exported DEBUG=5 is the debug setting for logging and relates to
the rtapi system, not NML
Thanks for the explanation, Schooner
Post by s***@gmail.com
Post by s***@gmail.com
You are not running with DEBUG=5
I edited DEBUG = 5 in ini file(in EMC section), nothing changed, then
I exported DEBUG=5 in bash. what is the difference? what is the deBUG
setting in the ini file for?
Attached you can find the ini and the hal file, I edited the CRAMPS
configuration, basically removing everything relative to the PRU, and
adding loadrt hal_spi in CRAMPS.hal (and leaving one only axis)
linuxcnc_old.log is everything before adding loadrt hal_spi.
linuxcnc.log is the execution with loadrt hal_spi and termila_output
shows what has been written, I attached it because it talks about
rtapi_rpc(): reply timeout, that is not mentioned in the log
Linux realtimepi 4.14.66-rt40-v7 #2 SMP PREEMPT RT Mon Sep 17
21:15:46 UTC 2018 armv7l GNU/Linux
Post by s***@gmail.com
Do so and your linuxcnc.log will have info as to what failed.
Also as I said in my last reply, it does not look as though you have
a realtime kernel, irrespective of what you have named your pi.
Hi everyone,
I am sorry to post another noob question here, but,
I am trying to use the hal module hal_spi, shortly I tried with
loadrt hal_spi
in the hal file, but
rtapi_rpc(): reply timeout
See /var/log/linuxcnc.log for more information.
in the log
Sep 21 14:22:09 realtimepi msgd:0: startup pid=5979 flavor=posix
rtlevel=1 usrlevel=1 halsize=524288 shm=Posix cc=gcc 6.3.0 20170516
version=unknown
Sep 21 14:22:09 realtimepi msgd:0: ØMQ=4.2.1 czmq=4.0.2 protobuf=3.0.
0 atomics=gcc intrinsics libwebsockets=2.0.3
Sep 21 14:22:09 realtimepi msgd:0: configured: sha=b87920504
Sep 21 14:22:09 realtimepi msgd:0: built: Sep 18 2018 16:43:17
sha=b87920504
Sep 21 14:22:09 realtimepi msgd:0: register_stuff: actual hostname as
announced by avahi='realtimepi.local'
Sep 21 14:22:09 realtimepi msgd:0: zeroconf: registering: 'Log
service on realtimepi.local pid 5979'
Sep 21 14:22:10 realtimepi rtapi:0: rtapi_msgd went away, exiting
Sep 21 14:22:10 realtimepi msgd:0: zeroconf: registered 'Log service
on realtimepi.local pid 5979' _machinekit._tcp 0 TXT
"uuid=a42c8c6b-4025-4f83-ba28-dad21114744a"
"instance=b9c730a2-bda9-11e8-bcc3-b827eb4bcf42" "service=log"
"dsn=ipc:///tmp/0.log.a42c8c6b-4025-4f83-ba28-dad21114744a"
I tried launching machinekit without it and adding it later using
halcmd loadrt hal_spi, but with similar results
should I give it some arguments? I don't know how to understand how
to write them from the code...
Maybe the module is old and has lost some compatibility?
right now i am executing from
Linux realtimepi 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST 2018
armv7l GNU/Linux
Debian Stretch, Machinekit compiled from source
maybe should I explicit the path to hal_spi?
mngr
--
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,
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
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
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
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
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
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
--
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
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 machinekit+***@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
mngr
2018-09-28 12:21:08 UTC
Permalink
edited from 0x20000000 to 0x3F000000 and now the raspberry loads the
hal_spi module. hal_spi.c should check the Pi version in a similar way to
hal_gpio.c .
Post by mngr
The cpuinfo information says BCM2835 for any raspberry version you can
have, this helps with something in the kernel, the revision is the filed
actually accurate.
The first version of RPi have the base address at 0x20000000 from RPi 2
on it is at 0x3F000000
hal gpio recognize this difference, hal_spi does not, I still have to run
hal gpio, though, will do it in next days
https://web.stanford.edu/class/cs140e/docs/BCM2837-ARM-Peripherals.pdf
here is a BCM 2837 datasheet that shows all the addresses, I will try to
correct them in next days
Other <https://ultibo.org/wiki/Unit_BCM2710> says to have a SPI driver
for the 2710 (aka 2837) but it is hard to find the code, in case I will try
to ask directly to them
Post by s***@gmail.com
Well, despite what /proc/cpuinfo says, I don't see how it can be a
BCM2835 Soc.
The elinux hardware history (https://elinux.org/RPi_HardwareHistory)
clearly shows the v3 B has a BCM2037 and even if you
were sold an almost identical v2 B purporting to be a v3 B, it would have
a BCM2036.
Looks like it is testing CS (chip select) to see if it is in an active
state and waiting until it is?
Hence my question about whether SPI was activated.
The most likely sources of the problem are either that SPI is inactive or
that whatever address *spi points to it does not contain what is expected
so the & test will never result as expected.
This in turn makes one suspicious about what will happen when the driver
is attached to a thread and started.
Will it work?
It might be useful to try to get the hal_gpio demo running on the board
with DEBUG set and look at the output.
Regards the args, that is peculiar. Just ignore the print out.
Look at hal_gpio.c for an example of how RTAPI_MP_STRING should appear,
and then you can see them being used in the later code.
If there is any initialisation to be done it would normally be in
rtapi_app_main()
You need to find someone who is up on bit twiddling on the v3 B and check
all the addresses and offsets with them.
(Particularly the SPI_BASE offset, which may or may not vary between
models of Soc)
I am really sorry Schooner, I was excited about the findings...
I actually don't know which args suits my setup, I looked in the source,
but I don't know how to find where they are used,
I tried to scroll it all, but found no place that seems to use them.
My board is a Raspberry Pi 3 model B V 1.2 and attached you can find the
cpuinfo output
Spi is enabled from raspi-config, and in /dev there is spidev0.0 and
spidev0.1
Post by s***@gmail.com
OK, good there is some progress.
You will probably find that whilst loaded, it may not work.
That while statement is actually
while(!( *(spi + 0) & 0x00010000)
which is extremely specific and if something has changed or if SPI is
not enabled, it will hang forever.
(gripe here, I have asked you 3 specific questions and you have not
answered any of them)
Thanks for the explanation about machinkit workings,
I played with the stamps and found that it was blocking on
while (!(BCM2835_SPICS & SPI_CS_DONE)); (Line 438)
removing it halrun loads, now I will see if and what it writes. maybe I
will have to control the low level implementation... but now I know more
things.
One more question, how does a hal module read the args?
Post by s***@gmail.com
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user hal_spi.so
default iparms: ''
Sep 23 15:03:17 realtimepi rtapi:0: 1:rtapi_app:701:user : hal_spi
init!!!!err
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user : hal_spi
init!!!!dbg
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user
halg_xinitfv:90 HAL: initializing component 'hal_spi' type=1 arg1=0
arg2=0/0x0
Since you haven't said where these extra prints are located, their
presence means nothing to me
The module is obviously loading to a point but it does not look as
Post by s***@gmail.com
though the driver is getting any further than hal_init, which calls
halg_xinitfv()
then is failing catastrophically
You are loading with no args, are the defaults suitable for your board
/ setup?
Not that it looks that it gets that far, due the complete absence of
other error or info messages
The insmod error is completely non specific, so doesn't help, may just
be picking up the last return value.
What is the output from /proc/cpuinfo and what version etc is your Pi?
Attached.
In the log you can see the message I added in the hal_spi
rtapi_app_main.
rtapi_rpc(): reply timeout
See /var/log/linuxcnc.log for more information.
halcmd: cant connect to rtapi_app: -1 (uri= uuid=a42c8c6b-4025-4f83-
ba28-dad21114744a): rtapi_rpc(): reply timeout
E: 18-09-23 15:04:20 dangling 'DEALER' socket created at hal/utils/
halcmd_rtapiapp.cc:281
Post by mngr
Post by s***@gmail.com
It's not about doubt
cat /proc/cpuinfo
will tell you whether you have BCM2835
Thanks didn't know about that! on the rpi is written 2837, bit cpuinfo
says 2835!
So at least the part that writes in the SPI registers should work.
I tried to add some debug message in hal_spi rtapi_app_main function,
but I don't see them anywhere, I have exported DEBUG=5, and maximized the
DEBUG value in the ini file. I am looking in /var/log/linuxcnc.log and in
the terminal output.
I have tried with different msg types
rtapi_print_msg(RTAPI_MSG_ERR, ": hal_spi init!!!!err\n");
rtapi_print_msg(RTAPI_MSG_DBG, ": hal_spi init!!!!dbg\n");
rtapi_print_msg(RTAPI_MSG_ALL, ": hal_spi init!!!!all\n");
There are plenty of error messages in the driver already. I did not
see any in the log however which makes me
suspect it was never loaded.
If insmod errors it should say why however and that was not in there
either.
Instead of complicating things with loading a non working config, just
to load the driver, try this in a terminal on your Pi
sudo > /var/log/linuxcnc.log (you may have to run this a root, it
should zero the log)
DEBUG=5 realtime restart
halcmd loadrt hal_spi
halcmd show all
halrun -U
That should give you a short log and if it errors loading hal_spi will
be easier to trace through
In addition to the log do
dmesg | tail > dmesg.log
and attach that log too
If you do and the driver should work, we can try to find out why it
Post by s***@gmail.com
isn't.
If you don't, what the differences are from the BCM2837 for example,
I have no idea
I am guessing you are trying to generate steps using the SPI, that is
an area outside my experience
but there seems to be quite a bit about it on the RPi forums
Actually, I tought that hal_spi is used to write something to a MCU
that will control the motor generating steps.
I think it sends the commanded velocity and the MCU updates the PWM.
I am not sure of those things, though
Post by s***@gmail.com
The log does not show what your earlier email showed, there is not
mention of an error from insmod
I think you need to get right back to basics.
This driver was written 5 years ago and is specific to the BCM2835 chip
It can only have been meant to support Pi v1 & v2 and maybe not all
of them, as they kept changing versions and hardware,
because nothing of a higher version had been released then
Does this driver support your Pi?
In case of doubt I gave a look to wiringPi, it calls ioctl and
write/reads from /dev/spidev.
Is calling that syscall from a hal driver a sane thing to do? (It is
for example used here
<https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_p260c.c>
)
Post by s***@gmail.com
Regards DEBUG, the ini file bit was explained by the text you deleted
from yours.
It takes a hexidecimal number up to 0x7FFFFFFF, the output is to
terminal and the output is from NML messaging
The exported DEBUG=5 is the debug setting for logging and relates to
the rtapi system, not NML
Thanks for the explanation, Schooner
Post by s***@gmail.com
Post by s***@gmail.com
You are not running with DEBUG=5
I edited DEBUG = 5 in ini file(in EMC section), nothing changed, then
I exported DEBUG=5 in bash. what is the difference? what is the deBUG
setting in the ini file for?
Attached you can find the ini and the hal file, I edited the CRAMPS
configuration, basically removing everything relative to the PRU, and
adding loadrt hal_spi in CRAMPS.hal (and leaving one only axis)
linuxcnc_old.log is everything before adding loadrt hal_spi.
linuxcnc.log is the execution with loadrt hal_spi and termila_output
shows what has been written, I attached it because it talks about
rtapi_rpc(): reply timeout, that is not mentioned in the log
Linux realtimepi 4.14.66-rt40-v7 #2 SMP PREEMPT RT Mon Sep 17
21:15:46 UTC 2018 armv7l GNU/Linux
Post by s***@gmail.com
Do so and your linuxcnc.log will have info as to what failed.
Also as I said in my last reply, it does not look as though you have
a realtime kernel, irrespective of what you have named your pi.
Hi everyone,
I am sorry to post another noob question here, but,
I am trying to use the hal module hal_spi, shortly I tried with
loadrt hal_spi
in the hal file, but
rtapi_rpc(): reply timeout
See /var/log/linuxcnc.log for more information.
in the log
Sep 21 14:22:09 realtimepi msgd:0: startup pid=5979 flavor=posix
rtlevel=1 usrlevel=1 halsize=524288 shm=Posix cc=gcc 6.3.0 20170516
version=unknown
Sep 21 14:22:09 realtimepi msgd:0: ØMQ=4.2.1 czmq=4.0.2 protobuf=3.0
.0 atomics=gcc intrinsics libwebsockets=2.0.3
Sep 21 14:22:09 realtimepi msgd:0: configured: sha=b87920504
Sep 21 14:22:09 realtimepi msgd:0: built: Sep 18 2018 16:43:17
sha=b87920504
Sep 21 14:22:09 realtimepi msgd:0: register_stuff: actual hostname
as announced by avahi='realtimepi.local'
Sep 21 14:22:09 realtimepi msgd:0: zeroconf: registering: 'Log
service on realtimepi.local pid 5979'
Sep 21 14:22:10 realtimepi rtapi:0: rtapi_msgd went away, exiting
Sep 21 14:22:10 realtimepi msgd:0: zeroconf: registered 'Log
service on realtimepi.local pid 5979' _machinekit._tcp 0 TXT
"uuid=a42c8c6b-4025-4f83-ba28-dad21114744a"
"instance=b9c730a2-bda9-11e8-bcc3-b827eb4bcf42" "service=log"
"dsn=ipc:///tmp/0.log.a42c8c6b-4025-4f83-ba28-dad21114744a"
I tried launching machinekit without it and adding it later using
halcmd loadrt hal_spi, but with similar results
should I give it some arguments? I don't know how to understand how
to write them from the code...
Maybe the module is old and has lost some compatibility?
right now i am executing from
Linux realtimepi 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST 2018
armv7l GNU/Linux
Debian Stretch, Machinekit compiled from source
maybe should I explicit the path to hal_spi?
mngr
--
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,
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,
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
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
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
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
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
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 machinekit+***@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
s***@gmail.com
2018-09-28 13:09:59 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 28/09/18 13:21, mngr wrote:<br>
</div>
<blockquote
cite="mid:fa64ca9f-cd65-49c1-ac44-***@googlegroups.com"
type="cite">
<div dir="ltr">
<div>edited from <span><span>0x20000000 to</span></span> <span><span>0x3F000000
and now the raspberry loads the hal_spi module. hal_spi.c
should check the Pi version in a similar way to hal_gpio.c
.</span></span></div>
</div>
</blockquote>
<br>
Well done.<br>
<br>
There were no other Pi versions when it was written.<br>
<br>
Would you like to submit a PR?<br>
Cut and paste the hal_gpio.c code that version checks into hal-spi.c
and test that.<br>
<br>
<blockquote
cite="mid:fa64ca9f-cd65-49c1-ac44-***@googlegroups.com"
type="cite">
<div dir="ltr"><br>
Il giorno mercoledì 26 settembre 2018 12:33:31 UTC+2, mngr ha
scritto:
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div dir="ltr">
<div>The cpuinfo information says BCM2835 for any raspberry
version you can have, this helps with something in the
kernel, the revision is the filed actually accurate.</div>
<div>The first version of RPi have the base address at <span>0x20000000
from RPi 2 on it is at  </span><span><span>0x3F000000</span></span></div>
<div><br>
</div>
<div>hal gpio recognize this difference, hal_spi does not, I
still have to run hal gpio, though, will do it in next
days<br>
</div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="https://web.stanford.edu/class/cs140e/docs/BCM2837-ARM-Peripherals.pdf"
target="_blank" rel="nofollow"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fweb.stanford.edu%2Fclass%2Fcs140e%2Fdocs%2FBCM2837-ARM-Peripherals.pdf\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5TFhvnEBErn-8B6L73Xvm1gZuYQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fweb.stanford.edu%2Fclass%2Fcs140e%2Fdocs%2FBCM2837-ARM-Peripherals.pdf\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5TFhvnEBErn-8B6L73Xvm1gZuYQ';return
true;">https://web.stanford.edu/<wbr>class/cs140e/docs/BCM2837-ARM-<wbr>Peripherals.pdf</a><br>
here is a BCM 2837 datasheet that shows all the addresses,
I will try to correct them in next days</div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="https://ultibo.org/wiki/Unit_BCM2710"
target="_blank" rel="nofollow"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fultibo.org%2Fwiki%2FUnit_BCM2710\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEEG3HJtLITxV1cYujmDidBNZV2kA';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fultibo.org%2Fwiki%2FUnit_BCM2710\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEEG3HJtLITxV1cYujmDidBNZV2kA';return
true;">Other</a> says to have a SPI driver for the 2710
(aka 2837) but it is hard to find the code, in case I will
try to ask directly to them<br>
</div>
<div><br>
</div>
<br>
Il giorno lunedì 24 settembre 2018 11:41:53 UTC+2, Schooner
ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Well, despite what
/proc/cpuinfo says, I don't see how it can be a BCM2835
Soc.<br>
<br>
The elinux hardware history (<a moz-do-not-send="true"
href="https://elinux.org/RPi_HardwareHistory"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Felinux.org%2FRPi_HardwareHistory\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHWdrJAZ92RUrbc5FfHVzhs_m0rDQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Felinux.org%2FRPi_HardwareHistory\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHWdrJAZ92RUrbc5FfHVzhs_m0rDQ';return
true;">https://elinux.org/RPi_<wbr>HardwareHistory</a>)
clearly shows the v3 B has a BCM2037 and even if you<br>
were sold an almost identical v2 B purporting to be a v3
B, it would have a BCM2036.<br>
<br>
Looks like it is testing CS (chip select) to see if it
is in an active state and waiting until it is?<br>
Hence my question about whether SPI was activated.<br>
The most likely sources of the problem are either that
SPI is inactive or <br>
that whatever address *spi points to it does not contain
what is expected so the &amp; test will never result as
expected.<br>
<br>
This in turn makes one suspicious about what will happen
when the driver is attached to a thread and started.<br>
Will it work?<br>
<br>
It might be useful to try to get the hal_gpio demo
running on the board with DEBUG set and look at the
output.<br>
<br>
Regards the args, that is peculiar.  Just ignore the
print out.<br>
Look at hal_gpio.c for an example of how RTAPI_MP_STRING
should appear, and then you can see them being used in
the later code.<br>
If there is any initialisation to be done it would
normally be in rtapi_app_main()<br>
<br>
You need to find someone who is up on bit twiddling on
the v3 B and check all the addresses and offsets with
them.<br>
(Particularly the SPI_BASE offset, which may or may not
vary between models of Soc)<br>
<br>
<br>
<div>On 23/09/18 20:35, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>I am really sorry Schooner, I was excited about
the findings...</div>
<div>I actually don't know which args suits my
setup, I looked in the source, but I don't know
how to find where they are used,</div>
<div>I tried to scroll it all, but found no place
that seems to use them.<br>
</div>
<div>My board is a Raspberry Pi 3 model B  V 1.2 and
attached you can find the cpuinfo output<br>
</div>
<div>Spi is enabled from raspi-config, and in /dev
there is spidev0.0 and spidev0.1</div>
<div><br>
</div>
Il giorno domenica 23 settembre 2018 19:35:25 UTC+2,
Schooner ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> OK, good
there is some progress.<br>
<br>
You will probably find that whilst loaded, it
may not work.<br>
<br>
That while statement is actually <br>
while(!( *(spi + 0) &amp; 0x00010000)<br>
which is extremely specific and if something has
changed or if SPI is not enabled, it will hang
forever.<br>
<br>
(gripe here, I have asked you 3 specific
questions and you have not answered any of them)<br>
<br>
<br>
<div>On 23/09/18 18:01, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Thanks for the explanation about
machinkit workings,</div>
<div><br>
</div>
<div>I played with the stamps and found that
it was blocking on</div>
<div><span>while</span> (!(BCM2835_SPICS
&amp; SPI_CS_DONE)); (Line 438)</div>
<div><br>
</div>
<div>removing it halrun loads, now I will
see if and what it writes. maybe I will
have to control the low level
implementation... but now I know more
things.</div>
<div><br>
</div>
<div>One more question, how does a hal
module read the args? <br>
</div>
<div><br>
</div>
<br>
Il giorno domenica 23 settembre 2018
17:47:44 UTC+2, Schooner ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Sep
23 15:03:17 realtimepi rtapi:0:
4:rtapi_app:701:user hal_spi.so default
iparms: ''<br>
Sep 23 15:03:17 realtimepi rtapi:0:
1:rtapi_app:701:user : hal_spi
init!!!!err<br>
Sep 23 15:03:17 realtimepi rtapi:0:
4:rtapi_app:701:user : hal_spi
init!!!!dbg<br>
Sep 23 15:03:17 realtimepi rtapi:0:
4:rtapi_app:701:user halg_xinitfv:90
HAL: initializing component 'hal_spi'
type=1 arg1=0 arg2=0/0x0<br>
<br>
Since you haven't said where these extra
prints are located, their presence means
nothing to me<br>
</div>
</blockquote>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> The
module is obviously loading to a point
but it does not look as though the
driver is getting any further than
hal_init, which calls halg_xinitfv()<br>
then is failing catastrophically<br>
<br>
You are loading with no args, are the
defaults suitable for your board /
setup?<br>
Not that it looks that it gets that far,
due the complete absence of other error
or info messages<br>
<br>
The insmod error is completely non
specific, so doesn't help, may just be
picking up the last return value.<br>
<br>
What is the output from /proc/cpuinfo
and what version etc is your Pi?<br>
<br>
<br>
<br>
<div>On 23/09/18 16:12, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Attached.</div>
<div><br>
</div>
<div>In the log you can see the
message I added in the hal_spi
rtapi_app_main.</div>
<div><br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#000">***@realtimepi</span><span
style="color:#660">:~</span><span
style="color:#000"> $
halcmd loadrt hal_spi<br>
</span><span
style="color:#080">&lt;commandline&gt;</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> insmod
failed</span><span
style="color:#660">,</span><span
style="color:#000">
returned </span><span
style="color:#660">-</span><span
style="color:#066">1</span><span
style="color:#660">:</span><span
style="color:#000"><br>
rtapi_rpc</span><span
style="color:#660">():</span><span
style="color:#000"> reply
timeout<br>
</span><span
style="color:#606">See</span><span
style="color:#000"> </span><span
style="color:#660">/</span><span
style="color:#008">var</span><span
style="color:#660">/</span><span
style="color:#000">log</span><span
style="color:#660">/</span><span
style="color:#000">linuxcnc</span><span
style="color:#660">.</span><span
style="color:#000">log </span><span
style="color:#008">for</span><span
style="color:#000"> more
information</span><span
style="color:#660">.</span><span
style="color:#000"><br>
***@realtimepi</span><span
style="color:#660">:~</span><span
style="color:#000"> $
halcmd show all<br>
halcmd</span><span
style="color:#660">:</span><span
style="color:#000"> cant
connect to rtapi_app</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#660">-</span><span
style="color:#066">1</span><span
style="color:#000"> </span><span
style="color:#660">(</span><span
style="color:#000">uri</span><span
style="color:#660">=</span><span
style="color:#000"> uuid</span><span
style="color:#660">=</span><span
style="color:#000">a42c8c6b</span><span
style="color:#660">-</span><span
style="color:#066">4025</span><span
style="color:#660">-</span><span
style="color:#066">4f83</span><span
style="color:#660">-</span><span
style="color:#000">ba28</span><span
style="color:#660">-</span><span
style="color:#000">d<wbr>ad21114744a</span><span
style="color:#660">):</span><span
style="color:#000">
rtapi_rpc</span><span
style="color:#660">():</span><span
style="color:#000"> reply
timeout<br>
<br>
E</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#066">18</span><span
style="color:#660">-</span><span
style="color:#066">09</span><span
style="color:#660">-</span><span
style="color:#066">23</span><span
style="color:#000"> </span><span
style="color:#066">15</span><span
style="color:#660">:</span><span
style="color:#066">04</span><span
style="color:#660">:</span><span
style="color:#066">20</span><span
style="color:#000">
dangling </span><span
style="color:#080">'DEALER'</span><span
style="color:#000"> socket
created at hal</span><span
style="color:#660">/</span><span
style="color:#000">utils</span><span
style="color:#660">/</span><span
style="color:#000">halcmd_rtapiapp</span><span
style="color:#660">.</span><span
style="color:#000">cc</span><span
style="color:#660">:</span><span
style="color:#066">2<wbr>81</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
<br>
</div>
<div>Il giorno domenica 23 settembre
2018 16:43:25 UTC+2, Schooner ha
scritto:</div>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF"> <br>
<div>On 23/09/18 15:16, mngr
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<br>
Il giorno domenica 23
settembre 2018 15:34:58
UTC+2, Schooner ha scritto:
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF"> It's
not about doubt<br>
cat /proc/cpuinfo<br>
will tell you whether
you have BCM2835<br>
</div>
</blockquote>
<div> </div>
<div>Thanks didn't know
about that! on the rpi is
written 2837, bit cpuinfo
says 2835!</div>
<div>So at least the part
that writes in the SPI
registers should work.</div>
<div><br>
</div>
<div>I tried to add some
debug message in hal_spi <span>rtapi_app_main

function, but I don't
see them anywhere, I
have exported DEBUG=5,
and maximized the DEBUG
value in the ini file. I
am looking in
/var/log/linuxcnc.log
and in the terminal
output.</span></div>
<div><span>I have tried with
different msg types <br>
</span></div>
<div><span><br>
</span></div>
<div><span>rtapi_print_msg(RTAPI_MSG_ERR,

": hal_spi
init!!!!err\n");<br>
rtapi_print_msg(RTAPI_MSG_DBG,
": hal_spi
init!!!!dbg\n");<br>
rtapi_print_msg(RTAPI_MSG_ALL,
": hal_spi
init!!!!all\n");<br>
</span></div>
</div>
</blockquote>
<br>
There are plenty of error
messages in the driver already. 
I did not see any in the log
however which makes me<br>
suspect it was never loaded.<br>
If insmod errors it should say
why however and that was not in
there either.<br>
<br>
Instead of complicating things
with loading a non working
config, just to load the driver,
try this in a terminal on your
Pi<br>
<br>
sudo &gt; /var/log/linuxcnc.log
(you may have to run this a
root, it should zero the log)<br>
DEBUG=5 realtime restart<br>
halcmd loadrt hal_spi<br>
halcmd show all<br>
halrun -U<br>
<br>
That should give you a short log
and if it errors loading hal_spi
will be easier to trace through<br>
<br>
In addition to the log do<br>
<br>
dmesg | tail &gt; dmesg.log <br>
<br>
and attach that log too<br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF"> If
you do and the driver
should work, we can try
to find out why it
isn't.<br>
<br>
If you don't, what the
differences are from the
BCM2837 for example, I
have no idea<br>
<br>
I am guessing you are
trying to generate steps
using the SPI, that is
an area outside my
experience<br>
but there seems to be
quite a bit about it on
the RPi forums<br>
</div>
</blockquote>
<div><br>
</div>
<div>Actually, I tought that
hal_spi is used to write
something to a MCU that
will control the motor
generating steps.</div>
<div>I think it sends the
commanded velocity and the
MCU updates the PWM.</div>
<div>I am not sure of those
things, though<br>
</div>
<div text="#000000"
bgcolor="#FFFFFF"><br>
<div>On 23/09/18 13:50,
mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<br>
Il giorno domenica 23
settembre 2018
13:41:42 UTC+2,
Schooner ha scritto:
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF">
The log does not
show what your
earlier email
showed, there is
not mention of an
error from insmod<br>
<br>
I think you need
to get right back
to basics.<br>
<br>
This driver was
written 5 years
ago and is
specific to the
BCM2835 chip<br>
It can only have
been meant to
support Pi v1
&amp; v2 and maybe
not all of them,
as they kept
changing versions
and hardware,<br>
because nothing of
a higher version
had been released
then<br>
<br>
Does this driver
support your Pi?<br>
</div>
</blockquote>
<div><br>
</div>
<div>In case of doubt
I gave a look to
wiringPi, it calls
ioctl and
write/reads from
/dev/spidev.</div>
<div>Is calling that
syscall from a hal
driver a sane thing
to do? (It is for
example used <a
moz-do-not-send="true"
href="https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_p260c.c"
rel="nofollow"
target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit%2Fmachinekit%2Fblob%2Fmaster%2Fsrc%2Fhal%2Fdrivers%2Fhal_p260c.c\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiiaXDhJO-MrGOOLcvAh8yi4_pxg';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit%2Fmachinekit%2Fblob%2Fmaster%2Fsrc%2Fhal%2Fdrivers%2Fhal_p260c.c\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiiaXDhJO-MrGOOLcvAh8yi4_pxg';return
true;">here</a>)<br>
</div>
<div><br>
</div>
<div> </div>
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF">
Regards DEBUG, the
ini file bit was
explained by the
text you deleted
from yours.<br>
It takes a
hexidecimal number
up to 0x7FFFFFFF,
the output is to
terminal and the
output is from NML
messaging<br>
<br>
The exported
DEBUG=5 is the
debug setting for
logging and
relates to the
rtapi system, not
NML<br>
</div>
</blockquote>
<div><br>
</div>
<div>Thanks for the
explanation,
Schooner<br>
</div>
<div> </div>
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF">
<div>On 23/09/18
11:07, mngr
wrote:<br>
</div>
<blockquote
type="cite">
<div dir="ltr"><br>
<br>
Il giorno
venerdì 21
settembre 2018
16:44:50
UTC+2,
Schooner ha
scritto:
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div
text="#000000"
bgcolor="#FFFFFF"> You are not running with DEBUG=5<br>
</div>
</blockquote>
<div><br>
</div>
<div>I edited
DEBUG = 5 in
ini file(in
EMC section),
nothing
changed, then
I exported
DEBUG=5 in
bash. what is
the
difference?
what is the
deBUG setting
in the ini
file for?</div>
<div><br>
</div>
<div>Attached
you can find
the ini and
the hal file,
I edited the
CRAMPS
configuration,
basically
removing
everything
relative to
the PRU, and
adding loadrt
hal_spi in
CRAMPS.hal
(and leaving
one only axis)<br>
</div>
<div>linuxcnc_old.log
is everything
before adding
loadrt
hal_spi. <br>
</div>
<div>linuxcnc.log
is the
execution with
loadrt hal_spi
and
termila_output
shows what has
been written,
I attached it
because it
talks about
rtapi_rpc():
reply timeout,
that is not
mentioned in
the log<br>
</div>
<div><br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#000">***@realtimepi</span><span
style="color:#660">:~</span><span style="color:#000"> $ uname </span><span
style="color:#660">-</span><span style="color:#000">a<br>
</span><span
style="color:#606">Linux</span><span
style="color:#000"> realtimepi </span><span style="color:#066">4.14</span><span
style="color:#660">.</span><span style="color:#066">66</span><span
style="color:#660">-</span><span
style="color:#000">rt40</span><span style="color:#660">-</span><span
style="color:#000">v7

</span><span
style="color:#800">#2


SMP PREEMPT RT
Mon Sep 17
21:15:46 UTC
2018 armv7l
GNU/Linux</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
<br>
</div>
<div> </div>
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div
text="#000000"
bgcolor="#FFFFFF"> Do so and your linuxcnc.log will have info as to what
failed.<br>
<br>
Also as I said
in my last
reply, it does
not look as
though you
have a
realtime
kernel,
irrespective
of what you
have named
your pi.<br>
<br>
<div>On
21/09/18
15:31, mngr
wrote:<br>
</div>
<blockquote
type="cite">
<div dir="ltr">
<div>Hi
everyone,</div>
<div><br>
</div>
<div>I am
sorry to post
another noob
question here,
but,</div>
<div><br>
</div>
<div>I am
trying to use
the hal module
hal_spi,
shortly I
tried with <br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#000">loadrt




hal_spi<br>
</span></div>
</code></div>
in the hal
file, but </div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#000">CRAMPS</span><span
style="color:#660">.</span><span style="color:#000">hal</span><span
style="color:#660">:</span><span
style="color:#066">15</span><span style="color:#660">:</span><span
style="color:#000">
insmod failed</span><span
style="color:#660">,</span><span style="color:#000"> returned </span><span
style="color:#660">-</span><span style="color:#066">1</span><span
style="color:#660">:</span><span
style="color:#000"><br>
rtapi_rpc</span><span
style="color:#660">():</span><span style="color:#000"> reply timeout<br>
</span><span
style="color:#606">See</span><span
style="color:#000"> </span><span style="color:#660">/</span><span
style="color:#008">var</span><span
style="color:#660">/</span><span style="color:#000">log</span><span
style="color:#660">/</span><span
style="color:#000">linuxcnc</span><span style="color:#660">.</span><span
style="color:#000">log </span><span style="color:#008">for</span><span
style="color:#000"> more information</span><span style="color:#660">.</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
in the log</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> startup pid</span><span style="color:#660">=</span><span
style="color:#066">5979</span><span style="color:#000"> flavor</span><span
style="color:#660">=</span><span style="color:#000">posix rtlevel</span><span
style="color:#660">=</span><span style="color:#066">1</span><span
style="color:#000">
usrlevel</span><span
style="color:#660">=</span><span style="color:#066">1</span><span
style="color:#000">
halsize</span><span
style="color:#660">=</span><span style="color:#066">524288</span><span
style="color:#000">
shm</span><span
style="color:#660">=</span><span style="color:#606">Posix</span><span
style="color:#000">
cc</span><span
style="color:#660">=</span><span style="color:#000">gcc </span><span
style="color:#066">6.3</span><span
style="color:#660">.</span><span style="color:#066">0</span><span
style="color:#000">
</span><span
style="color:#066">20170516</span><span
style="color:#000">  version</span><span style="color:#660">=</span><span
style="color:#000">unknown<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span style="color:#660">Ø</span><span
style="color:#000">MQ</span><span
style="color:#660">=</span><span style="color:#066">4.2</span><span
style="color:#660">.</span><span
style="color:#066">1</span><span style="color:#000"> czmq</span><span
style="color:#660">=</span><span
style="color:#066">4.0</span><span style="color:#660">.</span><span
style="color:#066">2</span><span
style="color:#000"> protobuf</span><span style="color:#660">=</span><span
style="color:#066">3.0</span><span style="color:#660">.</span><span
style="color:#066">0</span><span
style="color:#000"> atomics</span><span style="color:#660">=</span><span
style="color:#000">gcc intrinsics    libwebsockets</span><span
style="color:#660">=</span><span
style="color:#066">2.0</span><span style="color:#660">.</span><span
style="color:#066">3</span><span
style="color:#000"><br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> configured</span><span style="color:#660">:</span><span
style="color:#000"> sha</span><span style="color:#660">=</span><span
style="color:#000">b87920504<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> built</span><span style="color:#660">:</span><span
style="color:#000">
     </span><span
style="color:#606">Sep</span><span style="color:#000"> </span><span
style="color:#066">18</span><span
style="color:#000"> </span><span style="color:#066">2018</span><span
style="color:#000">
</span><span
style="color:#066">16</span><span
style="color:#660">:</span><span style="color:#066">43</span><span
style="color:#660">:</span><span
style="color:#066">17</span><span style="color:#000"> sha</span><span
style="color:#660">=</span><span
style="color:#000">b87920504<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> register_stuff</span><span style="color:#660">:</span><span
style="color:#000"> actual hostname </span><span style="color:#008">as</span><span
style="color:#000"> announced </span><span style="color:#008">by</span><span
style="color:#000"> avahi</span><span style="color:#660">=</span><span
style="color:#080">'realtimepi.local'</span><span
style="color:#000"><br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> zeroconf</span><span style="color:#660">:</span><span
style="color:#000"> registering</span><span style="color:#660">:</span><span
style="color:#000"> </span><span style="color:#080">'Log service on
realtimepi.local
pid 5979'</span><span
style="color:#000"><br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">10</span><span style="color:#000"> realtimepi rtapi</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> rtapi_msgd went away</span><span style="color:#660">,</span><span
style="color:#000"> exiting<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">10</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> zeroconf</span><span style="color:#660">:</span><span
style="color:#000"> registered </span><span style="color:#080">'Log
service on
realtimepi.local
pid 5979'</span><span
style="color:#000"> _machinekit</span><span style="color:#660">.</span><span
style="color:#000">_tcp </span><span style="color:#066">0</span><span
style="color:#000">
TXT </span><span
style="color:#080">"uuid=a42c8c6b-4025-4f83-ba28-<wbr>dad21114744a"</span><span
style="color:#000"> </span><span style="color:#080">"instance=b9c730a2-bda9-11e8-<wbr>bcc3-b827eb4bcf42"</span><span
style="color:#000"> </span><span style="color:#080">"service=log"</span><span
style="color:#000"> </span><span style="color:#080">"dsn=ipc:///tmp/0.log.<wbr>a42c8c6b-4025-4f83-ba28-<wbr>dad21114744a"</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
I tried
launching
machinekit
without it and
adding it
later using
halcmd loadrt
hal_spi, but
with similar
results<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>should I
give it some
arguments? I
don't know how
to understand
how to write
them from the
code...</div>
<div>Maybe the
module is old
and has lost
some
compatibility?</div>
<div><br>
</div>
<div>right now
i am executing
from</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#606">Linux</span><span
style="color:#000"> realtimepi </span><span style="color:#066">4.14</span><span
style="color:#660">.</span><span style="color:#066">69</span><span
style="color:#660">-</span><span
style="color:#000">v7</span><span style="color:#660">+</span><span
style="color:#000">
</span><span
style="color:#800">#1141



SMP Mon Sep 10
15:26:29 BST
2018 armv7l
GNU/Linux</span><span
style="color:#000"><br>
</span></div>
</code></div>
Debian
Stretch,
Machinekit
compiled from
source<br>
</div>
<div>maybe
should I
explicit the
path to
hal_spi?</div>
<div><br>
</div>
<div>mngr<br>
</div>
</div>
-- <br>
website: <a
moz-do-not-send="true"
href="http://www.machinekit.io" rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io" rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received
this message
because you
are subscribed
to the Google
Groups
"Machinekit"
group.<br>
To unsubscribe
from this
group and stop
receiving
emails from
it, send an
email to <a
moz-do-not-send="true"
rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this
group at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit" rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more
options, visit
<a
moz-do-not-send="true"
href="https://groups.google.com/d/optout" rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a
moz-do-not-send="true"
href="http://www.machinekit.io" rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io" rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received
this message
because you are
subscribed to
the Google
Groups
"Machinekit"
group.<br>
To unsubscribe
from this group
and stop
receiving emails
from it, send an
email to <a
moz-do-not-send="true"
rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group
at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit" rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more
options, visit <a
moz-do-not-send="true" href="https://groups.google.com/d/optout"
rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a
moz-do-not-send="true"
href="http://www.machinekit.io" rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io" rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this
message because you are
subscribed to the Google
Groups "Machinekit"
group.<br>
To unsubscribe from this
group and stop receiving
emails from it, send an
email to <a
moz-do-not-send="true"
rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit" rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit
<a
moz-do-not-send="true"
href="https://groups.google.com/d/optout" rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex"> </blockquote>
</div>
-- <br>
website: <a
moz-do-not-send="true"
href="http://www.machinekit.io"
rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io"
rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a
moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow"
target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message
because you are subscribed to
the Google Groups "Machinekit"
group.<br>
To unsubscribe from this group
and stop receiving emails from
it, send an email to <a
moz-do-not-send="true"
rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a
moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true"
href="http://blog.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you
are subscribed to the Google Groups
"Machinekit" group.<br>
To unsubscribe from this group and
stop receiving emails from it, send an
email to <a moz-do-not-send="true"
rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a
moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github:
<a moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are
subscribed to the Google Groups "Machinekit"
group.<br>
To unsubscribe from this group and stop
receiving emails from it, send an email to <a
moz-do-not-send="true" rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit" rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a
moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io" rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" rel="nofollow"
target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed
to the Google Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving
emails from it, send an email to <a
moz-do-not-send="true" rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true" href="http://blog.machinekit.io">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to the Google
Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails from it,
send an email to <a moz-do-not-send="true"
href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br>
</blockquote>
<br>
</body>
</html>

<p></p>

-- <br />
website: <a href="http://www.machinekit.io">http://www.machinekit.io</a> blog: <a href="http://blog.machinekit.io">http://blog.machinekit.io</a> github: <a href="https://github.com/machinekit">https://github.com/machinekit</a><br />
--- <br />
You received this message because you are subscribed to the Google Groups &quot;Machinekit&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br />
Visit this group at <a href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />
mngr
2018-09-28 15:06:58 UTC
Permalink
Post by mngr
edited from 0x20000000 to 0x3F000000 and now the raspberry loads the
hal_spi module. hal_spi.c should check the Pi version in a similar way to
hal_gpio.c .
Well done.
There were no other Pi versions when it was written.
Would you like to submit a PR?
sure thing!
I have just seen that after modifying naively BCM2835_PERI_BASE the chip
select stops working.
there is some part of hal_spi that I don't understand: a very lot of
costants in hal_spi.h are not used;
and
https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_spi.c#L401
it does something on GPIO23 and 24. for which raspberry version was it
written? I see it is related to pin_out hal pin, but... how was it designed?


Cut and paste the hal_gpio.c code that version checks into hal-spi.c and
Post by mngr
test that.
I only have rasppberry 3B on my desk, so I only can test on it.
Post by mngr
Post by mngr
The cpuinfo information says BCM2835 for any raspberry version you can
have, this helps with something in the kernel, the revision is the filed
actually accurate.
The first version of RPi have the base address at 0x20000000 from RPi 2
on it is at 0x3F000000
hal gpio recognize this difference, hal_spi does not, I still have to run
hal gpio, though, will do it in next days
https://web.stanford.edu/class/cs140e/docs/BCM2837-ARM-Peripherals.pdf
here is a BCM 2837 datasheet that shows all the addresses, I will try to
correct them in next days
Other <https://ultibo.org/wiki/Unit_BCM2710> says to have a SPI driver
for the 2710 (aka 2837) but it is hard to find the code, in case I will try
to ask directly to them
Post by s***@gmail.com
Well, despite what /proc/cpuinfo says, I don't see how it can be a
BCM2835 Soc.
The elinux hardware history (https://elinux.org/RPi_HardwareHistory)
clearly shows the v3 B has a BCM2037 and even if you
were sold an almost identical v2 B purporting to be a v3 B, it would
have a BCM2036.
Looks like it is testing CS (chip select) to see if it is in an active
state and waiting until it is?
Hence my question about whether SPI was activated.
The most likely sources of the problem are either that SPI is inactive or
that whatever address *spi points to it does not contain what is
expected so the & test will never result as expected.
This in turn makes one suspicious about what will happen when the driver
is attached to a thread and started.
Will it work?
It might be useful to try to get the hal_gpio demo running on the board
with DEBUG set and look at the output.
Regards the args, that is peculiar. Just ignore the print out.
Look at hal_gpio.c for an example of how RTAPI_MP_STRING should appear,
and then you can see them being used in the later code.
If there is any initialisation to be done it would normally be in
rtapi_app_main()
You need to find someone who is up on bit twiddling on the v3 B and
check all the addresses and offsets with them.
(Particularly the SPI_BASE offset, which may or may not vary between
models of Soc)
I am really sorry Schooner, I was excited about the findings...
I actually don't know which args suits my setup, I looked in the source,
but I don't know how to find where they are used,
I tried to scroll it all, but found no place that seems to use them.
My board is a Raspberry Pi 3 model B V 1.2 and attached you can find
the cpuinfo output
Spi is enabled from raspi-config, and in /dev there is spidev0.0 and
spidev0.1
Post by s***@gmail.com
OK, good there is some progress.
You will probably find that whilst loaded, it may not work.
That while statement is actually
while(!( *(spi + 0) & 0x00010000)
which is extremely specific and if something has changed or if SPI is
not enabled, it will hang forever.
(gripe here, I have asked you 3 specific questions and you have not
answered any of them)
Thanks for the explanation about machinkit workings,
I played with the stamps and found that it was blocking on
while (!(BCM2835_SPICS & SPI_CS_DONE)); (Line 438)
removing it halrun loads, now I will see if and what it writes. maybe I
will have to control the low level implementation... but now I know more
things.
One more question, how does a hal module read the args?
Post by s***@gmail.com
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user hal_spi.so
default iparms: ''
Sep 23 15:03:17 realtimepi rtapi:0: 1:rtapi_app:701:user : hal_spi
init!!!!err
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user : hal_spi
init!!!!dbg
Sep 23 15:03:17 realtimepi rtapi:0: 4:rtapi_app:701:user
halg_xinitfv:90 HAL: initializing component 'hal_spi' type=1 arg1=0
arg2=0/0x0
Since you haven't said where these extra prints are located, their
presence means nothing to me
The module is obviously loading to a point but it does not look as
Post by s***@gmail.com
though the driver is getting any further than hal_init, which calls
halg_xinitfv()
then is failing catastrophically
You are loading with no args, are the defaults suitable for your board
/ setup?
Not that it looks that it gets that far, due the complete absence of
other error or info messages
The insmod error is completely non specific, so doesn't help, may just
be picking up the last return value.
What is the output from /proc/cpuinfo and what version etc is your Pi?
Attached.
In the log you can see the message I added in the hal_spi
rtapi_app_main.
rtapi_rpc(): reply timeout
See /var/log/linuxcnc.log for more information.
halcmd: cant connect to rtapi_app: -1 (uri= uuid=a42c8c6b-4025-4f83-
ba28-dad21114744a): rtapi_rpc(): reply timeout
E: 18-09-23 15:04:20 dangling 'DEALER' socket created at hal/utils/
halcmd_rtapiapp.cc:281
Post by mngr
Post by s***@gmail.com
It's not about doubt
cat /proc/cpuinfo
will tell you whether you have BCM2835
Thanks didn't know about that! on the rpi is written 2837, bit
cpuinfo says 2835!
So at least the part that writes in the SPI registers should work.
I tried to add some debug message in hal_spi rtapi_app_main
function, but I don't see them anywhere, I have exported DEBUG=5, and
maximized the DEBUG value in the ini file. I am looking in
/var/log/linuxcnc.log and in the terminal output.
I have tried with different msg types
rtapi_print_msg(RTAPI_MSG_ERR, ": hal_spi init!!!!err\n");
rtapi_print_msg(RTAPI_MSG_DBG, ": hal_spi init!!!!dbg\n");
rtapi_print_msg(RTAPI_MSG_ALL, ": hal_spi init!!!!all\n");
There are plenty of error messages in the driver already. I did not
see any in the log however which makes me
suspect it was never loaded.
If insmod errors it should say why however and that was not in there
either.
Instead of complicating things with loading a non working config,
just to load the driver, try this in a terminal on your Pi
sudo > /var/log/linuxcnc.log (you may have to run this a root, it
should zero the log)
DEBUG=5 realtime restart
halcmd loadrt hal_spi
halcmd show all
halrun -U
That should give you a short log and if it errors loading hal_spi
will be easier to trace through
In addition to the log do
dmesg | tail > dmesg.log
and attach that log too
If you do and the driver should work, we can try to find out why it
Post by s***@gmail.com
isn't.
If you don't, what the differences are from the BCM2837 for example,
I have no idea
I am guessing you are trying to generate steps using the SPI, that
is an area outside my experience
but there seems to be quite a bit about it on the RPi forums
Actually, I tought that hal_spi is used to write something to a MCU
that will control the motor generating steps.
I think it sends the commanded velocity and the MCU updates the PWM.
I am not sure of those things, though
Post by s***@gmail.com
The log does not show what your earlier email showed, there is not
mention of an error from insmod
I think you need to get right back to basics.
This driver was written 5 years ago and is specific to the BCM2835 chip
It can only have been meant to support Pi v1 & v2 and maybe not all
of them, as they kept changing versions and hardware,
because nothing of a higher version had been released then
Does this driver support your Pi?
In case of doubt I gave a look to wiringPi, it calls ioctl and
write/reads from /dev/spidev.
Is calling that syscall from a hal driver a sane thing to do? (It is
for example used here
<https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_p260c.c>
)
Post by s***@gmail.com
Regards DEBUG, the ini file bit was explained by the text you
deleted from yours.
It takes a hexidecimal number up to 0x7FFFFFFF, the output is to
terminal and the output is from NML messaging
The exported DEBUG=5 is the debug setting for logging and relates to
the rtapi system, not NML
Thanks for the explanation, Schooner
Post by s***@gmail.com
Post by s***@gmail.com
You are not running with DEBUG=5
I edited DEBUG = 5 in ini file(in EMC section), nothing changed,
then I exported DEBUG=5 in bash. what is the difference? what is the deBUG
setting in the ini file for?
Attached you can find the ini and the hal file, I edited the CRAMPS
configuration, basically removing everything relative to the PRU, and
adding loadrt hal_spi in CRAMPS.hal (and leaving one only axis)
linuxcnc_old.log is everything before adding loadrt hal_spi.
linuxcnc.log is the execution with loadrt hal_spi and termila_output
shows what has been written, I attached it because it talks about
rtapi_rpc(): reply timeout, that is not mentioned in the log
Linux realtimepi 4.14.66-rt40-v7 #2 SMP PREEMPT RT Mon Sep 17
21:15:46 UTC 2018 armv7l GNU/Linux
Post by s***@gmail.com
Do so and your linuxcnc.log will have info as to what failed.
Also as I said in my last reply, it does not look as though you
have a realtime kernel, irrespective of what you have named your pi.
Hi everyone,
I am sorry to post another noob question here, but,
I am trying to use the hal module hal_spi, shortly I tried with
loadrt hal_spi
in the hal file, but
rtapi_rpc(): reply timeout
See /var/log/linuxcnc.log for more information.
in the log
Sep 21 14:22:09 realtimepi msgd:0: startup pid=5979 flavor=posix
rtlevel=1 usrlevel=1 halsize=524288 shm=Posix cc=gcc 6.3.0 20170516
version=unknown
Sep 21 14:22:09 realtimepi msgd:0: ØMQ=4.2.1 czmq=4.0.2 protobuf=
3.0.0 atomics=gcc intrinsics libwebsockets=2.0.3
Sep 21 14:22:09 realtimepi msgd:0: configured: sha=b87920504
Sep 21 14:22:09 realtimepi msgd:0: built: Sep 18 2018 16:43:17
sha=b87920504
Sep 21 14:22:09 realtimepi msgd:0: register_stuff: actual hostname
as announced by avahi='realtimepi.local'
Sep 21 14:22:09 realtimepi msgd:0: zeroconf: registering: 'Log
service on realtimepi.local pid 5979'
Sep 21 14:22:10 realtimepi rtapi:0: rtapi_msgd went away, exiting
Sep 21 14:22:10 realtimepi msgd:0: zeroconf: registered 'Log
service on realtimepi.local pid 5979' _machinekit._tcp 0 TXT
"uuid=a42c8c6b-4025-4f83-ba28-dad21114744a"
"instance=b9c730a2-bda9-11e8-bcc3-b827eb4bcf42" "service=log"
"dsn=ipc:///tmp/0.log.a42c8c6b-4025-4f83-ba28-dad21114744a"
I tried launching machinekit without it and adding it later using
halcmd loadrt hal_spi, but with similar results
should I give it some arguments? I don't know how to understand how
to write them from the code...
Maybe the module is old and has lost some compatibility?
right now i am executing from
Linux realtimepi 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST
2018 armv7l GNU/Linux
Debian Stretch, Machinekit compiled from source
maybe should I explicit the path to hal_spi?
mngr
--
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,
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,
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,
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,
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
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
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
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
--
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
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 machinekit+***@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
s***@gmail.com
2018-09-28 15:16:38 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 28/09/18 16:06, mngr wrote:<br>
</div>
<blockquote
cite="mid:153759f0-e104-43f3-9966-***@googlegroups.com"
type="cite">
<div dir="ltr"><br>
<br>
Il giorno venerdì 28 settembre 2018 15:10:04 UTC+2, Schooner ha
scritto:
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF"> <br>
<div>On 28/09/18 13:21, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>edited from <span><span>0x20000000 to</span></span>
<span><span>0x3F000000 and now the raspberry loads the
hal_spi module. hal_spi.c should check the Pi
version in a similar way to hal_gpio.c .</span></span></div>
</div>
</blockquote>
<br>
Well done.<br>
<br>
There were no other Pi versions when it was written.<br>
<br>
Would you like to submit a PR?<br>
</div>
</blockquote>
<div>sure thing! <br>
</div>
<div>I have just seen that after modifying naively
BCM2835_PERI_BASE the chip select stops working.<br>
</div>
<div>there is some part of hal_spi that I don't understand: a
very lot of costants in hal_spi.h are not used;</div>
<div>and <a moz-do-not-send="true"
href="https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_spi.c#L401">https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_spi.c#L401</a>
it does something on GPIO23 and 24. for which raspberry
version was it written?</div>
</div>
</blockquote>
<br>
It can only have been written for v1 or v2, probably not v2B given
its date of writing.<br>
I have not heard anything of the guy who wrote it for some years
either.<br>
<br>
<blockquote
cite="mid:153759f0-e104-43f3-9966-***@googlegroups.com"
type="cite">
<div dir="ltr">
<div> I see it is related to pin_out hal pin, but... how was it
designed?<br>
</div>
<div><br>
</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF"> Cut and paste the
hal_gpio.c code that version checks into hal-spi.c and test
that.<br>
</div>
</blockquote>
<div> </div>
<div>I only have rasppberry 3B on my desk, so I only can test on
it.</div>
</div>
</blockquote>
<br>
That's fine, we  know it worked with earlier versions, if it can
detect a v3B and change the main base address accordingly<br>
so that it works, it will be improved<br>
<br>
If the BCM2835_PERI_BASE works, then leave as is.<br>
<br>
<blockquote
cite="mid:153759f0-e104-43f3-9966-***@googlegroups.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF"> <br>
<blockquote type="cite">
<div dir="ltr"><br>
Il giorno mercoledì 26 settembre 2018 12:33:31 UTC+2,
mngr ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div dir="ltr">
<div>The cpuinfo information says BCM2835 for any
raspberry version you can have, this helps with
something in the kernel, the revision is the filed
actually accurate.</div>
<div>The first version of RPi have the base address
at <span>0x20000000 from RPi 2 on it is at  </span><span><span>0x3F000000</span></span></div>
<div><br>
</div>
<div>hal gpio recognize this difference, hal_spi
does not, I still have to run hal gpio, though,
will do it in next days<br>
</div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="https://web.stanford.edu/class/cs140e/docs/BCM2837-ARM-Peripherals.pdf"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fweb.stanford.edu%2Fclass%2Fcs140e%2Fdocs%2FBCM2837-ARM-Peripherals.pdf\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5TFhvnEBErn-8B6L73Xvm1gZuYQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fweb.stanford.edu%2Fclass%2Fcs140e%2Fdocs%2FBCM2837-ARM-Peripherals.pdf\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5TFhvnEBErn-8B6L73Xvm1gZuYQ';return
true;">https://web.stanford.edu/<wbr>class/cs140e/docs/BCM2837-ARM-<wbr>Peripherals.pdf</a><br>
here is a BCM 2837 datasheet that shows all the
addresses, I will try to correct them in next days</div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="https://ultibo.org/wiki/Unit_BCM2710"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fultibo.org%2Fwiki%2FUnit_BCM2710\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEEG3HJtLITxV1cYujmDidBNZV2kA';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fultibo.org%2Fwiki%2FUnit_BCM2710\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEEG3HJtLITxV1cYujmDidBNZV2kA';return
true;">Other</a> says to have a SPI driver for
the 2710 (aka 2837) but it is hard to find the
code, in case I will try to ask directly to them<br>
</div>
<div><br>
</div>
<br>
Il giorno lunedì 24 settembre 2018 11:41:53 UTC+2,
Schooner ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Well,
despite what /proc/cpuinfo says, I don't see how
it can be a BCM2835 Soc.<br>
<br>
The elinux hardware history (<a
moz-do-not-send="true"
href="https://elinux.org/RPi_HardwareHistory"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Felinux.org%2FRPi_HardwareHistory\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHWdrJAZ92RUrbc5FfHVzhs_m0rDQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Felinux.org%2FRPi_HardwareHistory\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHWdrJAZ92RUrbc5FfHVzhs_m0rDQ';return
true;">https://elinux.org/RPi_<wbr>HardwareHistory</a>)
clearly shows the v3 B has a BCM2037 and even if
you<br>
were sold an almost identical v2 B purporting to
be a v3 B, it would have a BCM2036.<br>
<br>
Looks like it is testing CS (chip select) to see
if it is in an active state and waiting until it
is?<br>
Hence my question about whether SPI was
activated.<br>
The most likely sources of the problem are
either that SPI is inactive or <br>
that whatever address *spi points to it does not
contain what is expected so the &amp; test will
never result as expected.<br>
<br>
This in turn makes one suspicious about what
will happen when the driver is attached to a
thread and started.<br>
Will it work?<br>
<br>
It might be useful to try to get the hal_gpio
demo running on the board with DEBUG set and
look at the output.<br>
<br>
Regards the args, that is peculiar.  Just ignore
the print out.<br>
Look at hal_gpio.c for an example of how
RTAPI_MP_STRING should appear, and then you can
see them being used in the later code.<br>
If there is any initialisation to be done it
would normally be in rtapi_app_main()<br>
<br>
You need to find someone who is up on bit
twiddling on the v3 B and check all the
addresses and offsets with them.<br>
(Particularly the SPI_BASE offset, which may or
may not vary between models of Soc)<br>
<br>
<br>
<div>On 23/09/18 20:35, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>I am really sorry Schooner, I was
excited about the findings...</div>
<div>I actually don't know which args suits
my setup, I looked in the source, but I
don't know how to find where they are
used,</div>
<div>I tried to scroll it all, but found no
place that seems to use them.<br>
</div>
<div>My board is a Raspberry Pi 3 model B  V
1.2 and attached you can find the cpuinfo
output<br>
</div>
<div>Spi is enabled from raspi-config, and
in /dev there is spidev0.0 and spidev0.1</div>
<div><br>
</div>
Il giorno domenica 23 settembre 2018
19:35:25 UTC+2, Schooner ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> OK,
good there is some progress.<br>
<br>
You will probably find that whilst
loaded, it may not work.<br>
<br>
That while statement is actually <br>
while(!( *(spi + 0) &amp; 0x00010000)<br>
which is extremely specific and if
something has changed or if SPI is not
enabled, it will hang forever.<br>
<br>
(gripe here, I have asked you 3 specific
questions and you have not answered any
of them)<br>
<br>
<br>
<div>On 23/09/18 18:01, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Thanks for the explanation
about machinkit workings,</div>
<div><br>
</div>
<div>I played with the stamps and
found that it was blocking on</div>
<div><span>while</span>
(!(BCM2835_SPICS &amp;
SPI_CS_DONE)); (Line 438)</div>
<div><br>
</div>
<div>removing it halrun loads, now I
will see if and what it writes.
maybe I will have to control the
low level implementation... but
now I know more things.</div>
<div><br>
</div>
<div>One more question, how does a
hal module read the args? <br>
</div>
<div><br>
</div>
<br>
Il giorno domenica 23 settembre 2018
17:47:44 UTC+2, Schooner ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF"> Sep 23
15:03:17 realtimepi rtapi:0:
4:rtapi_app:701:user hal_spi.so
default iparms: ''<br>
Sep 23 15:03:17 realtimepi
rtapi:0: 1:rtapi_app:701:user :
hal_spi init!!!!err<br>
Sep 23 15:03:17 realtimepi
rtapi:0: 4:rtapi_app:701:user :
hal_spi init!!!!dbg<br>
Sep 23 15:03:17 realtimepi
rtapi:0: 4:rtapi_app:701:user
halg_xinitfv:90 HAL:
initializing component 'hal_spi'
type=1 arg1=0 arg2=0/0x0<br>
<br>
Since you haven't said where
these extra prints are located,
their presence means nothing to
me<br>
</div>
</blockquote>
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF"> The module is
obviously loading to a point but
it does not look as though the
driver is getting any further
than hal_init, which calls
halg_xinitfv()<br>
then is failing catastrophically<br>
<br>
You are loading with no args,
are the defaults suitable for
your board / setup?<br>
Not that it looks that it gets
that far, due the complete
absence of other error or info
messages<br>
<br>
The insmod error is completely
non specific, so doesn't help,
may just be picking up the last
return value.<br>
<br>
What is the output from
/proc/cpuinfo and what version
etc is your Pi?<br>
<br>
<br>
<br>
<div>On 23/09/18 16:12, mngr
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Attached.</div>
<div><br>
</div>
<div>In the log you can see
the message I added in the
hal_spi rtapi_app_main.</div>
<div><br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#000">***@realtimepi</span><span
style="color:#660">:~</span><span
style="color:#000">
$ halcmd loadrt
hal_spi<br>
</span><span
style="color:#080">&lt;commandline&gt;</span><span
style="color:#660">:</span><span
style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000">
insmod failed</span><span
style="color:#660">,</span><span
style="color:#000">
returned </span><span
style="color:#660">-</span><span
style="color:#066">1</span><span
style="color:#660">:</span><span
style="color:#000"><br>
rtapi_rpc</span><span
style="color:#660">():</span><span
style="color:#000">
reply timeout<br>
</span><span
style="color:#606">See</span><span
style="color:#000">
</span><span
style="color:#660">/</span><span
style="color:#008">var</span><span
style="color:#660">/</span><span
style="color:#000">log</span><span
style="color:#660">/</span><span
style="color:#000">linuxcnc</span><span
style="color:#660">.</span><span
style="color:#000">log
</span><span
style="color:#008">for</span><span
style="color:#000">
more information</span><span
style="color:#660">.</span><span
style="color:#000"><br>
***@realtimepi</span><span
style="color:#660">:~</span><span
style="color:#000">
$ halcmd show all<br>
halcmd</span><span
style="color:#660">:</span><span
style="color:#000">
cant connect to
rtapi_app</span><span
style="color:#660">:</span><span
style="color:#000">
</span><span
style="color:#660">-</span><span
style="color:#066">1</span><span
style="color:#000">
</span><span
style="color:#660">(</span><span
style="color:#000">uri</span><span
style="color:#660">=</span><span
style="color:#000">
uuid</span><span
style="color:#660">=</span><span
style="color:#000">a42c8c6b</span><span
style="color:#660">-</span><span
style="color:#066">4025</span><span
style="color:#660">-</span><span
style="color:#066">4f83</span><span
style="color:#660">-</span><span
style="color:#000">ba28</span><span
style="color:#660">-</span><span
style="color:#000">d<wbr>ad21114744a</span><span
style="color:#660">):</span><span
style="color:#000">
rtapi_rpc</span><span
style="color:#660">():</span><span
style="color:#000">
reply timeout<br>
<br>
E</span><span
style="color:#660">:</span><span
style="color:#000">
</span><span
style="color:#066">18</span><span
style="color:#660">-</span><span
style="color:#066">09</span><span
style="color:#660">-</span><span
style="color:#066">23</span><span
style="color:#000">
</span><span
style="color:#066">15</span><span
style="color:#660">:</span><span
style="color:#066">04</span><span
style="color:#660">:</span><span
style="color:#066">20</span><span
style="color:#000">
dangling </span><span
style="color:#080">'DEALER'</span><span
style="color:#000">
socket created at
hal</span><span
style="color:#660">/</span><span
style="color:#000">utils</span><span
style="color:#660">/</span><span
style="color:#000">halcmd_rtapiapp</span><span
style="color:#660">.</span><span
style="color:#000">cc</span><span
style="color:#660">:</span><span
style="color:#066">2<wbr>81</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
<br>
</div>
<div>Il giorno domenica 23
settembre 2018 16:43:25
UTC+2, Schooner ha
scritto:</div>
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF"> <br>
<div>On 23/09/18 15:16,
mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<br>
Il giorno domenica
23 settembre 2018
15:34:58 UTC+2,
Schooner ha scritto:
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div
text="#000000"
bgcolor="#FFFFFF">
It's not about
doubt<br>
cat
/proc/cpuinfo<br>
will tell you
whether you have
BCM2835<br>
</div>
</blockquote>
<div> </div>
<div>Thanks didn't
know about that!
on the rpi is
written 2837, bit
cpuinfo says 2835!</div>
<div>So at least the
part that writes
in the SPI
registers should
work.</div>
<div><br>
</div>
<div>I tried to add
some debug message
in hal_spi <span>rtapi_app_main


function, but I
don't see them
anywhere, I have
exported
DEBUG=5, and
maximized the
DEBUG value in
the ini file. I
am looking in
/var/log/linuxcnc.log
and in the
terminal output.</span></div>
<div><span>I have
tried with
different msg
types <br>
</span></div>
<div><span><br>
</span></div>
<div><span>rtapi_print_msg(RTAPI_MSG_ERR,


": hal_spi
init!!!!err\n");<br>
rtapi_print_msg(RTAPI_MSG_DBG,

": hal_spi
init!!!!dbg\n");<br>
rtapi_print_msg(RTAPI_MSG_ALL,

": hal_spi
init!!!!all\n");<br>
</span></div>
</div>
</blockquote>
<br>
There are plenty of
error messages in the
driver already.  I did
not see any in the log
however which makes me<br>
suspect it was never
loaded.<br>
If insmod errors it
should say why however
and that was not in
there either.<br>
<br>
Instead of complicating
things with loading a
non working config, just
to load the driver, try
this in a terminal on
your Pi<br>
<br>
sudo &gt;
/var/log/linuxcnc.log
(you may have to run
this a root, it should
zero the log)<br>
DEBUG=5 realtime restart<br>
halcmd loadrt hal_spi<br>
halcmd show all<br>
halrun -U<br>
<br>
That should give you a
short log and if it
errors loading hal_spi
will be easier to trace
through<br>
<br>
In addition to the log
do<br>
<br>
dmesg | tail &gt;
dmesg.log <br>
<br>
and attach that log too<br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div
text="#000000"
bgcolor="#FFFFFF">
If you do and
the driver
should work, we
can try to find
out why it
isn't.<br>
<br>
If you don't,
what the
differences are
from the BCM2837
for example, I
have no idea<br>
<br>
I am guessing
you are trying
to generate
steps using the
SPI, that is an
area outside my
experience<br>
but there seems
to be quite a
bit about it on
the RPi forums<br>
</div>
</blockquote>
<div><br>
</div>
<div>Actually, I
tought that
hal_spi is used to
write something to
a MCU that will
control the motor
generating steps.</div>
<div>I think it
sends the
commanded velocity
and the MCU
updates the PWM.</div>
<div>I am not sure
of those things,
though<br>
</div>
<div text="#000000"
bgcolor="#FFFFFF"><br>
<div>On 23/09/18
13:50, mngr
wrote:<br>
</div>
<blockquote
type="cite">
<div dir="ltr"><br>
<br>
Il giorno
domenica 23
settembre 2018
13:41:42
UTC+2,
Schooner ha
scritto:
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div
text="#000000"
bgcolor="#FFFFFF"> The log does not show what your earlier email showed,
there is not
mention of an
error from
insmod<br>
<br>
I think you
need to get
right back to
basics.<br>
<br>
This driver
was written 5
years ago and
is specific to
the BCM2835
chip<br>
It can only
have been
meant to
support Pi v1
&amp; v2 and
maybe not all
of them, as
they kept
changing
versions and
hardware,<br>
because
nothing of a
higher version
had been
released then<br>
<br>
Does this
driver support
your Pi?<br>
</div>
</blockquote>
<div><br>
</div>
<div>In case
of doubt I
gave a look to
wiringPi, it
calls ioctl
and
write/reads
from
/dev/spidev.</div>
<div>Is
calling that
syscall from a
hal driver a
sane thing to
do? (It is for
example used <a
moz-do-not-send="true"
href="https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_p260c.c"
rel="nofollow"
target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit%2Fmachinekit%2Fblob%2Fmaster%2Fsrc%2Fhal%2Fdrivers%2Fhal_p260c.c\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiiaXDhJO-MrGOOLcvAh8yi4_pxg';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit%2Fmachinekit%2Fblob%2Fmaster%2Fsrc%2Fhal%2Fdrivers%2Fhal_p260c.c\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiiaXDhJO-MrGOOLcvAh8yi4_pxg';return
true;">here</a>)<br>
</div>
<div><br>
</div>
<div> </div>
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div
text="#000000"
bgcolor="#FFFFFF"> Regards DEBUG, the ini file bit was explained by the
text you
deleted from
yours.<br>
It takes a
hexidecimal
number up to
0x7FFFFFFF,
the output is
to terminal
and the output
is from NML
messaging<br>
<br>
The exported
DEBUG=5 is the
debug setting
for logging
and relates to
the rtapi
system, not
NML<br>
</div>
</blockquote>
<div><br>
</div>
<div>Thanks
for the
explanation,
Schooner<br>
</div>
<div> </div>
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div
text="#000000"
bgcolor="#FFFFFF">
<div>On
23/09/18
11:07, mngr
wrote:<br>
</div>
<blockquote
type="cite">
<div dir="ltr"><br>
<br>
Il giorno
venerdì 21
settembre 2018
16:44:50
UTC+2,
Schooner ha
scritto:
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div
text="#000000"
bgcolor="#FFFFFF"> You are not running with DEBUG=5<br>
</div>
</blockquote>
<div><br>
</div>
<div>I edited
DEBUG = 5 in
ini file(in
EMC section),
nothing
changed, then
I exported
DEBUG=5 in
bash. what is
the
difference?
what is the
deBUG setting
in the ini
file for?</div>
<div><br>
</div>
<div>Attached
you can find
the ini and
the hal file,
I edited the
CRAMPS
configuration,
basically
removing
everything
relative to
the PRU, and
adding loadrt
hal_spi in
CRAMPS.hal
(and leaving
one only axis)<br>
</div>
<div>linuxcnc_old.log

is everything
before adding
loadrt
hal_spi. <br>
</div>
<div>linuxcnc.log

is the
execution with
loadrt hal_spi
and
termila_output
shows what has
been written,
I attached it
because it
talks about
rtapi_rpc():
reply timeout,
that is not
mentioned in
the log<br>
</div>
<div><br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#000">***@realtimepi</span><span
style="color:#660">:~</span><span style="color:#000"> $ uname </span><span
style="color:#660">-</span><span style="color:#000">a<br>
</span><span
style="color:#606">Linux</span><span
style="color:#000"> realtimepi </span><span style="color:#066">4.14</span><span
style="color:#660">.</span><span style="color:#066">66</span><span
style="color:#660">-</span><span
style="color:#000">rt40</span><span style="color:#660">-</span><span
style="color:#000">v7


</span><span
style="color:#800">#2



SMP PREEMPT RT
Mon Sep 17
21:15:46 UTC
2018 armv7l
GNU/Linux</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
<br>
</div>
<div> </div>
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div
text="#000000"
bgcolor="#FFFFFF"> Do so and your linuxcnc.log will have info as to what
failed.<br>
<br>
Also as I said
in my last
reply, it does
not look as
though you
have a
realtime
kernel,
irrespective
of what you
have named
your pi.<br>
<br>
<div>On
21/09/18
15:31, mngr
wrote:<br>
</div>
<blockquote
type="cite">
<div dir="ltr">
<div>Hi
everyone,</div>
<div><br>
</div>
<div>I am
sorry to post
another noob
question here,
but,</div>
<div><br>
</div>
<div>I am
trying to use
the hal module
hal_spi,
shortly I
tried with <br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#000">loadrt





hal_spi<br>
</span></div>
</code></div>
in the hal
file, but </div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#000">CRAMPS</span><span
style="color:#660">.</span><span style="color:#000">hal</span><span
style="color:#660">:</span><span
style="color:#066">15</span><span style="color:#660">:</span><span
style="color:#000">
insmod failed</span><span
style="color:#660">,</span><span style="color:#000"> returned </span><span
style="color:#660">-</span><span style="color:#066">1</span><span
style="color:#660">:</span><span
style="color:#000"><br>
rtapi_rpc</span><span
style="color:#660">():</span><span style="color:#000"> reply timeout<br>
</span><span
style="color:#606">See</span><span
style="color:#000"> </span><span style="color:#660">/</span><span
style="color:#008">var</span><span
style="color:#660">/</span><span style="color:#000">log</span><span
style="color:#660">/</span><span
style="color:#000">linuxcnc</span><span style="color:#660">.</span><span
style="color:#000">log </span><span style="color:#008">for</span><span
style="color:#000"> more information</span><span style="color:#660">.</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
in the log</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> startup pid</span><span style="color:#660">=</span><span
style="color:#066">5979</span><span style="color:#000"> flavor</span><span
style="color:#660">=</span><span style="color:#000">posix rtlevel</span><span
style="color:#660">=</span><span style="color:#066">1</span><span
style="color:#000">
usrlevel</span><span
style="color:#660">=</span><span style="color:#066">1</span><span
style="color:#000">
halsize</span><span
style="color:#660">=</span><span style="color:#066">524288</span><span
style="color:#000">
shm</span><span
style="color:#660">=</span><span style="color:#606">Posix</span><span
style="color:#000">
cc</span><span
style="color:#660">=</span><span style="color:#000">gcc </span><span
style="color:#066">6.3</span><span
style="color:#660">.</span><span style="color:#066">0</span><span
style="color:#000">
</span><span
style="color:#066">20170516</span><span
style="color:#000">  version</span><span style="color:#660">=</span><span
style="color:#000">unknown<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span style="color:#660">Ø</span><span
style="color:#000">MQ</span><span
style="color:#660">=</span><span style="color:#066">4.2</span><span
style="color:#660">.</span><span
style="color:#066">1</span><span style="color:#000"> czmq</span><span
style="color:#660">=</span><span
style="color:#066">4.0</span><span style="color:#660">.</span><span
style="color:#066">2</span><span
style="color:#000"> protobuf</span><span style="color:#660">=</span><span
style="color:#066">3.0</span><span style="color:#660">.</span><span
style="color:#066">0</span><span
style="color:#000"> atomics</span><span style="color:#660">=</span><span
style="color:#000">gcc intrinsics    libwebsockets</span><span
style="color:#660">=</span><span
style="color:#066">2.0</span><span style="color:#660">.</span><span
style="color:#066">3</span><span
style="color:#000"><br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> configured</span><span style="color:#660">:</span><span
style="color:#000"> sha</span><span style="color:#660">=</span><span
style="color:#000">b87920504<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> built</span><span style="color:#660">:</span><span
style="color:#000">
     </span><span
style="color:#606">Sep</span><span style="color:#000"> </span><span
style="color:#066">18</span><span
style="color:#000"> </span><span style="color:#066">2018</span><span
style="color:#000">
</span><span
style="color:#066">16</span><span
style="color:#660">:</span><span style="color:#066">43</span><span
style="color:#660">:</span><span
style="color:#066">17</span><span style="color:#000"> sha</span><span
style="color:#660">=</span><span
style="color:#000">b87920504<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> register_stuff</span><span style="color:#660">:</span><span
style="color:#000"> actual hostname </span><span style="color:#008">as</span><span
style="color:#000"> announced </span><span style="color:#008">by</span><span
style="color:#000"> avahi</span><span style="color:#660">=</span><span
style="color:#080">'realtimepi.local'</span><span
style="color:#000"><br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">09</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> zeroconf</span><span style="color:#660">:</span><span
style="color:#000"> registering</span><span style="color:#660">:</span><span
style="color:#000"> </span><span style="color:#080">'Log service on
realtimepi.local
pid 5979'</span><span
style="color:#000"><br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">10</span><span style="color:#000"> realtimepi rtapi</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> rtapi_msgd went away</span><span style="color:#660">,</span><span
style="color:#000"> exiting<br>
</span><span
style="color:#606">Sep</span><span
style="color:#000"> </span><span style="color:#066">21</span><span
style="color:#000">
</span><span
style="color:#066">14</span><span
style="color:#660">:</span><span style="color:#066">22</span><span
style="color:#660">:</span><span
style="color:#066">10</span><span style="color:#000"> realtimepi msgd</span><span
style="color:#660">:</span><span style="color:#066">0</span><span
style="color:#660">:</span><span
style="color:#000"> zeroconf</span><span style="color:#660">:</span><span
style="color:#000"> registered </span><span style="color:#080">'Log
service on
realtimepi.local
pid 5979'</span><span
style="color:#000"> _machinekit</span><span style="color:#660">.</span><span
style="color:#000">_tcp </span><span style="color:#066">0</span><span
style="color:#000">
TXT </span><span
style="color:#080">"uuid=a42c8c6b-4025-4f83-ba28-<wbr>dad21114744a"</span><span
style="color:#000"> </span><span style="color:#080">"instance=b9c730a2-bda9-11e8-<wbr>bcc3-b827eb4bcf42"</span><span
style="color:#000"> </span><span style="color:#080">"service=log"</span><span
style="color:#000"> </span><span style="color:#080">"dsn=ipc:///tmp/0.log.<wbr>a42c8c6b-4025-4f83-ba28-<wbr>dad21114744a"</span><span
style="color:#000"><br>
</span></div>
</code></div>
<br>
I tried
launching
machinekit
without it and
adding it
later using
halcmd loadrt
hal_spi, but
with similar
results<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>should I
give it some
arguments? I
don't know how
to understand
how to write
them from the
code...</div>
<div>Maybe the
module is old
and has lost
some
compatibility?</div>
<div><br>
</div>
<div>right now
i am executing
from</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span
style="color:#606">Linux</span><span
style="color:#000"> realtimepi </span><span style="color:#066">4.14</span><span
style="color:#660">.</span><span style="color:#066">69</span><span
style="color:#660">-</span><span
style="color:#000">v7</span><span style="color:#660">+</span><span
style="color:#000">
</span><span
style="color:#800">#1141




SMP Mon Sep 10
15:26:29 BST
2018 armv7l
GNU/Linux</span><span
style="color:#000"><br>
</span></div>
</code></div>
Debian
Stretch,
Machinekit
compiled from
source<br>
</div>
<div>maybe
should I
explicit the
path to
hal_spi?</div>
<div><br>
</div>
<div>mngr<br>
</div>
</div>
-- <br>
website: <a
moz-do-not-send="true"
href="http://www.machinekit.io" rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io" rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received
this message
because you
are subscribed
to the Google
Groups
"Machinekit"
group.<br>
To unsubscribe
from this
group and stop
receiving
emails from
it, send an
email to <a
moz-do-not-send="true"
rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this
group at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit" rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more
options, visit
<a
moz-do-not-send="true"
href="https://groups.google.com/d/optout" rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a
moz-do-not-send="true"
href="http://www.machinekit.io" rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io" rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received
this message
because you
are subscribed
to the Google
Groups
"Machinekit"
group.<br>
To unsubscribe
from this
group and stop
receiving
emails from
it, send an
email to <a
moz-do-not-send="true"
rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this
group at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit" rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more
options, visit
<a
moz-do-not-send="true"
href="https://groups.google.com/d/optout" rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a
moz-do-not-send="true"
href="http://www.machinekit.io" rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io" rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received
this message
because you are
subscribed to
the Google
Groups
"Machinekit"
group.<br>
To unsubscribe
from this group
and stop
receiving emails
from it, send an
email to <a
moz-do-not-send="true"
rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group
at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit" rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more
options, visit <a
moz-do-not-send="true" href="https://groups.google.com/d/optout"
rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
<blockquote
class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
</blockquote>
</div>
-- <br>
website: <a
moz-do-not-send="true"
href="http://www.machinekit.io" rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io" rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this
message because you
are subscribed to the
Google Groups
"Machinekit" group.<br>
To unsubscribe from
this group and stop
receiving emails from
it, send an email to <a
moz-do-not-send="true" rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a
moz-do-not-send="true" href="https://groups.google.com/group/machinekit"
rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options,
visit <a
moz-do-not-send="true"
href="https://groups.google.com/d/optout" rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a
moz-do-not-send="true"
href="http://www.machinekit.io"
rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io"
rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a
moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow"
target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message
because you are subscribed to
the Google Groups "Machinekit"
group.<br>
To unsubscribe from this group
and stop receiving emails from
it, send an email to <a
moz-do-not-send="true"
rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a
moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true"
href="http://blog.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you
are subscribed to the Google Groups
"Machinekit" group.<br>
To unsubscribe from this group and
stop receiving emails from it, send an
email to <a moz-do-not-send="true"
rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a
moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github:
<a moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are
subscribed to the Google Groups "Machinekit"
group.<br>
To unsubscribe from this group and stop
receiving emails from it, send an email to <a
moz-do-not-send="true" rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit" rel="nofollow"
target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a
moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" target="_blank"
rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true" href="http://blog.machinekit.io"
target="_blank" rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" target="_blank"
rel="nofollow"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to
the Google Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails
from it, send an email to <a moz-do-not-send="true"
href="javascript:" target="_blank"
gdf-obfuscated-mailto="U1BPRFjnAQAJ" rel="nofollow"
onmousedown="this.href='javascript:';return true;"
onclick="this.href='javascript:';return true;">machinekit+...@<wbr>googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true" href="http://blog.machinekit.io">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to the Google
Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails from it,
send an email to <a moz-do-not-send="true"
href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br>
</blockquote>
<br>
</body>
</html>

<p></p>

-- <br />
website: <a href="http://www.machinekit.io">http://www.machinekit.io</a> blog: <a href="http://blog.machinekit.io">http://blog.machinekit.io</a> github: <a href="https://github.com/machinekit">https://github.com/machinekit</a><br />
--- <br />
You received this message because you are subscribed to the Google Groups &quot;Machinekit&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br />
Visit this group at <a href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />
thematsche
2018-09-28 17:45:01 UTC
Permalink
It can only have been written for v1 or v2, probably not v2B given its date of writing.
I have not heard anything of the guy who wrote it for some years either.
Hi,

Gemi has wrote this driver for a particular board
    https://github.com/kinsamanka/PICnc-V2/wiki .
I can't believe that it is very useful for someone else.
IMHO the nomenclature isn't overly happy.
A little bit to general. ;)

BR
--
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.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
mngr
2018-09-29 16:41:39 UTC
Permalink
i have copied all the function and recompiled,
now when i run realtime start; halcmd loadrt hal_spi an error says
do_load_cmd: dlopen: /home/pi/machinekit/rtlib/rt-preempt/hal_spi.so:
undefined symbol: get_rpi_revision
rpath=/home/pi/machinekit/rtlib/rt-preempt:/home/pi/machinekit/lib

it does not happen if I run halcmd loadrt hal_gpio


then I have seen that there is bcm26835.h that unify all the useful
definitions, it would be nice if hal_spi.h was removed since it duplicates
definitions.
the only problem is that hal_spi.h defines the register addresses, while
bcm2835.h defines offsets, so a lot of hal_spi.c would have to be modified.
Post by s***@gmail.com
It can only have been written for v1 or v2, probably not v2B given its
date of writing.
I have not heard anything of the guy who wrote it for some years either.
Hi,
Gemi has wrote this driver for a particular board
https://github.com/kinsamanka/PICnc-V2/wiki .
I can't believe that it is very useful for someone else.
IMHO the nomenclature isn't overly happy.
A little bit to general. ;)
BR
I need a way to write commanded velocity on the spi, my bigger problem
wiill be on the spi-slave, and this seems to me a pretty easy protocol to
implement
--
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.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
s***@gmail.com
2018-09-29 16:50:44 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Can you link to a github repo with this in?  I will look tomorrow.<br>
<br>
You have probably declared something as extern or otherwise done
enough to satisfy the compiler, but not actually linked it or
similar.<br>
<br>
Each driver probably needs to have all the routines and info within
it.<br>
<br>
<div class="moz-cite-prefix">On 29/09/18 17:41, mngr wrote:<br>
</div>
<blockquote
cite="mid:dd039043-17ee-4356-89c3-***@googlegroups.com"
type="cite">
<div dir="ltr">
<div>i have copied all the function and recompiled,</div>
<div>now when i run realtime start; halcmd loadrt hal_spi an
error says <br>
</div>
<div>
<div style="background-color: rgb(250, 250, 250);
border-color: rgb(187, 187, 187); border-style: solid;
border-width: 1px; overflow-wrap: break-word;"
class="prettyprint"><code class="prettyprint">
<div class="subprettyprint"><span style="color: #000;"
class="styled-by-prettify">do_load_cmd</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #000;" class="styled-by-prettify">
dlopen</span><span style="color: #660;"
class="styled-by-prettify">:</span><span style="color:
#000;" class="styled-by-prettify"> </span><span
style="color: #080;" class="styled-by-prettify">/home/</span><span
style="color: #000;" class="styled-by-prettify">pi</span><span
style="color: #660;" class="styled-by-prettify">/</span><span
style="color: #000;" class="styled-by-prettify">machinekit</span><span
style="color: #660;" class="styled-by-prettify">/</span><span
style="color: #000;" class="styled-by-prettify">rtlib</span><span
style="color: #660;" class="styled-by-prettify">/</span><span
style="color: #000;" class="styled-by-prettify">rt</span><span
style="color: #660;" class="styled-by-prettify">-</span><span
style="color: #000;" class="styled-by-prettify">preempt</span><span
style="color: #660;" class="styled-by-prettify">/</span><span
style="color: #000;" class="styled-by-prettify">hal_spi</span><span
style="color: #660;" class="styled-by-prettify">.</span><span
style="color: #000;" class="styled-by-prettify">so</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #000;" class="styled-by-prettify"> </span><span
style="color: #008;" class="styled-by-prettify">undefined</span><span
style="color: #000;" class="styled-by-prettify">
symbol</span><span style="color: #660;"
class="styled-by-prettify">:</span><span style="color:
#000;" class="styled-by-prettify"> get_rpi_revision<br>
rpath</span><span style="color: #660;"
class="styled-by-prettify">=</span><span style="color:
#080;" class="styled-by-prettify">/home/</span><span
style="color: #000;" class="styled-by-prettify">pi</span><span
style="color: #660;" class="styled-by-prettify">/</span><span
style="color: #000;" class="styled-by-prettify">machinekit</span><span
style="color: #660;" class="styled-by-prettify">/</span><span
style="color: #000;" class="styled-by-prettify">rtlib</span><span
style="color: #660;" class="styled-by-prettify">/</span><span
style="color: #000;" class="styled-by-prettify">rt</span><span
style="color: #660;" class="styled-by-prettify">-</span><span
style="color: #000;" class="styled-by-prettify">preempt</span><span
style="color: #660;" class="styled-by-prettify">:</span><span
style="color: #080;" class="styled-by-prettify">/home/</span><span
style="color: #000;" class="styled-by-prettify">pi</span><span
style="color: #660;" class="styled-by-prettify">/</span><span
style="color: #000;" class="styled-by-prettify">machinekit</span><span
style="color: #660;" class="styled-by-prettify">/</span><span
style="color: #000;" class="styled-by-prettify">lib<br>
</span></div>
</code></div>
</div>
<div><br>
</div>
<div>it does not happen if I run halcmd loadrt hal_gpio</div>
<div><br>
</div>
<div><br>
</div>
<div>then I have seen that there is bcm26835.h that unify all
the useful definitions, it would be nice if hal_spi.h was
removed since it duplicates definitions.</div>
<div>the only problem is that hal_spi.h defines the register
addresses, while bcm2835.h defines offsets, so a lot of
hal_spi.c would have to be modified.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
Il giorno venerdì 28 settembre 2018 19:45:13 UTC+2, XL600R ha
scritto:
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">On
28.09.18 17:16, <a moz-do-not-send="true" href="javascript:"
target="_blank" gdf-obfuscated-mailto="hCA1SVz2AQAJ"
rel="nofollow" onmousedown="this.href='javascript:';return
true;" onclick="this.href='javascript:';return true;">***@gmail.com</a>
wrote:
<br>
&gt; It can only have been written for v1 or v2, probably not
v2B given its date of writing.
<br>
&gt; I have not heard anything of the guy who wrote it for
some years either.
<br>
<br>
Hi,
<br>
<br>
Gemi has wrote this driver for a particular board
<br>
     <a moz-do-not-send="true"
href="https://github.com/kinsamanka/PICnc-V2/wiki"
target="_blank" rel="nofollow"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fkinsamanka%2FPICnc-V2%2Fwiki\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGfT8YtddCzSmnXbspclZeCFlvFWg';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fkinsamanka%2FPICnc-V2%2Fwiki\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGfT8YtddCzSmnXbspclZeCFlvFWg';return
true;">https://github.com/kinsamanka/<wbr>PICnc-V2/wiki</a>
.
<br>
I can't believe that it is very useful for someone else.
<br>
IMHO the nomenclature isn't overly happy.
<br>
A little bit to general. ;)
<br>
<br>
BR
<br>
</blockquote>
<div><br>
</div>
<div>I need a way to write commanded velocity on the spi, my
bigger problem wiill be on the spi-slave, and this seems to me
a pretty easy protocol to implement <br>
</div>
<div> </div>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true" href="http://blog.machinekit.io">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to the Google
Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails from it,
send an email to <a moz-do-not-send="true"
href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br>
</blockquote>
<br>
</body>
</html>

<p></p>

-- <br />
website: <a href="http://www.machinekit.io">http://www.machinekit.io</a> blog: <a href="http://blog.machinekit.io">http://blog.machinekit.io</a> github: <a href="https://github.com/machinekit">https://github.com/machinekit</a><br />
--- <br />
You received this message because you are subscribed to the Google Groups &quot;Machinekit&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br />
Visit this group at <a href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />
mngr
2018-09-29 16:56:38 UTC
Permalink
https://github.com/mngr0/machinekit
Can you link to a github repo with this in? I will look tomorrow.
You have probably declared something as extern or otherwise done enough to
satisfy the compiler, but not actually linked it or similar.
Each driver probably needs to have all the routines and info within it.
i have copied all the function and recompiled,
now when i run realtime start; halcmd loadrt hal_spi an error says
undefined symbol: get_rpi_revision
rpath=/home/pi/machinekit/rtlib/rt-preempt:/home/pi/machinekit/lib
it does not happen if I run halcmd loadrt hal_gpio
then I have seen that there is bcm26835.h that unify all the useful
definitions, it would be nice if hal_spi.h was removed since it duplicates
definitions.
the only problem is that hal_spi.h defines the register addresses, while
bcm2835.h defines offsets, so a lot of hal_spi.c would have to be modified.
Post by s***@gmail.com
It can only have been written for v1 or v2, probably not v2B given its
date of writing.
I have not heard anything of the guy who wrote it for some years
either.
Hi,
Gemi has wrote this driver for a particular board
https://github.com/kinsamanka/PICnc-V2/wiki .
I can't believe that it is very useful for someone else.
IMHO the nomenclature isn't overly happy.
A little bit to general. ;)
BR
I need a way to write commanded velocity on the spi, my bigger problem
wiill be on the spi-slave, and this seems to me a pretty easy protocol to
implement
--
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
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 machinekit+***@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
s***@gmail.com
2018-09-29 17:22:15 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
OK, I'll have a look tomorrow<br>
<br>
Won't be able to test so I'll be back to you :)<br>
<br>
<div class="moz-cite-prefix">On 29/09/18 17:56, mngr wrote:<br>
</div>
<blockquote
cite="mid:5aa0b82e-dbb9-4169-9a95-***@googlegroups.com"
type="cite">
<div dir="ltr">
<div><a class="moz-txt-link-freetext" href="https://github.com/mngr0/machinekit">https://github.com/mngr0/machinekit</a></div>
<div><br>
</div>
<br>
Il giorno sabato 29 settembre 2018 18:50:47 UTC+2, Schooner ha
scritto:
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF"> Can you link to a
github repo with this in?  I will look tomorrow.<br>
<br>
You have probably declared something as extern or otherwise
done enough to satisfy the compiler, but not actually linked
it or similar.<br>
<br>
Each driver probably needs to have all the routines and info
within it.<br>
<br>
<div>On 29/09/18 17:41, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>i have copied all the function and recompiled,</div>
<div>now when i run realtime start; halcmd loadrt
hal_spi an error says <br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#000">do_load_cmd</span><span
style="color:#660">:</span><span
style="color:#000"> dlopen</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#080">/home/</span><span
style="color:#000">pi</span><span
style="color:#660">/</span><span
style="color:#000">machinekit</span><span
style="color:#660">/</span><span
style="color:#000">rtlib</span><span
style="color:#660">/</span><span
style="color:#000">rt</span><span
style="color:#660">-</span><span
style="color:#000">p<wbr>reempt</span><span
style="color:#660">/</span><span
style="color:#000">hal_spi</span><span
style="color:#660">.</span><span
style="color:#000">so</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#008">undefined</span><span
style="color:#000"> symbol</span><span
style="color:#660">:</span><span
style="color:#000"> get_rpi_revision<br>
rpath</span><span style="color:#660">=</span><span
style="color:#080">/home/</span><span
style="color:#000">pi</span><span
style="color:#660">/</span><span
style="color:#000">machinekit</span><span
style="color:#660">/</span><span
style="color:#000">rtli<wbr>b</span><span
style="color:#660">/</span><span
style="color:#000">rt</span><span
style="color:#660">-</span><span
style="color:#000">preempt</span><span
style="color:#660">:</span><span
style="color:#080">/home/</span><span
style="color:#000">pi</span><span
style="color:#660">/</span><span
style="color:#000">machinek<wbr>it</span><span
style="color:#660">/</span><span
style="color:#000">lib<br>
</span></div>
</code></div>
</div>
<div><br>
</div>
<div>it does not happen if I run halcmd loadrt hal_gpio</div>
<div><br>
</div>
<div><br>
</div>
<div>then I have seen that there is bcm26835.h that
unify all the useful definitions, it would be nice if
hal_spi.h was removed since it duplicates definitions.</div>
<div>the only problem is that hal_spi.h defines the
register addresses, while bcm2835.h defines offsets,
so a lot of hal_spi.c would have to be modified.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
Il giorno venerdì 28 settembre 2018 19:45:13 UTC+2,
XL600R ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px #ccc
solid;padding-left:1ex">On 28.09.18 17:16, <a
moz-do-not-send="true" rel="nofollow">***@gmail.com</a>
wrote: <br>
&gt; It can only have been written for v1 or v2,
probably not v2B given its date of writing. <br>
&gt; I have not heard anything of the guy who wrote it
for some years either. <br>
<br>
Hi, <br>
<br>
Gemi has wrote this driver for a particular board <br>
     <a moz-do-not-send="true"
href="https://github.com/kinsamanka/PICnc-V2/wiki"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fkinsamanka%2FPICnc-V2%2Fwiki\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGfT8YtddCzSmnXbspclZeCFlvFWg';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fkinsamanka%2FPICnc-V2%2Fwiki\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGfT8YtddCzSmnXbspclZeCFlvFWg';return
true;">https://github.com/kinsamanka/<wbr>PICnc-V2/wiki</a>
. <br>
I can't believe that it is very useful for someone
else. <br>
IMHO the nomenclature isn't overly happy. <br>
A little bit to general. ;) <br>
<br>
BR <br>
</blockquote>
<div><br>
</div>
<div>I need a way to write commanded velocity on the
spi, my bigger problem wiill be on the spi-slave, and
this seems to me a pretty easy protocol to implement <br>
</div>
<div> </div>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" target="_blank"
rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true" href="http://blog.machinekit.io"
target="_blank" rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" target="_blank"
rel="nofollow"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to
the Google Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails
from it, send an email to <a moz-do-not-send="true"
href="javascript:" target="_blank"
gdf-obfuscated-mailto="9GdzrIhYAQAJ" rel="nofollow"
onmousedown="this.href='javascript:';return true;"
onclick="this.href='javascript:';return true;">machinekit+...@<wbr>googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true" href="http://blog.machinekit.io">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to the Google
Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails from it,
send an email to <a moz-do-not-send="true"
href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br>
</blockquote>
<br>
</body>
</html>

<p></p>

-- <br />
website: <a href="http://www.machinekit.io">http://www.machinekit.io</a> blog: <a href="http://blog.machinekit.io">http://blog.machinekit.io</a> github: <a href="https://github.com/machinekit">https://github.com/machinekit</a><br />
--- <br />
You received this message because you are subscribed to the Google Groups &quot;Machinekit&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br />
Visit this group at <a href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />
s***@gmail.com
2018-09-30 14:22:46 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
See <a class="moz-txt-link-freetext" href="https://github.com/ArcEye/machinekit/tree/hal_spi_base">https://github.com/ArcEye/machinekit/tree/hal_spi_base</a><br>
<br>
I have used the simplest strategy.  <br>
As only the _PERI_BASE seems to be different, I have changed the
#define to an unsigned int variable.<br>
<br>
This is then set to either 0x20000000 or 0x3F000000 depending upon
version detected.<br>
<br>
Just added code for number_of_cores() and included cpu_info.c to get
the others.<br>
<br>
It builds but needs testing<br>
<br>
If you get problems, add some DBG prints to see what revision and
number of cores is being returned<br>
<br>
regards<br>
<br>
<div class="moz-cite-prefix">On 29/09/18 17:56, mngr wrote:<br>
</div>
<blockquote
cite="mid:5aa0b82e-dbb9-4169-9a95-***@googlegroups.com"
type="cite">
<div dir="ltr">
<div><a class="moz-txt-link-freetext" href="https://github.com/mngr0/machinekit">https://github.com/mngr0/machinekit</a></div>
<div><br>
</div>
<br>
Il giorno sabato 29 settembre 2018 18:50:47 UTC+2, Schooner ha
scritto:
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF"> Can you link to a
github repo with this in?  I will look tomorrow.<br>
<br>
You have probably declared something as extern or otherwise
done enough to satisfy the compiler, but not actually linked
it or similar.<br>
<br>
Each driver probably needs to have all the routines and info
within it.<br>
<br>
<div>On 29/09/18 17:41, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>i have copied all the function and recompiled,</div>
<div>now when i run realtime start; halcmd loadrt
hal_spi an error says <br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#000">do_load_cmd</span><span
style="color:#660">:</span><span
style="color:#000"> dlopen</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#080">/home/</span><span
style="color:#000">pi</span><span
style="color:#660">/</span><span
style="color:#000">machinekit</span><span
style="color:#660">/</span><span
style="color:#000">rtlib</span><span
style="color:#660">/</span><span
style="color:#000">rt</span><span
style="color:#660">-</span><span
style="color:#000">p<wbr>reempt</span><span
style="color:#660">/</span><span
style="color:#000">hal_spi</span><span
style="color:#660">.</span><span
style="color:#000">so</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#008">undefined</span><span
style="color:#000"> symbol</span><span
style="color:#660">:</span><span
style="color:#000"> get_rpi_revision<br>
rpath</span><span style="color:#660">=</span><span
style="color:#080">/home/</span><span
style="color:#000">pi</span><span
style="color:#660">/</span><span
style="color:#000">machinekit</span><span
style="color:#660">/</span><span
style="color:#000">rtli<wbr>b</span><span
style="color:#660">/</span><span
style="color:#000">rt</span><span
style="color:#660">-</span><span
style="color:#000">preempt</span><span
style="color:#660">:</span><span
style="color:#080">/home/</span><span
style="color:#000">pi</span><span
style="color:#660">/</span><span
style="color:#000">machinek<wbr>it</span><span
style="color:#660">/</span><span
style="color:#000">lib<br>
</span></div>
</code></div>
</div>
<div><br>
</div>
<div>it does not happen if I run halcmd loadrt hal_gpio</div>
<div><br>
</div>
<div><br>
</div>
<div>then I have seen that there is bcm26835.h that
unify all the useful definitions, it would be nice if
hal_spi.h was removed since it duplicates definitions.</div>
<div>the only problem is that hal_spi.h defines the
register addresses, while bcm2835.h defines offsets,
so a lot of hal_spi.c would have to be modified.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
Il giorno venerdì 28 settembre 2018 19:45:13 UTC+2,
XL600R ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px #ccc
solid;padding-left:1ex">On 28.09.18 17:16, <a
moz-do-not-send="true" rel="nofollow">***@gmail.com</a>
wrote: <br>
&gt; It can only have been written for v1 or v2,
probably not v2B given its date of writing. <br>
&gt; I have not heard anything of the guy who wrote it
for some years either. <br>
<br>
Hi, <br>
<br>
Gemi has wrote this driver for a particular board <br>
     <a moz-do-not-send="true"
href="https://github.com/kinsamanka/PICnc-V2/wiki"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fkinsamanka%2FPICnc-V2%2Fwiki\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGfT8YtddCzSmnXbspclZeCFlvFWg';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fkinsamanka%2FPICnc-V2%2Fwiki\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGfT8YtddCzSmnXbspclZeCFlvFWg';return
true;">https://github.com/kinsamanka/<wbr>PICnc-V2/wiki</a>
. <br>
I can't believe that it is very useful for someone
else. <br>
IMHO the nomenclature isn't overly happy. <br>
A little bit to general. ;) <br>
<br>
BR <br>
</blockquote>
<div><br>
</div>
<div>I need a way to write commanded velocity on the
spi, my bigger problem wiill be on the spi-slave, and
this seems to me a pretty easy protocol to implement <br>
</div>
<div> </div>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" target="_blank"
rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true" href="http://blog.machinekit.io"
target="_blank" rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" target="_blank"
rel="nofollow"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to
the Google Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails
from it, send an email to <a moz-do-not-send="true"
href="javascript:" target="_blank"
gdf-obfuscated-mailto="9GdzrIhYAQAJ" rel="nofollow"
onmousedown="this.href='javascript:';return true;"
onclick="this.href='javascript:';return true;">machinekit+...@<wbr>googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true" href="http://blog.machinekit.io">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to the Google
Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails from it,
send an email to <a moz-do-not-send="true"
href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br>
</blockquote>
<br>
</body>
</html>

<p></p>

-- <br />
website: <a href="http://www.machinekit.io">http://www.machinekit.io</a> blog: <a href="http://blog.machinekit.io">http://blog.machinekit.io</a> github: <a href="https://github.com/machinekit">https://github.com/machinekit</a><br />
--- <br />
You received this message because you are subscribed to the Google Groups &quot;Machinekit&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br />
Visit this group at <a href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />
mngr
2018-09-30 15:59:58 UTC
Permalink
A young guy just learned how beautiful commit diffs are

here is a link to the diffs!
https://github.com/machinekit/machinekit/compare/master...mngr0:master

I have been very sticky to the workings in hal_gpio.c,
and the changes in hal_spi.h are not really necessary, but I think it
should be removed, to be more consistent with hal_gpio, and to use
bcm2835.h more (this requires work on hal_spi.c)

it compiles, but while executing it has some problem in finding
get_rpi_revision,
any suggestion to help hal_spi dinamically link this?

maybe a issue or pull request on github may be a more relevant place for
this discussion?
See https://github.com/ArcEye/machinekit/tree/hal_spi_base
I have used the simplest strategy.
As only the _PERI_BASE seems to be different, I have changed the #define
to an unsigned int variable.
This is then set to either 0x20000000 or 0x3F000000 depending upon version
detected.
Just added code for number_of_cores() and included cpu_info.c to get the
others.
It builds but needs testing
If you get problems, add some DBG prints to see what revision and number
of cores is being returned
regards
https://github.com/mngr0/machinekit
Can you link to a github repo with this in? I will look tomorrow.
You have probably declared something as extern or otherwise done enough
to satisfy the compiler, but not actually linked it or similar.
Each driver probably needs to have all the routines and info within it.
i have copied all the function and recompiled,
now when i run realtime start; halcmd loadrt hal_spi an error says
undefined symbol: get_rpi_revision
rpath=/home/pi/machinekit/rtlib/rt-preempt:/home/pi/machinekit/lib
it does not happen if I run halcmd loadrt hal_gpio
then I have seen that there is bcm26835.h that unify all the useful
definitions, it would be nice if hal_spi.h was removed since it duplicates
definitions.
the only problem is that hal_spi.h defines the register addresses, while
bcm2835.h defines offsets, so a lot of hal_spi.c would have to be modified.
Post by s***@gmail.com
It can only have been written for v1 or v2, probably not v2B given its
date of writing.
I have not heard anything of the guy who wrote it for some years
either.
Hi,
Gemi has wrote this driver for a particular board
https://github.com/kinsamanka/PICnc-V2/wiki .
I can't believe that it is very useful for someone else.
IMHO the nomenclature isn't overly happy.
A little bit to general. ;)
BR
I need a way to write commanded velocity on the spi, my bigger problem
wiill be on the spi-slave, and this seems to me a pretty easy protocol to
implement
--
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
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
--
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
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 machinekit+***@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
s***@gmail.com
2018-09-30 16:23:35 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 30/09/18 16:59, mngr wrote:<br>
</div>
<blockquote
cite="mid:79dd6f7a-9802-4665-aa67-***@googlegroups.com"
type="cite">
<div dir="ltr">
<div>A young guy just learned how beautiful commit diffs are<br>
</div>
<div><br>
</div>
<div>here is a link to the diffs!<br>
</div>
<div><a moz-do-not-send="true"
href="https://github.com/machinekit/machinekit/compare/master...mngr0:master">https://github.com/machinekit/machinekit/compare/master...mngr0:master</a><br>
</div>
<div><br>
</div>
<div>I have been very sticky to the workings in hal_gpio.c,</div>
<div>and the changes in hal_spi.h are not really necessary, but
I think it should be removed, to be more consistent with
hal_gpio, and to use bcm2835.h more (this requires work on
hal_spi.c)<br>
</div>
<div><br>
</div>
<div>it compiles, but while executing it has some problem in
finding get_rpi_revision,</div>
</div>
</blockquote>
<br>
That should not be so<br>
<br>
You got that error because you only included cpu_info.h but nothing
else.<br>
I included the actual code by using<br>
#include "cpu_info.c"<br>
<br>
When I do a check on the module my code produced and the functions
defined I get<br>
<br>
***@INTEL-i7:/usr/src/machinekit/rtlib/rt-preempt# nm -C hal_spi.so<br>
0000000000005370 b accum<br>
0000000000005358 b accum_diff<br>
00000000000053a0 b BCM2835_PERI_BASE<br>
                 U <a class="moz-txt-link-abbreviated" href="mailto:close@@GLIBC_2.2.5">close@@GLIBC_2.2.5</a><br>
00000000000052d8 b comp_id<br>
00000000000052c0 b completed.7389<br>
                 w __cxa_finalize@@GLIBC_2.2.5<br>
00000000000011a0 t deregister_tm_clones<br>
0000000000001210 t __do_global_dtors_aux<br>
0000000000004e08 t __do_global_dtors_aux_fini_array_entry<br>
00000000000050d0 d __dso_handle<br>
00000000000052e0 b dt<br>
0000000000004e10 d _DYNAMIC<br>
                 U <a class="moz-txt-link-abbreviated" href="mailto:fclose@@GLIBC_2.2.5">fclose@@GLIBC_2.2.5</a><br>
                 U <a class="moz-txt-link-abbreviated" href="mailto:feof@@GLIBC_2.2.5">feof@@GLIBC_2.2.5</a><br>
                 U <a class="moz-txt-link-abbreviated" href="mailto:fgets@@GLIBC_2.2.5">fgets@@GLIBC_2.2.5</a><br>
0000000000002fdc t _fini<br>
                 U <a class="moz-txt-link-abbreviated" href="mailto:fopen@@GLIBC_2.2.5">fopen@@GLIBC_2.2.5</a><br>
0000000000001250 t frame_dummy<br>
0000000000004e00 t __frame_dummy_init_array_entry<br>
0000000000003760 r __FRAME_END__<br>
00000000000012e0 t get_cpuinfo_revision<br>
0000000000001422 t get_rpi_revision<br>
....<br>
<br>
So <b>get_cpuinfo_revision(</b>) and <b>get_rpi_revision()</b> are
both in the text section of the module and are local to it.<br>
<br>
If they were undefined they would have a U in front of them<br>
<br>
Are you somehow trying to run your old module again?<br>
<br>
Run the nm command above on your module.<br>
<br>
<blockquote
cite="mid:79dd6f7a-9802-4665-aa67-***@googlegroups.com"
type="cite">
<div dir="ltr">
<div><code></code> <code><span style="color:#000"></span></code></div>
<div>any suggestion to help hal_spi dinamically link this?<br>
</div>
<div><br>
</div>
<div>maybe a issue or pull request on github may be a more
relevant place for this discussion?<br>
</div>
<div><br>
</div>
<div><br>
</div>
Il giorno domenica 30 settembre 2018 16:22:51 UTC+2, Schooner ha
scritto:
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF"> See <a
moz-do-not-send="true"
href="https://github.com/ArcEye/machinekit/tree/hal_spi_base"
target="_blank" rel="nofollow"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FArcEye%2Fmachinekit%2Ftree%2Fhal_spi_base\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFOcLAk8bMBguiYKDjy5_BGwrcg-g';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FArcEye%2Fmachinekit%2Ftree%2Fhal_spi_base\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFOcLAk8bMBguiYKDjy5_BGwrcg-g';return
true;">https://github.com/ArcEye/<wbr>machinekit/tree/hal_spi_base</a><br>
<br>
I have used the simplest strategy.  <br>
As only the _PERI_BASE seems to be different, I have changed
the #define to an unsigned int variable.<br>
<br>
This is then set to either 0x20000000 or 0x3F000000
depending upon version detected.<br>
<br>
Just added code for number_of_cores() and included
cpu_info.c to get the others.<br>
<br>
It builds but needs testing<br>
<br>
If you get problems, add some DBG prints to see what
revision and number of cores is being returned<br>
<br>
regards<br>
<br>
<div>On 29/09/18 17:56, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div><a moz-do-not-send="true"
href="https://github.com/mngr0/machinekit"
target="_blank" rel="nofollow"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmngr0%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGTZfR9iWYvxaQ1eDhLVn1etTKTtg';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmngr0%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGTZfR9iWYvxaQ1eDhLVn1etTKTtg';return
true;">https://github.com/mngr0/<wbr>machinekit</a></div>
<div><br>
</div>
<br>
Il giorno sabato 29 settembre 2018 18:50:47 UTC+2,
Schooner ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Can you link to
a github repo with this in?  I will look tomorrow.<br>
<br>
You have probably declared something as extern or
otherwise done enough to satisfy the compiler, but
not actually linked it or similar.<br>
<br>
Each driver probably needs to have all the routines
and info within it.<br>
<br>
<div>On 29/09/18 17:41, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>i have copied all the function and
recompiled,</div>
<div>now when i run realtime start; halcmd
loadrt hal_spi an error says <br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#000">do_load_cmd</span><span
style="color:#660">:</span><span
style="color:#000"> dlopen</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#080">/home/</span><span
style="color:#000">pi</span><span
style="color:#660">/</span><span
style="color:#000">machinekit</span><span
style="color:#660">/</span><span
style="color:#000">rtlib</span><span
style="color:#660">/</span><span
style="color:#000">rt</span><span
style="color:#660">-</span><span
style="color:#000">p<wbr>reempt</span><span
style="color:#660">/</span><span
style="color:#000">hal_spi</span><span
style="color:#660">.</span><span
style="color:#000">so</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#008">undefined</span><span
style="color:#000"> symbol</span><span
style="color:#660">:</span><span
style="color:#000"> get_rpi_revision<br>
rpath</span><span style="color:#660">=</span><span
style="color:#080">/home/</span><span
style="color:#000">pi</span><span
style="color:#660">/</span><span
style="color:#000">machinekit</span><span
style="color:#660">/</span><span
style="color:#000">rtli<wbr>b</span><span
style="color:#660">/</span><span
style="color:#000">rt</span><span
style="color:#660">-</span><span
style="color:#000">preempt</span><span
style="color:#660">:</span><span
style="color:#080">/home/</span><span
style="color:#000">pi</span><span
style="color:#660">/</span><span
style="color:#000">machinek<wbr>it</span><span
style="color:#660">/</span><span
style="color:#000">lib<br>
</span></div>
</code></div>
</div>
<div><br>
</div>
<div>it does not happen if I run halcmd loadrt
hal_gpio</div>
<div><br>
</div>
<div><br>
</div>
<div>then I have seen that there is bcm26835.h
that unify all the useful definitions, it
would be nice if hal_spi.h was removed since
it duplicates definitions.</div>
<div>the only problem is that hal_spi.h defines
the register addresses, while bcm2835.h
defines offsets, so a lot of hal_spi.c would
have to be modified.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
Il giorno venerdì 28 settembre 2018 19:45:13
UTC+2, XL600R ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">On 28.09.18
17:16, <a moz-do-not-send="true"
rel="nofollow">***@gmail.com</a> wrote:
<br>
&gt; It can only have been written for v1 or
v2, probably not v2B given its date of
writing. <br>
&gt; I have not heard anything of the guy who
wrote it for some years either. <br>
<br>
Hi, <br>
<br>
Gemi has wrote this driver for a particular
board <br>
     <a moz-do-not-send="true"
href="https://github.com/kinsamanka/PICnc-V2/wiki"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fkinsamanka%2FPICnc-V2%2Fwiki\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGfT8YtddCzSmnXbspclZeCFlvFWg';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fkinsamanka%2FPICnc-V2%2Fwiki\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGfT8YtddCzSmnXbspclZeCFlvFWg';return
true;">https://github.com/kinsamanka/<wbr>PICnc-V2/wiki</a>
. <br>
I can't believe that it is very useful for
someone else. <br>
IMHO the nomenclature isn't overly happy. <br>
A little bit to general. ;) <br>
<br>
BR <br>
</blockquote>
<div><br>
</div>
<div>I need a way to write commanded velocity on
the spi, my bigger problem wiill be on the
spi-slave, and this seems to me a pretty easy
protocol to implement <br>
</div>
<div> </div>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io" rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are
subscribed to the Google Groups "Machinekit"
group.<br>
To unsubscribe from this group and stop receiving
emails from it, send an email to <a
moz-do-not-send="true" rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" target="_blank"
rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true" href="http://blog.machinekit.io"
target="_blank" rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" target="_blank"
rel="nofollow"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to
the Google Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails
from it, send an email to <a moz-do-not-send="true"
href="javascript:" target="_blank"
gdf-obfuscated-mailto="WPTSggqfAQAJ" rel="nofollow"
onmousedown="this.href='javascript:';return true;"
onclick="this.href='javascript:';return true;">machinekit+...@<wbr>googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true" href="http://blog.machinekit.io">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to the Google
Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails from it,
send an email to <a moz-do-not-send="true"
href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br>
</blockquote>
<br>
</body>
</html>

<p></p>

-- <br />
website: <a href="http://www.machinekit.io">http://www.machinekit.io</a> blog: <a href="http://blog.machinekit.io">http://blog.machinekit.io</a> github: <a href="https://github.com/machinekit">https://github.com/machinekit</a><br />
--- <br />
You received this message because you are subscribed to the Google Groups &quot;Machinekit&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br />
Visit this group at <a href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />
mngr
2018-09-30 17:15:13 UTC
Permalink
I lacked attention, I thought you imported cpuinfo.h
rebuilded and now it runs, but I still need to edit something more to make
it work
nm shows that both get_cpuinfo_revision() and get_rpi_revision() are defined

anyway, it reads correctly giving number cores as 4 and revision as 4.
I will give some time trying to patch my version, if it is too hard I will
clone and test yours
Post by mngr
A young guy just learned how beautiful commit diffs are
here is a link to the diffs!
https://github.com/machinekit/machinekit/compare/master...mngr0:master
I have been very sticky to the workings in hal_gpio.c,
and the changes in hal_spi.h are not really necessary, but I think it
should be removed, to be more consistent with hal_gpio, and to use
bcm2835.h more (this requires work on hal_spi.c)
it compiles, but while executing it has some problem in finding
get_rpi_revision,
That should not be so
You got that error because you only included cpu_info.h but nothing else.
I included the actual code by using
#include "cpu_info.c"
When I do a check on the module my code produced and the functions defined
I get
0000000000005370 b accum
0000000000005358 b accum_diff
00000000000053a0 b BCM2835_PERI_BASE
00000000000052d8 b comp_id
00000000000052c0 b completed.7389
00000000000011a0 t deregister_tm_clones
0000000000001210 t __do_global_dtors_aux
0000000000004e08 t __do_global_dtors_aux_fini_array_entry
00000000000050d0 d __dso_handle
00000000000052e0 b dt
0000000000004e10 d _DYNAMIC
0000000000002fdc t _fini
0000000000001250 t frame_dummy
0000000000004e00 t __frame_dummy_init_array_entry
0000000000003760 r __FRAME_END__
00000000000012e0 t get_cpuinfo_revision
0000000000001422 t get_rpi_revision
....
So *get_cpuinfo_revision(*) and *get_rpi_revision()* are both in the text
section of the module and are local to it.
If they were undefined they would have a U in front of them
Are you somehow trying to run your old module again?
Run the nm command above on your module.
any suggestion to help hal_spi dinamically link this?
maybe a issue or pull request on github may be a more relevant place for
this discussion?
See https://github.com/ArcEye/machinekit/tree/hal_spi_base
I have used the simplest strategy.
As only the _PERI_BASE seems to be different, I have changed the #define
to an unsigned int variable.
This is then set to either 0x20000000 or 0x3F000000 depending upon
version detected.
Just added code for number_of_cores() and included cpu_info.c to get the
others.
It builds but needs testing
If you get problems, add some DBG prints to see what revision and number
of cores is being returned
regards
https://github.com/mngr0/machinekit
Can you link to a github repo with this in? I will look tomorrow.
You have probably declared something as extern or otherwise done enough
to satisfy the compiler, but not actually linked it or similar.
Each driver probably needs to have all the routines and info within it.
i have copied all the function and recompiled,
now when i run realtime start; halcmd loadrt hal_spi an error says
undefined symbol: get_rpi_revision
rpath=/home/pi/machinekit/rtlib/rt-preempt:/home/pi/machinekit/lib
it does not happen if I run halcmd loadrt hal_gpio
then I have seen that there is bcm26835.h that unify all the useful
definitions, it would be nice if hal_spi.h was removed since it duplicates
definitions.
the only problem is that hal_spi.h defines the register addresses, while
bcm2835.h defines offsets, so a lot of hal_spi.c would have to be modified.
Post by s***@gmail.com
Post by s***@gmail.com
It can only have been written for v1 or v2, probably not v2B given
its date of writing.
Post by s***@gmail.com
I have not heard anything of the guy who wrote it for some years
either.
Hi,
Gemi has wrote this driver for a particular board
https://github.com/kinsamanka/PICnc-V2/wiki .
I can't believe that it is very useful for someone else.
IMHO the nomenclature isn't overly happy.
A little bit to general. ;)
BR
I need a way to write commanded velocity on the spi, my bigger problem
wiill be on the spi-slave, and this seems to me a pretty easy protocol to
implement
--
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
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
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
--
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
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 machinekit+***@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
s***@gmail.com
2018-09-30 17:27:12 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
OK, <br>
Hear from you in a bit<br>
<br>
<div class="moz-cite-prefix">On 30/09/18 18:15, mngr wrote:<br>
</div>
<blockquote
cite="mid:56677576-0d9e-456a-98f6-***@googlegroups.com"
type="cite">
<div dir="ltr">
<div>I lacked attention, I thought you imported cpuinfo.h</div>
<div>rebuilded and now it runs, but I still need to edit
something more to make it work<br>
</div>
<div>nm shows that both get_cpuinfo_revision() and
get_rpi_revision() are defined</div>
<div><br>
</div>
<div>anyway, it reads correctly giving number cores as 4 and
revision as 4.<br>
</div>
<div>I will give some time trying to patch my version, if it is
too hard I will clone and test yours<br>
</div>
<div><br>
</div>
<div><br>
</div>
Il giorno domenica 30 settembre 2018 18:23:39 UTC+2, Schooner ha
scritto:
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF"> <br>
<div>On 30/09/18 16:59, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>A young guy just learned how beautiful commit diffs
are<br>
</div>
<div><br>
</div>
<div>here is a link to the diffs!<br>
</div>
<div><a moz-do-not-send="true"
href="https://github.com/machinekit/machinekit/compare/master...mngr0:master"
target="_blank" rel="nofollow"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit%2Fmachinekit%2Fcompare%2Fmaster...mngr0%3Amaster\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFOPadtug9trJNCI8DmcEt2tB_1eg';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit%2Fmachinekit%2Fcompare%2Fmaster...mngr0%3Amaster\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFOPadtug9trJNCI8DmcEt2tB_1eg';return
true;">https://github.com/machinekit/<wbr>machinekit/compare/master...<wbr>mngr0:master</a><br>
</div>
<div><br>
</div>
<div>I have been very sticky to the workings in
hal_gpio.c,</div>
<div>and the changes in hal_spi.h are not really
necessary, but I think it should be removed, to be
more consistent with hal_gpio, and to use bcm2835.h
more (this requires work on hal_spi.c)<br>
</div>
<div><br>
</div>
<div>it compiles, but while executing it has some
problem in finding get_rpi_revision,</div>
</div>
</blockquote>
<br>
That should not be so<br>
<br>
You got that error because you only included cpu_info.h but
nothing else.<br>
I included the actual code by using<br>
#include "cpu_info.c"<br>
<br>
When I do a check on the module my code produced and the
functions defined I get<br>
<br>
***@INTEL-i7:/usr/src/<wbr>machinekit/rtlib/rt-preempt# nm
-C hal_spi.so<br>
0000000000005370 b accum<br>
0000000000005358 b accum_diff<br>
00000000000053a0 b BCM2835_PERI_BASE<br>
                 U <a moz-do-not-send="true"
href="javascript:" target="_blank"
gdf-obfuscated-mailto="d-xX96GlAQAJ" rel="nofollow"
onmousedown="this.href='javascript:';return true;"
onclick="this.href='javascript:';return true;">cl...@@GLIBC_2.2.5</a><br>
00000000000052d8 b comp_id<br>
00000000000052c0 b completed.7389<br>
                 w __cxa_finalize@@GLIBC_2.2.5<br>
00000000000011a0 t deregister_tm_clones<br>
0000000000001210 t __do_global_dtors_aux<br>
0000000000004e08 t __do_global_dtors_aux_fini_<wbr>array_entry<br>
00000000000050d0 d __dso_handle<br>
00000000000052e0 b dt<br>
0000000000004e10 d _DYNAMIC<br>
                 U <a moz-do-not-send="true"
href="javascript:" target="_blank"
gdf-obfuscated-mailto="d-xX96GlAQAJ" rel="nofollow"
onmousedown="this.href='javascript:';return true;"
onclick="this.href='javascript:';return true;">fcl...@@GLIBC_2.2.5</a><br>
                 U <a moz-do-not-send="true"
href="javascript:" target="_blank"
gdf-obfuscated-mailto="d-xX96GlAQAJ" rel="nofollow"
onmousedown="this.href='javascript:';return true;"
onclick="this.href='javascript:';return true;">fe...@@GLIBC_2.2.5</a><br>
                 U <a moz-do-not-send="true"
href="javascript:" target="_blank"
gdf-obfuscated-mailto="d-xX96GlAQAJ" rel="nofollow"
onmousedown="this.href='javascript:';return true;"
onclick="this.href='javascript:';return true;">fg...@@GLIBC_2.2.5</a><br>
0000000000002fdc t _fini<br>
                 U <a moz-do-not-send="true"
href="javascript:" target="_blank"
gdf-obfuscated-mailto="d-xX96GlAQAJ" rel="nofollow"
onmousedown="this.href='javascript:';return true;"
onclick="this.href='javascript:';return true;">fo...@@GLIBC_2.2.5</a><br>
0000000000001250 t frame_dummy<br>
0000000000004e00 t __frame_dummy_init_array_entry<br>
0000000000003760 r __FRAME_END__<br>
00000000000012e0 t get_cpuinfo_revision<br>
0000000000001422 t get_rpi_revision<br>
....<br>
<br>
So <b>get_cpuinfo_revision(</b>) and <b>get_rpi_revision()</b>
are both in the text section of the module and are local to
it.<br>
<br>
If they were undefined they would have a U in front of them<br>
<br>
Are you somehow trying to run your old module again?<br>
<br>
Run the nm command above on your module.<br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div><code></code> <code><span style="color:#000"></span></code></div>
<div>any suggestion to help hal_spi dinamically link
this?<br>
</div>
<div><br>
</div>
<div>maybe a issue or pull request on github may be a
more relevant place for this discussion?<br>
</div>
<div><br>
</div>
<div><br>
</div>
Il giorno domenica 30 settembre 2018 16:22:51 UTC+2,
Schooner ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> See <a
moz-do-not-send="true"
href="https://github.com/ArcEye/machinekit/tree/hal_spi_base"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FArcEye%2Fmachinekit%2Ftree%2Fhal_spi_base\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFOcLAk8bMBguiYKDjy5_BGwrcg-g';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FArcEye%2Fmachinekit%2Ftree%2Fhal_spi_base\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFOcLAk8bMBguiYKDjy5_BGwrcg-g';return
true;">https://github.com/ArcEye/<wbr>machinekit/tree/hal_spi_base</a><br>
<br>
I have used the simplest strategy.  <br>
As only the _PERI_BASE seems to be different, I have
changed the #define to an unsigned int variable.<br>
<br>
This is then set to either 0x20000000 or 0x3F000000
depending upon version detected.<br>
<br>
Just added code for number_of_cores() and included
cpu_info.c to get the others.<br>
<br>
It builds but needs testing<br>
<br>
If you get problems, add some DBG prints to see what
revision and number of cores is being returned<br>
<br>
regards<br>
<br>
<div>On 29/09/18 17:56, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div><a moz-do-not-send="true"
href="https://github.com/mngr0/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmngr0%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGTZfR9iWYvxaQ1eDhLVn1etTKTtg';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmngr0%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGTZfR9iWYvxaQ1eDhLVn1etTKTtg';return
true;">https://github.com/mngr0/<wbr>machinekit</a></div>
<div><br>
</div>
<br>
Il giorno sabato 29 settembre 2018 18:50:47
UTC+2, Schooner ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Can you
link to a github repo with this in?  I will
look tomorrow.<br>
<br>
You have probably declared something as
extern or otherwise done enough to satisfy
the compiler, but not actually linked it or
similar.<br>
<br>
Each driver probably needs to have all the
routines and info within it.<br>
<br>
<div>On 29/09/18 17:41, mngr wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>i have copied all the function and
recompiled,</div>
<div>now when i run realtime start;
halcmd loadrt hal_spi an error says <br>
</div>
<div>
<div
style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code>
<div><span style="color:#000">do_load_cmd</span><span
style="color:#660">:</span><span
style="color:#000"> dlopen</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#080">/home/</span><span
style="color:#000">pi</span><span
style="color:#660">/</span><span
style="color:#000">machinekit</span><span
style="color:#660">/</span><span
style="color:#000">rtlib</span><span
style="color:#660">/</span><span
style="color:#000">rt</span><span
style="color:#660">-</span><span
style="color:#000">p<wbr>reempt</span><span
style="color:#660">/</span><span
style="color:#000">hal_spi</span><span
style="color:#660">.</span><span
style="color:#000">so</span><span
style="color:#660">:</span><span
style="color:#000"> </span><span
style="color:#008">undefined</span><span
style="color:#000"> symbol</span><span
style="color:#660">:</span><span
style="color:#000">
get_rpi_revision<br>
rpath</span><span
style="color:#660">=</span><span
style="color:#080">/home/</span><span
style="color:#000">pi</span><span
style="color:#660">/</span><span
style="color:#000">machinekit</span><span
style="color:#660">/</span><span
style="color:#000">rtli<wbr>b</span><span
style="color:#660">/</span><span
style="color:#000">rt</span><span
style="color:#660">-</span><span
style="color:#000">preempt</span><span
style="color:#660">:</span><span
style="color:#080">/home/</span><span
style="color:#000">pi</span><span
style="color:#660">/</span><span
style="color:#000">machinek<wbr>it</span><span
style="color:#660">/</span><span
style="color:#000">lib<br>
</span></div>
</code></div>
</div>
<div><br>
</div>
<div>it does not happen if I run halcmd
loadrt hal_gpio</div>
<div><br>
</div>
<div><br>
</div>
<div>then I have seen that there is
bcm26835.h that unify all the useful
definitions, it would be nice if
hal_spi.h was removed since it
duplicates definitions.</div>
<div>the only problem is that hal_spi.h
defines the register addresses, while
bcm2835.h defines offsets, so a lot of
hal_spi.c would have to be modified.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
Il giorno venerdì 28 settembre 2018
19:45:13 UTC+2, XL600R ha scritto:
<blockquote class="gmail_quote"
style="margin:0;margin-left:0.8ex;border-left:1px
#ccc solid;padding-left:1ex">On
28.09.18 17:16, <a
moz-do-not-send="true"
rel="nofollow">***@gmail.com</a>
wrote: <br>
&gt; It can only have been written for
v1 or v2, probably not v2B given its
date of writing. <br>
&gt; I have not heard anything of the
guy who wrote it for some years
either. <br>
<br>
Hi, <br>
<br>
Gemi has wrote this driver for a
particular board <br>
     <a moz-do-not-send="true"
href="https://github.com/kinsamanka/PICnc-V2/wiki"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fkinsamanka%2FPICnc-V2%2Fwiki\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGfT8YtddCzSmnXbspclZeCFlvFWg';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fkinsamanka%2FPICnc-V2%2Fwiki\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGfT8YtddCzSmnXbspclZeCFlvFWg';return
true;">https://github.com/kinsamanka/<wbr>PICnc-V2/wiki</a>
. <br>
I can't believe that it is very useful
for someone else. <br>
IMHO the nomenclature isn't overly
happy. <br>
A little bit to general. ;) <br>
<br>
BR <br>
</blockquote>
<div><br>
</div>
<div>I need a way to write commanded
velocity on the spi, my bigger problem
wiill be on the spi-slave, and this
seems to me a pretty easy protocol to
implement <br>
</div>
<div> </div>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true"
href="http://blog.machinekit.io"
rel="nofollow" target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are
subscribed to the Google Groups
"Machinekit" group.<br>
To unsubscribe from this group and stop
receiving emails from it, send an email to
<a moz-do-not-send="true" rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a
moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a
moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true"
href="http://blog.machinekit.io" rel="nofollow"
target="_blank"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are
subscribed to the Google Groups "Machinekit"
group.<br>
To unsubscribe from this group and stop receiving
emails from it, send an email to <a
moz-do-not-send="true" rel="nofollow">machinekit+***@googlegroups.<wbr>com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout"
rel="nofollow" target="_blank"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io" target="_blank"
rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHak66BhABE1Ax2Z57FBjDuU5MbAA';return
true;">http://www.machinekit.io</a> blog: <a
moz-do-not-send="true" href="http://blog.machinekit.io"
target="_blank" rel="nofollow"
onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;"
onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.machinekit.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL6L8b3kX1yqHuZZPKJrRMAlcLtg';return
true;">http://blog.machinekit.io</a> github: <a
moz-do-not-send="true"
href="https://github.com/machinekit" target="_blank"
rel="nofollow"
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;"
onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmachinekit\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF1PpZ_AnOBk61ffzRPzFhNJvBHzQ';return
true;">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to
the Google Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails
from it, send an email to <a moz-do-not-send="true"
href="javascript:" target="_blank"
gdf-obfuscated-mailto="d-xX96GlAQAJ" rel="nofollow"
onmousedown="this.href='javascript:';return true;"
onclick="this.href='javascript:';return true;">machinekit+...@<wbr>googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/group/machinekit';return
true;"
onclick="this.href='https://groups.google.com/group/machinekit';return
true;">https://groups.google.com/<wbr>group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout"
target="_blank" rel="nofollow"
onmousedown="this.href='https://groups.google.com/d/optout';return
true;"
onclick="this.href='https://groups.google.com/d/optout';return
true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true" href="http://blog.machinekit.io">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to the Google
Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails from it,
send an email to <a moz-do-not-send="true"
href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br>
</blockquote>
<br>
</body>
</html>

<p></p>

-- <br />
website: <a href="http://www.machinekit.io">http://www.machinekit.io</a> blog: <a href="http://blog.machinekit.io">http://blog.machinekit.io</a> github: <a href="https://github.com/machinekit">https://github.com/machinekit</a><br />
--- <br />
You received this message because you are subscribed to the Google Groups &quot;Machinekit&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br />
Visit this group at <a href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />
mngr
2018-09-30 20:55:45 UTC
Permalink
It will probably take me more of a evening because the next couple of days is already full. Maybe I will test your version and then make another pr to unify hal_spi.h and bcm2835.h
--
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.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
mngr
2018-10-02 12:39:33 UTC
Permalink
I tested your branch, everything is working fine, it loads and the spi
writes.
Post by mngr
It will probably take me more of a evening because the next couple of days
is already full. Maybe I will test your version and then make another pr to
unify hal_spi.h and bcm2835.h
--
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.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
s***@gmail.com
2018-10-02 13:18:50 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Good to hear.<br>
<br>
It just makes the minimal changes, as it appeared the only thing
that had changed was the base address.<br>
<br>
If you are happy with that, I can push a PR, so it is in the
packages.<br>
<br>
<br>
<div class="moz-cite-prefix">On 02/10/18 13:39, mngr wrote:<br>
</div>
<blockquote
cite="mid:928cd4dc-933d-4dc4-b5e5-***@googlegroups.com"
type="cite">
<div dir="ltr">I tested your branch, everything is working fine,
it loads and the spi writes.<br>
<br>
Il giorno domenica 30 settembre 2018 22:55:45 UTC+2, mngr ha
scritto:
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">It will
probably take me more of a evening because the next couple of
days is already full. Maybe I will test your version and then
make another pr to unify hal_spi.h and bcm2835.h</blockquote>
</div>
-- <br>
website: <a moz-do-not-send="true"
href="http://www.machinekit.io">http://www.machinekit.io</a>
blog: <a moz-do-not-send="true" href="http://blog.machinekit.io">http://blog.machinekit.io</a>
github: <a moz-do-not-send="true"
href="https://github.com/machinekit">https://github.com/machinekit</a><br>
--- <br>
You received this message because you are subscribed to the Google
Groups "Machinekit" group.<br>
To unsubscribe from this group and stop receiving emails from it,
send an email to <a moz-do-not-send="true"
href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br>
Visit this group at <a moz-do-not-send="true"
href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br>
For more options, visit <a moz-do-not-send="true"
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br>
</blockquote>
<br>
</body>
</html>

<p></p>

-- <br />
website: <a href="http://www.machinekit.io">http://www.machinekit.io</a> blog: <a href="http://blog.machinekit.io">http://blog.machinekit.io</a> github: <a href="https://github.com/machinekit">https://github.com/machinekit</a><br />
--- <br />
You received this message because you are subscribed to the Google Groups &quot;Machinekit&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:machinekit+***@googlegroups.com">machinekit+***@googlegroups.com</a>.<br />
Visit this group at <a href="https://groups.google.com/group/machinekit">https://groups.google.com/group/machinekit</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />
mngr
2018-10-02 14:58:44 UTC
Permalink
Sure, push the updates.
Post by s***@gmail.com
Good to hear.
It just makes the minimal changes, as it appeared the only thing that had
changed was the base address.
Agree, I was going to a lot more of non-necessary code
Post by s***@gmail.com
If you are happy with that, I can push a PR, so it is in the packages.
I tested your branch, everything is working fine, it loads and the spi
writes.
Post by mngr
It will probably take me more of a evening because the next couple of
days is already full. Maybe I will test your version and then make another
pr to unify hal_spi.h and bcm2835.h
--
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
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 machinekit+***@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
Loading...