This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins. We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git.
Go to file
2025-11-02 02:32:29 +08:00
.devcontainer/ci-env
.github Merge branch 'openwrt:main' into main 2025-09-22 11:51:42 +08:00
.vscode meta: VS Code: add "Git: Always Sign Off" setting 2024-10-03 17:18:51 +02:00
config Merge branch 'openwrt:main' into main 2025-10-31 11:55:22 +08:00
include Merge branch 'openwrt:main' into main 2025-10-31 11:55:22 +08:00
LICENSES
nss-setup merge with qosmio 2024-11-20 03:05:54 +08:00
package Merge branch 'openwrt:main' into main 2025-11-02 02:32:29 +08:00
scripts scripts/mkits.sh: move out .pagesync generation for RootFS blob 2025-10-23 18:14:01 +02:00
target Merge branch 'openwrt:main' into main 2025-11-02 02:32:29 +08:00
toolchain Revert "toolchain: fortify-headers: Update to version 2.3.3" 2025-10-28 21:59:42 +01:00
tools tools: b43-tools: Update to latest HEAD 2025-10-25 22:35:37 +02:00
.gitattributes .gitattributes: ignore some whitespace "violations" in .patch files 2024-12-12 11:01:56 +01:00
.gitignore remove duplicate patches 2024-10-07 19:42:51 +08:00
BSDmakefile
Config.in qualcommax: Add new menu item for IPQ settings 2024-10-05 14:02:15 -04:00
COPYING
feeds.conf.default Update feeds.conf.default 2025-06-15 11:54:12 +08:00
Makefile
README.md Update README.md 2024-10-08 00:34:34 +08:00
rules.mk rules.mk: add DEPRECATION NOTICE for AUTORELEASE 2025-10-29 21:09:57 +01:00

适用于 IPQ系列设备的 OpenWrt 源码仓库

注意

  1. 不要用 root 用户进行编译
  2. 国内用户编译前最好准备好梯子
  3. 默认登陆IP 192.168.1.1 密码 password

编译命令

  1. 首先装好 Linux 系统, Ubuntu 20.04 LTS

  2. 安装编译依赖

    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 cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \
    git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libglib2.0-dev libgmp3-dev libltdl-dev \
    libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libreadline-dev libssl-dev libtool lrzsz \
    mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python3 python3-pip libpython3-dev qemu-utils \
    rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
    
  3. 下载源代码,更新 feeds 并选择配置

    git clone --depth 1 -b main --single-branch https://github.com/King-Of-Knights/openwrt-6.x.git
    cd openwrt-6.x
    ./scripts/feeds update -a && ./scripts/feeds install -a
    make menuconfig
    
  4. 下载 dl 库,编译固件 -j 后面是线程数,为便于排除错误推荐用单线程)

    make download -j8
    make -j1 V=s
    
  5. 二次编译:

    cd openwrt-6.x
    git fetch && git reset --hard origin/main
    ./scripts/feeds update -a && ./scripts/feeds install -a
    make menuconfig
    make V=s -j$(nproc)
    
  6. 如果需要重新配置:

    rm -rf .config
    make menuconfig
    make V=s -j$(nproc)
    
  7. 编译完成后输出路径bin/targets