WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Custom kernel compress module  (Read 4109 times)

Offline cuppie

  • Newbie
  • *
  • Posts: 7
Custom kernel compress module
« 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

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Custom kernel compress module
« Reply #1 on: September 19, 2012, 02:00:36 PM »
Manually via a loop.
10+ Years Contributing to Linux Open Source Projects.

Offline cuppie

  • Newbie
  • *
  • Posts: 7
Re: Custom kernel compress module
« Reply #2 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

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Custom kernel compress module
« Reply #3 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"
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline cuppie

  • Newbie
  • *
  • Posts: 7
Re: Custom kernel compress module
« Reply #4 on: September 19, 2012, 03:35:17 PM »
Thanks!

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Custom kernel compress module
« Reply #5 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.
The only barriers that can stop you are the ones you create yourself.

Offline Scampada

  • Full Member
  • ***
  • Posts: 164
Re: Custom kernel compress module
« Reply #6 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...
« Last Edit: August 10, 2015, 04:55:51 AM by Scampada »
The winning entries in UNIX users' hymns competition were 'What's the buzz, tell me what's happening' and 'Strange Thing Mystifying' songs from A.L.Webber's musical.

Tiny Core Linux. Like Gentoo, except Gentoo is easier.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Custom kernel compress module
« Reply #7 on: August 10, 2015, 04:58:49 AM »
Use depmod command
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."