Re: [update5] [PATCH] init: bzip2 or lzma -compressed kernels andinitrds

From: H. Peter Anvin
Date: Tue Sep 23 2008 - 16:08:19 EST


Alain Knaff wrote:
H. Peter Anvin wrote:
Just did so, and it broke my first test build.

arch/x86/boot/compressed/head_64.o: In function `relocated':
(.text+0x28): undefined reference to `_end'
make[3]: *** [arch/x86/boot/compressed/vmlinux] Error 1
make[2]: *** [arch/x86/boot/compressed/vmlinux] Error 2
make[1]: *** [bzImage] Error 2
make: *** [sub-make] Error 2

-hpa

Just leave the changes in head_64.S away; this was only about improved
memory management. It is not strictly needed, as the change in
/include/asm-x86/boot.h still makes sure that the heap is big enough,
even for bzip2


OK, this kind of underscores something I have been thinking already: this is a really large patch and should be broken down into a patchset. Presumably something like:

- Cleanups to inflate library code
- Use existing library code for initramfs
- Add bzip2 library code
- Add lzma library code
- Add support for bzip2/lzma initrd
- Add support for bzip2/lzma bzImage

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/