Skip to main content
Lead
August 20, 2024
Solved

Why are the linux kernel so large?

  • August 20, 2024
  • 2 replies
  • 1694 views

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.

Best answer by DMårt

@BarryWhit 

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

2 replies

BarryWhit
Lead
August 20, 2024

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.

DMårtAuthorBest answer
Lead
August 20, 2024

@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-ComputerSTM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
BarryWhit
Lead
August 20, 2024

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