I am trying to improve the kernel boot time of my device and I would like some help. I am using OMAPL138 with kernel version 2.6.37 and it takes about 50 seconds until the boot process is finished, and I think it is a long time. Below is the image of some stages of the boot process. As you can see, there is a delay of 19 seconds until the message EMAC: MII PHY CONFIGURED shows up and I think this is the main problem of my boot time.
After some tests I discovered that this delay is during the unpacking of the initramfs.cpio.lzma . I discovered it by printing some messages in the initramfs.c file, and this delay happens in the while loop inside the unpack_to_rootfs function. The initramfs.cpio.lzma has 5.3MB and the total kernel image (uImage) has 7.3MB .
My question is: Am I doing something wrong or the only way to improve this is by reducing the size of my kernel? Maybe some of you had to deal with this problem before so I would like some suggestions on how to proceed to improve my boot time. Thank you very much.