bzImage kernels > 1M in size

Riley Williams (rhw@MemAlpha.CX)
Thu, 14 Oct 1999 17:00:33 +0100 (GMT)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--1421910094-1594571337-939916833=:5189
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi there.

Enclosed is a patch that provides the first stage of the procedure
required to successfully compile kernels with bzImage where the
compressed kernel image is greater than 1M in size. However, one
should note that this is only the first stage of the relevant
procedure.

This stage implements the relevant tweaks to build.c to allow suchlike
kernels to be built, and causes the warning that suchlike kernels
currently can not be booted from the in-built boot loader to be
issued, but does not prevent the build procedure from completing.

It also implements the necessary changes to the parameters table at
the end of bootsect.S ready for the tweaks to the boot sector to allow
it to boot suchlike kernels, and correctly specifies the maximum size
of the bzImage format kernel image as being 15 Megabytes, which is the
limit imposed by the BIOS routine used to load suchlike kernels on the
i386 architecture.

I had done a lot more work on this patch, but lost the results with a
CPU failure last week that killed my hard disk in the process. I am
therefore reworking this from scratch.

Best wishes from Riley.

PS: The kernel versions page is now back online at the URL below.

+----------------------------------------------------------------------+
| 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. |
+----------------------------------------------------------------------+
* http://www.memalpha.cx/Linux/Kernel/

--1421910094-1594571337-939916833=:5189
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="big-2.2.12.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.10.9910141700330.5189@ps.cus.umist.ac.uk>
Content-Description:
Content-Disposition: attachment; filename="big-2.2.12.diff"

LS0tIGxpbnV4LTIuMi4xMi9hcmNoL2kzODYvYm9vdC9ib290c2VjdC5TfglX
ZWQgSnVuIDI0IDIyOjMwOjA4IDE5OTgNCisrKyBsaW51eC0yLjIuMTIvYXJj
aC9pMzg2L2Jvb3QvYm9vdHNlY3QuUwlUaHUgT2N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ciBib290XG4iDQorCQkJ
CQkJIiAgICAgICAgIGxvYWRlciBpbnN0ZWFkLCBvciBtYWtlIG1vcmUgdXNl
IG9mIG1vZHVsZXMuXG4iKTsNCisJCQl9DQorCQl9DQorCX0gZWxzZSB7DQor
CQlpZiAoc3lzX3NpemUgPiBERUZfU1lTU0laRSkNCisJCQlkaWUoIlN5c3Rl
bSBpcyB0b28gYmlnIChNYXggJXUga2IpLiBUcnkgdXNpbmcgYnpJbWFnZSBv
ciBtb2R1bGVzLiIsDQorCQkJCURFRl9TWVNTSVpFID4+IDYpOw0KKwl9DQog
CXdoaWxlIChzeiA+IDApIHsNCiAJCWludCBsLCBuOw0KIA0KQEAgLTE5OSw1
ICsyMTQsNiBAQA0KIAlpZiAod3JpdGUoMSwgYnVmLCAyKSAhPSAyKQ0KIAkJ
ZGllKCJXcml0ZSBvZiBpbWFnZSBsZW5ndGggZmFpbGVkIik7DQogDQotCXJl
dHVybiAwOwkJCQkJICAgIC8qIEV2ZXJ5dGhpbmcgaXMgT0sgKi8NCisJZnBy
aW50ZihzdGRlcnIsICJCdWlsZCBjb21wbGV0ZS5cbiIpOwkJICAgIC8qIEV2
ZXJ5dGhpbmcgaXMgT0sgKi8NCisJcmV0dXJuIDA7DQogfQ0K
--1421910094-1594571337-939916833=:5189--

-
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/