Re: Kernels > 1M

Riley Williams (rhw@MemAlpha.CX)
Wed, 25 Aug 1999 09:19:35 +0100 (GMT)


Hi Andrea.

>> I have to admit that the need to generate a kernel between 1.1M
>> and 1.3M in size is proving difficult...

> Add a large global variable to the .data segment (you need to
> initialize it). If you want to tune the size of the kernel
> between 1.1 and 1.3m then calc the size of your current image
> and add to it the delta.

> main()
> {
> static int foo[1024*1204] = { 1, };
> }

> the above proggy for example would generate a 4mbyte ELF executable.

> You can add such a variable where you want (just choose your
> preferred .c source ;).

Many thanks for the suggestion. I have to admit that I hadnae thought
of that method, which is unusual for me...

However, I've found a set of config options (with the 2.2.10 kernel)
that produces a 1.3M bzImage file, and am using that as my testbed. So
far, my tweaked source isn't booting, so the patch isn't ready for
prime time yet, but it will be soon...

Best wishes from Riley.

+----------------------------------------------------------------------+
| There is something frustrating about the quality and speed of Linux |
| development, ie., the quality is too high and the speed is too high, |
| in other words, I can implement this XXXX feature, but I bet someone |
| else has already done so and is just about to release their patch. |
+----------------------------------------------------------------------+
* ftp://ftp.MemAlpha.cx/pub/rhw/Linux
* http://www.MemAlpha.cx/Linux/

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