* [gentoo-dev] Genkernel hacking
@ 2003-09-30 8:31 Robin H. Johnson
2003-09-30 16:16 ` Chris Gianelloni
2003-10-09 9:31 ` Robin H. Johnson
0 siblings, 2 replies; 8+ messages in thread
From: Robin H. Johnson @ 2003-09-30 8:31 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1992 bytes --]
Hi Guys,
While wanting to build a bunch of kernels to test out in a mostly
automated fashion, I hacked up some improvements to genkernel for the
task.
I've put up the modified version here.
http://www.orbis-terrarum.net/~robbat2/genkernel
A diff against the current genkernel installed by the ebuild is almost
the size of the existing program, so I decided posting just the modified
program was probably more effective.
Change listing:
- Help page!
- Use getopt for option handling (all options now have long and short
versions)
- Specify which kernel version you want to build
- Specify where to find the kernel sources to build (for those of us
that build on ramdisks ;-)
- options to call packaging and bootsplash stuff (the base functionality
was there before, but hidden).
- Fixed packaging code some to work better.
- "--skip-mrproper" to skip mrproper when you only want to make a few
tweaks to the kernel and not rebuild all of it.
Example usage:
I have my custom modified kernel source for linux-2.4.22-ac4 in
/tmp/ramdisk/linux.custom
EXTRAVERSION in the makefile is -ac4+robbat2
To build it:
genkernel -d /tmp/ramdisk/linux.custom --kernel-version 2.4.22-ac4+robbat2
(I already have a customized config in /etc/kernels/config-2.4.22-ac4+robbat2)
now I forgot something and it doesn't build right
genkernel --kernel-directory /tmp/ramdisk/linux.custom -k 2.4.22-ac4+robbat2 --config
now to continue building:
genkernel -d /tmp/ramdisk/linux.custom -k 2.4.22-ac4+robbat2 -s
I haven't tested the bootsplash functionality, as some of that code
didn't make any sense. Appending to a raw initrd image and then not
compressing it???
Hopefully somebody will find these changes useful in the meantime.
--
Robin Hugh Johnson
E-Mail : robbat2@orbis-terrarum.net
Home Page : http://www.orbis-terrarum.net/?l=people.robbat2
ICQ# : 30269588 or 41961639
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] Genkernel hacking
2003-09-30 8:31 [gentoo-dev] Genkernel hacking Robin H. Johnson
@ 2003-09-30 16:16 ` Chris Gianelloni
2003-10-09 9:31 ` Robin H. Johnson
1 sibling, 0 replies; 8+ messages in thread
From: Chris Gianelloni @ 2003-09-30 16:16 UTC (permalink / raw
To: Robin H. Johnson; +Cc: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 405 bytes --]
On Tue, 2003-09-30 at 04:31, Robin H. Johnson wrote:
> I haven't tested the bootsplash functionality, as some of that code
> didn't make any sense. Appending to a raw initrd image and then not
> compressing it???
Bootsplash works by appending a uncompressed JPG to the already
compressed initrd image.
--
Chris Gianelloni
Developer, Gentoo Linux
Games Team
Is your power animal a pengiun?
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] Genkernel hacking
2003-09-30 8:31 [gentoo-dev] Genkernel hacking Robin H. Johnson
2003-09-30 16:16 ` Chris Gianelloni
@ 2003-10-09 9:31 ` Robin H. Johnson
2003-10-09 10:07 ` Chris Gianelloni
1 sibling, 1 reply; 8+ messages in thread
From: Robin H. Johnson @ 2003-10-09 9:31 UTC (permalink / raw
To: gentoo-dev; +Cc: livewire
[-- Attachment #1: Type: text/plain, Size: 780 bytes --]
Latest version of my modified genkernel released, with all the
modifications that were added to the mainstream 1.9 added to my modified
version as well.
I also suspect a bug in the bootsplash code of the mainstream 1.9, where
the bootsplash image is not added to the correct location (initrd
instead of initrd.gz).
On Tue, Sep 30, 2003 at 01:31:58AM -0700, Robin H. Johnson wrote:
> I've put up the modified version here.
> http://www.orbis-terrarum.net/~robbat2/genkernel
http://www.orbis-terrarum.net/%7Erobbat2/genkernel-1.9-robbat2
--
Robin Hugh Johnson
E-Mail : robbat2@orbis-terrarum.net
Home Page : http://www.orbis-terrarum.net/?l=people.robbat2
ICQ# : 30269588 or 41961639
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] Genkernel hacking
2003-10-09 9:31 ` Robin H. Johnson
@ 2003-10-09 10:07 ` Chris Gianelloni
2003-10-09 14:17 ` Robin H. Johnson
0 siblings, 1 reply; 8+ messages in thread
From: Chris Gianelloni @ 2003-10-09 10:07 UTC (permalink / raw
To: Robin H. Johnson; +Cc: gentoo-dev, livewire
[-- Attachment #1: Type: text/plain, Size: 863 bytes --]
On Thu, 2003-10-09 at 05:31, Robin H. Johnson wrote:
> Latest version of my modified genkernel released, with all the
> modifications that were added to the mainstream 1.9 added to my modified
> version as well.
>
> I also suspect a bug in the bootsplash code of the mainstream 1.9, where
> the bootsplash image is not added to the correct location (initrd
> instead of initrd.gz).
Actually, the bootsplash image *must* be appended to the end of the
initrd uncompressed, so it has to go onto the initrd.gz not initrd.
>
> On Tue, Sep 30, 2003 at 01:31:58AM -0700, Robin H. Johnson wrote:
> > I've put up the modified version here.
> > http://www.orbis-terrarum.net/~robbat2/genkernel
> http://www.orbis-terrarum.net/%7Erobbat2/genkernel-1.9-robbat2
--
Chris Gianelloni
Developer, Gentoo Linux
Games Team
Is your power animal a penguin?
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] Genkernel hacking
2003-10-09 10:07 ` Chris Gianelloni
@ 2003-10-09 14:17 ` Robin H. Johnson
2003-10-09 21:34 ` Doug Weimer
2003-10-10 0:06 ` Bob Johnson
0 siblings, 2 replies; 8+ messages in thread
From: Robin H. Johnson @ 2003-10-09 14:17 UTC (permalink / raw
To: Chris Gianelloni; +Cc: Robin H. Johnson, gentoo-dev, livewire
[-- Attachment #1: Type: text/plain, Size: 1031 bytes --]
On Thu, Oct 09, 2003 at 06:07:23AM -0400, Chris Gianelloni wrote:
> > I also suspect a bug in the bootsplash code of the mainstream 1.9, where
> > the bootsplash image is not added to the correct location (initrd
> > instead of initrd.gz).
> Actually, the bootsplash image *must* be appended to the end of the
> initrd uncompressed, so it has to go onto the initrd.gz not initrd.
Thanks for that bit, althougth it still means there is a bug :-).
The bootsplash image is added to ${TEMP}/initrd with
'cat ${BOOT_SPLASH_INITRD} >> ${TEMP}/initrd'
However, at that point, ${TEMP}/initrd doesn't exist anymore, because of
'gzip -f -9 ${TEMP}/initrd' that runs shortly before it, and the code
after adding bootsplash only references ${TEMP}/initrd.gz and not
${TEMP}/initrd ever again.
--
Robin Hugh Johnson
E-Mail : robbat2@orbis-terrarum.net
Home Page : http://www.orbis-terrarum.net/?l=people.robbat2
ICQ# : 30269588 or 41961639
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] Genkernel hacking
2003-10-09 14:17 ` Robin H. Johnson
@ 2003-10-09 21:34 ` Doug Weimer
2003-10-10 0:04 ` Bob Johnson
2003-10-10 0:06 ` Bob Johnson
1 sibling, 1 reply; 8+ messages in thread
From: Doug Weimer @ 2003-10-09 21:34 UTC (permalink / raw
To: gentoo-dev
On Thu, 2003-10-09 at 07:17, Robin H. Johnson wrote:
> The bootsplash image is added to ${TEMP}/initrd with
> 'cat ${BOOT_SPLASH_INITRD} >> ${TEMP}/initrd'
>
> However, at that point, ${TEMP}/initrd doesn't exist anymore, because of
> 'gzip -f -9 ${TEMP}/initrd' that runs shortly before it, and the code
> after adding bootsplash only references ${TEMP}/initrd.gz and not
> ${TEMP}/initrd ever again.
It appears that the initrd image with the bootsplash isn't gzip'd at
all. Unless I'm miss reading the code, gzip is only ran if the
bootsplash isn't used:
(from genkernel-1.8)
if [ $BOOTSPLASH = "yes" ]
then
ebegin "Adding Bootsplash Initrd"
cat ${BOOT_SPLASH_INITRD} >> ${TEMP}/initrd || die
cp -f ${TEMP}/initrd /boot/initrd-${KV}
eend
else
gzip -f -9 ${TEMP}/initrd
mv -f ${TEMP}/initrd.gz /boot/initrd-${KV}
eend
fi
Notice the else before 'gzip ...', either way the result ends up in
initrd-${KV} which is used in buildpkg().
Doug
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] Genkernel hacking
2003-10-09 21:34 ` Doug Weimer
@ 2003-10-10 0:04 ` Bob Johnson
0 siblings, 0 replies; 8+ messages in thread
From: Bob Johnson @ 2003-10-10 0:04 UTC (permalink / raw
To: Doug Weimer, gentoo-dev
Look at version 1.9
On Thursday 09 October 2003 04:34 pm, Doug Weimer wrote:
> mv -f ${TEMP}/initrd.gz /boot/initrd-${KV}
> eend
> fi
>
> Notice the else before 'gzip ...', either way the result ends up in
> initrd-${KV} which is used in buildpkg().
>
> Doug
>
>
> --
> gentoo-dev@gentoo.org mailing list
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] Genkernel hacking
2003-10-09 14:17 ` Robin H. Johnson
2003-10-09 21:34 ` Doug Weimer
@ 2003-10-10 0:06 ` Bob Johnson
1 sibling, 0 replies; 8+ messages in thread
From: Bob Johnson @ 2003-10-10 0:06 UTC (permalink / raw
To: Robin H. Johnson, Chris Gianelloni; +Cc: Robin H. Johnson, gentoo-dev
Fixed locally.
cat ${BOOT_SPLASH_INITRD} >> ${TEMP}/initrd.gz || die
Bob
>
> Thanks for that bit, althougth it still means there is a bug :-).
>
> The bootsplash image is added to ${TEMP}/initrd with
> 'cat ${BOOT_SPLASH_INITRD} >> ${TEMP}/initrd'
>
> However, at that point, ${TEMP}/initrd doesn't exist anymore, because of
> 'gzip -f -9 ${TEMP}/initrd' that runs shortly before it, and the code
> after adding bootsplash only references ${TEMP}/initrd.gz and not
> ${TEMP}/initrd ever again.
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-10-10 0:06 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-30 8:31 [gentoo-dev] Genkernel hacking Robin H. Johnson
2003-09-30 16:16 ` Chris Gianelloni
2003-10-09 9:31 ` Robin H. Johnson
2003-10-09 10:07 ` Chris Gianelloni
2003-10-09 14:17 ` Robin H. Johnson
2003-10-09 21:34 ` Doug Weimer
2003-10-10 0:04 ` Bob Johnson
2003-10-10 0:06 ` Bob Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox