Kernel.img limit of 2MB #534
-
Hi there. I got a question about why there is a limit of the kernel.img of 2 Megabyte and what if the size is getting bigger than that? Would it be easy (and reliable) to increase that? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Circle uses a static memory layout and needs to know, how big the kernel text and data segments can be. 2 MBytes is the default, but can be easily increased by using the option
This is reliable. The given value must be a multiple of 16 KBytes. |
Beta Was this translation helpful? Give feedback.
-
Ah perfect. Thank you! |
Beta Was this translation helpful? Give feedback.
Circle uses a static memory layout and needs to know, how big the kernel text and data segments can be. 2 MBytes is the default, but can be easily increased by using the option
-d KERNEL_MAX_SIZE=0x400000
(to 4 MBytes for example) or by adding the following line to your Config.mk file:This is reliable. The given value must be a multiple of 16 KBytes.