I am working on ARM V7 architecture based Embedded Board with only 128 MB of flash memory and i want to fit Bootloader Image, Linux Kernel Image as well as root file system inside it, for this my primary target is to reduce the size of the boot loader and Linux Kernel image,
I have done the following optimizations for reducing kernel size,
1. Deleted all the printk messages from displaying which reduced some memory,
2. Turning off Sysfs Support decreased the size of the kernel substantially,
3. Booting without procfs is one more work around i tried, but many pseudo
file systems require it.
I want to know all the possible techniques for optimization and reducing the size of the linux kernel. I request to provide any references.
sysfs
(a long time ago, back in 2.6.25), the Ethernet driver broke; there was an obscure dependency! Reducing the kernel size can be a valid goal, but your reason seems misguided, i.e. the zImage compressed kernel image probably uses only a few percent of the flash. – sawdust