EMC2 running on Raspberry Pi?

More
21 Feb 2014 06:49 #44029 by ADBensi
With respect, I know FPGA, however, I ran the application with Picnc Jr on DMA and it leaves nothing to be desired. In fact, directly by GPIO had a poor guarantee the regularity of the pulses and the same does not occur with SPI + DMA;

That would be better if I could show some result migrating it to Cubieboard A20 (dual core with DDR3).

Best Regards,

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

More
27 Feb 2014 10:18 #44221 by ADBensi
Today is a great day :D
First result with Xenomai in A10 All Winner

RTT| 00:14:01 (periodic user-mode task, 100 us period, priority 99)
RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat worst
RTD| 0.124| 0.999| 9.624| 0| 0| 0.041| 15.999
RTD| 0.083| 1.041| 10.624| 0| 0| 0.041| 15.999
RTD| 0.124| 1.083| 13.791| 0| 0| 0.041| 15.999
RTD| 0.124| 1.041| 9.999| 0| 0| 0.041| 15.999
RTD| 0.124| 0.999| 9.791| 0| 0| 0.041| 15.999
RTD| 0.124| 0.999| 9.708| 0| 0| 0.041| 15.999
RTD| 0.124| 0.999| 9.583| 0| 0| 0.041| 15.999

Linux cubie 3.4.12-xenomai #2 PREEMPT Tue Feb 25 01:22:02 BRT 2014 armv7l GNU/Linux
A10 @ 1.01 GHz

total used free shared buffers cached
Mem: 815M 143M 671M 0B 20M 66M
-/+ buffers/cache: 56M 758M

Next: get SPI code from Raspberry and put on A10 :)

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

More
28 Feb 2014 20:54 #44260 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?
Just an update guys,

I have ported the picnc board to run on a hacked A13 tablet . The camera interface has to be disabled to get access to the spi pins.

File Attachment:


A portable touchscreen based LCNC controller is now possible. :)

Cheers!

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

More
01 Mar 2014 09:05 #44277 by ADBensi
Hello,

Very interesting, congratulations!

  Kinsa, A13 is very similar to the A10. : D
  I'm with RT kernel in A10, and this weekend I would port the code SPI / GPIO from raspberry. Apparently you did it, can you help me?

If you can show me the settings you made ​​...

Best Regards

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

More
01 Mar 2014 10:36 #44278 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?
You can get the code here:
git clone -b testing/sunxi https://code.google.com/p/picnc/
You'll have to modify the defines in HAL/picnc_grbl.h especially the CCM clock and gate values as I don't think the A10 shares the same settings.

Getting the SPI to work is a bit tricky as the documentation is sorely lacking. I must admit that RPi is way much better in this regard compared to the Allwinner chips.
The following user(s) said Thank You: wizard69

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

More
01 Mar 2014 19:10 #44289 by ADBensi
Hello,

  You compiled the emc2 supporting any platform? example
  . / configure - prefix = / usr / local - with-platform = raspberry ...

Best Regards

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

More
01 Mar 2014 20:37 #44293 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?
I'm using the UBC3 branch and configured using the following setting:
./configure --with-xenomai

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

More
01 Mar 2014 22:31 #44296 by ADBensi
Hello,

These were your steps? Forgive me for asking before testing. It will be several hours until the process is finished ;)

git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc-dev
cd linuxcnc-dev

git checkout -b v2.5_branch origin/v2.5_branch
git checkout v2.5_branch

cd debian
./configure -r
cd ..
dpkg-checkbuilddeps

cd src
./autogen.sh
./configure --prefix=/usr/local --with-xenomai --disable-build-documentation --with-kernel=/boot/config-3.4.12

make
make setuid
make install

Best Regards

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

More
01 Mar 2014 22:34 #44297 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?

Hello,

These were your steps? Forgive me for asking before testing. It will be several hours until the process is finished ;)

git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc-dev
cd linuxcnc-dev

git checkout -b v2.5_branch origin/v2.5_branch
git checkout v2.5_branch

cd debian
./configure -r
cd ..
dpkg-checkbuilddeps

cd src
./autogen.sh
./configure --prefix=/usr/local --with-xenomai --disable-build-documentation --with-kernel=/boot/config-3.4.12

make
make setuid
make install

Best Regards

I've used this one: github.com/mhaberler/asciidoc-sandbox/wi...RT-Operating-Systems

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

More
02 Mar 2014 21:36 #44315 by ADBensi
Hello,

  I have a problem, What it could be?
when I run . scripts/rip-environment to set up the environment I get error:
This script is only useful on run-in-place systems.

I try:

cd src
./autogen.sh
./configure --prefix=/usr/local --with-xenomai --disable-build-documentation
make
make setuid
make install
cd ..
source scripts/rip-environment

After over xterm (X11 sshd) I try:

cd src
make clean
./autogen.sh
./configure --prefix=/usr/local --with-xenomai --disable-build-documentation --enable-run-in-place --enable-simulator
make
make setuid
source scripts/rip-environment

And same error, "This script is only useful on run-in-place systems".

My shell set:
root@cubie:/var/source/linuxcnc # set
BASH=/bin/bash
BASHOPTS=cmdhist:expand_aliases:extquote:force_fignore:hostcomplete:interactive_comments:login_shell:progcomp:promptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=()
BASH_ARGV=()
BASH_CMDS=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="4" [1]="2" [2]="37" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf")
BASH_VERSION='4.2.37(1)-release'
COLUMNS=214
DIRSTACK=()
DISPLAY=localhost:12.0
EUID=0
GROUPS=()
HISTFILE=/root/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/root
HOSTNAME=cubie
HOSTTYPE=arm
IFS=$' \t\n'
LANG=pt_BR.UTF-8
LINES=56
LOGNAME=root
MACHTYPE=arm-unknown-linux-gnueabihf
MAIL=/var/mail/root
MAILCHECK=60
OLDPWD=/var/source/linuxcnc/src
OPTERR=1
OPTIND=1
OSTYPE=linux-gnueabihf
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PIPESTATUS=([0]="1")
PPID=13584
PROMPT_COMMAND='printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
PS1='\[\033[1;33m\]\u\[\033[1;37m\]@\[\033[1;32m\]\h\[\033[1;37m\]:\[\033[1;31m\]\w \[\033[1;36m\]\$ \[\033[0m\]'
PS2='> '
PS3='> '
PS4='+ '
PWD=/var/source/linuxcnc
SHELL=/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
SHLVL=1
TERM=xterm
UID=0
USER=root
_=test

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

Time to create page: 0.146 seconds
Powered by Kunena Forum