Complete HOW-TO Linux Mint 18.1 32/64 RTAI or PREEMPT with RIP install or deb

More
9 years 6 months ago #91584 by tommylight
Copying an already compiled kernel and Linuxcnc to another computer and installing it works on Mint and Lubuntu.
Tested it yesterday on Lubuntu, did that on Mint several times before. Took about 50 minutes from start to finish.
Nice ! Saves a lot of time when working with a lot of computers. Have over 20 in the work shop.
Thank you very much, CncNoob.
The following user(s) said Thank You: cncnoob1979

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

More
9 years 6 months ago #91590 by probamo
I went well. Just to avoid any confusion, let me in short explain the approach.

Previously I tried to get linuxcnc in LM18.1 with RTAI kernel without success. LM18.1 was installed on my Thinkpad X60 laptop. Therefore, I tried compiling kernel 4.9.4 RT on my desktop computer running with Ubuntu 16.04 (the same base for LM18.1).

Compiling went well, therefore I did installation on it. In addition compiling of linuxcnc 2.8 passed well, hence I installed it accordingly. Since I did not check "Full Preemptable Kernel" I had a huge figures in Latency Test. Then I started again compiling kernel, this time corrected. In the mean time, on my laptop, I did compiling of linuxcnc 2.7.8.

As soon as files for kernel and linuxcnc 2.7 were made I restarted comps. By pressing down left Shift, entering GRUB loader, I was selecting the latest generic kernels. Once operating system were up, I removed previously installed RT and RTAI kernels. Then installed new made. In Ubuntu no problems found, and in LM18.1 no problems found even kernel files were created in Ubuntu platform. Great! Again comps restarted.

Entering GRUB loader I was not able to select RT kernel neither on desktop, nor laptop, simply they are no in listed kernels. Decided to start comps with the up most kernels, in Terminal, by typing "uname -r" and "uname -a" I found both comps are in 4.9.4 rt2 kernel. Then in laptop I installed linuxcnc 2.7.8 and was able to run sim and real machine (files created by stepconfig) without any issue. Knowing laptop is not good candidate for CNC operation, it would be used only as simulator to the "real world". Contrary, my desktop computer with linuxcnc 2.8 installed run without any issue in simulation. Reported message before I got, regarding parallel port missing is true, I have not any parallel port on motherboard, not even any place where I could plugin an external parallel port card. Therefore, desktop would be used as simulator only for linuxcnc 2.8.

Coming back to the listed kernels. Running "grub-customizer" in Terminal, still I cannot see RT kernels installed at any of comps. Why? I don't know.

The important is, kernel made in one platform, could be installed in the other. Linuxcnc compiled in one platform, could be installed in the other.

cncnoob, tommy, andy Once again thanks for nice instruction and support.
Dejan (probamo)
The following user(s) said Thank You: cncnoob1979

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

More
9 years 6 months ago - 9 years 6 months ago #91591 by cncnoob1979
Great Glad you have it working!

To update the listings - The kernel install should have updaed the initramfs listings. To do this manually please try this:

Code:
sudo update-initramfs -u -k all

This invokes the update script to "update" all available kernels on the system.

you could also try to update grub

Code:
sudo update-grub

Let me know how it goes please.

EDIT: How is your latency now?
Last edit: 9 years 6 months ago by cncnoob1979.

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

More
9 years 6 months ago #91594 by probamo
None of them brings any benefit to me. Still not listed kernel. Regrading latency:
- desktop starts at 25, easy going to 38, unstable goes to 110
- laptop start at 52, goes to 68, unstable goes to 305

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

More
9 years 6 months ago #91606 by tommylight
Dejane,
Do you have the docking station for X60? It has a parallel port on it. Had it working on a plasma cnc for over 2 years without a single problem, running ubuntu 10.04, latency wa under 15000.
Disable everything related to power saving, serial ports, infrared, modem, everthing you do not need. It improves latency very much on X and T series IBM.
Pozdrav.

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

More
9 years 6 months ago #91634 by bkt
@cncnoob1979 ... very thanks for your howto ... but these days I have responded to a user who seems to have encountered the same problems with ubuntu / mint and libmodbus .... I might say that I have not tested your guide and I do not know if you follow your steps will be the same but from what I read I think so.
Ubuntu / Mint have in their repositories an old version of libmodbus LCNC and installing a new rtai, libmodbus will be sought in the wrong directory, so many library functions will not be available and will give you halcompile error. To resolve I first installed the packages needed to the new LCNC, then I uninstalled libmodbus, I did the cleaning, I re-installed libmodbus downloading it from the official repository in the latest version. Then I used pkconfig and ldconfig. At this point I stopped having problems and I have used very well with Modbus libmodbus.

I believe that putting this warning (to delete the version in the repository and the pc libmodbus and instllare version of the official repositories) can avoid many of us in those approaches for the first time.

Sorry for my horrible english and thanks for your how to.
regards
Giorgio

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

Time to create page: 0.233 seconds
Powered by Kunena Forum