cancel
Showing results for 
Search instead for 
Did you mean: 

Why are the linux kernel so large?

DMårt
Lead

I compiled the linux kernel with STM32CubeIDE and notice that the linux kernel vmlinux is about 242 Mb.

Why so large?

Or do I looking at the wrong folder? I'm standing inside the build folder.

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-Computer
1 ACCEPTED SOLUTION

Accepted Solutions

@BarryWhit 

Hi! It was the "uImage" that I need to use if I'm using U-boot. Current uImage is about 8 Mb.

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-Computer

View solution in original post

3 REPLIES 3
BarryWhit
Lead II

you probably want vmlinuz which is the compressed version. The size may be artificially large when compiling with kernel debug options on. The presence of debug symbols blows up the binary size.

- If someone's post helped resolve your issue, please thank them by clicking "Accept as Solution".
- Please post an update with details once you've solved your issue. Your experience may help others.

@BarryWhit 

Hi! It was the "uImage" that I need to use if I'm using U-boot. Current uImage is about 8 Mb.

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-Computer
BarryWhit
Lead II

Makes sense. probably stripped before being compressed. Run the 'file' utility on it and see what you get.

- If someone's post helped resolve your issue, please thank them by clicking "Accept as Solution".
- Please post an update with details once you've solved your issue. Your experience may help others.