Zmingu

新路由newifi3-d2最稳定固件刷写教程

  1. 固件:immortalwrt 21.02.7
  2. 换源:
sed -e 's,https://downloads.immortalwrt.org,https://mirrors.cernet.edu.cn/immortalwrt,g' \
    -e 's,https://mirrors.vsean.net/openwrt,https://mirrors.cernet.edu.cn/immortalwrt,g' \
    -i.bak /etc/opkg/distfeeds.conf
  1. 扩容
opkg update
opkg install block-mount kmod-usb-storage kmod-usb-storage-uas kmod-fs-ext4 e2fsprogs cfdisk

mkfs.ext4 /dev/sda1

mount -t ext4 /dev/sda1 /mnt
cp /overlay/* /mnt -a
umount /mnt

block detect > /etc/config/fstab
uci set fstab.@mount[0].target='/overlay'
uci set fstab.@mount[0].enabled='1'
uci commit fstab

reboot
  1. 安装zram
opkg update
opkg install kmod-zram zram-swap

dmesg | grep zram
cat /sys/block/zram0/comp_algorithm
cat /sys/block/zram0/disksize
  1. 设置中继IPV6
    1. 设置WAN口和LAN口的,DHCP服务器 为三个中继模式
    2. 在/etc/config/dhcp中,在WAN口配置下添加一条 option master ‘1’
    3. 重启路由