View Code? Open in Web Editor
NEW
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.
License: Other
Makefile 17.77%
Shell 6.47%
Roff 8.32%
Awk 0.02%
C 62.16%
Assembly 1.34%
UnrealScript 0.32%
CMake 0.02%
M4 0.24%
Perl 2.40%
Python 0.47%
Lex 0.06%
Yacc 0.10%
C++ 0.32%
openwrt-6.x's Introduction
适用于 IPQ系列设备的 OpenWrt 源码仓库
不要用 root 用户进行编译
国内用户编译前最好准备好梯子
默认登陆IP 192.168.1.1 密码 password
首先装好 Linux 系统, Ubuntu 20.04 LTS
安装编译依赖
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 python2.7 python3 python3-pip libpython3-dev qemu-utils \
rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
下载源代码,更新 feeds 并选择配置
git clone -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
下载 dl 库,编译固件
(-j 后面是线程数,为便于排除错误推荐用单线程)
make download -j8
make -j1 V=s
二次编译:
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)
如果需要重新配置:
rm -rf .config
make menuconfig
make V=s -j$( nproc)
编译完成后输出路径:bin/targets
openwrt-6.x's People
Watchers
openwrt-6.x's Issues
WARNING: Makefile 'package/feeds/telephony/freeswitch/Makefile' has a dependency on 'libpcre', which does not exist
多次尝试无果,直接进行编译报错
openwrt编译ffmpeg Makefile文件中添加libx264依赖,Libraries中找不到libx264是为什么问题?lede源码可以在Libraries中选择libx264
Building backport-include/backport/autoconf.h ... done.
CC [M] /home/zqinking/ax1800pro/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/mac80211-regular/backports-6.6.15/drivers/net/wireless/ath/ath11k/core.o
In file included from /home/zqinking/ax1800pro/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/mac80211-regular/backports-6.6.15/drivers/net/wireless/ath/ath11k/core.h:33,
from /home/zqinking/ax1800pro/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/mac80211-regular/backports-6.6.15/drivers/net/wireless/ath/ath11k/core.c:13:
/home/zqinking/ax1800pro/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/mac80211-regular/backports-6.6.15/drivers/net/wireless/ath/ath11k/nss.h:11:10: fatal error: nss_api_if.h: No such file or directory
11 | #include <nss_api_if.h>
| ^~~~~~~~~~~~~~
compilation terminated.
make[11]: *** [scripts/Makefile.build:243: /home/zqinking/ax1800pro/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/mac80211-regular/backports-6.6.15/drivers/net/wireless/ath/ath11k/core.o] Error 1
make[10]: *** [scripts/Makefile.build:480: /home/zqinking/ax1800pro/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/mac80211-regular/backports-6.6.15/drivers/net/wireless/ath/ath11k] Error 2
make[9]: *** [scripts/Makefile.build:480: /home/zqinking/ax1800pro/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/mac80211-regular/backports-6.6.15/drivers/net/wireless/ath] Error 2
make[8]: *** [scripts/Makefile.build:480: /home/zqinking/ax1800pro/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/mac80211-regular/backports-6.6.15/drivers/net/wireless] Error 2
make[7]: *** [Makefile:1913: /home/zqinking/ax1800pro/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/mac80211-regular/backports-6.6.15] Error 2
make[6]: *** [Makefile.build:13: modules] Error 2
make[5]: *** [Makefile.real:105: modules] Error 2
make[4]: *** [Makefile:121: modules] Error 2
make[4]: Leaving directory '/home/zqinking/ax1800pro/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/mac80211-regular/backports-6.6.15'
make[3]: *** [Makefile:448: /home/zqinking/ax1800pro/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/mac80211-regular/backports-6.6.15/.built] Error 2
make[3]: Leaving directory '/home/zqinking/ax1800pro/openwrt/package/kernel/mac80211'
time: package/kernel/mac80211/regular/compile#1.15#0.23#1.35
ERROR: package/kernel/mac80211 failed to build (build variant: regular).
make[2]: *** [package/Makefile:173: package/kernel/mac80211/compile] Error 1
make[2]: Leaving directory '/home/zqinking/ax1800pro/openwrt'
make[1]: *** [package/Makefile:167: /home/zqinking/ax1800pro/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/zqinking/ax1800pro/openwrt'
make: *** [/home/zqinking/ax1800pro/openwrt/include/toplevel.mk:233: world] Error 2
Describe the bug
./feeds/nss_packages/qca/qca-nss-ecm/patches/0001-treewide-componentize-the-module-even-more.patch needs to be ported to 6.6.
OpenWrt version
compilation error on main branch
OpenWrt release
compilation error on main branch
OpenWrt target/subtarget
IPQ60xx
Device
Multiple devices
Image kind
Self-built image
Steps to reproduce
No response
Actual behaviour
No response
Expected behaviour
No response
Additional info
No response
Diffconfig
No response
Terms
Describe the bug
依赖的软件包 libstdcpp6 在所有仓库都未提供
OpenWrt version
6.6.2
OpenWrt release
R2024-05-06 03:44:22 for IPQ60XX
OpenWrt target/subtarget
R2024-05-06 03:44:22 for IPQ60XX
Device
M2
Image kind
Official downloaded image
Steps to reproduce
No response
Actual behaviour
No response
Expected behaviour
No response
Additional info
No response
Diffconfig
No response
Terms
不管是哪个版本的passwall,只要下面选远程dns,浏览器就没网了,微信qq这些软件还有网,这个bug目前来看只有ax5机型有
编译ax5 passwall不管用 应用玩节点 测试百度谷歌git都失败 电脑没网