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
zh:docs:guide-user:additional-software:saving_space [2020/01/05 04:04] – [移除软件包] lujimmyzh:docs:guide-user:additional-software:saving_space [2020/01/05 04:21] – [Build image for devices with only 4MB flash] lujimmy
Line 1: Line 1:
 ====== 节省固件空间 ====== ====== 节省固件空间 ======
 ===== 移除软件包 ===== ===== 移除软件包 =====
-对于仅有4M闪存的设备,闪存空间是稀有的。您在使用[[docs:guide-user:additional-software:imagebuilder|imagebuilder]]编译自己的固件镜像文件时,可以移除一些不会使用到的软件包来节省一些空间。如想完全移除IPv6支持和相关的软件包,您可以在imagebuilder的make命令中添加"CONFIG_IPV6=n"这一参数实现。 +对于仅有4M闪存的设备,闪存空间是稀有的。您在使用[[docs:guide-user:additional-software:imagebuilder|imagebuilder]]编译自己的固件镜像文件时,可以移除一些不会使用到的软件包来节省一些空间。如想完全移除IPv6支持和相关的软件包,您可以在imagebuilder的make命令中通过"CONFIG_IPV6=n"实现。 
-^ 指令                  ^ 相关软件包                                                                                                    +^ 指令                  ^ 相关软件包                                                                                                  
-| remove pppoe         | ''-ppp -ppp-mod-pppoe''                                                                                         +|remove pppoe         |''-ppp -ppp-mod-pppoe''                                                                                      
-| remove IPv6          | ''-ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables -odhcpd-ipv6only''                                                              +|remove IPv6          |''-ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables -odhcpd-ipv6only''                                          
-| remove dhcp server   | ''-odhcpd''                                                                                                     +|remove dhcp server   |''-odhcpd''                                                                                                  
-| remove  iptables     | ''-iptables''                                                                                                   +|remove  iptables     |''-iptables''                                                                                                
-| remove opkg          | ''-opkg''                                                                                                       +|remove opkg          |''-opkg''                                                                                                    
-| add LuCI minimal     | ''uhttpd uhttpd-mod-ubus libiwinfo-lua luci-base luci-app-firewall luci-mod-admin-full luci-theme-bootstrap''   +|add LuCI minimal     |''uhttpd uhttpd-mod-ubus libiwinfo-lua luci-base luci-app-firewall luci-mod-admin-full luci-theme-bootstrap''
-| add zram¹            | ''zram-swap''                                                                                                   |+|add zram¹            | ''zram-swap''                                                                                               |
  
 ¹ 备注: 4M闪存的设备请不要使用 zram-swap,因为这会//增加//固件所需的闪存空间。这里之所以会列出,是因为它对于低内存设备很有用。 ¹ 备注: 4M闪存的设备请不要使用 zram-swap,因为这会//增加//固件所需的闪存空间。这里之所以会列出,是因为它对于低内存设备很有用。
-==== Build image for devices with only 4MB flash ====+==== 为仅有4M闪存的设备构建镜像 ====
  
-**Example image builder command line**\\ +**镜像构建命令行示例**\\ 
-**Note:** In the command line shown below, you need to adjust ''PROFILE=tl-wr941nd-v6'' to your device. Use ''make info'' to list possibilities.+**备注:** 您需要根据设备修改下方命令行中的''PROFILE=tl-wr941nd-v6'',使用''make info''命令可显示可用的设备清单。
  
-^ LuCI    Action ^ Imagebuilder commandline +是否集成LuCI          作用       ^ Imagebuilder命令行 
-with LuCI | - remove pppoe and IPv6\\ + include only needed luci components, not full luci package. | ''make image PROFILE=tl-wr941nd-v6 \+集成LuCI             |移除pppoeIPv6,包含必需的LuCI组件而非完整的LuCI软件包| ''make image PROFILE=tl-wr941nd-v6 \
 PACKAGES="uhttpd uhttpd-mod-ubus libiwinfo-lua luci-base luci-app-firewall luci-mod-admin-full luci-theme-bootstrap \ PACKAGES="uhttpd uhttpd-mod-ubus libiwinfo-lua luci-base luci-app-firewall luci-mod-admin-full luci-theme-bootstrap \
 -ppp -ppp-mod-pppoe -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables -odhcpd-ipv6only"'' | -ppp -ppp-mod-pppoe -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables -odhcpd-ipv6only"'' |
-without LuCI | - remove pppoe and IPv6 | ''make image PROFILE=tl-wr941nd-v6 PACKAGES="-ppp -ppp-mod-pppoe -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables -odhcpd-ipv6only"'' |+不集成LuCI           |移除pppoeIPv6| ''make image PROFILE=tl-wr941nd-v6 PACKAGES="-ppp -ppp-mod-pppoe -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables -odhcpd-ipv6only"'' |
  
- +相关资源:
-Resources:+
   * [[https://forum.openwrt.org/t/can-i-strip-the-ipv6-out-with-the-imagebuilder/3465/5]]   * [[https://forum.openwrt.org/t/can-i-strip-the-ipv6-out-with-the-imagebuilder/3465/5]]
   * [[https://forum.openwrt.org/t/build-lede-without-ipv6/2043]]   * [[https://forum.openwrt.org/t/build-lede-without-ipv6/2043]]
Line 30: Line 29:
   * [[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]]
- 
 ==== Build image for devices with only 16/32MB RAM ==== ==== Build image for devices with only 16/32MB RAM ====
  
  • Last modified: 2021/10/15 08:26
  • by bobafetthotmail