Compile RTAI kernel 3.4-9-rtai-686 on deb.wheezy

More
30 Oct 2014 18:20 #52572 by ww34ww34
Hi,
I clean all.
I crate two virtual machine.
1) linuxcnc debian.hybrid.iso
2) fresh debian 7.6.0

I use your github link
github.com/ArcEye/3.4.55-rtai

I compile in both the kernel
with a little issue fixed with
cd /usr/src/linux
sed -i s/CONFIG_RTS5139=m/CONFIG_RTS5139=n/ .config

And the two machine start correctly.

But when i run RTAI compilation i have on the two machine this error
/usr/src/RTAI$ sudo make menuconfig
/bin/sh: 0: Can't open /base/config/kconfig/lxdialog/check-lxdialog.sh
/bin/sh: 0: Can't open /base/config/kconfig/check.sh
/bin/sh: 0: Can't open /base/config/kconfig/lxdialog/check-lxdialog.sh
/bin/sh: 0: Can't open /base/config/kconfig/lxdialog/check-lxdialog.sh
make[1]: *** [dochecklxdialog] Error 127
make: *** [menuconfig] Error 2

i try to make /base/config/kconfig/lxdialog/check-lxdialog.sh executable but nothing change.
It's really hard.

Thanks.
regars

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

More
30 Oct 2014 18:25 #52573 by ww34ww34
If i try without sudo
/usr/src/RTAI$ make menuconfig
 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 *** 
 *** Install ncurses (ncurses-devel) and try again.
 *** 
make[1]: *** [dochecklxdialog] Error 1
make: *** [menuconfig] Error 2

but i install all ncurses lib

I attached the result of
dpkg --get-selections
Attachments:

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

More
30 Oct 2014 18:49 - 30 Oct 2014 19:38 #52575 by ArcEye

I use your github link
github.com/ArcEye/3.4.55-rtai


Have you done all the steps as per the README in the repo?

You need to run autogen.sh, run ./configure and then make menuconfig, because the Makefile does not exist until you do

$ cd /usr/src/RTAI && ./autogen.sh && ./configure && make menuconfig

Otherwise I can only assume this is something with you trying to compile on virtual machines instead of on the actual machine.

You will have to explain exactly what you mean by a virtual machine, even chroot can fail if the base system and the one which you chroot to do not match
(eg one is amd64 and the other i386)

libncurses5:amd64 install
libncurses5-dev install
libncursesw5:amd64 install


You also seem to be trying to compile on an amd64 build, which is not what the repo or kernel config is for
Last edit: 30 Oct 2014 19:38 by ArcEye.

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

More
30 Oct 2014 20:47 #52583 by ww34ww34

Have you done all the steps as per the README in the repo?

Yes.All in order.
cd /usr/src/RTAI && ./autogen.sh && ./configure && make menuconfig
Yes too

I have two 64bit istance of virtualBox running under windows 7. (Vbox ver.4.3.18)
I dont' know why this lib was installed for amd64.

libncurses5:amd64 install
libncurses5-dev install
libncursesw5:amd64 install

Maybe your build has inside something related to your amd64 system?

Now i'm trying with a new virtual machine on Vmware.
My new pc is coming from amazon. Then I can try on a real machine.
Thanks.
regards.

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

More
30 Oct 2014 21:00 #52585 by ArcEye

libncurses5:amd64 install
libncurses5-dev install
libncursesw5:amd64 install

Maybe your build has inside something related to your amd64 system?


Don't understand that, the quote was from your installed packages, not mine

The package list I gave you was platform agnostic, it will download the version of the package which fits your platform.

If I had realised you were trying to build using VMWare from a windoze machine, I would have given up a long time ago.

Just install the debian.hybrid.iso on a real computer and build on that computer.
It is quite straight forward

regards

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

More
31 Oct 2014 18:21 #52616 by ww34ww34
Hi.
Sorry. I just try with virtual machines for test on varius environnement.
But now i do all the process on a real machine.
Same issue.
/usr/src/RTAI$ sudo make menuconfig
/bin/sh: 0: Can't open /base/config/kconfig/lxdialog/check-lxdialog.sh
/bin/sh: 0: Can't open /base/config/kconfig/check.sh
/bin/sh: 0: Can't open /base/config/kconfig/lxdialog/check-lxdialog.sh
/bin/sh: 0: Can't open /base/config/kconfig/lxdialog/check-lxdialog.sh
make[1]: *** [dochecklxdialog] Error 127
make: *** [menuconfig] Error 2

I attached the history log file from installation until now.
thanks.
regards
Attachments:

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

More
01 Nov 2014 00:01 #52626 by ArcEye
Hi

Having seen the log, I think the problem is that you have switched from building as root, to building as a user with sudo.

The RTAI dir is owned by root, so there is probably some foul up going on there

Just revert back to the repo and fetch your own copy instead of using mine

git clone github.com/SebKuzminsky/rtai/ /usr/src/RTAI
cd /usr/src/rtai
git checkout old-3.9-debs


That hopefully will solve it

regards

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

More
01 Nov 2014 01:03 #52631 by ww34ww34
I solved this problem with
$ sudo -i 
 ~ # cd /usr/src/linux 
 # make menuconfig

Now I'm going foreward. I'll keep you updated.
Thanks.
regards.

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

More
08 Nov 2014 18:22 #52939 by ww34ww34
Ok. I've done.
I try this script on two virtual machine (fresh and linuxcnc.hybrid.iso) and with little modification it work and also i definitely try on a real machine all work.
I leave here the code that worked for me for anyone we'll be so crazy to compile all from 0...like me :laugh:
sudo apt-get install gedit git-core libncurses5 libncurses5-dev  dh-autoreconf libboost-python1.49-dev libboost-python1.49.0 build-essential debhelper kernel-package libpth-dev libgtk2.0-dev tcl8.5-dev tk8.5-dev bwidget python-old-doctools python-tk python-dev libglu1-mesa-dev libgtk2.0-dev libgnomeprintui2.2-dev libncurses5-dev libxaw7-dev gettext libreadline-gplv2-dev lyx texlive-extra-utils imagemagick texinfo groff libmodbus-dev libudev-dev libmodbus-dev libboost-python-dev libboost-serialization-dev libboost-thread-dev libtk-img automake autoconf libtool libusb-dev automake1.11 libtool python-setuptools libusb-1.0-0-dev

mkdir ArcEye-dev
git clone https://github.com/ArcEye/3.4.55-rtai ArcEye-dev

sudo cp -Rv ArcEye-dev/linux-3.4.55 /usr/src/linux-3.4.55
sudo ln -sfv  /usr/src/linux-3.4.55 /usr/src/linux
sudo cp -Rv ArcEye-dev/.config /usr/src/linux/.config
sudo cp ArcEye-dev/hal-linux-3.4.55-x86-1.patch /usr/src/
sudo cp -Rv ArcEye-dev/.config /usr/src/linux/.config

cd /usr/src/linux/ 
sudo patch -p1 < ../hal-linux-3.4.55-x86-1.patch
sed -i s/CONFIG_RTS5139=m/CONFIG_RTS5139=n/ .config 

sudo -i
cd /usr/src/linux/ 
make clean
make menuconfig
make -j$(cat /proc/cpuinfo | grep processor | wc -l)
make modules_install install
make install
/sbin/reboot

git clone https://github.com/SebKuzminsky/rtai/ /usr/src/RTAI
cd /usr/src/RTAI
git checkout old-3.9-debs
./autogen.sh
./configure 
make menuconfig
make
make install 
/sbin/reboot

cd /usr/src 
git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc-dev
cd /usr/src/linuxcnc-dev/src 
./autogen.sh 
./configure
make
make setuid 
cd ../ 
. ./scripts/rip-enviroment

Thanks ArcEye. Great work.

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

More
08 Nov 2014 19:30 #52940 by ArcEye
Well done, now you just have to see if Atom optimisation actually improves the latency etc.

You have earned your membership to the club for people stupid enough to build their own kernels B)

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

Time to create page: 0.141 seconds
Powered by Kunena Forum