freifunk-berlin / firmware

DEPRECATED: Build system for Berlin firmware. Please user the pinned falter-repos instead
https://berlin.freifunk.net
GNU General Public License v3.0
74 stars 34 forks source link

reduce memory footprint for ath79-tiny #872

Closed SvenRoederer closed 2 years ago

SvenRoederer commented 2 years ago

Some additional tweaks to reduce kernel-size and make this boards running more stable. A smaller binary will use less flash and also less RAM after uncompressing. Less features in the kernel will also free up RAM at runtime.

As some kernel options are not exposed to OpenWrt config, they are changed in the targets configfile directly.

saves around 97k of compressed kernel-size; 384K at runtime runtime before: Memory: 26920K/32768K available (3542K kernel code, 142K rwdata, 412K rodata, 1208K init, 186K bss, 5848K reserved, 0K cma-reserved) runtime after: Memory: 27304K/32768K available (3286K kernel code, 128K rwdata, 368K rodata, 1200K init, 121K bss, 5464K reserved, 0K cma-reserved)