Skip to content

Latest commit

 

History

History
174 lines (139 loc) · 9.25 KB

README_EN.md

File metadata and controls

174 lines (139 loc) · 9.25 KB

Welcome to ZeroWrt

I18N: English | 简体中文 |

Support devices

| Rockchip | MediaTek | X86_64 | Qualcomm |

Official discussion group

If you have any technical issues that you need to discuss or communicate with, you are welcome to join the following groups:

  1. QQ discussion group:Router exchange group,Number 579896728,Add group link:Click to join
  2. TG discussion group:Router exchange group,Add group link:Click to join

Firmware instructions

  • Compiled based on native OpenWrt 24.10, default management address 10.0.0.1 Default password: password
  • Passswall/Openclash-SmartDNS-AdguardHome is enabled by default and you can experience perfect domestic and international traffic distribution without any settings. You can log in to the terminal and enter ZeroWrt to pop up the ZeroWrt option menu. Enter 6. One-click settings to switch between SmartDNS or MosDNS.
  • Switch Uhttpd to Nginx
  • The built-in ZeroWrt option menu facilitates users to set OpenWrt
  • The wan port firewall is turned on by default
  • By default, all network ports can access the web terminal
  • By default, all network ports can connect to SSH
  • The docker source has been switched by default, and the image can be pulled from the domestic network
  • Rockchip switches ImmortalWrt Uboot and Target to support more devices
  • R2C/R2S core frequency 1.6 (LAN WAN swapped), R4S core frequency 2.2/1.8
  • Plugins included: PassWall, OpenClash, Adguardhome, Homeproxy, Mosdns, Lucky, Dynamic DNS, FRP Client, Mihomo Tproxy, Samba4, SmartDNS, Dockerman, Alist, USB Printer Service, Webdav, Application Filtering, Socat

Local compilation environment installation (based on Ubuntu24.04)

Build OpenWrt 24.10 latest ZeroWrt

x86_64

curl -sS -O https://git.kejizero.online/zhao/files/raw/branch/main/x86.sh && chmod +x x86.sh && ./x86.sh

Rockchip

curl -sS -O https://git.kejizero.online/zhao/files/raw/branch/main/Rockchip.sh && chmod +x Rockchip.sh && ./Rockchip.sh

IPQ807x

curl -sS -O https://git.kejizero.online/zhao/files/raw/branch/main/IPQ807x.sh && chmod +x IPQ807x.sh && ./IPQ807x.sh

ZeroWrt options menu

Script menu Page display

  • The ZeroWrt options menu is a convenient way for users to configure OpenWrt
  • The default connection is SSH connection or the terminal enters ZeroWrt to pop up the ZeroWrt option menu
  • Currently, the script supports one-click replacement of LAN port IP, one-click setting of default theme, one-click password modification, one-click restoration of factory settings, one-click deployment, IPv6 switch (only applicable to main router), iStoreOS stylization and detection of updates

Mediatek_filogic-Uboot settings

  1. Compile based on the source code of hanwckf:| bl-mt798x | Compiled mt798x-uboot and Chineseized it

  2. Go here to download uboot for the corresponding device | U-Boot-mt798x |

  3. winscp enter the router tmp folder and upload uboot:mt7981_cetron_ct3003-fip-fixed-parts.bin(Replace here with the one corresponding to your device uboot)

  4. Run the following commands one by one to flash the large partition uboot

    cd /tmp
    md5sum mt7981_cetron_ct3003-fip-fixed-parts.bin
    mtd write mt7981_cetron_ct3003-fip-fixed-parts.bin FIP
    mtd verify mt7981_cetron_ct3003-fip-fixed-parts.bin FIP

Uboot example

Arm Docker project

Default address:10.0.0.1 Default user:root default password:password

How to use

1、Create macvlan network

docker network create -d macvlan --subnet=192.168.xx.0/24 --gateway=192.168.xx.yy -o parent=eth0 macnet

If the interface you are using is not eth0, please change it to the interface you are using. If the network is in bridge mode, please use the following command to create it

docker network create -d macvlan --subnet=192.168.xx.0/24 --gateway=192.168.xx.yy -o parent=br-lan macnet

Note: macnet is the name, macvlan is the mode, change the IP to the main routing network segment and IP address

2、Pull the image and create the container

docker run -d --name=openwrt --network=macnet --privileged=true --restart=always --ulimit nofile=16384:65536 -v /lib/modules/$(uname -r):/lib/modules/$(uname -r) zhaoweiwen123/openwrt-aarch64:plus

If you want to use Mini stable version firmware, change the following plus to mini

3、Change firmware default IP address

docker exec openwrt sed -e 's/192.168.1.1/192.168.xx.zz/' -i /etc/config/network

After the container is successfully created, wait a few minutes and execute the command to change the IP to an IP address on the same network segment as the main route. After the change is completed, restart the container to take effect

docker restart openwrt

Okay, the deployment is complete. Next, log in to the changed IP address and make other settings

Custom firmware

  1. First log in to your Gihub account, then Fork this project to your own Github repository
  2. Modify the corresponding files in the configs directory to add or delete plug-ins, or upload your own xx.config configuration file
  3. For the corresponding name and function of the plug-in, please refer to Enshan netizen’s post:Applications Add plug-in application description
  4. If you need to modify the default IP、To add or remove plug-in packages and some other settings, please diy-script.sh Modify within the file
  5. Add or modify xx.yml document,last click Actions Run the workflow to be compiled to start compilation
  6. Compilation takes about 2-3 hours. After the compilation is completed, download the firmware in the corresponding Tag tag on the warehouse homepage Releases
 If you find it troublesome to modify the config file, you can click here to try local extraction
  1. First install the Linux system, Debian 11 or Ubuntu LTS is recommended

  2. Install the compilation dependency environment

    sudo apt update -y
    sudo apt full-upgrade -y
    sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
    bzip2 ccache clang cmake cpio curl device-tree-compiler flex gawk gcc-multilib g++-multilib gettext \
    genisoimage git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libfuse-dev libglib2.0-dev \
    libgmp3-dev libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libpython3-dev \
    libreadline-dev libssl-dev libtool llvm lrzsz msmtp ninja-build p7zip p7zip-full patch pkgconf \
    python3 python3-pyelftools python3-setuptools qemu-utils rsync scons squashfs-tools subversion \
    swig texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
  3. Download source code, update feeds and install locally

    git clone https://git.openwrt.org/openwrt/openwrt.git
    cd openwrt
    ./scripts/feeds update -a
    ./scripts/feeds install -a
  4. Copy all the contents of the diy-script.sh file to the command line, add custom plug-ins and custom settings

  5. Enter make menuconfig on the command line to select the configuration. After selecting the configuration, export the differences to the seed.config file

    make defconfig
    ./scripts/diffconfig.sh > seed.config
  6. Enter cat seed.config on the command line to view this file, or you can open it with a text editor

  7. Copy all the contents in the seed.config file to the corresponding file in the configs directory and overwrite it

    If you don’t understand the compilation interface, you can refer to the YouTube video:Soft routing firmware OpenWrt compilation interface settings

Problem feedback

If you encounter any problems during use, please feel free to:

  1. Submit Issue
  2. Join the discussion

Special thanks

友善电子科技 OpenWrt ImmortalWrt
jerrykuku QiuSimons xiaorouji
IrineSistiana sirpdboy fw876