openwrt-dev / openwrt

Other
1 stars 0 forks source link

Legacy Code #3

Closed pexcn closed 5 years ago

pexcn commented 5 years ago

Deprecated (included in original version)

Tweak kernel configs:

+CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
+# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set

+CONFIG_OPTIMIZE_INLINING=y
# check
cat build_dir/target-*/linux-*/linux-*/.config | grep OPTIMIZE
CONFIG_DEFAULT_kmod-ipt-offload=y
CONFIG_PACKAGE_kmod-ipt-offload=y
CONFIG_PACKAGE_kmod-nft-offload=y

CONFIG_PACKAGE_kmod-nf-flow=y

CONFIG_PACKAGE_kmod-nft-core=y
CONFIG_PACKAGE_kmod-nft-nat=y
CONFIG_PACKAGE_kmod-nft-nat6=y

Legacy Code

Reference

pexcn commented 5 years ago

DTS partition

openwrt-18.06

# WR741N-V4
[    0.783168] 0x000000000000-0x000000020000 : "u-boot"
[    0.790465] 0x000000020000-0x0000001a9304 : "kernel"
[    0.796577] 0x0000001a9304-0x0000007f0000 : "rootfs"
[    0.812509] 0x0000005a0000-0x0000007f0000 : "rootfs_data"
[    0.820445] 0x0000007f0000-0x000000800000 : "art"
[    0.826258] 0x000000020000-0x0000007f0000 : "firmware"

mtd0: 00020000 00010000 "u-boot"
mtd1: 00189304 00010000 "kernel"
mtd2: 00646cfc 00010000 "rootfs"
mtd3: 00250000 00010000 "rootfs_data"
mtd4: 00010000 00010000 "art"
mtd5: 007d0000 00010000 "firmware"

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 4096      4096         0 100% /rom
tmpfs                    29572        68     29504   0% /tmp
/dev/mtdblock3            2368       224      2144   9% /overlay
overlayfs:/overlay        2368       224      2144   9% /
tmpfs                      512         0       512   0% /dev
# WR841N-V8
[    0.834501] 0x000000000000-0x000000020000 : "u-boot"
[    0.841776] 0x000000020000-0x0000001a9420 : "kernel"
[    0.849243] 0x0000001a9420-0x000000ff0000 : "rootfs"
[    0.868534] 0x0000005a0000-0x000000ff0000 : "rootfs_data"
[    0.876553] 0x000000ff0000-0x000001000000 : "art"
[    0.883652] 0x000000020000-0x000000ff0000 : "firmware"

mtd0: 00020000 00010000 "u-boot"
mtd1: 00189420 00010000 "kernel"
mtd2: 00e46be0 00010000 "rootfs"
mtd3: 00a50000 00010000 "rootfs_data"
mtd4: 00010000 00010000 "art"
mtd5: 00fd0000 00010000 "firmware"

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 4096      4096         0 100% /rom
tmpfs                    29572        68     29504   0% /tmp
/dev/mtdblock3           10560       424     10136   4% /overlay
overlayfs:/overlay       10560       424     10136   4% /
tmpfs                      512         0       512   0% /dev
# WR941N-V7
mtd0: 00020000 00010000 "u-boot"
mtd1: 00170634 00010000 "kernel"
mtd2: 00e5f9cc 00010000 "rootfs"
mtd3: 00a70000 00010000 "rootfs_data"
mtd4: 00010000 00010000 "art"
mtd5: 00fd0000 00010000 "firmware"

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 4096      4096         0 100% /rom
tmpfs                    29808       616     29192   2% /tmp
/dev/mtdblock3           10688      2488      8200  23% /overlay
overlayfs:/overlay       10688      2488      8200  23% /
tmpfs                      512         0       512   0% /dev

openwrt-19.07

# WR741N-V4
[    0.316242] 0x000000000000-0x000000020000 : "u-boot"
[    0.322143] 0x000000020000-0x0000007f0000 : "firmware"
[    0.337211] 0x000000000000-0x0000001923c0 : "kernel"
[    0.342934] 0x0000001923c0-0x0000007d0000 : "rootfs"
[    0.358913] 0x0000005f0000-0x0000007d0000 : "rootfs_data"
[    0.365089] 0x0000007f0000-0x000000800000 : "art"

mtd0: 00020000 00010000 "u-boot"
mtd1: 007d0000 00010000 "firmware"
mtd2: 001923c0 00010000 "kernel"
mtd3: 0063dc40 00010000 "rootfs"
mtd4: 001e0000 00010000 "rootfs_data"
mtd5: 00010000 00010000 "art"

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 4608      4608         0 100% /rom
tmpfs                    29608       576     29032   2% /tmp
tmpfs                    29608        56     29552   0% /tmp/root
tmpfs                      512         0       512   0% /dev
/dev/mtdblock4            1920       228      1692  12% /overlay
overlayfs:/overlay        1920       228      1692  12% /
# WR841N-V8
[    0.357833] 0x000000000000-0x000000020000 : "u-boot"
[    0.363811] 0x000000020000-0x000000ff0000 : "firmware"
[    0.381388] 0x000000000000-0x00000019243a : "kernel"
[    0.387322] 0x00000019243c-0x000000fd0000 : "rootfs"
[    0.405563] 0x0000005f0000-0x000000fd0000 : "rootfs_data"
[    0.411880] 0x000000ff0000-0x000001000000 : "art"

mtd0: 00020000 00010000 "u-boot"
mtd1: 00fd0000 00010000 "firmware"
mtd2: 0019243a 00010000 "kernel"
mtd3: 00e3dbc4 00010000 "rootfs"
mtd4: 009e0000 00010000 "rootfs_data"
mtd5: 00010000 00010000 "art"

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 4608      4608         0 100% /rom
tmpfs                    29608       620     28988   2% /tmp
/dev/mtdblock4           10112       424      9688   4% /overlay
overlayfs:/overlay       10112       424      9688   4% /
tmpfs                      512         0       512   0% /dev