Debian Jessie Install

More
15 Nov 2015 21:38 #65300 by islander261
Replied by islander261 on topic Debian Jessie Install
OK, I am really in over my head now! Calling on any of you Linux gurus out there. I have been trying the follow these instructions for building the RT kernel: sourceforge.net/p/emc/mailman/message/33665819/
The command text is here but I am running it one command at a time from a terminal:
(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
www.kernel.org/pub/linux/kernel/projects...-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


I have been able to successfully complete the green highlighted commands.

I am assuming that by doing the yellow highlighted commands I skip the make xconfig line above.
So I try and make and this is what happens:
jd@plastest:~/rtlinux/linux-4.1.12$ make
bash: make: command not found
jd@plastest:~/rtlinux/linux-4.1.12$

I thought that the compiler with make was a standard part of the Debian 8 install.? I have looked for it and can't find it any where. I haven't found it as a separate package on the website either (very possibly bad search technique) . What do I need to do to move forward here? Thank you.

John

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

More
16 Nov 2015 05:33 #65310 by islander261
Replied by islander261 on topic Debian Jessie Install
Ok, I found out what I needed. I found I needed to load the build-essential package to get the compiler. I was able to get the the real time kernel compiled and I works!

jd@plastest:~/linuxcnc-dev/src$ uname -a
Linux plastest 4.1.12-rt13 #1 SMP PREEMPT RT Sun Nov 15 17:02:50 PST 2015 i686 GNU/Linux

Or maybe I should say it loads and runs.

Now building LinuxCNC to go with it isn't going so well. Following the previous instructions I get to this point:

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
And this is what happens:

jd@plastest:~$ sudo apt-get build-dep linuxcnc
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to find a source package for linuxcnc

so keep on going and things don't work here:

jd@plastest:~/linuxcnc-dev/src$ ./autogen.sh
./autogen.sh: 6: ./autogen.sh: autoconf: not found

Any help? Thank you.

John

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

More
16 Nov 2015 08:36 #65314 by ArcEye
Replied by ArcEye on topic Debian Jessie Install

jd@plastest:~$ sudo apt-get build-dep linuxcnc
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to find a source package for linuxcnc


That was not ever going to work, you didn't install linuxcnc from a package, so apt has nothing to find dependencies in.

You don't have a development environment, build-essentials just gives the bare minimum.

Each time you get an error like that, search 'Debian Jessie provides autoconf' or similar and you will get hits telling which packages contain the thing you need. Install it and run again until all builds.

I could spoon feed you a list of packages, but you would not learn anything B)

regards

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

More
16 Nov 2015 14:12 #65326 by islander261
Replied by islander261 on topic Debian Jessie Install
Thank you for your patients. I will search for building a complete development environment. I naively believed that loading the compiler stuff was all I needed.

Now when I build LinuxCNC from this source is it a custom build to work with the real time kernel? I downloaded the the newest image and up dated it and all appears to work in simulation mode. This is what I did:

linuxcnc.org/docs/2.7/html/getting-start...etting-linuxcnc.html

In section 7.1:

5. Add the LinuxCNC Archive Signing Key to your apt keyring by running

sudo apt-key adv --keyserver hkp://keys.gnupg.net --recv-key 8f374fef
Add a new apt source that looks like this:

deb linuxcnc.org/ jessie base 2.7-uspace
Update the package list from linuxcnc.org

sudo apt-get update
Install uspace

sudo apt-get install linuxcnc-uspace

All this appeared to work with no errors that I noticed.

John

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

More
16 Nov 2015 14:49 #65328 by ArcEye
Replied by ArcEye on topic Debian Jessie Install
If you are happy installing a package with a uspace build, there is no need to build from sources.

Building from sources is normally only necessary, when you want to modify something that needs to be built within the source tree.

If the package works with your rt kernel, that is you done

regards

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

More
18 Nov 2015 16:40 #65446 by islander261
Replied by islander261 on topic Debian Jessie Install
Ok, I think I understand the difference between uspace and kspace. I also found the table which shows how each realtime kernel interacts with the uspace and what it can do.

I think I want to use the Mesa 7i76E card or the 5i25/7i76 combination, software step generation isn't going to happen with the hardware I have. So I think I am fine running LinuxCNC in uspace using the Preempt RT real time patch to the linux kernel.

John

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

More
19 Nov 2015 15:52 #65511 by andypugh
Replied by andypugh on topic Debian Jessie Install

I think I want to use the Mesa 7i76E card or the 5i25/7i76 combination, software step generation isn't going to happen with the hardware I have. So I think I am fine running LinuxCNC in uspace using the Preempt RT


I think that you _have_ to use uspace to run the 7i76E.

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

More
22 Nov 2015 18:35 #65666 by islander261
Replied by islander261 on topic Debian Jessie Install
Hello

I think I have a problem. When I try to run latency-plot this is what happens:
jd@plastest:~$ latency-plot
Waiting for component 'threads' to become ready.Waited 3 seconds for master.  giving up.
.Note: Using POSIX realtime

Unexpected realtime delay on task 0
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
Memory used is  1.2%, Exiting
jd@plastest:~$

On the main GUI screen the plot window opens and then the error message box opens above it. If I click on it the plot window closes. If I just move the message box off to the side the main plot window appears to be working. When I try the other two latency applications, latency-test and latency-histogram, they appear to work.

John

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

More
23 Nov 2015 23:33 - 23 Nov 2015 23:34 #65722 by auto-mation-assist
I wanted to make a new installation of version 2.8 and ran into a uspace installation issue on Jessie 8.2. I installed Jessie 8.2 from a live cd with the ifce desktop. Ran apt-get upgrade since my cd was over a month old. Then installed the preempt kernel. After that I ran a apt-get build-dep linuxcnc-uspace and it installed all those depends which Im thinking actually came in as linuxcnc dependencies. When it was done I ran apt-get install linuxcnc-uspace and ran into this problem:

The following packages have unmet dependencies:
linuxcnc-uspace : Depends: libboost-python1.49.0 (>= 1.49.0-1) but it is not installable
Depends: libgnomeprint2.2-0 (>= 2.17.0) but it is not installable
Depends: libgnomeprintui2.2-0 (>= 2.17.0) but it is not installable
Depends: libudev0 (>= 0.140) but it is not installable

I have tried this on more than one machine with the same result. I do not have a repository address that can provide these depends. The system lists no broken packages. Does anyone have a work around on this. Is my building sequence out of order?
Last edit: 23 Nov 2015 23:34 by auto-mation-assist.

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

More
24 Nov 2015 09:17 - 24 Nov 2015 09:19 #65730 by ArcEye
Replied by ArcEye on topic Debian Jessie Install

After that I ran a apt-get build-dep linuxcnc-uspace


Why, there is no package for 2.8 and you don't have one installed anyway.

When it was done I ran apt-get install linuxcnc-uspace


Why, that would try to install 2.7 at best but I think you have managed to fetch the Wheezy package
The Jessie libboost-python-dev version is 1.55.02
Have you set your /etc/apt/sources.list correctly?

This is the control file for the www.linuxcnc.org/dists/jessie/2.7-uspace...pace_2.7.2_amd64.deb
Package: linuxcnc-uspace
Source: linuxcnc
Version: 1:2.7.2
Architecture: amd64
Maintainer: Sebastian Kuzminsky <seb@highlab.com>
Installed-Size: 27694
Depends: libatk1.0-0 (>= 1.12.4), libboost-python1.55.0, libc6 (>= 2.15), libcairo2 (>= 1.2.4), libfontconfig1 (>= 2.11), libfreetype6 (>= 2.2.1), libgcc1 (>= 1:4.1.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libgl1-mesa-glx | libgl1, libglib2.0-0 (>= 2.16.0), libglu1-mesa | libglu1, libgtk2.0-0 (>= 2.8.0), libice6 (>= 1:1.0.0), libmodbus5 (>= 3.0.2), libncurses5 (>= 5.0), libpango-1.0-0 (>= 1.14.0), libpangocairo-1.0-0 (>= 1.14.0), libpangoft2-1.0-0 (>= 1.14.0), libpython2.7 (>= 2.7), libreadline5 (>= 5.2), libsm6, libstdc++6 (>= 4.6), libtinfo5, libtk8.6 (>= 8.6.0), libudev1 (>= 183), libusb-1.0-0 (>= 2:1.0.8), libx11-6, libxaw7, libxext6, libxft2 (>> 2.1.1), libxinerama1, libxmu6, libxss1, libxt6, zlib1g (>= 1:1.1.4), libudev-dev, iptables, tcl8.6, tk8.6, bwidget (>= 1.7), libtk-img (>= 1.13), python (>= 2.7), python (<< 2.8), python:any (>= 2.7.5-5~), python2.7-tk, python2.7-gnome2 | python-gnome2, python2.7-glade2 | python-glade2, python2.7-numpy | python-numpy, python2.7-imaging | python-imaging, python2.7-imaging-tk | python-imaging-tk, python-gtksourceview2, python-vte, python-gst0.10, python-xlib, python-gtkglext1, python-configobj, tclreadline, procps, psmisc, module-init-tools | kmod, tclx, mesa-utils, blt
Recommends: linuxcnc-doc-en | linuxcnc-doc, hostmot2-firmware-all, linux-image-rt-amd64
Conflicts: linuxcnc, linuxcnc-sim
Section: misc
Priority: extra
Description: PC based motion controller for real-time Linux
 LinuxCNC is the next-generation Enhanced Machine Controller which
 provides motion control for CNC machine tools and robotic
 applications (milling, cutting, routing, etc.).

Note the package version numbers

I would suggest that you just purge all your wrongly installed packages, realign your apt repo settings and install the correct 2.7 package for Jessie

There is no advantage to trying to run 2.8, especially as you have to build it from git sources.

regards
Last edit: 24 Nov 2015 09:19 by ArcEye.
The following user(s) said Thank You: auto-mation-assist

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

Time to create page: 0.149 seconds
Powered by Kunena Forum