Loading... ### 更新软件 `sudo apt-get update` ### 下载依赖软件 `sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync` ### 拉取L大源码 `git clone https://github.com/coolsnowwolf/lede` 也可以使用我进行备份的,其中保留了对Redmi AX6的支持,如果不需要,建议使用L大的源码 `git clone https://github.com/2691432189/lede-openwrt` ### 添加常用软件包并运行 ```shell sed -i '$a src-git small8 https://github.com/kenzok8/small-package' feeds.conf.default git pull ./scripts/feeds update -a ./scripts/feeds install -a make menuconfig ``` ### 配置后下载dl库 `make -j8 download V=s` ### 开始编译 `make -j1 V=s` (-j1 后面是线程数。第一次编译推荐用单线程)即可开始编译你要的固件了。 ### 再次编译 (适用于不更改配置功能和插件,仅升级) ```shell ./scripts/feeds update -a && ./scripts/feeds install -a make defconfig make -j8 download make -j$(($(nproc) + 1)) V=s ``` ### 更改配置编译 ```shell rm -rf ./tmp && rm -rf .config make menuconfig make -j$(($(nproc) + 1)) V=s ``` ### 其他 #### 打开IPV6 在 `Extra packages` 里选中 `ipv6helper` #### 关于230报错(错误不唯一) 关闭`Libraries-SSL-libmbedtls-Enable use of the ARMv8 Crypto Extensions ` #### 更改内核版本 路径 `/target/linux/xxx/Makefile` 下的 `KERNEL_PATCHVER:=5.15` #### L大源码恢复AX6 将下列代码替换掉 `target/linux/ipq807x/image/generic.mk` ``` define Device/FitImage KERNEL_SUFFIX := -fit-uImage.itb KERNEL = kernel-bin | gzip | fit gzip $$(DEVICE_DTS_DIR)/$$(DEVICE_DTS).dtb KERNEL_NAME := Image endef define Device/FitImageLzma KERNEL_SUFFIX := -fit-uImage.itb KERNEL = kernel-bin | lzma | fit lzma $$(DEVICE_DTS_DIR)/$$(DEVICE_DTS).dtb KERNEL_NAME := Image endef define Device/UbiFit KERNEL_IN_UBI := 1 IMAGES := nand-factory.ubi nand-sysupgrade.bin IMAGE/nand-factory.ubi := append-ubi IMAGE/nand-sysupgrade.bin := sysupgrade-tar | append-metadata endef define Device/qnap_301w $(call Device/FitImage) DEVICE_VENDOR := QNAP DEVICE_MODEL := 301w DEVICE_DTS_CONFIG := config@hk01 KERNEL_SIZE := 16384k BLOCKSIZE := 512k SOC := ipq8072 IMAGES += factory.bin sysupgrade.bin IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata DEVICE_PACKAGES := ipq-wifi-qnap_301w e2fsprogs kmod-fs-ext4 losetup endef TARGET_DEVICES += qnap_301w define Device/zte_mf269 $(call Device/FitImage) $(call Device/UbiFit) DEVICE_VENDOR := ZTE DEVICE_MODEL := MF269 BLOCKSIZE := 128k PAGESIZE := 2048 DEVICE_DTS_CONFIG := config@ac04 SOC := ipq8071 DEVICE_PACKAGES := ipq-wifi-zte_mf269 uboot-envtools endef TARGET_DEVICES += zte_mf269 define Device/redmi_ax6 $(call Device/xiaomi_ax3600) DEVICE_VENDOR := Redmi DEVICE_MODEL := AX6 DEVICE_PACKAGES := ipq-wifi-redmi_ax6 uboot-envtools endef TARGET_DEVICES += redmi_ax6 define Device/xiaomi_ax3600 $(call Device/FitImage) $(call Device/UbiFit) DEVICE_VENDOR := Xiaomi DEVICE_MODEL := AX3600 BLOCKSIZE := 128k PAGESIZE := 2048 DEVICE_DTS_CONFIG := config@ac04 SOC := ipq8071 DEVICE_PACKAGES := ath10k-firmware-qca9887-ct ipq-wifi-xiaomi_ax3600 \ kmod-ath10k-ct uboot-envtools endef TARGET_DEVICES += xiaomi_ax3600 define Device/tplink_xtr10890 $(call Device/FitImage) $(call Device/UbiFit) DEVICE_VENDOR := TPLINK DEVICE_MODEL := XTR10890 BLOCKSIZE := 128k PAGESIZE := 2048 DEVICE_DTS_CONFIG := config@hk01.c6 SOC := ipq8078 DEVICE_PACKAGES := ipq-wifi-tplink_xtr10890 uboot-envtools endef TARGET_DEVICES += tplink_xtr10890 ``` 最后修改:2024 年 04 月 12 日 © 允许规范转载 赞 如果觉得我的文章对你有用,请随意赞赏