No suitable memory target error following gnipsel.com Mint Preempt Kernel Patch

More
6 years 11 months ago - 6 years 11 months ago #150979 by akb1212
I had this happen to me too.

In fact it happened first as I tried to install Mint 19.2, then I tried Lubuntu 19.04 and the same thing hppened.

And I can say I installed Mint 19.2 on a laptop first, with no problem.

I did search for a solution, and I did find one too:
On StackEchange
What you are saying about initird.img getting to big is exactly what happens. In my case it was the same as in the link, a 10 times as large file. Mine ended up at over 600 megabyte!
The instructions in the link are correct, but the commands needs to be applied to the image downloaded. Not in the locations shown in the thread, I tried that first, and that didn't work. But after trying it in the dir made in the process it worked!

So try:

Code:
find . -name *.ko -exec strip --strip-unneeded {} +

in the directory where you are making the RT kernel. The command is copy/paste from the thread, and should be applied exactly as this, with space before the + in the end.

I'm no Linux expert, so I can't say exactly at what stage of the process this should be done. I did it after first building the new kernel and trying to start it (and it failed). I had to boot in the non-RT version again to fix it.
So it if John Thornton (or someone with access to that site) could incorporate this in to those guides, with the correct details on when in the process to apply it, I think it might help others as well.

I also tried Wheezy, and that did work as expected. But seeing the interface compared to Mint made me go back to that HD and try some more.
I really do appreciate the opportunity to install LinuxCNC on a more modern and complete Linux version! The standard (Wheezy) version feels kind of..... simple, and also looks kind of old.
And now that we have a choice I'm happy! So thanks for the effort of making these guides. I would not be able to do this without them.
Last edit: 6 years 11 months ago by akb1212. Reason: Spelling

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

More
6 years 9 months ago #153921 by motal2004
So at what point did you in corporate the "find . -name *.ko -exec strip --strip-unneeded {} + " in the Johns tutorial? I'm getting the same error

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

More
6 years 9 months ago #153985 by akb1212
I just did it after it had failed. I don't have enough Linux knowledge to give more detailed instructions, so I can only hope the guys that made the guide are able to give you more details than what I gave in my first post.
I just implemented it as I described, and in accordance with the instructions in the links provided.

And I assume they need to know if more are experiencing this problem to know they need to include it in the instructions. Which you now confirm.

Sorry I'm not able to give you more details.

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

More
6 years 7 months ago - 6 years 7 months ago #159044 by SjCNC
I had the same problem, and found the solutions in this thread. There was a question of sequence, which is what I hope to contribute.

From: Gnipsel's Linux Mint 19.1 RT Kernel guide

Now build the kernel.
make


After make, I ran:
find . -name *.ko -exec strip --strip-unneeded {} +


Go take a nap or have a cup of coffee… then install the kernel.

[strike]sudo make modules_install[/strike]


instead of sudo make_moules install, I ran
sudo make INSTALL_MOD_STRIP=1 modules_install

sudo make install


Otherwise, I followed all beginning and end steps in that guide. The only other issue I encountered (deviation from the guide) was a few instances of:

Makefile:960: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"

Which I resolved by running

sudo apt-get install libelf-dev

before make. After all of this, 'uname -a' yields: Linux mint 4.19.1-rt3 #1 SMP PREEMPT RT Mon Mar 2 07:00:03 EST 2020 x86_64 x86_64 x86_64 GNU/Linux

As always, hope the info helps!

sJ[hr]
Last edit: 6 years 7 months ago by SjCNC.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum