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

More
16 Feb 2018 21:52 #106046 by shortcircuit48
I wet back a step and tried hamish@hamish-Presario-CQ57-Notebook-PC ~ $ cat patch-4.8.11-rt7.patch | patch -p1 and got
hamish@hamish-Presario-CQ57-Notebook-PC ~ $ cat patch-4.8.11-rt7.patch | patch -p1
The next patch would create the file Documentation/hwlat_detector.txt,
which already exists! Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 75
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|diff --git a/Documentation/sysrq.txt b/Documentation/sysrq.txt
|index 3a3b30ac2a75..9e0745cafbd8 100644
|--- a/Documentation/sysrq.txt
|+++ b/Documentation/sysrq.txt
File to patch:
Skip this patch? [y] y
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file Documentation/trace/histograms.txt,
which already exists! Assume -R? [n]

Endlessly on

??????????????????
Is it me or what?

Is






hamish@hamish-Presario-CQ57-Notebook-PC ~/Downloads $ cat patch-4.8.11-rt7.patch | patch -p1
The next patch would create the file Documentation/hwlat_detector.txt,
which already exists! Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 75

Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|diff --git a/Documentation/sysrq.txt b/Documentation/sysrq.txt
|index 3a3b30ac2a75..9e0745cafbd8 100644
|--- a/Documentation/sysrq.txt
|+++ b/Documentation/sysrq.txt
File to patch:
Skip this patch? [y] y
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file Documentation/trace/histograms.txt,
which already exists! Assume -R? [n]
went back and tried

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

More
17 Feb 2018 16:17 #106077 by shortcircuit48
I have started from scratch on a clean sheet. I am now on Mint 18.3 Sylvia, Cinnamon 64 bit with nothing other than defaults loaded.
There appeared to be an error/glitch in one of the stages and are there any more?

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

More
17 Feb 2018 19:10 #106088 by shortcircuit48
I changed the first line of the Kernel build wget ftp://ftp.kernel.org/pub/linux/kernel/v4.x/linux-4.8.11.tar.xz "

to "wget www.kernel.org/pub/linux/kernel/v4.x/linux-4.8.11.tar.xz"

All appeared to go ok but I am static at "make config". A config file appeared I have saved but not sure where to go now???? I think it may be patience

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

More
17 Feb 2018 19:23 #106093 by shortcircuit48
Terminal says "configuration written to .config"

I tried to close the terminal but warning appeared of process in progress.

Hope my bumbling along will help others

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

More
17 Feb 2018 19:52 - 17 Feb 2018 19:58 #106094 by cncnoob1979
Hey!

Look at this video it goes step by step to building the Linux kernel.

Go step for step in the guide. Have you tried reading Post 1? I give a lot of explanations in that one.

Basically you have to configure the kernel then tell it to build. In post 2 I'm showing you how to make a Debian package so you can install it easy.

You may have to do a bit of research to get some of the basics of Linux. The link I posted was imo a good video.



You have to;
download kernel source
Download the real time patch (same version as kernel) 4.8.11-xx ..
Patch the kernel with the patch
Configure the kernel
Build the kernel
Install the kernel deb file

Reboot choose rt kernel.

Download linuxcnc
Configure linuxcnc
Download / install anything it Requires
Build linuxcnc
Install linuxcnc deb file.
Last edit: 17 Feb 2018 19:58 by cncnoob1979.

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

More
17 Feb 2018 20:32 - 17 Feb 2018 20:37 #106095 by shortcircuit48
I am very much a novice and decided I was going to succeed. Yes I have read post #1 and followed it line by line but not being that experience did not appreciate the errors in the Kernel build instructions. Since amended them, as logged, have progressed. Came out of the make config file and amended the make -j4 jeb-pkg, to just -j4, as original would not run' as suggested in the helpful video. At moment it is churning away. Not sure how long this will take????

If there are 4000+ files it could take some time. The instructions are preceded with "CC". ???
Last edit: 17 Feb 2018 20:37 by shortcircuit48. Reason: more info

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

More
17 Feb 2018 23:01 #106107 by shortcircuit48
I am at the last hurdle
hamish@hamish-Presario-CQ57-Notebook-PC ~ $ . scripts/rip-environment
bash: scripts/rip-environment: No such file or directory

Where do I run this?

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

More
18 Feb 2018 02:08 #106109 by rodw
try running it from the ~/linuxcnc-dev folder (assuming that's where you installed the source code)

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

More
18 Feb 2018 09:32 #106116 by shortcircuit48
I have tried this
hamish@hamish-Presario-CQ57-Notebook-PC ~ $ cd /home/hamish/linuxcnc-dev
hamish@hamish-Presario-CQ57-Notebook-PC ~/linuxcnc-dev $ ./linuxcncbash: ./linuxcnc: No such file or directory
hamish@hamish-Presario-CQ57-Notebook-PC ~/linuxcnc-dev $

Please excuse my constant cries for help. I am past my three score and ten so the brain is slowing down a bit. I appreciate the help being given and apologise but hope others can learn.

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

More
18 Feb 2018 10:49 #106122 by rodw
You may have a syntax error. Watch the first dot.
$ . ../scripts/rip-environment 
$ linuxcnc
(Stolen from www.wiki.eusurplus.com/index.php?title=LinuxCNC_Run_In_Place )
I suggest you find the scripts folder first. It should be under linuxcnc-dev folder

The example above might have been designed to run from the ~/linuxcnc-dev/src folder

Spare a thought for people like me that had to work this out before cncnoob wrote his tutorial.
The following user(s) said Thank You: shortcircuit48

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

Time to create page: 0.115 seconds
Powered by Kunena Forum