Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177541 - Compile genkernel with uclibc (and save 300 kB in initramfs)
Summary: Compile genkernel with uclibc (and save 300 kB in initramfs)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-07 19:26 UTC by Dick Marinus
Modified: 2007-11-17 02:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gen_initramfs.sh (gen_initramfs.sh.meeuw,18.68 KB, text/plain)
2007-05-07 19:26 UTC, Dick Marinus
Details
gen_compile.sh (gen_compile.sh.meeuw,29.74 KB, text/plain)
2007-05-07 19:27 UTC, Dick Marinus
Details
x86uc/busy-config (busy-config,15.48 KB, text/plain)
2007-05-07 19:27 UTC, Dick Marinus
Details
x86uc/config.sh (config.sh,470 bytes, text/plain)
2007-05-07 19:27 UTC, Dick Marinus
Details
gen_initramfs.sh.patch (gen_initramfs.sh.patch,799 bytes, patch)
2007-05-08 15:55 UTC, Dick Marinus
Details | Diff
gen_compile.sh.patch (gen_compile.sh.patch,2.07 KB, patch)
2007-05-08 15:56 UTC, Dick Marinus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dick Marinus 2007-05-07 19:26:09 UTC
Hi Folks,

I've created some fixes for genkernel so it can compile module-init-tools and busybox with uclibc. crossdev is required to create a uclibc toolchain.

The main advantage is a smaller initramfs.

Usage:

genkernel --arch-override=x86uc initrd
Comment 1 Dick Marinus 2007-05-07 19:26:44 UTC
Created attachment 118478 [details]
gen_initramfs.sh
Comment 2 Dick Marinus 2007-05-07 19:27:07 UTC
Created attachment 118480 [details]
gen_compile.sh
Comment 3 Dick Marinus 2007-05-07 19:27:40 UTC
Created attachment 118481 [details]
x86uc/busy-config
Comment 4 Dick Marinus 2007-05-07 19:27:56 UTC
Created attachment 118482 [details]
x86uc/config.sh
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2007-05-07 21:31:12 UTC
Please attach patches instead of full files.
Comment 6 Dick Marinus 2007-05-08 15:55:17 UTC
Created attachment 118563 [details, diff]
gen_initramfs.sh.patch
Comment 7 Dick Marinus 2007-05-08 15:56:20 UTC
Created attachment 118565 [details, diff]
gen_compile.sh.patch
Comment 8 Andrew Gaffney (RETIRED) gentoo-dev 2007-08-13 22:39:15 UTC
There are a few problems with this. First, your code is hardcoded for x86/i686. Second, uclibc doesn't currently work on all arches that genkernel works on (for example, ld.so for sparc is b0rked last time I checked). Third, the static insmod stuff is gone from genkernel SVN.
Comment 9 Andrew Gaffney (RETIRED) gentoo-dev 2007-11-17 02:55:52 UTC
The patches as provided are unusable (due to the hard-coding of i686 and part of the code they apply against no longer being in SVN). Your method also requires using a cross-toolchain to compile busybox against uclibc, which is an unacceptable requirement. There is no way any of this can go in.