LinuxCNC Uspace

More
7 years 4 months ago - 7 years 4 months ago #136737 by bevins
Replied by bevins on topic LinuxCNC Uspace

AgentWD40 wrote:

bevins wrote: Linuxmint 19.1 when compiling now compiles and installs all modules and keeps symbols making the image way too big so it cant boot.

You have to strip the symbols and compile it so just the modules required. check the image compared to the original, it will probably be like 10 times bigger.

I tried all kinds of stuff to fix it and couldn't get it to compile small enough.

So I installed debian 9. it has preempt RT kernel in the repo.


I'm curious, did you try to install the preempt kernel from the debian repo into your mint installation? I gather that was what andypugh was suggesting here "Does Mint find any such realtime kernels in the package manager? If not then you could try adding the debian 9 repositories to see what you can find."


I didn't try that, I needed to get a system up and running. I may try adding debian repo to linux mint, I'm not sure how well that will work though.
Last edit: 7 years 4 months ago by bevins.

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

More
7 years 4 months ago #136738 by bevins
Replied by bevins on topic LinuxCNC Uspace
This should strip the symbols and create an imagel small enough to be usable.
Code:
SHW@SHW:/tmp# cd /lib/modules/<new_kernel> SHW@SHW:/tmp# find . -name *.ko -exec strip --strip-unneeded {} +

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

More
7 years 4 months ago #136740 by andypugh
Replied by andypugh on topic LinuxCNC Uspace
It seems like this should be a config option. "Enable loadable Module Support" or similar?

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

More
7 years 4 months ago #136746 by bevins
Replied by bevins on topic LinuxCNC Uspace

andypugh wrote: It seems like this should be a config option. "Enable loadable Module Support" or similar?


Its loading the modules. its loading all the modules and all the symbols for developers. This is my take on it.

When I have a few hours, I will try stripping them with that command and see if it works.

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

More
7 years 4 months ago #136762 by PCW
Replied by PCW on topic LinuxCNC Uspace
Newer kernels that I have built have huge initrd images (nearly 400 mb)
but the zipped kernel size is still about 8M max which does not
seem to cause an issue. Is it possible that you have a separate /boot partition
that is out of space?

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

More
7 years 4 months ago - 7 years 4 months ago #136766 by AgentWD40
Replied by AgentWD40 on topic LinuxCNC Uspace

PCW wrote: Newer kernels that I have built have huge initrd images (nearly 400 mb)
but the zipped kernel size is still about 8M max which does not
seem to cause an issue. Is it possible that you have a separate /boot partition
that is out of space?


I manually configured my partitions at setup but didn't create a separate boot partition. /boot lives on the main partition.

I've just installed Mint 19.1 on a virtual machine, added the debian stretch repo, and installed debian's rt kernel. After some finangling in the grub customizer I've successfully loaded mint 19.1 with the 4.9.0-9-rt-amd64 kernel as confimred by uname -a.

Of course it's untested, just wanted to let you all know.

Is the 4.9 kernel suitable? John's instructions are for the 4.19 kernel.

And to answer a previous question from andy, the default kernel right now on mint 19.1 appears to be 4.15. Rather, that's what's included on a fresh install. I hadn't bothered with apt-get upgrade yet.
Last edit: 7 years 4 months ago by AgentWD40.

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

Time to create page: 0.405 seconds
Powered by Kunena Forum