Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 177541

Summary: Compile genkernel with uclibc (and save 300 kB in initramfs)
Product: Gentoo Hosted Projects Reporter: Dick Marinus <dick>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: betelgeuse
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: gen_initramfs.sh
gen_compile.sh
x86uc/busy-config
x86uc/config.sh
gen_initramfs.sh.patch
gen_compile.sh.patch

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.