From: Peter C. W. <pc...@me...> - 2015-03-29 04:20:34
|
On Sat, 28 Mar 2015, Neil wrote: > Date: Sat, 28 Mar 2015 18:01:31 -0400 > From: Neil <emc...@na...> > To: "Enhanced Machine Controller (EMC)" <emc...@li...> > Subject: [Emc-users] Custom EMC installation? > > Hi all, > > I've been out of touch with linux for a decade now, so wondering if it > would be relatively easy (ie: fairy well documented and fairly bug free) > to install EMC on my own distro. Perhaps on Ubuntu 14.04. Essentially > I want to get 2 things installed on the same OS... EMC and openPnP. If > you want to gory details, read on: > > Installing openPnP was simple, and includes the required openCV, but > that version (apparently 2.4.9) requires GLIBC 2.15. The Debian > distribution of EMC I have has EGLIBC 2.13 Apparently if I try to > install a later version of GLIBC/EGLIBC, I'll break several other > things. OpenPnP is supposed to check and use my openCV first, so I > (painfully) managed to install openCV over the course of a week or so, > fixing various odd bugs/issues with openCV, cmake, and java. But openPnP > does not seem to recognize it. I tried openCV 2.4.10 and 2.4.9. > > So my alternate plan is to install EMC2 on ubuntu 14.04 (which I lean > towards only because I already have it installed on a different > partition and which runs openPnP fine). But EMC2 requires real-time > kernel extensions, which I'm worried would be painful to install > (haunting memories of kermel compiles from years ago ;). > > Again, I point out that I'm not fluent with linux anymore. What path do > you think I should go with this? > > Thanks. > I have linuxcnc running on ubuntu 14.04 using a preemt-rt kernel this may or may not have good enough latency for a software stepgen system depending on your PC hardware and performance requirements https://rt.wiki.kernel.org/index.php/RT_PREEMPT_HOWTO has instructions for building a preemt-rt kernel (and heres a script) cd ~ mkdir rtlinux cd rtlinux wget ftp://ftp.kernel.org/pub/linux/kernel/v3.x/linux-3.18.9.tar.xz wget https://www.kernel.org/pub/linux/kernel/projects/rt/3.18/patch-3.18.9-rt5.patch.gz tar -xpf linux-3.18.9.tar.xz gunzip patch-3.18.9-rt5.patch.gz cp patch-3.18.9-rt5.patch linux-3.18.9 cd linux-3.18.9 cat patch-3.18.9-rt5.patch | patch -p1 make xconfig make sudo make modules_install sudo make install I have a working .config here if you dont want to mess with all the kernel options settable with xconfig freeby.mesanet.com/rtconfig (move to linux source directory and rename to .config) Note that this enables about every hardware driver you can imagine so takes a while to compile and something close to this will build the uspace version of linuxcnc (for the preemt-rt real time kernel) from source cd ~ sudo apt-get install git-core gitk git-gui sudo apt-get build-dep linuxcnc sudo apt-get install libudev-dev git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc-dev cd linuxcnc-dev git checkout 2.7 git pull cd src ./autogen.sh ./configure --with-realtime=uspace make sudo make setuid cd .. . scripts/rip-environment > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Emc-users mailing list > Emc...@li... > https://lists.sourceforge.net/lists/listinfo/emc-users > Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. |