Reply 18/02/2020 LinuxCNC Forum The following represents the contemporaneous recording of the various steps required to achieve a complete, functioning installation of LinuxCNC v2.80 initially using Raspbian kernels on the RaspberryPi3B+. The same procedure subsequently allowed installation under amd64 UBUNTU 18.04.1/2 Desktop running from an SSD on the RaspberryPi3B+ using the relevant UBUNTU kernels compiled for that platform. Readers are encouraged to document steps similar to this for their own use, and later recollection. ************************************ LinuxCNC Installation Procedure 16/09/2018 Download latest linuxcnc-master.zip from git-hub Unzip to $HOME sudo apt-get install autoconf The following additional packages will be installed: automake autotools-dev libsigsegv2 m4 Suggested packages: autoconf-archive gnu-standards autoconf-doc libtool gettext m4-doc The following NEW packages will be installed: autoconf automake autotools-dev libsigsegv2 m4 ./autogen.sh sudo apt-get install libudev-dev Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libudev-dev sudo apt-get install libmodbus-dev Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libmodbus5 The following NEW packages will be installed: libmodbus-dev libmodbus5 sudo apt-get install libusb-1.0-0-dev Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libusb-1.0-doc The following NEW packages will be installed: libusb-1.0-0-dev libusb-1.0-doc /home/pi/linuxcnc-dev/rtlib checking for glib... configure: error: no -- required until somebody makes glib optional sudo apt-get install tcl8.6-dev tk8.6-dev Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libfontconfig1-dev libice-dev libpthread-stubs0-dev libsm-dev libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxext-dev libxft-dev libxrender-dev libxss-dev libxt-dev tcl8.6 tk8.6 x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-render-dev x11proto-scrnsaver-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev Suggested packages: libice-doc libsm-doc libxcb-doc libxext-doc libxt-doc tcl-tclreadline tcl8.6-doc tk8.6-doc The following NEW packages will be installed: libfontconfig1-dev libice-dev libpthread-stubs0-dev libsm-dev libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxext-dev libxft-dev libxrender-dev libxss-dev libxt-dev tcl8.6 tcl8.6-dev tk8.6 tk8.6-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-render-dev x11proto-scrnsaver-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev sudo apt-get install tcl8.6-dev tk8.6-dev Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libfontconfig1-dev libice-dev libpthread-stubs0-dev libsm-dev libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxext-dev libxft-dev libxrender-dev libxss-dev libxt-dev tcl8.6 tk8.6 x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-render-dev x11proto-scrnsaver-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev Suggested packages: libice-doc libsm-doc libxcb-doc libxext-doc libxt-doc tcl-tclreadline tcl8.6-doc tk8.6-doc The following NEW packages will be installed: libfontconfig1-dev libice-dev libpthread-stubs0-dev libsm-dev libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxext-dev libxft-dev libxrender-dev libxss-dev libxt-dev tcl8.6 tcl8.6-dev tk8.6 tk8.6-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-render-dev x11proto-scrnsaver-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev dpkg-checkbuilddeps dpkg-checkbuilddeps: error: Unmet build dependencies: debhelper (>= 6) libreadline-gplv2-dev asciidoc (>= 8.5) dblatex (>= 0.2.12) docbook-xsl dvipng ghostscript graphviz groff imagemagick inkscape python-lxml source-highlight texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-lang-cyrillic texlive-lang-french texlive-lang-german texlive-lang-polish texlive-lang-spanish texlive-latex-recommended w3c-linkchecker xsltproc asciidoc-dblatex libxmu-dev libglu1-mesa-dev libgl1-mesa-dev | libgl1-mesa-swx11-dev libgtk2.0-dev gettext intltool libboost-python-dev yapps2 pi@raspberrypi:~/linuxcnc-dev $ sudo apt-get install debhelper libreadline-gplv2-dev asciidoc dblatex docbook-xsl dvipng ghostscript graphviz groff imagemagick inkscape python-lxml source-highlight texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-lang-cyrillic texlive-lang-french texlive-lang-german texlive-lang-polish texlive-lang-spanish texlive-latex-recommended w3c-linkchecker xsltproc asciidoc-dblatex libxmu-dev libglu1-mesa-dev libgl1-mesa-dev libgl1-mesa-swx11-dev libgtk2.0-dev gettext intltool libboost-python-dev yapps2 Reading package lists... Done Building dependency tree Reading state information... Done Package libgl1-mesa-swx11-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'libgl1-mesa-swx11-dev' has no installation candidate sudo apt-get install libreadline-gplv2-dev asciidoc Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: asciidoc-base asciidoc-common asciidoc-dblatex asciidoc-doc dblatex dblatex-doc dirmngr docbook-dsssl docbook-utils docbook-xml docbook-xsl fonts-lmodern fonts-texgyre ghostscript gsfonts jadetex libfile-homedir-perl libfile-which-perl libkpathsea6 libosp5 libostyle1c2 libpotrace0 libptexenc1 libreadline5 libsgmls-perl libsynctex1 libtexlua52 libtexluajit2 libtinfo-dev libxml2-utils libyaml-tiny-perl libzzip-0-13 lmodern lynx lynx-common openjade opensp preview-latex-style prosper ps2eps python-apt sgml-data sgmlspl t1utils tcl tex-common tex-gyre texlive texlive-base texlive-bibtex-extra texlive-binaries texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-fonts-recommended-doc texlive-generic-extra texlive-generic-recommended texlive-htmlxml texlive-latex-base texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc texlive-latex-recommended texlive-latex-recommended-doc texlive-pictures texlive-pictures-doc texlive-pstricks texlive-pstricks-doc texlive-science texlive-science-doc tipa tk vim vim-addon-manager vim-asciidoc vim-runtime xmlto xsltproc Suggested packages: source-highlight epubcheck docbook graphicsmagick-imagemagick-compat | imagemagick inkscape latex-cjk-all pdf-viewer texlive-lang-all texlive-lang-cyrillic texlive-xetex transfig xindy pinentry-gnome3 tor docbook-dsssl-doc docbook-defguide dbtoepub docbook-xsl-doc-html | docbook-xsl-doc-pdf | docbook-xsl-doc-text | docbook-xsl-doc docbook-xsl-saxon fop libsaxon-java libxalan2-java libxslthl-java xalan ghostscript-x sgmls-doc doc-base python-apt-dbg python-apt-doc perlsgml w3-recs debhelper perl-tk xpdf-reader | pdf-viewer chktex dvidvi dvipng fragmaster lacheck latexdiff latexmk purifyeps psutils python-pygments libspreadsheet-parseexcel-perl dot2tex prerex ruby-tcltk | libtcltk-ruby ctags vim-doc vim-scripts w3m | lynx-cur | links xmltex The following NEW packages will be installed: asciidoc asciidoc-base asciidoc-common asciidoc-dblatex asciidoc-doc dblatex dblatex-doc dirmngr docbook-dsssl docbook-utils docbook-xml docbook-xsl fonts-lmodern fonts-texgyre ghostscript gsfonts jadetex libfile-homedir-perl libfile-which-perl libkpathsea6 libosp5 libostyle1c2 libpotrace0 libptexenc1 libreadline-gplv2-dev libreadline5 libsgmls-perl libsynctex1 libtexlua52 libtexluajit2 libtinfo-dev libxml2-utils libyaml-tiny-perl libzzip-0-13 lmodern lynx lynx-common openjade opensp preview-latex-style prosper ps2eps python-apt sgml-data sgmlspl t1utils tcl tex-common tex-gyre texlive texlive-base texlive-bibtex-extra texlive-binaries texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-fonts-recommended-doc texlive-generic-extra texlive-generic-recommended texlive-htmlxml texlive-latex-base texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc texlive-latex-recommended texlive-latex-recommended-doc texlive-pictures texlive-pictures-doc texlive-pstricks texlive-pstricks-doc texlive-science texlive-science-doc tipa tk vim vim-addon-manager vim-asciidoc vim-runtime xmlto xsltproc sudo apt-get install debhelper dvipng graphviz groff imagemagick inkscape python-lxml source-highlight texlive-lang-cyrillic texlive-lang-french texlive-lang-german texlive-lang-polish texlive-lang-spanish w3c-linkchecker libxmu-dev libglu1-mesa-dev libgl1-mesa-dev libgtk2.0-dev gettext intltool libboost-python-dev yapps2 Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: apache2 apache2-bin apache2-data apache2-utils autopoint dh-autoreconf dh-strip-nondeterminism fig2dev fonts-liberation gawk gir1.2-gtk-2.0 icu-devtools imagemagick-6-common imagemagick-6.q16 intltool-debian libann0 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libarchive-zip-perl libatk1.0-dev libatkmm-1.6-1v5 libauthen-sasl-perl libboost-python1.62-dev libboost-python1.62.0 libboost-regex1.62.0 libboost1.62-dev libcairo-script-interpreter2 libcairo2-dev libcairomm-1.0-1v5 libcdt5 libcgi-fast-perl libcgi-pm-perl libcgraph6 libclass-accessor-perl libclone-perl libcommon-sense-perl libconfig-general-perl libcss-dom-perl libdrm-dev libdrm-exynos1 libdrm-omap1 libdrm-tegra0 libencode-hanextra-perl libencode-jis2k-perl libencode-locale-perl libfcgi-perl libfile-listing-perl libfile-stripnondeterminism-perl libfont-afm-perl libgc1c2 libgdk-pixbuf2.0-dev libglib2.0-dev libglibmm-2.4-1v5 libgraphite2-dev libgsl2 libgtkmm-2.4-1v5 libgtkspell0 libgts-0.7-5 libgts-bin libgvc6 libgvpr2 libharfbuzz-dev libharfbuzz-gobject0 libhtml-encoding-perl libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhtml-tidy-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libicu-dev libimage-magick-perl libimage-magick-q16-perl libio-html-perl libio-socket-ssl-perl libjson-perl libjson-xs-perl libjxr-tools libjxr0 liblqr-1-0 libltdl-dev liblua5.2-0 liblwp-mediatypes-perl liblwp-protocol-https-perl libmagick++-6.q16-7 libmagickcore-6.q16-3 libmagickcore-6.q16-3-extra libmagickwand-6.q16-3 libmail-sendmail-perl libmailtools-perl libnet-http-perl libnet-ip-perl libnet-smtp-ssl-perl libnet-ssleay-perl libnetpbm10 libpango1.0-dev libpangomm-1.4-1v5 libpathplan4 libpcre3-dev libpcre32-3 libpcrecpp0v5 libpixman-1-dev libpoppler-glib8 libset-intspan-perl libsgml-parser-opensp-perl libsource-highlight-common libsource-highlight4v5 libsub-name-perl libsys-hostname-long-perl libterm-readkey-perl libtidy5 libtimedate-perl libtool libtypes-serialiser-perl liburi-perl libwmf-bin libwmf0.2-7 libwww-perl libwww-robotrules-perl libx11-xcb-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-shm0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdot4 libxfixes-dev libxi-dev libxinerama-dev libxml-libxml-perl libxml-namespacesupport-perl libxml-parser-perl libxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl libxmu-headers libxrandr-dev libxshmfence-dev libxxf86vm-dev mesa-common-dev netpbm perl-openssl-defaults po-debconf psutils python-bs4 python-html5lib python-scour python-webencodings ssl-cert transfig w3c-markup-validator w3c-sgml-lib x11proto-composite-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-randr-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev yapps2-runtime Suggested packages: apache2-doc apache2-suexec-pristine | apache2-suexec-custom dh-make xfig gawk-doc gettext-doc libasprintf-dev libgettextpo-dev graphviz-doc imagemagick-doc autotrace cups-bsd | lpr | lprng enscript ffmpeg gimp gnuplot grads hp2xx html2ps mplayer povray radiance sane-utils ufraw-batch dia | dia-gnome libsvg-perl libxml-xql-perl pstoedit python-uniconvertor libdigest-hmac-perl libgssapi-perl libboost1.62-doc gccxml libboost-atomic1.62-dev libboost-chrono1.62-dev libboost-context1.62-dev libboost-coroutine1.62-dev libboost-date-time1.62-dev libboost-exception1.62-dev libboost-fiber1.62-dev libboost-filesystem1.62-dev libboost-graph1.62-dev libboost-graph-parallel1.62-dev libboost-iostreams1.62-dev libboost-locale1.62-dev libboost-log1.62-dev libboost-math1.62-dev libboost-mpi1.62-dev libboost-mpi-python1.62-dev libboost-program-options1.62-dev libboost-random1.62-dev libboost-regex1.62-dev libboost-serialization1.62-dev libboost-signals1.62-dev libboost-system1.62-dev libboost-test1.62-dev libboost-thread1.62-dev libboost-timer1.62-dev libboost-type-erasure1.62-dev libboost-wave1.62-dev libboost1.62-tools-dev libmpfrc++-dev libntl-dev libcairo2-doc libglib2.0-doc gsl-ref-psdoc | gsl-doc-pdf | gsl-doc-info | gsl-ref-html libgtk2.0-doc libdata-dump-perl libipc-sharedcache-perl icu-doc libtool-doc libcrypt-ssleay-perl libpango1.0-doc gfortran | fortran95-compiler gcj-jdk libauthen-ntlm-perl libmail-box-perl python-genshi python-lxml-dbg python-lxml-doc python-rsvg python-cairo openssl-blacklist texlive-fonts-extra libwebservice-validator-html-w3c-perl libtest-html-w3c-perl libxml-xpath-perl The following NEW packages will be installed: apache2 apache2-bin apache2-data apache2-utils autopoint debhelper dh-autoreconf dh-strip-nondeterminism dvipng fig2dev fonts-liberation gawk gettext gir1.2-gtk-2.0 graphviz groff icu-devtools imagemagick imagemagick-6-common imagemagick-6.q16 inkscape intltool intltool-debian libann0 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libarchive-zip-perl libatk1.0-dev libatkmm-1.6-1v5 libauthen-sasl-perl libboost-python-dev libboost-python1.62-dev libboost-python1.62.0 libboost-regex1.62.0 libboost1.62-dev libcairo-script-interpreter2 libcairo2-dev libcairomm-1.0-1v5 libcdt5 libcgi-fast-perl libcgi-pm-perl libcgraph6 libclass-accessor-perl libclone-perl libcommon-sense-perl libconfig-general-perl libcss-dom-perl libdrm-dev libdrm-exynos1 libdrm-omap1 libdrm-tegra0 libencode-hanextra-perl libencode-jis2k-perl libencode-locale-perl libfcgi-perl libfile-listing-perl libfile-stripnondeterminism-perl libfont-afm-perl libgc1c2 libgdk-pixbuf2.0-dev libgl1-mesa-dev libglib2.0-dev libglibmm-2.4-1v5 libglu1-mesa-dev libgraphite2-dev libgsl2 libgtk2.0-dev libgtkmm-2.4-1v5 libgtkspell0 libgts-0.7-5 libgts-bin libgvc6 libgvpr2 libharfbuzz-dev libharfbuzz-gobject0 libhtml-encoding-perl libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhtml-tidy-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libicu-dev libimage-magick-perl libimage-magick-q16-perl libio-html-perl libio-socket-ssl-perl libjson-perl libjson-xs-perl libjxr-tools libjxr0 liblqr-1-0 libltdl-dev liblua5.2-0 liblwp-mediatypes-perl liblwp-protocol-https-perl libmagick++-6.q16-7 libmagickcore-6.q16-3 libmagickcore-6.q16-3-extra libmagickwand-6.q16-3 libmail-sendmail-perl libmailtools-perl libnet-http-perl libnet-ip-perl libnet-smtp-ssl-perl libnet-ssleay-perl libnetpbm10 libpango1.0-dev libpangomm-1.4-1v5 libpathplan4 libpcre3-dev libpcre32-3 libpcrecpp0v5 libpixman-1-dev libpoppler-glib8 libset-intspan-perl libsgml-parser-opensp-perl libsource-highlight-common libsource-highlight4v5 libsub-name-perl libsys-hostname-long-perl libterm-readkey-perl libtidy5 libtimedate-perl libtool libtypes-serialiser-perl liburi-perl libwmf-bin libwmf0.2-7 libwww-perl libwww-robotrules-perl libx11-xcb-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-shm0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdot4 libxfixes-dev libxi-dev libxinerama-dev libxml-libxml-perl libxml-namespacesupport-perl libxml-parser-perl libxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl libxmu-dev libxmu-headers libxrandr-dev libxshmfence-dev libxxf86vm-dev mesa-common-dev netpbm perl-openssl-defaults po-debconf psutils python-bs4 python-html5lib python-lxml python-scour python-webencodings source-highlight ssl-cert texlive-lang-cyrillic texlive-lang-french texlive-lang-german texlive-lang-polish texlive-lang-spanish transfig w3c-linkchecker w3c-markup-validator w3c-sgml-lib x11proto-composite-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-randr-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev yapps2 yapps2-runtime sudo apt-get install bwidget libtk-img tclx python-gtk2 Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'tclx8.4' instead of 'tclx' The following additional packages will be installed: python-cairo python-gobject-2 Suggested packages: libtk-img-doc python-gobject-2-dbg python-gtk2-doc tclx8.4-doc The following NEW packages will be installed: bwidget libtk-img python-cairo python-gobject-2 python-gtk2 tclx8.4 ./configure --with-realtime=uspace --enable-build-documentation | tee -a LinuxCNCConfig.log make | tee -a LinuxCNCMake.log sudo make setuid . ./rip-environment sudo ~/rt-tests/./cyclictest -m -t1 -p 80 -n -i 500 -l 100000 # NO CPU isolation # /dev/cpu_dma_latency set to 0us policy: fifo: loadavg: 0.19 0.11 0.17 1/265 21297 T: 0 (21297) P:80 I:500 C: 100000 Min: 13 Act: 18 Avg: 19 Max: 66 ~$ sudo nano /boot/cmdline.txt # Add one of the following options at the end of the line isolcpus=3 # isolate the CPU nr 3 isolcpus=1,2,3 # isolate the CPUs nr 1, 2 & 3 sudo ~/rt-tests/./cyclictest -m -t1 -p 80 -n -i 500 -l 100000 # with isolcpus=1,2,3 # /dev/cpu_dma_latency set to 0us policy: fifo: loadavg: 0.58 0.49 0.20 1/214 698 T: 0 ( 698) P:80 I:500 C: 100000 Min: 6 Act: 14 Avg: 15 Max: 72 sudo ~/rt-tests/./cyclictest -m -t1 -p 80 -n -i 500 -l 100000 # with isolcpus=2,3 # /dev/cpu_dma_latency set to 0us policy: fifo: loadavg: 0.53 0.43 0.17 1/214 717 T: 0 ( 717) P:80 I:500 C: 100000 Min: 7 Act: 14 Avg: 17 Max: 81 sudo ~/rt-tests/./cyclictest -m -t1 -p 80 -n -i 500 -l 100000 # with isolcpus=3 # /dev/cpu_dma_latency set to 0us policy: fifo: loadavg: 0.37 0.23 0.09 1/215 723 T: 0 ( 723) P:80 I:500 C: 100000 Min: 7 Act: 19 Avg: 18 Max: 76 sudo ~/rt-tests/./cyclictest -m -t1 -p 80 -n -i 500 -l 100000 # with isolcpus=2 # /dev/cpu_dma_latency set to 0us policy: fifo: loadavg: 0.53 0.27 0.11 1/214 719 T: 0 ( 719) P:80 I:500 C: 100000 Min: 7 Act: 18 Avg: 19 Max: 99 sudo ~/rt-tests/./cyclictest -m -t1 -p 80 -n -i 500 -l 100000 # with isolcpus=1 # /dev/cpu_dma_latency set to 0us policy: fifo: loadavg: 0.16 0.18 0.08 1/216 726 T: 0 ( 726) P:80 I:500 C: 100000 Min: 7 Act: 19 Avg: 18 Max: 82 sudo ~/rt-tests/./cyclictest -m -t1 -p 80 -n -i 500 -l 100000 # with isolcpus=1,2,3 ##FINAL## # /dev/cpu_dma_latency set to 0us policy: fifo: loadavg: 0.26 0.31 0.13 1/213 686 T: 0 ( 686) P:80 I:500 C: 100000 Min: 6 Act: 16 Avg: 15 Max: 60 sudo apt-get install intltool python-gtk2-dev libxml2-dev gtk-doc-tools gnome-doc-utils liblablgtk2-gnome-ocaml-dev libglade2-dev libgladeui-common python-gtkglext1 itstool Reading package lists... Done Building dependency tree Reading state information... Done intltool is already the newest version (0.51.0-3). The following additional packages will be installed: camlp4 docbook docbook-to-man freeglut3 gir1.2-gconf-2.0 gir1.2-gnomekeyring-1.0 gir1.2-rsvg-2.0 gnome-mime-data highlight highlight-common ledit libart-2.0-2 libart-2.0-dev libavahi-client-dev libavahi-common-dev libavahi-glib-dev libbonobo2-0 libbonobo2-common libbonobo2-dev libbonoboui2-0 libbonoboui2-common libbonoboui2-dev libcamlp4-ocaml-dev libcanberra-dev libdbus-1-dev libenchant-dev libffi-dev libfindlib-ocaml libfindlib-ocaml-dev libgail-common libgail-dev libgail18 libgconf2-dev libgconf2-doc libglade2-0 libgmp-dev libgmpxx4ldbl libgnome-2-0 libgnome-keyring-dev libgnome2-common libgnome2-dev libgnomecanvas2-0 libgnomecanvas2-common libgnomecanvas2-dev libgnomeui-0 libgnomeui-common libgnomeui-dev libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-dev libgnomevfs2-extra libgnutls-dane0 libgnutls-openssl27 libgnutls28-dev libgnutlsxx28 libgtkglext1 libgtkspell-dev libidl-2-0 libidl-dev libidn11-dev liblablgtk2-gnome-ocaml liblablgtk2-ocaml liblablgtk2-ocaml-dev liblablgtk2-ocaml-doc libncurses5-dev liborbit-2-0 liborbit2 liborbit2-dev libp11-kit-dev libpopt-dev librsvg2-dev libselinux1-dev libsepol1-dev libtasn1-6-dev libtasn1-doc libunbound2 nettle-dev ocaml-base-nox ocaml-compiler-libs ocaml-findlib ocaml-interp ocaml-nox orbit2 python-glade2 python-gobject-2-dev python-gtk2-doc python-libxml2 python-opengl Suggested packages: docbook-defguide psgml libbonobo2-bin libgail-doc glade | glade-gnome gmp-doc libgmp10-doc libmpfr-dev libgnome2-doc libgnomecanvas2-doc libgnomeui-doc libgnomevfs2-bin dns-root-data gnutls-doc gnutls-bin liblablgtk2-gl-ocaml-dev ncurses-doc librsvg2-doc ocaml-doc tuareg-mode | ocaml-mode devhelp libgle3 The following NEW packages will be installed: camlp4 docbook docbook-to-man freeglut3 gir1.2-gconf-2.0 gir1.2-gnomekeyring-1.0 gir1.2-rsvg-2.0 gnome-doc-utils gnome-mime-data gtk-doc-tools highlight highlight-common itstool ledit libart-2.0-2 libart-2.0-dev libavahi-client-dev libavahi-common-dev libavahi-glib-dev libbonobo2-0 libbonobo2-common libbonobo2-dev libbonoboui2-0 libbonoboui2-common libbonoboui2-dev libcamlp4-ocaml-dev libcanberra-dev libdbus-1-dev libenchant-dev libffi-dev libfindlib-ocaml libfindlib-ocaml-dev libgail-common libgail-dev libgail18 libgconf2-dev libgconf2-doc libglade2-0 libglade2-dev libgladeui-common libgmp-dev libgmpxx4ldbl libgnome-2-0 libgnome-keyring-dev libgnome2-common libgnome2-dev libgnomecanvas2-0 libgnomecanvas2-common libgnomecanvas2-dev libgnomeui-0 libgnomeui-common libgnomeui-dev libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-dev libgnomevfs2-extra libgnutls-dane0 libgnutls-openssl27 libgnutls28-dev libgnutlsxx28 libgtkglext1 libgtkspell-dev libidl-2-0 libidl-dev libidn11-dev liblablgtk2-gnome-ocaml liblablgtk2-gnome-ocaml-dev liblablgtk2-ocaml liblablgtk2-ocaml-dev liblablgtk2-ocaml-doc libncurses5-dev liborbit-2-0 liborbit2 liborbit2-dev libp11-kit-dev libpopt-dev librsvg2-dev libselinux1-dev libsepol1-dev libtasn1-6-dev libtasn1-doc libunbound2 libxml2-dev nettle-dev ocaml-base-nox ocaml-compiler-libs ocaml-findlib ocaml-interp ocaml-nox orbit2 python-glade2 python-gobject-2-dev python-gtk2-dev python-gtk2-doc python-gtkglext1 python-libxml2 python-opengl wget ftp://ftp.gnome.org/pub/GNOME/sources/glade3/3.8/glade3-3.8.6.tar.xz tar -xpf glade3-3.8.6.tar.xz sudo apt-get install checkinstall Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: checkinstall sudo apt-get install libgtk2.0-dev Reading package lists... Done Building dependency tree Reading state information... Done libgtk2.0-dev is already the newest version (2.24.31-2) cd glade3-3.8.6 ./configure make sudo make install >glade-3 glade-3 glade-3: error while loading shared libraries: libgladeui-1.so.11: cannot open shared object file: No such file or directory pi@raspberrypi:~/glade3-3.8.6 $ sudo apt-get install libgladeui-1-dev Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libgladeui-1-9 The following NEW packages will be installed: libgladeui-1-9 libgladeui-1-dev sudo mkdir -p /usr/local/share/glade3/backup/catalogs sudo mkdir -p /usr/local/share/glade3/backup/pixmaps sudo cp /usr/local/share/glade3/catalogs/* /usr/local/share/glade3/backup/catalogs sudo cp -r /usr/local/share/glade3/pixmaps/* /usr/local/share/glade3/backup/pixmaps sudo cp ~/linuxcnc-dev/lib/python/gladevcp/*.xml /usr/local/share/glade3/catalogs sudo cp ~/linuxcnc-dev/lib/python/gladevcp/*.png /usr/local/share/glade3/pixmaps cd $HOME/linuxcnc-dev/scripts pi@raspberrypi:~/linuxcnc-dev/scripts $ . ./rip-environment pi@raspberrypi:~/linuxcnc-dev/scripts $ glade-3 (glade-3:29881): Gtk-WARNING **: cannot open display: Need to X-forward to get the window on host via SSH directly ssh -X pi@raspberrypi pi@raspberrypi:~ $ cd $HOME/linuxcnc-dev/scripts pi@raspberrypi:~/linuxcnc-dev/scripts $ . ./rip-environment pi@raspberrypi:~/linuxcnc-dev/scripts $ glade-3 Gtk-Message: Failed to load module "canberra-gtk-module" Traceback (most recent call last): File "", line 1, in File "/home/pi/linuxcnc-dev/lib/python/gladevcp/__init__.py", line 1, in from hal_pythonplugin import * File "/home/pi/linuxcnc-dev/lib/python/gladevcp/hal_pythonplugin.py", line 39, in from hal_sourceview import * File "/home/pi/linuxcnc-dev/lib/python/gladevcp/hal_sourceview.py", line 27, in import gtksourceview2 as gtksourceview ImportError: No module named gtksourceview2 sudo apt-get install python-gtksourceview2 Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libgtksourceview2.0-0 libgtksourceview2.0-common Suggested packages: libgtksourceview2.0-dev The following NEW packages will be installed: libgtksourceview2.0-0 libgtksourceview2.0-common python-gtksourceview2 sudo apt-get install libgtksourceview-3.0-dev Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: gir1.2-atspi-2.0 gir1.2-gtksource-3.0 libatk-bridge2.0-dev libatspi2.0-dev libepoxy-dev libgtk-3-dev libgtksourceview-3.0-1 libgtksourceview-3.0-common libxkbcommon-dev libxtst-dev x11proto-record-dev Suggested packages: libgtk-3-doc libgtksourceview-3.0-doc The following NEW packages will be installed: gir1.2-atspi-2.0 gir1.2-gtksource-3.0 libatk-bridge2.0-dev libatspi2.0-dev libepoxy-dev libgtk-3-dev libgtksourceview-3.0-1 libgtksourceview-3.0-common libgtksourceview-3.0-dev libxkbcommon-dev libxtst-dev x11proto-record-dev sudo apt-get install libcanberra-gtk-module Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libcanberra-gtk0 The following NEW packages will be installed: libcanberra-gtk-module libcanberra-gtk0 wget https://ftp.gnome.org/pub/GNOME/sources/gtksourceview/2.0/gtksourceview-2.0.2.tar.gz --2018-09-13 16:38:09-- https://ftp.gnome.org/pub/GNOME/sources/gtksourceview/2.0/gtksourceview-2.0.2.tar.gz Resolving ftp.gnome.org (ftp.gnome.org)... 194.71.11.165, 194.71.11.173, 2001:6b0:19::165, ... Connecting to ftp.gnome.org (ftp.gnome.org)|194.71.11.165|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1645509 (1.6M) [application/x-gzip] Saving to: ‘gtksourceview-2.0.2.tar.gz’ gtksourceview-2.0.2.tar.gz 100%[================================================================================================================================>] 1.57M 439KB/s in 3.7s 2018-09-13 16:38:14 (439 KB/s) - ‘gtksourceview-2.0.2.tar.gz’ saved [1645509/1645509] gunzip gtksourceview-2.0.2.tar.gz tar -xpf gtksourceview-2.0.2.tar cd gtksourceview-2.0.2 ./configure make sudo make install ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- glade-3 GladeUI-Message: No displayable values for property GtkSourceView::draw-spaces (glade-3:6059): GladeUI-WARNING **: Boolean tag unrecognized *false* GladeUI-Message: Glade needs artwork; a default icon will be used for the following classes: HAL_Label needs an icon named 'widget-gladevcp-hal_label' HAL_CheckButton needs an icon named 'widget-gladevcp-hal_checkbutton' HAL_GremlinPlus needs an icon named 'widget-gladevcp-hal_gremlin_plus' EMC_SourceView needs an icon named 'widget-gladevcp-vcp_sourceview' State_Sensitive_Table needs an icon named 'widget-gladevcp-state_sensitive_table' HAL_Graph needs an icon named 'widget-gladevcp-hal_graph' PyNgcGui needs an icon named 'widget-gladevcp-pyngcgui' HAL_SpinButton needs an icon named 'widget-gladevcp-hal_spinbutton' HAL_ToggleButton needs an icon named 'widget-gladevcp-hal_togglebutton' HAL_HBox needs an icon named 'widget-gladevcp-hal_hbox' HALIO_HScale needs an icon named 'widget-gladevcp-halio_hscale' HAL_RadioButton needs an icon named 'widget-gladevcp-hal_radiobutton' EMC_FileChooserButton needs an icon named 'widget-gladevcp-vcp_filechooserbutton' HAL_LightButton needs an icon named 'widget-gladevcp-hal_light_button' HAL_HideTable needs an icon named 'widget-gladevcp-hal_hidetable' OffsetPage needs an icon named 'widget-gladevcp-offsetpage' HAL_Button needs an icon named 'widget-gladevcp-hal_button' HAL_VScale needs an icon named 'widget-gladevcp-hal_vscale' EMC_MDIHistory needs an icon named 'widget-gladevcp-vcp_mdihistory' HAL_HScale needs an icon named 'widget-gladevcp-hal_hscale' Override needs an icon named 'widget-gladevcp-override' HAL_Table needs an icon named 'widget-gladevcp-hal_table' HAL_ComboBox needs an icon named 'widget-gladevcp-hal_combobox' GtkSourceView needs an icon named 'widget-gtksourceview-gtksourceview' MacroSelect needs an icon named 'widget-gladevcp-vcp_macro_select' HAL_ProgressBar needs an icon named 'widget-gladevcp-hal_progressbar' HALIO_Button needs an icon named 'widget-gladevcp-halio_button' EMC_FileChooserDialog needs an icon named 'widget-gladevcp-vcp_filechooserdialog' GladeUI-Message: No DevHelp installed on your system, devhelp feature will be disabled. dwc_otg.fiq_enable=0 dwc_otg.fiq_fsm_enable=0 dwc_otg.nak_holdoff=0 Add the option dwg_otg.speed=1 in /boot/cmdline.txt should mitigate the problem, but it didn't work. sudo dd bs=4M if=/dev/sde | gzip > image1-`date +%d%m%y`.img.gz sudo apt-get install stress ========================================================================================== mklatencyplot.sh #!/bin/bash # 1. Run cyclictest cyclictest -l100000000 -m -Sp90 -i200 -h400 -q >output # 2. Get maximum latency max=`grep "Max Latencies" output | tr " " "\n" | sort -n | tail -1 | sed s/^0*//` # 3. Grep data lines, remove empty lines and create a common field separator grep -v -e "^#" -e "^$" output | tr " " "\t" >histogram # 4. Set the number of cores, for example cores=4 # 5. Create two-column data sets with latency classes and frequency values for each core, for example for i in `seq 1 $cores` do column=`expr $i + 1` cut -f1,$column histogram >histogram$i done # 6. Create plot command header echo -n -e "set title \"Latency plot\"\n\ set terminal png\n\ set xlabel \"Latency (us), max $max us\"\n\ set logscale y\n\ set xrange [0:400]\n\ set yrange [0.8:*]\n\ set ylabel \"Number of latency samples\"\n\ set output \"plot.png\"\n\ plot " >plotcmd # 7. Append plot command data references for i in `seq 1 $cores` do if test $i != 1 then echo -n ", " >>plotcmd fi cpuno=`expr $i - 1` if test $cpuno -lt 10 then title=" CPU$cpuno" else title="CPU$cpuno" fi echo -n "\"histogram$i\" using 1:2 title \"$title\" with histeps" >>plotcmd done # 8. Execute plot command gnuplot -persist