Hello,
what is the maximum size a kernel can have for loading with grub? On Floppy, Harddisk (FAT32) and CDRom?
Sebihepp
Grub: Max size of kernel
-
- Member
- Posts: 194
- Joined: Tue Aug 26, 2008 11:24 am
- GitHub: https://github.com/sebihepp
Re: Grub: Max size of kernel
Hi,
Of course it's fairly common for beginners to have problems once their kernel reaches a certain size. This is because the multi-boot header needs to be within the first 8 KiB of the kernel; and beginners tend to forget to put the multi-boot header in it's own section to make sure it stays at the start of kernel (and doesn't shift out of the first 8 KiB as the kernel gets larger)...
Cheers,
Brendan
I doubt there is a maximum size. It would depend on the size of the disk (e.g. you can't put a 5 MiB kernel on a 1440 KiB floppy) and the amount of usable RAM in the computer; where "usable RAM" is contiguous RAM starting at 0x000100000 - anywhere from 1 MiB (if it's a very old computer with 2 MiB of RAM installed) to about 3583 MiB (if it's a computer with 3.5 GiB or more RAM and a very small "PCI hole").sebihepp wrote:what is the maximum size a kernel can have for loading with grub? On Floppy, Harddisk (FAT32) and CDRom?
Of course it's fairly common for beginners to have problems once their kernel reaches a certain size. This is because the multi-boot header needs to be within the first 8 KiB of the kernel; and beginners tend to forget to put the multi-boot header in it's own section to make sure it stays at the start of kernel (and doesn't shift out of the first 8 KiB as the kernel gets larger)...
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
-
- Member
- Posts: 194
- Joined: Tue Aug 26, 2008 11:24 am
- GitHub: https://github.com/sebihepp
Re: Grub: Max size of kernel
Thanks, then I dont't need to be worry about the size of the kernel. =)
Re: Grub: Max size of kernel
It'll just take longer time to load you kernel if it's really big.
Re: Grub: Max size of kernel
WRT kernel sizes, to give a comparison: The Linux kernel can be anywhere from a bit under 1MB up to a few meg, but it's compressed (via either gzip, bzip2 or LZMA, I believe, though bz2 is discouraged (relatively slow) and LZMA is relatively new)
It really depends what the minimum you want to support is - do you want to support old computers (potentially down to 386es) or only relatively new ones with a lot of memory and a fast processor?
It really depends what the minimum you want to support is - do you want to support old computers (potentially down to 386es) or only relatively new ones with a lot of memory and a fast processor?