Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:additional-software:saving_space [2020/11/07 09:37] – [Modifying build configuration variables] Added missing enable/disable for the config variables, added warning signs for specific options to make it more clear freezeheatdocs:guide-user:additional-software:saving_space [2021/03/03 07:12] – header levels vgaetera
Line 1: Line 1:
-====== Saving firmware space ======+====== Saving firmware space and RAM ======
 ===== Excluding packages ===== ===== Excluding packages =====
 Flash space is scarce on devices with only 4MB flash. Flash space is scarce on devices with only 4MB flash.
Line 18: Line 18:
 :!: Do not use zram-swap for 4MB flash devices as it //increases// the amount of firmware space used. :!: Do not use zram-swap for 4MB flash devices as it //increases// the amount of firmware space used.
 It is listed here as it is helpful on machines with very little RAM memory. It is listed here as it is helpful on machines with very little RAM memory.
 +
 +:?: The minus ''-PACKAGE_NAME'' prefix removes a package, no prefix adds one.
  
 ==== Build image for devices with only 4MB flash ==== ==== Build image for devices with only 4MB flash ====
Line 41: Line 43:
   * [[https://forum.openwrt.org/t/tp-link-tl-mr-3420-v3-build/855/8]]   * [[https://forum.openwrt.org/t/tp-link-tl-mr-3420-v3-build/855/8]]
   * [[https://forum.openwrt.org/t/possible-ppp-removal-from-base-image/42024/3]]   * [[https://forum.openwrt.org/t/possible-ppp-removal-from-base-image/42024/3]]
 +  * Talk [[https://youtu.be/M3yUjHKvde8?t=846|Fight for the bytes! Fun with Four Megabytes Flash]]
  
 ==== Build image for devices with only 16/32MB RAM ==== ==== Build image for devices with only 16/32MB RAM ====
Line 101: Line 104:
 In addition to the ones mentioned here you can save a tiny bit of space by disabling commands in busybox. In addition to the ones mentioned here you can save a tiny bit of space by disabling commands in busybox.
  
-=== Saving space ===+==== Saving space ====
 ^ Config variable\\ (''n'' = disable, ''y'' = enable) ^ Menu path ^ Comments ^ ^ Config variable\\ (''n'' = disable, ''y'' = enable) ^ Menu path ^ Comments ^
 | ''CONFIG_KERNEL_PRINTK=n'' | Global build settings / Kernel build options / Enable support for printk | | ''CONFIG_KERNEL_PRINTK=n'' | Global build settings / Kernel build options / Enable support for printk |
Line 126: Line 129:
 [[https://forum.openwrt.org/t/building-a-smaller-kernel-for-a-specific-device/30370/8|This can save some disk space and RAM]]. [[https://forum.openwrt.org/t/building-a-smaller-kernel-for-a-specific-device/30370/8|This can save some disk space and RAM]].
  
-=== Saving RAM === +==== Saving RAM ==== 
-^ Config variable ^ Menu path ^+^ Config variable\\ (''n'' = disable, ''y'' = enable) ^ Menu path ^
 | ''CONFIG_PACKAGE_zram-swap=y'' | Base system / zram-swap | | ''CONFIG_PACKAGE_zram-swap=y'' | Base system / zram-swap |
 | ''CONFIG_PROCD_ZRAM_TMPFS=y'' | Base system / procd Configuration / Mount ///tmp// using zram | | ''CONFIG_PROCD_ZRAM_TMPFS=y'' | Base system / procd Configuration / Mount ///tmp// using zram |
 +| ''CONFIG_KERNEL_SWAP=y'' | Global build settings / Kernel build options / Support for paging of anonymous memory (swap) |
  
 ===== Replace LuCI icons with a blank pixel ===== ===== Replace LuCI icons with a blank pixel =====
  • Last modified: 2022/09/24 18:48
  • by bkil