[Machinekit] Re: Compiling Machinekit on BBB

2017-03-31 Thread Jeff Pollard

Hi,

  Thanks, I got it to compile.  I needed to set the swap file properly.  I 
didn't get it properly set up the last time, and I wasn't sure if it was 
*needed*, but it is.  I had compiled machinekit on the BBB a couple of 
years ago and it wasn't needed back then, but I guess *a lot* has changed 
since.

Thanks again,

Jeff



On Friday, March 31, 2017 at 1:29:32 PM UTC-7, ceha...@gmail.com wrote:
>
> I just checked which image I have on my BBB, and it is the 1-30-2017 
> release.  My notes had the 3-15-17 release specified, but while that 
> compiled, it would not run.  I think the 2-12-17 release works though.  
> Sorry for any confusion.
>
> On Friday, March 31, 2017 at 4:21:42 PM UTC-4, ceha...@gmail.com wrote:
>>
>>
>> I've compiled on beaglebone using these steps.  The process runs much 
>> faster when running out of EMMC, so I recommend that you flash your SD card 
>> image onto the BBB, otherwise it will take hours.
>>
>> The swapfile is necessary as you've noted.  My first compile failed in 
>> the same way but I had another window open running 'top' which showed all 
>> of memory being consumed, and then the crash.  Running 'top' is an easy way 
>> to verify that a swap file is being used.
>>
>> From my notes:
>>
>> Build machinekit on the beaglebone
>>
>> Start with this image:
>>
>>   bone-debian-8.7-machinekit-armhf-2017-03-12-4gb.img.xz
>>   
>>   install on an SD card and boot holding the boot button down at power-on
>>   open a terminal up, and use the following instructions:
>>
>> add a swap file first:
>>
>>  dd if=/dev/zero of=my_swap bs=1024 count=524288
>>  mkswap my_swap 
>>  sudo chown root my_swap 
>>  sudo chmod 600 my_swap 
>>  sudo swapon my_swap
>>
>>   you can make the file permanent by adding a line to fstab
>>
>>  /path-to-file/my_swap swap swap defaults 0 0
>>
>> then do this to build machinekit:
>>
>> sudo apt-get remove --purge machinekit
>> rm -rf machinekit
>>
>> sudo apt-get install libczmq-dev python-zmq libjansson-dev pkg-config \
>>   libwebsockets-dev libxenomai-dev python-pyftpdlib cython bwidget 
>> lsb-release
>>
>> sudo apt-get install git dpkg-dev
>> sudo apt-get install --no-install-recommends devscripts equivs
>> git clone https://github.com/machinekit/machinekit.git
>> cd machinekit
>> # to add RT-PREEMPT support, add a 'r'
>> # to add Xenomai support, add an 'x'
>> # this builds for Posix, RT-PREEMPT, Xenomai:
>> debian/configure -prx
>> sudo mk-build-deps -ir
>> cd src
>> ./autogen.sh
>> # for the Beaglebone, add --with-platform-beaglebone to ./configure
>> # for the Raspberry2, add --with-platform-raspberry to ./configure
>> # for PC platforms, add --with-rt-preempt  --with-posix  --with-xenomai
>> ./configure --with-platform-beaglebone
>>
>> make   <-- this takes a LONG time
>>
>> sudo make setuid
>>
>> Hope this helps!
>>
>>
>> On Thursday, March 30, 2017 at 7:51:50 PM UTC-4, Jeff Pollard wrote:
>>>
>>>
>>> Hi,
>>>
>>>   I'm trying to build machinekit from the 2017-02-12 version.  I've gone 
>>> through the steps below, and at step 24 I encounter an error while 
>>> compiling emctask.cc.  I read somewhere that adding a swap space might 
>>> help, so I tried to add one, and it either didn't help, or I did it wrong.  
>>> In any case, can anyone tell me if the steps I've taken below are either 
>>> wrong, or if I'm missing any?
>>>
>>> Thanks,
>>>
>>> Jeff
>>> (PS.  I tried to download the most recent Jessie version and when 
>>> booting the three blue LEDs would light up, and the BBB would freeze, thus 
>>> I'm using the 02-12 version)
>>> == 
>>> on ubuntu
>>> [1] wget 
>>> https://rcn-ee.com/rootfs/bb.org/testing/2017-02-12/machinekit/bone-debian-8.7-machinekit-armhf-2017-02-12-4gb.img.xz
>>>
>>> [2] sha256sum bone-debian-8.7-machinekit-armhf-2017-02-12-4gb*
>>> 18361e0426715974b5a0e7f014ff1bf26db2421cbf8d61622efd2856cd8c6214  
>>> bone-debian-8.7-machinekit-armhf-2017-02-12-4gb.img.xz
>>>
>>> [3] xzcat bone-debian-8.7-machinekit-armhf-2017-02-12-4gb.img.xz | sudo 
>>> dd of=/dev/sdc
>>> 
>>> [4] install uSD in to BBB and boot
>>> 
>>> resize 4GB to full 16 GB
>>> [5] cd /opt/scripts/tools/
>>> [6] git pull
>>> [7] sudo ./grow_partition.sh
>>> [8] sudo reboot
>>> -
>>> [9] sudo apt-get remove --purge machinekit
>>> [10] sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 
>>> 43DDF224
>>> [11] sudo sh -c \
>>>   "echo 'deb http://deb.machinekit.io/debian jessie main' > \
>>>   /etc/apt/sources.list.d/machinekit.list"
>>> [12] sudo apt-get update
>>> [13] sudo apt-get install machinekit-xenomai machinekit-dev
>>> 
>>> [14] sudo apt-get install libczmq-dev python-zmq libjansson-dev 
>>> pkg-config \
>>>   libwebsockets-dev libxenomai-dev python-pyftpdlib cython bwidget 
>>> lsb-release
>>>   
>>> [15] sudo apt-get install git 

[Machinekit] Re: Compiling Machinekit on BBB

2017-03-31 Thread cehadady
I just checked which image I have on my BBB, and it is the 1-30-2017 
release.  My notes had the 3-15-17 release specified, but while that 
compiled, it would not run.  I think the 2-12-17 release works though.  
Sorry for any confusion.

On Friday, March 31, 2017 at 4:21:42 PM UTC-4, ceha...@gmail.com wrote:
>
>
> I've compiled on beaglebone using these steps.  The process runs much 
> faster when running out of EMMC, so I recommend that you flash your SD card 
> image onto the BBB, otherwise it will take hours.
>
> The swapfile is necessary as you've noted.  My first compile failed in the 
> same way but I had another window open running 'top' which showed all of 
> memory being consumed, and then the crash.  Running 'top' is an easy way to 
> verify that a swap file is being used.
>
> From my notes:
>
> Build machinekit on the beaglebone
>
> Start with this image:
>
>   bone-debian-8.7-machinekit-armhf-2017-03-12-4gb.img.xz
>   
>   install on an SD card and boot holding the boot button down at power-on
>   open a terminal up, and use the following instructions:
>
> add a swap file first:
>
>  dd if=/dev/zero of=my_swap bs=1024 count=524288
>  mkswap my_swap 
>  sudo chown root my_swap 
>  sudo chmod 600 my_swap 
>  sudo swapon my_swap
>
>   you can make the file permanent by adding a line to fstab
>
>  /path-to-file/my_swap swap swap defaults 0 0
>
> then do this to build machinekit:
>
> sudo apt-get remove --purge machinekit
> rm -rf machinekit
>
> sudo apt-get install libczmq-dev python-zmq libjansson-dev pkg-config \
>   libwebsockets-dev libxenomai-dev python-pyftpdlib cython bwidget 
> lsb-release
>
> sudo apt-get install git dpkg-dev
> sudo apt-get install --no-install-recommends devscripts equivs
> git clone https://github.com/machinekit/machinekit.git
> cd machinekit
> # to add RT-PREEMPT support, add a 'r'
> # to add Xenomai support, add an 'x'
> # this builds for Posix, RT-PREEMPT, Xenomai:
> debian/configure -prx
> sudo mk-build-deps -ir
> cd src
> ./autogen.sh
> # for the Beaglebone, add --with-platform-beaglebone to ./configure
> # for the Raspberry2, add --with-platform-raspberry to ./configure
> # for PC platforms, add --with-rt-preempt  --with-posix  --with-xenomai
> ./configure --with-platform-beaglebone
>
> make   <-- this takes a LONG time
>
> sudo make setuid
>
> Hope this helps!
>
>
> On Thursday, March 30, 2017 at 7:51:50 PM UTC-4, Jeff Pollard wrote:
>>
>>
>> Hi,
>>
>>   I'm trying to build machinekit from the 2017-02-12 version.  I've gone 
>> through the steps below, and at step 24 I encounter an error while 
>> compiling emctask.cc.  I read somewhere that adding a swap space might 
>> help, so I tried to add one, and it either didn't help, or I did it wrong.  
>> In any case, can anyone tell me if the steps I've taken below are either 
>> wrong, or if I'm missing any?
>>
>> Thanks,
>>
>> Jeff
>> (PS.  I tried to download the most recent Jessie version and when booting 
>> the three blue LEDs would light up, and the BBB would freeze, thus I'm 
>> using the 02-12 version)
>> == 
>> on ubuntu
>> [1] wget 
>> https://rcn-ee.com/rootfs/bb.org/testing/2017-02-12/machinekit/bone-debian-8.7-machinekit-armhf-2017-02-12-4gb.img.xz
>>
>> [2] sha256sum bone-debian-8.7-machinekit-armhf-2017-02-12-4gb*
>> 18361e0426715974b5a0e7f014ff1bf26db2421cbf8d61622efd2856cd8c6214  
>> bone-debian-8.7-machinekit-armhf-2017-02-12-4gb.img.xz
>>
>> [3] xzcat bone-debian-8.7-machinekit-armhf-2017-02-12-4gb.img.xz | sudo 
>> dd of=/dev/sdc
>> 
>> [4] install uSD in to BBB and boot
>> 
>> resize 4GB to full 16 GB
>> [5] cd /opt/scripts/tools/
>> [6] git pull
>> [7] sudo ./grow_partition.sh
>> [8] sudo reboot
>> -
>> [9] sudo apt-get remove --purge machinekit
>> [10] sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 
>> 43DDF224
>> [11] sudo sh -c \
>>   "echo 'deb http://deb.machinekit.io/debian jessie main' > \
>>   /etc/apt/sources.list.d/machinekit.list"
>> [12] sudo apt-get update
>> [13] sudo apt-get install machinekit-xenomai machinekit-dev
>> 
>> [14] sudo apt-get install libczmq-dev python-zmq libjansson-dev 
>> pkg-config \
>>   libwebsockets-dev libxenomai-dev python-pyftpdlib cython bwidget 
>> lsb-release
>>   
>> [15] sudo apt-get install git dpkg-dev
>> [16] sudo apt-get install --no-install-recommends devscripts equivs
>> [17] sudo git clone https://github.com/machinekit/machinekit.git 
>> /home/machinekit-dev
>> [18] cd machinekit-dev
>> [19] sudo ./debian/configure -prx
>> [20] sudo mk-build-deps -ir
>> [21] cd src
>> [22] sudo ./autogen.sh
>> [23] sudo ./configure --with-platform-beaglebone
>> [24] sudo make
>> *
>> during compilng the source I get the error...
>> 
>> 
>> 
>> Compiling emc/task/emctask.cc
>> g++: internal compiler error: 

[Machinekit] Re: Compiling Machinekit on BBB

2017-03-31 Thread cehadady

I've compiled on beaglebone using these steps.  The process runs much 
faster when running out of EMMC, so I recommend that you flash your SD card 
image onto the BBB, otherwise it will take hours.

The swapfile is necessary as you've noted.  My first compile failed in the 
same way but I had another window open running 'top' which showed all of 
memory being consumed, and then the crash.  Running 'top' is an easy way to 
verify that a swap file is being used.

>From my notes:

Build machinekit on the beaglebone

Start with this image:

  bone-debian-8.7-machinekit-armhf-2017-03-12-4gb.img.xz
  
  install on an SD card and boot holding the boot button down at power-on
  open a terminal up, and use the following instructions:

add a swap file first:

 dd if=/dev/zero of=my_swap bs=1024 count=524288
 mkswap my_swap 
 sudo chown root my_swap 
 sudo chmod 600 my_swap 
 sudo swapon my_swap

  you can make the file permanent by adding a line to fstab

 /path-to-file/my_swap swap swap defaults 0 0

then do this to build machinekit:

sudo apt-get remove --purge machinekit
rm -rf machinekit

sudo apt-get install libczmq-dev python-zmq libjansson-dev pkg-config \
  libwebsockets-dev libxenomai-dev python-pyftpdlib cython bwidget 
lsb-release

sudo apt-get install git dpkg-dev
sudo apt-get install --no-install-recommends devscripts equivs
git clone https://github.com/machinekit/machinekit.git
cd machinekit
# to add RT-PREEMPT support, add a 'r'
# to add Xenomai support, add an 'x'
# this builds for Posix, RT-PREEMPT, Xenomai:
debian/configure -prx
sudo mk-build-deps -ir
cd src
./autogen.sh
# for the Beaglebone, add --with-platform-beaglebone to ./configure
# for the Raspberry2, add --with-platform-raspberry to ./configure
# for PC platforms, add --with-rt-preempt  --with-posix  --with-xenomai
./configure --with-platform-beaglebone

make   <-- this takes a LONG time

sudo make setuid

Hope this helps!


On Thursday, March 30, 2017 at 7:51:50 PM UTC-4, Jeff Pollard wrote:
>
>
> Hi,
>
>   I'm trying to build machinekit from the 2017-02-12 version.  I've gone 
> through the steps below, and at step 24 I encounter an error while 
> compiling emctask.cc.  I read somewhere that adding a swap space might 
> help, so I tried to add one, and it either didn't help, or I did it wrong.  
> In any case, can anyone tell me if the steps I've taken below are either 
> wrong, or if I'm missing any?
>
> Thanks,
>
> Jeff
> (PS.  I tried to download the most recent Jessie version and when booting 
> the three blue LEDs would light up, and the BBB would freeze, thus I'm 
> using the 02-12 version)
> == 
> on ubuntu
> [1] wget 
> https://rcn-ee.com/rootfs/bb.org/testing/2017-02-12/machinekit/bone-debian-8.7-machinekit-armhf-2017-02-12-4gb.img.xz
>
> [2] sha256sum bone-debian-8.7-machinekit-armhf-2017-02-12-4gb*
> 18361e0426715974b5a0e7f014ff1bf26db2421cbf8d61622efd2856cd8c6214  
> bone-debian-8.7-machinekit-armhf-2017-02-12-4gb.img.xz
>
> [3] xzcat bone-debian-8.7-machinekit-armhf-2017-02-12-4gb.img.xz | sudo dd 
> of=/dev/sdc
> 
> [4] install uSD in to BBB and boot
> 
> resize 4GB to full 16 GB
> [5] cd /opt/scripts/tools/
> [6] git pull
> [7] sudo ./grow_partition.sh
> [8] sudo reboot
> -
> [9] sudo apt-get remove --purge machinekit
> [10] sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 
> 43DDF224
> [11] sudo sh -c \
>   "echo 'deb http://deb.machinekit.io/debian jessie main' > \
>   /etc/apt/sources.list.d/machinekit.list"
> [12] sudo apt-get update
> [13] sudo apt-get install machinekit-xenomai machinekit-dev
> 
> [14] sudo apt-get install libczmq-dev python-zmq libjansson-dev pkg-config 
> \
>   libwebsockets-dev libxenomai-dev python-pyftpdlib cython bwidget 
> lsb-release
>   
> [15] sudo apt-get install git dpkg-dev
> [16] sudo apt-get install --no-install-recommends devscripts equivs
> [17] sudo git clone https://github.com/machinekit/machinekit.git 
> /home/machinekit-dev
> [18] cd machinekit-dev
> [19] sudo ./debian/configure -prx
> [20] sudo mk-build-deps -ir
> [21] cd src
> [22] sudo ./autogen.sh
> [23] sudo ./configure --with-platform-beaglebone
> [24] sudo make
> *
> during compilng the source I get the error...
> 
> 
> 
> Compiling emc/task/emctask.cc
> g++: internal compiler error: Killed (program cc1plus)
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See  for instructions.
> Makefile:436: recipe for target 'objects/emc/task/emctask.o' failed
> make: *** [objects/emc/task/emctask.o] Error 4
> make: Leaving directory '/home/machinekit-dev/src'
> *
>
> --to be done after compile
> [24]sudo make setuid
> ---
>

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 

[Machinekit] Re: Handing out DE0-Nano to Mesa Breakout boards

2017-03-31 Thread Klemen Zhivko
HI Jens,

I am currently running MK for pipe plasma cutter and I plan to move from 
BBB to DE0 nano soc, so ...
I am using MK with my own java client talking to MK over haltalk and mk 
wrapper
I am from Slovenia and I look forward to get one of your boards.

Also I am willing to pay for it ...

ps: video of my machine in action is here:
https://www.youtube.com/watch?v=2jwv60G6mYU=11s

regards
Klemen

Dne Ĩetrtek, 30. marec 2017 22.08.50 UTC+2 je oseba Diego Molina napisala:
>
> Greetings Jens,
>
> Diego here. I currently live in Portugal and am really interested to 
> accept one of the boards of your kind offer.
>
> I currently use Machinekit on a BBB with Xylotex breakout board, but am 
> looking for a chance to get my feet wet with FPGA.
>
> On a side note, I'm trying to put my config to work with 5 axis, are you 
> working with any machines like that? 
>
> If you can send me one, I sent my address via PM.
>
> All the best,
>
>
> Diego Molina
>
> Diego
>
> On Thursday, March 30, 2017 at 10:52:35 AM UTC+1, machi...@schmelkus.net 
> wrote:
>>
>> Hello Everybody,
>>
>> As this is the first time a post to this list let me introduce myself.
>>
>> My name is Jens and i am a aerospace student at the UAS Munich in Germany.
>> For about six years i have been building,reparing and modifying small
>> (cnc-)milling machines and lathes at a students project.
>> Four years ago we started using Linuxcnc as our control system and
>> at the beginning of this year i have started migrating to Machinekit.
>>
>> As i mostly do hardware stuff using these machines or  electronics using 
>> KiCad
>> im now using a DE0 Nano board with the breakout board for Mesa Cards by 
>> Mr Steinkuehler.
>>
>>
>>
>> So for the topic:
>>
>> I ordered 15 boards of this type.
>> As i will be using  no more than 3 of them i want to share the rest of 
>> them with you
>> to boost some testing and development.
>> There are 4 boards already populated (see pic) and parts stored for 
>> further 4.
>> And of course 5 bare PCBs.
>>
>>
>>
>> So if you are interested in getting such a board for testing or 
>> development
>> and live within a reasonable postal distance from central Europe
>> give me a response and i will send you one :)
>>
>>
>> Greetings 
>>
>> Jens
>>
>>
>> 
>>
>

-- 
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+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.