installing MachineKit on RPI3

2,279 views
Skip to first unread message

Stephane Kolijn

unread,
Sep 24, 2017, 7:47:40 PM9/24/17
to Machinekit
Hi all,

I have been trying to get machinekit up and running on my RPI3. As you might guess out of this post. No succes yet :)

I have the latest rasbian, meaning stretch. debian 9

So i have been googling and reading. So i followed first following:

10K replied the topic: LinuxCNC on Debian Stretch
TIm-
LIke you, I installed Stretch. I then added the rt kernel. I put in linuxcnc-uspace, but not from the buildbot. Here's what I did, in case it helps.

sudo apt-get install dirmngr
sudo apt-key adv --keyserver hkp://keys.gnupg.net --recv-key 3cb9fd148f374fef

Required version of libboost-python is not in stretch repository.  Temporarily point to jessie

sudo nano /etc/apt/sources.list with nano to contain:
	deb http://ftp.us.debian.org/debian jessie main
sudo apt-get update
sudo apt-get install linuxcnc-uspace

Now remove the pointer to jessie in sources.list
sudo apt-get update

I did this but only the nano contain part i didnt understand.so skipped this. than i followed the machinekit for kernel jessie RPÏ2
and after i did the previous, i was able to do the first 2 steps. Kernel and building it. I didn't get any errors.

But now how do i start Machinekit, cause strangely enough, i can not find anything on my Pi?????

I find to start a program you run in terminal simply machinekit, but that results in command not found.

So now i am lost. Hope someone can help out.

Regards,

Stephane


mung kie

unread,
Sep 24, 2017, 8:47:59 PM9/24/17
to Machinekit
Have you tried asking a question on the raspberrypi.org forum in the linuxcnc thread?

I think the jessie install will definite not work on stretch, there were a few knowledgable people at rpi forum that may be able to help you if you ask, I think kinsa was the username of the guy that did the external hardware addon and he is fairly hot with kernel compiles and driver devel.

I have not used machinekit on rpi3 since just after it was released early last year, it compiled okay then for stretch and jessie and wheezy with the auto build scripts we use but there was one library that needs to be downgraded with a fairly simple source compile for stretch (I forget which one probably czmq or zmq or protobuf?)

I doubt you will get a RT_PREEMPT kernel for pi3 I think the usb patch and spinlock mods would be different and the anholt gpu driver changes some stuff, thought things may have changed, unfortunately the raspberry pi foundation do not seem to want me on their forums so we moved on to try and find other systems for cnc development (still not found any ARM sbc that is receptive though)

The pi is probably very good platform especially for the multikore stuff, but you will be on your own as far as RT and any other more complex aspects of patching and driver stuff, the rpi foundation do not seem to like more comercial usage of their devices which I suppose is understandable if they cut their profits to support education they cannot be expected to waste time and money supporting commercial product usage of a charity subsidised product.

But maybe still worth asking on their forum?

Bas de Bruijn

unread,
Sep 25, 2017, 1:48:30 AM9/25/17
to Stephane Kolijn, Machinekit
Looks like you're mixing linuxcnc and Machinekit.

And specifically for the rpi (5)

Masoun Mardini

unread,
Sep 27, 2017, 5:15:14 PM9/27/17
to Machinekit
Don’t waste your time on strech use jessie or raspbian 8
A ton of missing libraries in strech
Just search for that older version for RP2/3
And then everything is straight forward

fishy

unread,
Sep 29, 2017, 2:55:17 PM9/29/17
to Machinekit
Which older version, can you give link to download?

I see your video in other post shows excellent mototrs running how can you did this?

Also why did other comment from 'mungkie' say stretch install was simple with only 1 library need recompile, how much is ton of missing libraries?


Masoun Mardini

unread,
Sep 30, 2017, 5:05:28 PM9/30/17
to Machinekit
Hi fishy 
try this page 
the missing library I found during downloading machinekit and installing it. when I try to install a missing one it's always have version error that it will not install. but when I used Jessie it worked as a charm just follow the procedures for RPI2 it will work. 

fishy

unread,
Oct 2, 2017, 7:43:45 AM10/2/17
to Machinekit
I am not sure what you are posting about?

I get the feeling the site you link to has been hacked or is spam?
my browser shows domoticx.com as a dangerous site and I cannot access it without disabling security?
I asked a friend who knows about raspberry pi and they said the site looks like it has virus on redistributed versions of the raspbian standard images but there is no changes except malware?

None of your links seem to work and you offered no information about 'the missing library', what is the missing library and how did you fix it?

I get the feeling you are not being helpful, please try to explain so a beginer can workout what needs to be done, I have never used raspberry pi or cnc before so need a little more explanation.

Masoun Mardini

unread,
Oct 2, 2017, 1:43:02 PM10/2/17
to Machinekit
First sorry if the website appears like this it didn’t show anything on my mac I found it using google search. Try other sites for older versions of raspbian I found that all links from raspberry pi site give a link to strech only.
The other link is from machinekit web site installing packages.
What i did to make it work i installed rasbian 8 jessie then I followed the instructions exactly as stated in machine kit site
Nothing more and nothing less I don’t know what’s happening with your installation but there is nothing hidden.
Maybe your friend who knows about raspberry pi can help you with getting raspbian 8.

Masoun Mardini

unread,
Oct 2, 2017, 2:37:05 PM10/2/17
to Machinekit
I found this from raspberry pi web site 

http://downloads.raspberrypi.org/raspbian/images/raspbian-2017-07-05/
after downloading you must copy it to SD card  above 8GB  using  win32diskimager or dd command if you work on Mac or linux. there is a lot of youtube videos one video for example describe how to do it exactly, some reading first wouldn't hurt.

then follow the procedure as stated in machine kit 
got to machinekit website --> documentation --> Getting started -->Setting up machinekit on a platform --> installing packages -->5. Debian Jessie on arm7 (RPi2) (It will work on RPI3 don't worry). follow the steps 

if don't know anything about linux commands familiarise your self first in this subject ( installing raspberry pi is not like installing an application in windows )
Reply all
Reply to author
Forward
0 new messages