EMC2 running on Raspberry Pi?

More
15 Jan 2013 23:23 #28727 by wyzarddoc
Thanks so much for the link. I'll check it out.

Please Log in or Create an account to join the conversation.

More
20 Jan 2013 09:50 #28849 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?
Did anyone got to compile linuxcnc for the ARM platform besides the simulator mode?

Regards

Please Log in or Create an account to join the conversation.

More
21 Jan 2013 17:48 #28909 by ArcEye
All the discussion etc is on the developers list

sourceforge.net/mailarchive/forum.php?forum_name=emc-developers

I think they dropped the RPi as being too low powered to make a realistic platform, but there was quite a lot of work on the Beagelbone.

Please Log in or Create an account to join the conversation.

More
21 Jan 2013 18:04 - 22 Jan 2013 11:30 #28912 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?
I haven't found the instructions to compile under Beaglebone either. Only the simulator mode.

UPDATE:

Got it!
./configure --with-platform=beaglebone/raspberry
Last edit: 22 Jan 2013 11:30 by kinsa. Reason: Solved

Please Log in or Create an account to join the conversation.

More
24 Jan 2013 15:32 #29066 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?

All the discussion etc is on the developers list

sourceforge.net/mailarchive/forum.php?forum_name=emc-developers

I think they dropped the RPi as being too low powered to make a realistic platform, but there was quite a lot of work on the Beagelbone.


I've got it running under Xenomai. Initial results seems good but not suitable for sw stepgen. I'm planning to pair this with a low cost FPGA board and see how it goes.

Please Log in or Create an account to join the conversation.

More
24 Jan 2013 17:23 #29068 by mhaberler
To build for Xenomai, 2 conditions must hold:

- the Rpi must be running a Xenomai kernel
- the Xenomai userland support package must be installed (git.xenomai.org/?p=xenomai-2.6.git;a=summary)

configure.log will tell how that detection goes.

As far as I am concerned, the raspberry platform option will stay in the code, but I will not put any effort into packaging or usability; if somebody else does, I'm happy to integrate patches.

- Michael

Please Log in or Create an account to join the conversation.

More
13 Feb 2013 14:43 - 13 Feb 2013 18:51 #30003 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?
Just an update, I was able to offload the base thread to an external PIC micro using SPI.

My observation is that bit-banging an 8 bit data bus is not optimal. The RPi SPI has 64 bytes of buffer so transferring data is quick with minimal cpu overhead.

I'm currently running the SPI clock at 15 MHz, a 64 bytes transfer completes in around 45 us. The maximum SPI speed that the RPi can operate at is 31 MHz. This is too fast for a PIC but doable with an FPGA.

File Attachment:


Cheers!

UDPATE:

I finished porting my rt-8p8c code to the new PIC micro.

It's currently running using the mini tk interface over ssh.

Here is the output of top with backplot enabled:
top - 10:48:06 up  9:58,  2 users,  load average: 0.53, 0.60, 0.56
Tasks:  59 total,   1 running,  58 sleeping,   0 stopped,   0 zombie
%Cpu(s): 38.7 us,  6.6 sy,  0.0 ni, 53.1 id,  0.0 wa,  0.0 hi,  1.6 si,  0.0 st
KiB Mem:    498864 total,   204120 used,   294744 free,    21304 buffers
KiB Swap:        0 total,        0 used,        0 free,   117996 cached

  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND           
 6547 root      20   0 29216  12m 4936 S  35.2  2.6   8:51.26 wish8.5           
 6546 root      20   0 11548 5224 4520 S   5.2  1.0   2:00.87 milltask          
 4237 root      20   0 10496 3368 2360 S   3.9  0.7   1:29.53 sshd              
 6537 root      20   0 30040  11m 6144 S   2.9  2.4   0:47.77 hal_manualtoolc   
 6553 root      20   0  4620 1340 1024 R   1.3  0.3   0:10.15 top               
 2972 root      20   0  9504 3092 2364 S   0.3  0.6   0:29.58 sshd              
 6524 root      20   0  4128 1728 1440 S   0.3  0.3   0:03.32 io                
    1 root      20   0  2104  712  612 S   0.0  0.1   0:02.03 init              
    2 root      20   0     0    0    0 S   0.0  0.0   0:00.00 kthreadd          
    3 root      20   0     0    0    0 S   0.0  0.0   0:00.02 ksoftirqd/0       
    5 root      20   0     0    0    0 S   0.0  0.0   0:04.17 kworker/u:0       
    6 root      -2   0     0    0    0 S   0.0  0.0   0:02.12 rcu_kthread       
    7 root       0 -20     0    0    0 S   0.0  0.0   0:00.00 khelper           
    8 root      20   0     0    0    0 S   0.0  0.0   0:00.00 kdevtmpfs         
    9 root       0 -20     0    0    0 S   0.0  0.0   0:00.00 netns             
   10 root      20   0     0    0    0 S   0.0  0.0   0:00.23 sync_supers       
   11 root      20   0     0    0    0 S   0.0  0.0   0:00.00 bdi-default
Last edit: 13 Feb 2013 18:51 by kinsa. Reason: updates

Please Log in or Create an account to join the conversation.

More
15 Feb 2013 11:32 #30090 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?
I have created a wiki page: wiki.linuxcnc.org/cgi-bin/wiki.pl?RaspbianXenomaiBuild documenting the steps I took to create a working Xenomai LinuxCNC image for RPi.

Please Log in or Create an account to join the conversation.

More
15 Feb 2013 16:00 #30096 by JZHA1985
A kickstarter if/when things come together would be nice, although I know that's far from a simple ordeal.

Please Log in or Create an account to join the conversation.

More
15 Feb 2013 16:28 #30098 by mhaberler
It is possible to run LinuxCNC on the Rasberry - in principle. It compiles, and runs on a Xenomai kernel.

that said, be advised that at least with Axis, the Pi runs out of CPU cycles badly - you might want to adjust your expectations downwards a bit.

- Michael

Please Log in or Create an account to join the conversation.

Time to create page: 0.111 seconds
Powered by Kunena Forum