[Haret-devel] kernel size > 5MB
Lukas Gorris
lukas.gorris at googlemail.com
Sat May 1 16:09:15 CEST 2010
Hello,
recently we added a new testing branch for the htc leo kernel. It has
lots of debugging stuff and the resulting Image is > 5MB. (We use non
gzipped Image because zImage will crash the qsd8250 kernel). This is
overwritten by initrd. With the appended patch applied (thanks to
Martijn aka NetRipper) there is enough room for the kernel. There are
two questions:
1) Is it useful to implement such a 'big kerne' patch?
2) If so, how should it be done? NetRipper proposed to create an
environment variable for the initrd offset.
diff --git a/src/linboot.cpp b/src/linboot.cpp
index 3c00b81..8c13c79 100644
--- a/src/linboot.cpp
+++ b/src/linboot.cpp
@@ -93,7 +93,7 @@ REG_VAR_INT(0, "KERNEL_OFFSET", kernelOffset,
"Kernel text offset delta value")
// Recommended kernel placement = RAM start + kernelOffset + 32K
#define PHYSOFFSET_KERNEL 0x8000
// Initrd will be put at the address of kernel + 5MB
-#define PHYSOFFSET_INITRD (PHYSOFFSET_KERNEL + 0x500000)
+#define PHYSOFFSET_INITRD (PHYSOFFSET_KERNEL + 0xA00000)
// Maximum size of the tags structure.
#define TAGSIZE (PAGE_SIZE - 0x100)
Lukas
More information about the Haret-devel
mailing list