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

More
15 Feb 2018 18:38 #105987 by shortcircuit48
Have I extracted incorrectly ? this is /home/hamish/
/home/hamish/Desktop
/home/hamish/Documentation
/home/hamish/Documents
/home/hamish/Downloads
/home/hamish/Music
/home/hamish/Pictures
/home/hamish/Public
/home/hamish/Templates
/home/hamish/Videos
/home/hamish/linux-4.8.11
/home/hamish/patch-4.8.11-rt7.patch
/home/hamish/patch-4.8.11-rt7.patch.gz

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

More
16 Feb 2018 15:00 #106019 by cncnoob1979
Did you get past this?

The steps are basically;

1) download the kernel
2) apply the kernel patch
3) build the kernel
4) install the kernel

reboot

5) download linuxcnc
6) install linuxcnc

Is this a laptop btw?

Code excerpt from the tutorial;
wget ftp://ftp.kernel.org/pub/linux/kernel/v4.x/linux-4.8.11.tar.xz 
wget https://www.kernel.org/pub/linux/kernel/projects/rt/4.8/older/patch-4.8.11-rt7.patch.gz
tar -xpf linux-4.8.11.tar.xz
gunzip patch-4.8.11-rt7.patch.gz
cp patch-4.8.11-rt7.patch linux-4.8.11
cd linux-4.8.11
cat patch-4.8.11-rt7.patch | patch -p1
make xconfig
make -j4 deb-pkg

This is your error;
hamish@hamish-Presario-CQ57-Notebook-PC ~ $ tar -xpf linux-4.8.11.tar.xz
 tar: linux-4.8.11.tar.xz: Cannot open: No such file or directory
 tar: Error is not recoverable: exiting now
 hamish@hamish-Presario-CQ57-Notebook-PC ~ $ tar -xpf linux-4.8.11.tar.xz
 tar: linux-4.8.11.tar.xz: Cannot open: No such file or directory
 tar: Error is not recoverable: exiting now

This error means you are not in the folder that contains the downloaded files or a typo; hence the file does not exist.

where is the linux-4.8.11.tar.xz file located? This should be in the home folder as well. I can see the patch file; but not the actual kernel file linux-4.8.11.tar.xz

But It appears that you have a folder named linux-4.8.11;( if extracted this is where it would be located) but I don't see the source file linux-4.8.11.tar.xz
/home/hamish/linux-4.8.11

You appear to have downloaded the patch file and then executing the commands for the kernel file. I think you are out of sequence here and missed the kernel file download or its located inside of the /home/hamish/linux-4.8.11 folder.
wget  www.kernel.org/pub/linux/kernel/projects...-4.8.11-rt7.patch.gz 
 --2018-02-15 15:24:08--  www.kernel.org/pub/linux/kernel/projects...-4.8.11-rt7.patch.gz 
 Resolving  www.kernel.org ( www.kernel.org )... 147.75.205.195, 2604:1380:2000:f000::7
 Connecting to  www.kernel.org ( www.kernel.org )|147.75.205.195|:443... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 199355 (195K) [application/x-gzip]
 Saving to: ‘patch-4.8.11-rt7.patch.gz.4’

try this;
wget ftp://ftp.kernel.org/pub/linux/kernel/v4.x/linux-4.8.11.tar.xz
tar -xpf linux-4.8.11.tar.xz
Basic commands;


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

More
16 Feb 2018 15:51 #106022 by shortcircuit48
I am on a laptop
With the first line of the command I got "hamish@hamish-Presario-CQ57-Notebook-PC ~ $ wget ftp://ftp.kernel.org/pub/linux/kernel/v4.x/linux-4.8.11.tar.xz
--2018-02-16 15:42:21-- ftp://ftp.kernel.org/pub/linux/kernel/v4.x/linux-4.8.11.tar.xz
=> ‘linux-4.8.11.tar.xz’
Resolving ftp.kernel.org (ftp.kernel.org)... failed: Name or service not known.
wget: unable to resolve host address ‘ftp.kernel.org’
hamish@hamish-Presario-CQ57-Notebook-PC ~ $ "
I the went to the "kernell" centre and downloaded version 4.15.3.tar.xz, repeated the instruction but changing to 4.15 etc
My home/hamish/downloads/ looks like this /home/hamish/Downloads/arduino-1.8.5
/home/hamish/Downloads/Documentation
/home/hamish/Downloads/drivers
/home/hamish/Downloads/include
/home/hamish/Downloads/kernel
/home/hamish/Downloads/linux-4.15.3
/home/hamish/Downloads/arduino-1.8.5-linux64.tar.xz
/home/hamish/Downloads/ArduinoCreateAgent-1.1-linux-x64-installer.run
/home/hamish/Downloads/ArduinoCreateAgent-1.1-linux-x64-installer.tar.gz
/home/hamish/Downloads/inkscape-0.91.msi
/home/hamish/Downloads/linux-4.8.11
/home/hamish/Downloads/localversion-rt
/home/hamish/Downloads/patch-4.8.11-rt7.patch
/home/hamish/Downloads/patch-4.8.11-rt7.patch.gz
I did then try to get further on but ended in a circle not going anywher

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

More
16 Feb 2018 16:40 #106024 by PCW
You need to replace the ftp kernel fetch with http

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

More
16 Feb 2018 16:52 #106027 by shortcircuit48
At the moment I am extracting Linux-4.8.11.tar.xz and it seems to be taking a long time. I thought the ftp looked odd

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

More
16 Feb 2018 16:58 #106028 by PCW
kernel .org dropped ftp access about a year ago...

lwn.net/Articles/712896/
The following user(s) said Thank You: cncnoob1979

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

More
16 Feb 2018 17:10 #106030 by cncnoob1979
Thanks! PCW

I did not know that. Looks like the support died at the end of the year.

I tried to edit my tutorial to update this information but I can not edit my posts. Does anyone know if this is new or just a glitch?

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

More
16 Feb 2018 17:48 #106031 by shortcircuit48
My /home/hamish directory

/home/hamish/Arduino
/home/hamish/Desktop
/home/hamish/Documentation
/home/hamish/Documents
/home/hamish/Downloads
/home/hamish/linux-4.8.11
/home/hamish/Music
/home/hamish/Pictures
/home/hamish/Public
/home/hamish/Templates
/home/hamish/Videos
/home/hamish/patch-4.8.11-rt7.patch

Where now?

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

More
16 Feb 2018 18:41 #106036 by shortcircuit48
Plodded on and am at make -j8 with a lot going on in the terminal

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

More
16 Feb 2018 21:41 #106044 by shortcircuit48
Have not a clue where I am now. Pc has trundled away for 90+ minutes so good,eventually stops but nothing. Where do I go from here?

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

Time to create page: 0.169 seconds
Powered by Kunena Forum