Skip to contentSkip to conversation

Limit of kernel size

U-Boot J.Hwan Kim 3 participants 4 messages Sep 15, 2012 – Sep 16, 2012

lore
Share & tools
lore

J.Hwan Kim

author
#0 lore raw

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

#1 lore raw
Quoted 1 line · J.Hwan Kim

Is there limitation of the kernel size which u-boot loads?

No.

Quoted 5 lines

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
#2 lore raw
In reply to J.Hwan Kim

Hello J.Hwan,

Quoted 3 lines · J.Hwan Kim

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)

Quoted 4 lines

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

Signature · 2 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
author
#3 lore raw

2012? 09? 16? 14:14, Heiko Schocher ? ?:

Quoted 15 lines

Hello J.Hwan,

Quoted 3 lines · J.Hwan Kim

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)

Quoted 5 lines

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"

Quoted 4 lines

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