Hi Jon, Below are *old* notes I made for myself on how to get/compile machinekit for a BBB. I have never done PASM with it, but I have compiled the entire Machinekit source code. The notes should get you further along with getting a compilable Machinekit source. A lot of it you will already know about, but for others that may end up here, the list is as complete as I can remember..... ==========================================
How I did Machineikit on a BBB [1] *download Machinekit(whatever version you want...)* [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] *check it (against whatever version you downloaded)* [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] *copy it to a uSD where sdX is your uSD and put in the proper file name. Use an 8GB or larger uSD* [3] xzcat bone-debian-8.7-machinekit-armhf-2017-02-12-4gb.img.xz | sudo dd of=/dev/sdX bs=1M status=progress [4] *install uSD in to BBB* [5] *expand the drive to full 8GB (or whatever size uSD you have) capacity* [5] cd /opt/scripts/tools/ [6] git pull [7] sudo ./grow_partition.sh [8] sudo reboot [9] *Make a swap file. Otherwise the system can't compile the really large files* [9] sudo dd if=/dev/zero of=swap_file bs=1024 count=524288 [10] sudo mkswap swap_file [11] sudo chown root swap_file [12] sudo chmod 600 swap_file [13] sudo swapon swap_file [14] *Start a fresh Machinekit user by getting rid of the old one (from other's notes online, not sure why....)* [14] *It may be possible to skip these two steps?????* [14] sudo apt-get remove --purge machinekit [15] sudo rm -rf machinekit [16] *prepare to update files* [16] sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 43DDF224 [17] sudo sh -c \ "echo 'deb http://deb.machinekit.io/debian jessie main' > \ /etc/apt/sources.list.d/machinekit.list" [18] sudo apt-get update [19-21] I have done an install with *and without* 19-21 and it worked fine as the RT was already in the Machinekit download from RCNs Machinekit directories. These are just part of the list of steps I gathered from various pages about installing machinekit.... [19] sudo apt-cache search linux-image-3.8 |grep xenomai [20] sudo apt-get install linux-image-3.8.13-xenomai-r83) [21] sudo apt-get install machinekit-xenomai [22] sudo apt-get install libczmq-dev python-zmq libjansson-dev pkg-config \ libwebsockets-dev libxenomai-dev python-pyftpdlib cython bwidget lsb-release [23] sudo apt-get install git dpkg-dev [24] sudo apt-get install --no-install-recommends devscripts equivs*from HOME dir:* [25] *make the new dir for developement and change to machinekit user* [25] sudo mkdir machinekit-dev [26] sudo chown machinekit:machinekit machinekit-dev [27] *get machinekit-dev files* to your new directory [27] git clone https://github.com/machinekit/machinekit.git /home/machinekit-dev [28] cd machinekit-dev [29] *Make sure everything is ready for compiling* [29] ./debian/configure -prx [30] sudo mk-build-deps -ir [31] cd src [32] ./autogen.sh [33] ./configure --with-platform-beaglebone [34] make [35] sudo make setuid [36] *from the home dir*, so you will run the newly compiled code: . ./machinekit-dev/scripts/rip-environment [37] *also make a machinekit directory in home and assign it to machinekit user...* (home/machinekit) as [15] will remove the original [38] *change and save the boot configuration file as necessary..* [38] sudo nano /boot/uEnv.txt *Then edit the file to include the command: (i.e. remove the #)* cape_disable=capemgr.disable_partno=BB-BONELT-HDMI [39] sudo reboot *Now make your changes to src/... then from machinekit-dev/src run: * make* This will take a long (maybe 1.5 to 2 hrs?) time the first time it is run. Then after it's compiled:* sudo make setuid* from another terminal window that you want to test run from*, from the /home directory, (once per shell session) . ./machinekit-dev/scritps/rip-environment *then run machinekit (assuming you have a INI and HAL file set that you want to use* machinekit More Notes: AFTER a reboot: sudo swapon swap_file if a large file was changed and needs to be compiled ========================================= Jeff On Monday, April 22, 2019 at 1:17:15 PM UTC-7, Jon Elson wrote: > > > > On Saturday, April 20, 2019 at 3:40:01 AM UTC-5, Schooner wrote: >> >> Hi Jon >> >> The pasm compiler is built from sources as part of the build for armhf. >> See >> https://github.com/machinekit/machinekit/tree/master/src/hal/support/pasm >> >> If you could give me the steps to get the source from git, I can probably > take it from there. It seems to be in some sub-directory of LinuxCNC. > Or, would I just load the whole sources of LinuxCNC? > > Thanks, > > Jon > -- 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 [email protected]. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
