Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: cuppie on September 19, 2012, 01:51:07 PM

Title: Custom kernel compress module
Post by: cuppie on September 19, 2012, 01:51:07 PM
Hi,

I've been looking on this forum , and also asked google, but can't find a solution.
When compiling a custom kernel , I can't get the modules compressed.
So I wonder how it's done.

btw I'm compiling the same current kernel (3.0.21), and also the same config.
With only the remove of a reboot quirk in reboot.c , for the compulab fitpc2
This Quirk doesn't work anymore in 3.x kernels , and has to be removed.
I've already tested with uncompressed modules , and this is working fine.

Kind regards,

Cuppie
Title: Re: Custom kernel compress module
Post by: roberts on September 19, 2012, 02:00:36 PM
Manually via a loop.
Title: Re: Custom kernel compress module
Post by: cuppie on September 19, 2012, 02:08:54 PM
Thanks for the quick reply,

So it's done via some kind of script, is it possible to get it somehow?

On the other hand , I'm thinking about the need of compiling all modules again.
I'm using the same kernel.
I'm just testing the custom with the original compressed modules , and so far it seems to work fine.

Cuppie
Title: Re: Custom kernel compress module
Post by: tinypoodle on September 19, 2012, 02:21:16 PM
An alternative might be to use GNU gzip with the "-r" option, i.e.:
"gzip -9r *ko"
Title: Re: Custom kernel compress module
Post by: cuppie on September 19, 2012, 03:35:17 PM
Thanks!
Title: Re: Custom kernel compress module
Post by: curaga on September 20, 2012, 12:51:08 PM
A change like that should be compatible with the current modules, yes.

If this is still an issue with the latest Linus' kernel, please report it to kernel.org too.
Title: Re: Custom kernel compress module
Post by: Scampada on August 10, 2015, 04:54:19 AM
Well... it's okay to compress all modules manually, but what do I do with modules.dep? Do I have to edit it manually to append '.gz' substring to each module name? Hm...
Title: Re: Custom kernel compress module
Post by: bmarkus on August 10, 2015, 04:58:49 AM
Use depmod command