[U-Boot] Limit of kernel size

Hi, everyone
Is there limitation of the kernel size which u-boot loads?
My kernel is very big, because I included the ramdisk into the kernel. My kernel size is over 40MB. When I load the kernel through u-boot, the prcedure hangs in the boot step. The step is "Uncompressing Linux.... done, booting the kernel"
Thanks in advance.
Best Regards, J.Hwan Kim

On Sep 15, 2012, at 4:40 PM, J.Hwan Kim wrote:
Is there limitation of the kernel size which u-boot loads?
No.
My kernel is very big, because I included the ramdisk into the kernel. My kernel size is over 40MB. When I load the kernel through u-boot, the prcedure hangs in the boot step. The step is "Uncompressing Linux.... done, booting the kernel"
Yeah, I don't know what architecture you are using or the format of your image, but I suspect the problem is with the wrapper or start up code of the image.
There are lots of ways split/format such an image, I'd suggest asking on the architecture specific Linux mailing list.
Thanks.
-- Dan

Hello J.Hwan,
On 16.09.2012 01:40, J.Hwan Kim wrote:
Hi, everyone
Is there limitation of the kernel size which u-boot loads?
Only as I know the maximum RAM size (minus the size U-Boot needs)
My kernel is very big, because I included the ramdisk into the kernel. My kernel size is over 40MB. When I load the kernel through u-boot, the prcedure hangs in the boot step. The step is "Uncompressing Linux.... done, booting the kernel"
On which board with which RAM size? Please provide more Information including a u-boot log from reset, your environment ...
and maybe it is a Linux problem ...
bye, Heiko

2012년 09월 16일 14:14, Heiko Schocher 쓴 글:
Hello J.Hwan,
On 16.09.2012 01:40, J.Hwan Kim wrote:
Hi, everyone
Is there limitation of the kernel size which u-boot loads?
Only as I know the maximum RAM size (minus the size U-Boot needs)
My kernel is very big, because I included the ramdisk into the kernel. My kernel size is over 40MB. When I load the kernel through u-boot, the prcedure hangs in the boot step. The step is "Uncompressing Linux.... done, booting the kernel"
On which board with which RAM size? Please provide more Information including a u-boot log from reset, your environment ...
and maybe it is a Linux problem ...
I'm using ARM(Cortex A8) architecture and my memory size 512MB. I used both uImage and zImage, but the result was same.
I found this article in the web. http://www.simtec.co.uk/products/SWLINUX/files/booting_article.html
It says that "The zImage code is Position Independent Code (PIC) so may be loaded anywhere within the available address space. The maximum kernel size after decompression is 4Megabytes. This is a hard limit and would include the initrd if a bootpImage target was used."
If that article is not so obsolete, my kernel size which include initramfs should be smaller than 4MB.
Best Regards, J.Hwan Kim
participants (3)
-
Dan Malek
-
Heiko Schocher
-
J.Hwan Kim