Giter Site home page Giter Site logo

padavanonly / immortalwrt Goto Github PK

View Code? Open in Web Editor NEW
201.0 5.0 139.0 43.47 MB

License: Other

Makefile 3.70% Awk 0.01% Shell 2.24% C 89.84% Assembly 0.29% Lua 0.62% HTML 0.49% Roff 0.96% M4 0.13% CMake 0.01% Perl 0.53% Python 0.07% Lex 0.01% Yacc 0.02% C++ 0.07% Ada 0.01% Ruby 0.01% CSS 0.12% JavaScript 0.75% Less 0.13%

immortalwrt's Introduction

logo

Project ImmortalWrt

ImmortalWrt is a fork of OpenWrt, with more packages ported, more devices supported, better performance, and special optimizations for mainland China users.
Compared the official one, we allow to use hacks or non-upstreamable patches / modifications to achieve our purpose. Source from anywhere.

Default login address: http://192.168.1.1 or http://immortalwrt.lan, username: root, password: password.

Development

To build your own firmware you need a GNU/Linux, BSD or MacOSX system (case sensitive filesystem required). Cygwin is unsupported because of the lack of a case sensitive file system.

Requirements

To build with this project, Ubuntu 18.04 LTS is preferred. And you need use the CPU based on AMD64 architecture, with at least 4GB RAM and 25 GB available disk space. Make sure the Internet is accessible.

The following tools are needed to compile ImmortalWrt, the package names vary between distributions.

  • Here is an example for Ubuntu users:

    • Method 1:

      Setup dependencies via APT
      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 ecj fastjar flex gawk gettext gcc-multilib g++-multilib \
        git gperf haveged help2man intltool lib32gcc1 libc6-dev-i386 libelf-dev libglib2.0-dev libgmp3-dev libltdl-dev \
        libmpc-dev libmpfr-dev libncurses5-dev libncursesw5 libncursesw5-dev libreadline-dev libssl-dev libtool lrzsz \
        mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 python3-pip python3-ply \
        python-docutils qemu-utils re2c rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip \
        vim wget xmlto xxd zlib1g-dev
    • Method 2:

      curl -s https://build-scripts.immortalwrt.eu.org/init_build_environment.sh | sudo bash
  • You can also download and use prebuilt container directly:
    See #Quickstart - Build image via OPDE

Note:

  • For the for love of god please do not use ROOT user to build your image.
  • Using CPUs based on other architectures should be fine to compile ImmortalWrt, but more hacks are needed - No warranty at all.
  • You must not have spaces in PATH or in the work folders on the drive.
  • If you're using Windows Subsystem for Linux (or WSL), removing Windows folders from PATH is required, please see Build system setup WSL documentation.
  • Using macOS as the host build OS is not recommended. No warranty at all. You can get tips from Build system setup macOS documentation.
    • As you're building ImmortalWrt, patching or disabling UPX tools is also required.
  • For more details, please see Build system setup documentation.

Quickstart

  • Method 1:

    1. Run git clone https://github.com/padavanonly/immortalwrt to clone the source code.
    2. Run cd immortalwrt to enter source directory.
    3. Run ./scripts/feeds update -a to obtain all the latest package definitions defined in feeds.conf / feeds.conf.default
    4. Run ./scripts/feeds install -a to install symlinks for all obtained packages into package/feeds/
    5. Run make menuconfig to select your preferred configuration for the toolchain, target system & firmware packages.
    6. Run make to build your firmware. This will download all sources, build the cross-compile toolchain and then cross-compile the GNU/Linux kernel & all chosen applications for your target system.
  • Method 2:

    Build image via OPDE
    • Pull the prebuilt container:

      docker pull immortalwrt/opde:base
      # docker run --rm -it immortalwrt/opde:base
    • For Linux User:

      git clone -b <branch> --single-branch https://github.com/immortalwrt/immortalwrt && cd immortalwrt
      docker run --rm -it \
          -v $PWD:/openwrt \
        immortalwrt/opde:base zsh
      ./scripts/feeds update -a && ./scripts/feeds install -a
    • For Windows User:

      1. Create a volume 'immortalwrt' and clone ImmortalWrt source into volume.
      docker run --rm -it -v immortalwrt:/openwrt immortalwrt/opde:base git clone -b <branch> --single-branch https://github.com/immortalwrt/immortalwrt .
      1. Enter docker container and update feeds.
      docker run --rm -it -v immortalwrt:/openwrt immortalwrt/opde:base
      ./scripts/feeds update -a && ./scripts/feeds install -a
      • Tips: ImmortalWrt source code can not be cloned into NTFS filesystem (symbol link problem during compilation), but docker volume is fine.
    • Proxy Support:

      docker run --rm -it \
        -e   all_proxy=http://example.com:1081 \
        -e  http_proxy=http://example.com:1081 \
        -e https_proxy=http://example.com:1081 \
        -e   ALL_PROXY=http://example.com:1081 \
        -e  HTTP_PROXY=http://example.com:1081 \
        -e HTTPS_PROXY=http://example.com:1081 \
        -v $PWD:/openwrt \
        immortalwrt/opde:base zsh

      Recommand http rather socks5 protocol

      IP can not be localhost or 127.0.0.1

    • For Windows User, binary is still in volume. It can be copied to outside via followed command:

      docker run --rm -v <D:\path\to\dir>:/dst -v openwrt:/openwrt -w /dst immortalwrt:base cp /openwrt/bin /dst

      Make sure D:\path\to\dir has been appended in File Sharing.

Related Repositories

The main repository uses multiple sub-repositories to manage packages of different categories. All packages are installed via the ImmortalWrt package manager called opkg. If you're looking to develop the web interface or port packages to ImmortalWrt, please find the fitting repository below.

Support Information

For a list of supported devices see the OpenWrt Hardware Database

Documentation

Support Community

License

ImmortalWrt is licensed under GPL-3.0-only.

immortalwrt's People

Contributors

1715173329 avatar el-psy-k avatar meisreallyba avatar mkqts avatar padavanonly avatar xwang1498 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

immortalwrt's Issues

感觉有点不稳定 (k2p)

图片

自行编译的k2p固件,增加组件到分区剩余600K左右时容易触发读写保护(Your JFFS2-partition seems full and overlayfs is mounted read-only)

目前调整到overlay分区为1.1M,但还是有些不稳定+偶尔自动重启
还没排查到原因,真的没有办法了吗。。。

mt7915_mtwifi分支,cr660x编译报错

Ignoring, exclude it (-e/-ef) to override.
[==================================================================================-] 1659/1659 100%
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
compressed data, compressed metadata, compressed fragments,
no xattrs, compressed ids
duplicates are removed
Filesystem size 17071.35 Kbytes (16.67 Mbytes)
35.41% of uncompressed filesystem size (48208.40 Kbytes)
Inode table size 13208 bytes (12.90 Kbytes)
20.94% of uncompressed inode table size (63085 bytes)
Directory table size 18524 bytes (18.09 Kbytes)
43.36% of uncompressed directory table size (42725 bytes)
Number of duplicate files found 240
Number of inodes 1899
Number of files 1531
Number of fragments 39
Number of symbolic links 241
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 126
Number of ids (unique uids + gids) 1
Number of uids 1
root (0)
Number of gids 1
root (0)
rm -f /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin
cp /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/vmlinux-initramfs /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin
cat /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/image-mt7621_xiaomi_mi-router-cr6609.dtb >> /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin
/home/smith/mt7915/immortalwrt/staging_dir/host/bin/lzma e /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin -lc1 -lp2 -pb2 /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin.new
rm -rf /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin.src
export MAKEFLAGS= ;make -w -C lzma-loader PKG_BUILD_DIR="/home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin.src" TARGET_DIR="/home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/" LOADER_NAME="immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin" BOARD="MT7621 based boards" PLATFORM="mt7621" LZMA_TEXT_START=0x81800000 LOADADDR=0x80001000 LOADER_DATA="/home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin" compile loader.bin
make[6]: Entering directory '/home/smith/mt7915/immortalwrt/target/linux/ramips/image/lzma-loader'
mkdir /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin.src
cp -fpR ./src/* /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin.src/
touch /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin.src/.prepared
make -C /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin.src CROSS_COMPILE="mipsel-openwrt-linux-musl-"
LZMA_TEXT_START=0x81800000
LOADER_DATA=/home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin
FLASH_START=
FLASH_OFFS=
FLASH_MAX=
BOARD="MT7621 based boards"
PLATFORM="mt7621"
clean all
make[7]: Entering directory '/home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin.src'
rm -f loader *.elf *.bin .o
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -nostartfiles -mabi=32 -march=mips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -D_LZMA_PROB32 -flto -DCONFIG_ICACHE_SIZE="(32 * 1024)" -DCONFIG_DCACHE_SIZE="(16 * 1024)" -DCONFIG_CACHELINE_SIZE=32 -DLZMA_WRAPPER=1 -DLOADADDR=0x80001000 -D__ASSEMBLY__ -c -o head.o head.S
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -nostartfiles -mabi=32 -march=mips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -D_LZMA_PROB32 -flto -DCONFIG_ICACHE_SIZE="(32 * 1024)" -DCONFIG_DCACHE_SIZE="(16 * 1024)" -DCONFIG_CACHELINE_SIZE=32 -DLZMA_WRAPPER=1 -DLOADADDR=0x80001000 -c -o loader.o loader.c
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -nostartfiles -mabi=32 -march=mips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -D_LZMA_PROB32 -flto -DCONFIG_ICACHE_SIZE="(32 * 1024)" -DCONFIG_DCACHE_SIZE="(16 * 1024)" -DCONFIG_CACHELINE_SIZE=32 -DLZMA_WRAPPER=1 -DLOADADDR=0x80001000 -c -o cache.o cache.c
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -nostartfiles -mabi=32 -march=mips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -D_LZMA_PROB32 -flto -DCONFIG_ICACHE_SIZE="(32 * 1024)" -DCONFIG_DCACHE_SIZE="(16 * 1024)" -DCONFIG_CACHELINE_SIZE=32 -DLZMA_WRAPPER=1 -DLOADADDR=0x80001000 -c -o board-mt7621.o board-mt7621.c
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -nostartfiles -mabi=32 -march=mips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -D_LZMA_PROB32 -flto -DCONFIG_ICACHE_SIZE="(32 * 1024)" -DCONFIG_DCACHE_SIZE="(16 * 1024)" -DCONFIG_CACHELINE_SIZE=32 -DLZMA_WRAPPER=1 -DLOADADDR=0x80001000 -c -o printf.o printf.c
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -nostartfiles -mabi=32 -march=mips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -D_LZMA_PROB32 -flto -DCONFIG_ICACHE_SIZE="(32 * 1024)" -DCONFIG_DCACHE_SIZE="(16 * 1024)" -DCONFIG_CACHELINE_SIZE=32 -DLZMA_WRAPPER=1 -DLOADADDR=0x80001000 -c -o LzmaDecode.o LzmaDecode.c
mipsel-openwrt-linux-musl-ld -r -b binary --oformat elf32-tradlittlemips -T lzma-data.lds -o data.o /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -nostartfiles -mabi=32 -march=mips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -D_LZMA_PROB32 -flto -DCONFIG_ICACHE_SIZE="(32 * 1024)" -DCONFIG_DCACHE_SIZE="(16 * 1024)" -DCONFIG_CACHELINE_SIZE=32 -DLZMA_WRAPPER=1 -DLOADADDR=0x80001000 -static -Wl,--gc-sections -Wl,-no-warn-mismatch -Wl,-e,startup -T loader.lds -Wl,-Ttext,0x81800000 -flto -fwhole-program -Wl,-z,max-page-size=4096 -o loader head.o loader.o cache.o board-mt7621.o printf.o LzmaDecode.o data.o
mipsel-openwrt-linux-musl-objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -R .MIPS.abiflags -S loader loader.bin
mipsel-openwrt-linux-musl-ld -r -b binary --oformat elf32-tradlittlemips -o loader2.o loader.bin
mipsel-openwrt-linux-musl-ld -e startup -T loader2.lds -Ttext 0x80001000 -z max-page-size=4096 -o loader.elf loader2.o
make[7]: Leaving directory '/home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin.src'
make[6]: Leaving directory '/home/smith/mt7915/immortalwrt/target/linux/ramips/image/lzma-loader'
mv "/home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin.bin" "/home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin"
rm -rf /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin.src
mkimage -A mips -O linux -T kernel -C none -a 0x80001000 -e 0x80001000 -n 'MIPS ImmortalWrt Linux-5.10.109' -d /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin.new
Image Name: MIPS ImmortalWrt Linux-5.10.109
Created: Tue Jul 5 08:58:35 2022
Image Type: MIPS Linux Kernel Image (uncompressed)
Data Size: 20982861 Bytes = 20491.08 KiB = 20.01 MiB
Load Address: 80001000
Entry Point: 80001000
mv /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin.new /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin
cp /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin /home/smith/mt7915/immortalwrt/bin/targets/ramips/mt7621/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin
DEVICE_ID="xiaomi_mi-router-cr6609" BIN_DIR="/home/smith/mt7915/immortalwrt/bin/targets/ramips/mt7621" SOURCE_DATE_EPOCH=1657011515 FILE_NAME="immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin" FILE_TYPE="kernel" FILE_FILESYSTEM="initramfs" DEVICE_IMG_PREFIX="immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609" DEVICE_VENDOR="Xiaomi" DEVICE_MODEL="Mi Router CR6609" DEVICE_VARIANT="" DEVICE_ALT0_VENDOR="" DEVICE_ALT0_MODEL="" DEVICE_ALT0_VARIANT="" DEVICE_ALT1_VENDOR="" DEVICE_ALT1_MODEL="" DEVICE_ALT1_VARIANT="" DEVICE_ALT2_VENDOR="" DEVICE_ALT2_MODEL="" DEVICE_ALT2_VARIANT="" DEVICE_TITLE="Xiaomi Mi Router CR6609" DEVICE_PACKAGES=" luci-app-mtwifi uboot-envtools " TARGET="ramips" SUBTARGET="mt7621" VERSION_NUMBER="18.06-k5.4-SNAPSHOT" VERSION_CODE="r0-f3136fb" SUPPORTED_DEVICES="xiaomi,mi-router-cr6609" /home/smith/mt7915/immortalwrt/scripts/json_add_image_info.py /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/json_info_files/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-initramfs-kernel.bin.json
rm -f /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin
cp /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/vmlinux /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin
cat /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/image-mt7621_xiaomi_mi-router-cr6609.dtb >> /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin
/home/smith/mt7915/immortalwrt/staging_dir/host/bin/lzma e /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin -lc1 -lp2 -pb2 /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin.new
rm -rf /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin.src
export MAKEFLAGS= ;make -w -C lzma-loader PKG_BUILD_DIR="/home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin.src" TARGET_DIR="/home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/" LOADER_NAME="xiaomi_mi-router-cr6609-kernel.bin" BOARD="MT7621 based boards" PLATFORM="mt7621" LZMA_TEXT_START=0x81800000 LOADADDR=0x80001000 LOADER_DATA="/home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin" compile loader.bin
make[6]: Entering directory '/home/smith/mt7915/immortalwrt/target/linux/ramips/image/lzma-loader'
mkdir /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin.src
cp -fpR ./src/
/home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin.src/
touch /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin.src/.prepared
make -C /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin.src CROSS_COMPILE="mipsel-openwrt-linux-musl-"
LZMA_TEXT_START=0x81800000
LOADER_DATA=/home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin
FLASH_START=
FLASH_OFFS=
FLASH_MAX=
BOARD="MT7621 based boards"
PLATFORM="mt7621"
clean all
make[7]: Entering directory '/home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin.src'
rm -f loader *.elf *.bin *.o
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -nostartfiles -mabi=32 -march=mips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -D_LZMA_PROB32 -flto -DCONFIG_ICACHE_SIZE="(32 * 1024)" -DCONFIG_DCACHE_SIZE="(16 * 1024)" -DCONFIG_CACHELINE_SIZE=32 -DLZMA_WRAPPER=1 -DLOADADDR=0x80001000 -D__ASSEMBLY__ -c -o head.o head.S
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -nostartfiles -mabi=32 -march=mips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -D_LZMA_PROB32 -flto -DCONFIG_ICACHE_SIZE="(32 * 1024)" -DCONFIG_DCACHE_SIZE="(16 * 1024)" -DCONFIG_CACHELINE_SIZE=32 -DLZMA_WRAPPER=1 -DLOADADDR=0x80001000 -c -o loader.o loader.c
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -nostartfiles -mabi=32 -march=mips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -D_LZMA_PROB32 -flto -DCONFIG_ICACHE_SIZE="(32 * 1024)" -DCONFIG_DCACHE_SIZE="(16 * 1024)" -DCONFIG_CACHELINE_SIZE=32 -DLZMA_WRAPPER=1 -DLOADADDR=0x80001000 -c -o cache.o cache.c
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -nostartfiles -mabi=32 -march=mips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -D_LZMA_PROB32 -flto -DCONFIG_ICACHE_SIZE="(32 * 1024)" -DCONFIG_DCACHE_SIZE="(16 * 1024)" -DCONFIG_CACHELINE_SIZE=32 -DLZMA_WRAPPER=1 -DLOADADDR=0x80001000 -c -o board-mt7621.o board-mt7621.c
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -nostartfiles -mabi=32 -march=mips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -D_LZMA_PROB32 -flto -DCONFIG_ICACHE_SIZE="(32 * 1024)" -DCONFIG_DCACHE_SIZE="(16 * 1024)" -DCONFIG_CACHELINE_SIZE=32 -DLZMA_WRAPPER=1 -DLOADADDR=0x80001000 -c -o printf.o printf.c
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -nostartfiles -mabi=32 -march=mips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -D_LZMA_PROB32 -flto -DCONFIG_ICACHE_SIZE="(32 * 1024)" -DCONFIG_DCACHE_SIZE="(16 * 1024)" -DCONFIG_CACHELINE_SIZE=32 -DLZMA_WRAPPER=1 -DLOADADDR=0x80001000 -c -o LzmaDecode.o LzmaDecode.c
mipsel-openwrt-linux-musl-ld -r -b binary --oformat elf32-tradlittlemips -T lzma-data.lds -o data.o /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -nostartfiles -mabi=32 -march=mips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -D_LZMA_PROB32 -flto -DCONFIG_ICACHE_SIZE="(32 * 1024)" -DCONFIG_DCACHE_SIZE="(16 * 1024)" -DCONFIG_CACHELINE_SIZE=32 -DLZMA_WRAPPER=1 -DLOADADDR=0x80001000 -static -Wl,--gc-sections -Wl,-no-warn-mismatch -Wl,-e,startup -T loader.lds -Wl,-Ttext,0x81800000 -flto -fwhole-program -Wl,-z,max-page-size=4096 -o loader head.o loader.o cache.o board-mt7621.o printf.o LzmaDecode.o data.o
mipsel-openwrt-linux-musl-objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -R .MIPS.abiflags -S loader loader.bin
mipsel-openwrt-linux-musl-ld -r -b binary --oformat elf32-tradlittlemips -o loader2.o loader.bin
mipsel-openwrt-linux-musl-ld -e startup -T loader2.lds -Ttext 0x80001000 -z max-page-size=4096 -o loader.elf loader2.o
make[7]: Leaving directory '/home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin.src'
make[6]: Leaving directory '/home/smith/mt7915/immortalwrt/target/linux/ramips/image/lzma-loader'
mv "/home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin.bin" "/home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin"
rm -rf /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin.src
mkimage -A mips -O linux -T kernel -C none -a 0x80001000 -e 0x80001000 -n 'MIPS ImmortalWrt Linux-5.10.109' -d /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin.new
Image Name: MIPS ImmortalWrt Linux-5.10.109
Created: Tue Jul 5 08:58:35 2022
Image Type: MIPS Linux Kernel Image (uncompressed)
Data Size: 4202708 Bytes = 4104.21 KiB = 4.01 MiB
Load Address: 80001000
Entry Point: 80001000
mv /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin.new /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin
WARNING: Image file /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin is too big: 4202772 > 4194304
[ -f /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/xiaomi_mi-router-cr6609-kernel.bin -a -f /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/root.squashfs ]
make[5]: *** [Makefile:224: /home/smith/mt7915/immortalwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/immortalwrt-ramips-mt7621-xiaomi_mi-router-cr6609-squashfs-sysupgrade.bin] Error 1
make[5]: Leaving directory '/home/smith/mt7915/immortalwrt/target/linux/ramips/image'
make[4]: *** [Makefile:23: install] Error 2
make[4]: Leaving directory '/home/smith/mt7915/immortalwrt/target/linux/ramips'
make[3]: *** [Makefile:11: install] Error 2
make[3]: Leaving directory '/home/smith/mt7915/immortalwrt/target/linux'
time: target/linux/install#119.31#26.78#127.23
ERROR: target/linux failed to build.
make[2]: *** [target/Makefile:25: target/linux/install] Error 1
make[2]: Leaving directory '/home/smith/mt7915/immortalwrt'
make[1]: *** [target/Makefile:19: /home/smith/mt7915/immortalwrt/staging_dir/target-mipsel_24kc_musl/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/smith/mt7915/immortalwrt'
make: *** [/home/smith/mt7915/immortalwrt/include/toplevel.mk:230: world] Error 2

编译出的passwall不能用?

编译的时候passwall子选项都选择成M,也就是只编译不集成到固件,然后本地用迷你web服务器搭建源,opkg install luci-i18n-passwall-zh-cn安装,无报错正常安装,但是passwall启动了,翻墙失败?节点没问题,是vless节点,电脑和手机上正常用

编译失败

...
Configuring urngd.
Configuring luci-i18n-firewall-zh-cn.
Configuring ppp-mod-pppoe.
Configuring dnsmasq-full.
package/Makefile:66: recipe for target 'package/install' failed
make[2]: *** [package/install] Error 255
make[2]: Leaving directory '/home/xxx/Downloads/immortalwrt-master'
package/Makefile:111: recipe for target '/home/xxx/Downloads/immortalwrt-master/staging_dir/target-mipsel_24kc_musl/stamp/.package_install' failed
make[1]: *** [/home/xxx/Downloads/immortalwrt-master/staging_dir/target-mipsel_24kc_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/xxx/Downloads/immortalwrt-master'
/home/xxx/Downloads/immortalwrt-master/include/toplevel.mk:228: recipe for target 'world' failed
make: *** [world] Error 2

编译3次了,从新下了2次源码压缩包,一直是这个,查不到2跟255 什么意思

luci-app-mtwifi报错,没有头文件

Makefile:20: *** Package/l1profile is missing the TITLE field. Stop
​make[3]: Leaving directory '/home/op/immortalwrt/package/emortal/luci-app-mtwifi'
​time: package/emortal/luci-app-mtwifi/compile#0.19#0.04#0.23
​ERROR: package/emortal/luci-app-mtwifi failed to build.
​package/Makefile:114: recipe for target 'package/emortal/luci-app-mtwifi/compile' failed
​make[2]: *** [package/emortal/luci-app-mtwifi/compile] Error 1
​make[2]: Leaving directory '/home/op/immortalwrt'
​package/Makefile:110: recipe for target '/home/op/immortalwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile' failed
​make[1]: *** [/home/op/immortalwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
​make[1]: Leaving directory '/home/op/immortalwrt'
​/home/op/immortalwrt/include/toplevel.mk:228: recipe for target 'world' failed
​make: *** [world] Error 2

mt7915_mtwifi branch : system crashed when using WPS

I want to debug the WPS function with mt7915 driver, the command are as follows:

iwpriv ra0 set WscConfMode=7
iwpriv ra0 set WscMode=2
iwpriv ra0 set WscGetConf=1

The above command is from the official firmware of JCG Q20, which is supported by openwrt.

But the system crashed when i start WPS connection on my smartphone.

[  125.784286] detected buffer overflow in memcmp
[  125.788757] Kernel bug detected[#1]:
[  125.792323] CPU: 0 PID: 1862 Comm: RtmpWscTask Not tainted 5.10.115 #0
[  125.798817] $ 0   : 00000000 00000001 00000022 003a8000
[  125.804041] $ 4   : 812b2378 812b2378 812b78f8 84be9b80
[  125.809257] $ 8   : ffffefff 00000000 ffffffea 00000000
[  125.814473] $12   : 84be9b8c 00000146 80a8a838 ffffffff
[  125.819690] $16   : 000001ab 8481d000 80a80000 8481d000
[  125.824906] $20   : 00000054 5f435357 00000000 2d414657
[  125.830122] $24   : 00000018 803f9608                  
[  125.835338] $28   : 84be8000 84be9d38 00000000 803876f0
[  125.840555] Hi    : 00000125
[  125.843419] Lo    : 122f2000
[  125.846299] epc   : 803876f0 fortify_panic+0x18/0x1c
[  125.851237] ra    : 803876f0 fortify_panic+0x18/0x1c
[  125.856174] Status: 11008403	KERNEL EXL IE 
[  125.860350] Cause : 50800024 (ExcCode 09)
[  125.864338] PrId  : 0001992f (MIPS 1004Kc)
[  125.868411] Modules linked in: mtkhnat pppoe ppp_async nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet iptable_nat xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_objref nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_ct nft_counter nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mt7915e mt76_connac_lib mt76 mac80211 ipt_REJECT cfg80211 xt_time xt_tcpudp xt_multiport xt_mark xt_mac xt_limit xt_comment xt_TCPMSS xt_LOG slhc nfnetlink nf_reject_ipv4 nf_log_ipv6 nf_log_ipv4 nf_log_common nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c iptable_mangle iptable_filter ip_tables hwmon crc_ccitt compat ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 sha256_generic libsha256 seqiv jitterentropy_rng drbg hmac cmac leds_gpio gpio_button_hotplug crc32c_generic
[  125.954103] Process RtmpWscTask (pid: 1862, threadinfo=8c658857, task=14b2eb84, tls=00000000)
[  125.962585] Stack : 84be9dbc 80a04a70 000001ab 726e452d 00000001 80608cd8 00000000 00000009
[  125.970928]         00000000 00001eed 80a8240c 6c6c6568 8143006f 5f504145 4c494146 47e8a000
[  125.979270]         5f435357 52415453 00000054 5f435357 47415246 4b43415f 00000000 2d414657
[  125.987615]         706d6953 6f43656c 6769666e 726e452d 656c6c6f 812b0065 2d414657 706d6953
[  125.995960]         6f43656c 6769666e 6765522d 72747369 81007261 cdee0734 00000009 8481d000
[  126.004305]         ...
[  126.006744] Call Trace:
[  126.009180] [<803876f0>] fortify_panic+0x18/0x1c
[  126.013796] [<80608cd8>] WscMsgTypeSubst+0x0/0x38
[  126.018475] 
[  126.019954] Code: afbf0014  0c01fee5  24849330 <000c000d> 27bdffe0  afb10014  00808825  00a02025  afb20018 
[  126.029690] 
[  126.033186] ---[ end trace 8b85c1b34989f977 ]---
[  126.050570] Kernel panic - not syncing: Fatal exception
[  126.076961] Rebooting in 3 seconds..

Did I miss some componet? Or this driver not support WPS?

mtk hnat 与 ua2f 的“漏包”问题

我使用的设备是JCG Q20,在开启mtkhnat的情况下ua2f不会对某些应用的部分http数据包UA进行处理(如酷安),关闭mtkhnat后情况消失,我使用tcpdump+wireshark捕捉到了这一现象,我想知道如何解决这个问题,望大佬解答

UA2F是一个通过将所有http报文中User-Agent字段修改为设定值的程序
项目链接:https://github.com/Zxilly/UA2F
抓包数据.zip

大佬内核日志大量提示这个是怎么回事,我是友华wr1200js导致负载一直上升。

69.048724] br-lan: port 3(wlan1) entered forwarding state
[ 81.834746] mediatek_soc_hnat 1e100000.hnat: wan = eth1
[ 81.839983] mediatek_soc_hnat 1e100000.hnat: lan = eth0
[ 81.845560] mediatek_soc_hnat 1e100000.hnat: ppd = eth0
[ 81.850937] mediatek_soc_hnat 1e100000.hnat: gmac num = 2
[ 81.856529] mediatek_soc_hnat 1e100000.hnat: ppe num = 1
[ 81.862321] mediatek_soc_hnat 1e100000.hnat: ext devices = wlan0
[ 81.868364] mediatek_soc_hnat 1e100000.hnat: ext devices = wlan1
[ 81.874597] mediatek_soc_hnat 1e100000.hnat: ext devices = rax0
[ 81.880505] mediatek_soc_hnat 1e100000.hnat: ext devices = ra0
[ 81.886351] mediatek_soc_hnat 1e100000.hnat: ext devices = rai0
[ 81.892434] mediatek_soc_hnat 1e100000.hnat: ext devices = apclii0
[ 81.898981] mediatek_soc_hnat 1e100000.hnat: ext devices = apclix0
[ 81.905221] mediatek_soc_hnat 1e100000.hnat: ext devices = apcli0
[ 81.916855] mediatek_soc_hnat 1e100000.hnat: PPE0 entry number = 16384
[ 81.936610] mediatek_soc_hnat 1e100000.hnat: PPE0 hwnat start
[ 81.942398] extif_set_dev(wlan0)
[ 81.945657] extif_set_dev(wlan1)
[ 81.949137] hnat roaming work enable
[ 425.794978] mt753x gsw: Port 1 Link is Down
[ 427.495709] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[ 8674.644766] mt753x gsw: Port 1 Link is Down
[ 8676.994236] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[ 8782.177246] pppoe-wan: renamed from ppp0
[ 8798.598260] do_page_fault(): sending SIGSEGV to dnsmasq for invalid read access from 00000000
[ 8798.606867] epc = 77e7f1a0 in libc.so[77dff000+aa000]
[ 8798.611948] ra = 555b6a7f in dnsmasq[555b0000+3f000]
[ 8798.837530] pppoe-wan: renamed from ppp0
[ 8819.427489] do_page_fault(): sending SIGSEGV to dnsmasq for invalid read access from 00000000
[ 8819.436200] epc = 77dfe1a0 in libc.so[77d7e000+aa000]
[ 8819.441324] ra = 555d6a7f in dnsmasq[555d0000+3f000]
[ 8824.007254] pppoe-wan: renamed from ppp0
[ 8853.346321] do_page_fault(): sending SIGSEGV to dnsmasq for invalid read access from 00000000
[ 8853.354882] epc = 77ebf1a0 in libc.so[77e3f000+aa000]
[ 8853.359958] ra = 55576a7f in dnsmasq[55570000+3f000]
[ 8877.087253] pppoe-wan: renamed from ppp0
[14786.538858] mt753x gsw: Port 1 Link is Down
[14788.889152] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[16637.119674] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[16643.640549] mt753x gsw: Port 2 Link is Down
[16651.812669] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[19934.958268] mt753x gsw: Port 1 Link is Down
[19936.618451] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[23111.836087] mt753x gsw: Port 1 Link is Down
[23114.204048] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[24026.433654] mt753x gsw: Port 1 Link is Down
[24028.042042] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[25164.464847] mt753x gsw: Port 1 Link is Down
[25166.837422] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[29780.314429] mt753x gsw: Port 2 Link is Down
[37304.632919] mt753x gsw: Port 1 Link is Down
[37306.290439] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[69539.536769] mt753x gsw: Port 1 Link is Down
[69541.903612] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[71746.661333] mt753x gsw: Port 1 Link is Down
[71748.332471] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[71958.911492] mt753x gsw: Port 1 Link is Down
[71961.317251] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[74679.340761] mt753x gsw: Port 1 Link is Down
[74680.942162] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[79428.223640] mt753x gsw: Port 1 Link is Down
[79430.584298] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[85536.736075] mt753x gsw: Port 1 Link is Down
[85538.455975] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[86164.050697] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[86170.465167] mt753x gsw: Port 2 Link is Down
[86178.752642] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[87001.424784] mt753x gsw: Port 1 Link is Down
[87003.793012] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[88295.354076] mt753x gsw: Port 1 Link is Down
[88296.925646] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[94505.640497] mt753x gsw: Port 2 Link is Down
[95977.518745] mt753x gsw: Port 1 Link is Down
[95979.882056] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[96473.795851] mt753x gsw: Port 1 Link is Down
[96476.199177] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[96912.401238] mt753x gsw: Port 1 Link is Down
[96914.049575] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[113041.160790] mt753x gsw: Port 1 Link is Down
[113043.515183] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[119998.476740] mt753x gsw: Port 1 Link is Down
[120000.031957] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[191201.400849] mt753x gsw: Port 1 Link is Down
[191203.771503] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[193432.718544] mt753x gsw: Port 1 Link is Down
[193434.973594] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[195719.021611] pppoe-wan: renamed from ppp0
[197945.080673] pppoe-wan: renamed from ppp0
[198111.790120] pppoe-wan: renamed from ppp0
[198350.130527] pppoe-wan: renamed from ppp0
[199116.331620] pppoe-wan: renamed from ppp0
[204033.582557] mt753x gsw: Port 1 Link is Down
[204035.311383] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[244019.186800] mt753x gsw: Port 1 Link is Down
[244021.594512] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[244078.448675] pppoe-wan: renamed from ppp0
[244163.269443] mt753x gsw: Port 0 Link is Down
[244186.995368] mt753x gsw: Port 0 Link is Up - 1Gbps/Full
[244211.534365] mt753x gsw: Port 0 Link is Down
[244214.007242] mt753x gsw: Port 0 Link is Up - 1Gbps/Full
[244234.673471] do_page_fault(): sending SIGSEGV to dnsmasq for invalid read access from 00000000
[244234.682106] epc = 77e321a0 in libc.so[77db2000+aa000]
[244234.687304] ra = 555a6a7f in dnsmasq[555a0000+3f000]
[244252.318813] pppoe-wan: renamed from ppp0
[251056.682466] pppoe-wan: renamed from ppp0
[251072.763060] pppoe-wan: renamed from ppp0
[251098.002460] pppoe-wan: renamed from ppp0
[257012.313993] mt753x gsw: Port 1 Link is Down
[257014.026283] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[259580.274020] mt753x gsw: Port 1 Link is Down
[259582.657198] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[259728.361928] mt753x gsw: Port 1 Link is Down
[259730.510993] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[266802.999204] mt753x gsw: Port 1 Link is Down
[266805.368872] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[271347.737434] mt753x gsw: Port 1 Link is Down
[271349.524709] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[280438.788636] mt753x gsw: Port 1 Link is Down
[280441.231596] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[282711.534071] mt753x gsw: Port 1 Link is Down
[282713.318336] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[283149.797323] mt753x gsw: Port 1 Link is Down
[283152.266316] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[283631.543351] mt753x gsw: Port 1 Link is Down
[283633.153196] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[299303.405473] mt753x gsw: Port 1 Link is Down
[299305.086391] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[329740.014991] mt753x gsw: Port 1 Link is Down
[329743.812468] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[331322.144040] mt753x gsw: Port 1 Link is Down
[331323.802782] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[332058.156744] mt753x gsw: Port 1 Link is Down
[332060.512984] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[333993.335053] mt753x gsw: Port 1 Link is Down
[333995.096435] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[342097.847575] mt753x gsw: Port 1 Link is Down
[342100.201970] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[342286.719441] pppoe-wan: renamed from ppp0
[342311.863579] do_page_fault(): sending SIGSEGV to dnsmasq for invalid read access from 00000000
[342311.872245] epc = 77e5e1a0 in libc.so[77dde000+aa000]
[342311.877468] ra = 55616a7f in dnsmasq[55610000+3f000]
[342327.149057] pppoe-wan: renamed from ppp0
[342347.366316] do_page_fault(): sending SIGSEGV to dnsmasq for invalid read access from 00000000
[342347.375095] epc = 77e831a0 in libc.so[77e03000+aa000]
[342347.380623] ra = 55576a7f in dnsmasq[55570000+3f000]
[342376.569179] pppoe-wan: renamed from ppp0
[347018.531134] mt753x gsw: Port 1 Link is Down
[347020.190939] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[355455.066048] mt753x gsw: Port 1 Link is Down
[355457.430885] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[357058.194638] mt753x gsw: Port 1 Link is Down
[357059.753826] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[365707.287875] mt753x gsw: Port 1 Link is Down
[365709.654475] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[378098.441252] mt753x gsw: Port 1 Link is Down
[378100.001420] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[379381.700311] mt753x gsw: Port 1 Link is Down
[379384.072417] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[381391.905635] mt753x gsw: Port 1 Link is Down
[381393.501111] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[418384.102846] mt753x gsw: Port 1 Link is Down
[418386.459231] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[422188.020350] mt753x gsw: Port 1 Link is Down
[422190.381893] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[426533.737675] mt753x gsw: Port 1 Link is Down
[426535.401830] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[426549.497501] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[426555.639793] mt753x gsw: Port 2 Link is Down
[426562.893915] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[435713.609755] mt753x gsw: Port 2 Link is Down
[435732.594861] mt753x gsw: Port 1 Link is Down
[435734.959054] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[442377.774192] mt753x gsw: Port 1 Link is Down
[442379.385048] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[452559.784936] mt753x gsw: Port 1 Link is Down
[452562.161878] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[455604.236305] mt753x gsw: Port 1 Link is Down
[455605.943569] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[455608.267235] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[455614.744289] mt753x gsw: Port 2 Link is Down
[455622.916221] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[460379.834372] mt753x gsw: Port 2 Link is Down
[499546.369558] mt753x gsw: Port 1 Link is Down
[499548.733064] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[499794.233523] mt753x gsw: Port 1 Link is Down
[499795.893573] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[511189.086225] mt753x gsw: Port 1 Link is Down
[511191.471491] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[527643.892392] mt753x gsw: Port 1 Link is Down
[527645.500362] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[534290.906608] mt753x gsw: Port 1 Link is Down
[534293.270394] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[537664.010873] mt753x gsw: Port 1 Link is Down
[537665.713132] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[538173.159139] mt753x gsw: Port 1 Link is Down
[538175.521477] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[539341.362297] mt753x gsw: Port 1 Link is Down
[539343.014010] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[539350.171007] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[539356.313626] mt753x gsw: Port 2 Link is Down
[539363.604605] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[546437.456860] mt753x gsw: Port 2 Link is Down
[589539.380259] mt753x gsw: Port 1 Link is Down
[589541.737036] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[597573.522355] mt753x gsw: Port 1 Link is Down
[597575.101257] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[597579.958109] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[597586.006932] mt753x gsw: Port 2 Link is Down
[597593.300535] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[598898.979150] mt753x gsw: Port 2 Link is Down
[598944.407228] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[598945.161352] mt753x gsw: Port 2 Link is Down
[598948.121998] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[598958.756818] mt753x gsw: Port 2 Link is Down
[598964.586148] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[598971.369946] mt753x gsw: Port 2 Link is Down
[598973.868233] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[602330.082331] mt753x gsw: Port 2 Link is Down
[602396.814773] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[602403.292321] mt753x gsw: Port 2 Link is Down
[602411.627419] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[610692.385333] mt753x gsw: Port 2 Link is Down
[611048.841797] mt753x gsw: Port 1 Link is Down
[611051.201315] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[613251.654672] mt753x gsw: Port 1 Link is Down
[613253.225481] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[615432.352723] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[615438.846079] mt753x gsw: Port 2 Link is Down
[615447.028590] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[617609.174416] mt753x gsw: Port 2 Link is Down
[641417.107320] mt753x gsw: Port 1 Link is Down
[641419.469845] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[643689.953191] mt753x gsw: Port 1 Link is Down
[643691.596000] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[675081.544469] mt753x gsw: Port 1 Link is Down
[675083.919831] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[683569.736788] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[683571.528106] mt753x gsw: Port 2 Link is Down
[683574.807956] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[686301.132154] mt753x gsw: Port 1 Link is Down
[686303.421194] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[687182.979559] mt753x gsw: Port 2 Link is Down
[687226.046933] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[687229.638624] mt753x gsw: Port 1 Link is Down
[687231.292109] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[687232.126869] mt753x gsw: Port 2 Link is Down
[687239.395964] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[687593.444666] mt753x gsw: Port 2 Link is Down
[687645.489381] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[687654.107650] mt753x gsw: Port 2 Link is Down
[687659.513110] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[687665.909567] mt753x gsw: Port 2 Link is Down
[687668.292423] mt753x gsw: Port 2 Link is Up - 1Gbps/Full
[689723.643798] mt753x gsw: Port 1 Link is Down
[689726.021918] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[694280.247200] mt753x gsw: Port 1 Link is Down
[694282.036282] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[704005.033158] mt753x gsw: Port 1 Link is Down
[704006.845193] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[705227.714022] mt753x gsw: Port 1 Link is Down
[705231.414491] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[706293.826555] mt753x gsw: Port 1 Link is Down
[706295.463825] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[769381.678679] mt753x gsw: Port 1 Link is Down
[769384.032163] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[775130.613982] mt753x gsw: Port 1 Link is Down
[775132.876523] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[783588.732283] mt753x gsw: Port 1 Link is Down
[783591.288866] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[808087.190808] mt753x gsw: Port 1 Link is Down
[808088.827173] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[848144.650665] mt753x gsw: Port 1 Link is Down
[848147.008132] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[848245.916340] mt753x gsw: Port 1 Link is Down
[848247.768602] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[850358.583410] mt753x gsw: Port 1 Link is Down
[850360.947861] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[875118.289372] mt753x gsw: Port 1 Link is Down
[875119.989575] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[878982.931137] mt753x gsw: Port 1 Link is Down
[878985.295884] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[879252.392211] mt753x gsw: Port 1 Link is Down
[879254.085078] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[881124.702889] mt753x gsw: Port 1 Link is Down
[881127.052898] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[887494.506467] mt753x gsw: Port 1 Link is Down
[887496.114085] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[932660.228991] mt753x gsw: Port 1 Link is Down
[932662.585231] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[935140.131048] mt753x gsw: Port 1 Link is Down
[935141.687729] mt753x gsw: Port 1 Link is Up - 10Mbps/Full
[942741.458840] mt753x gsw: Port 1 Link is Down
[942743.888408] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[945797.914109] mt753x gsw: Port 2 Link is Down

RM2100 主线版本edd25462 无改动编译 疑似内存泄漏

  • 本来用着MeIsReallyBa从这里fork的源码(版本2a509f0),但那里两年没更新了,想追一下新就用这里的主线了。
  • 转过来之后就出现了内存随时间越来越少的问题,我以为是自己加的插件不兼容,就原封不动用主线源码编译了固件测试,但问题依旧没有改善。
  • 最近一次开机2h 37m 55s,内存剩余从55M降至46M。
  • 下图是之前记录的极端情况,左边是刚开机,右边是开机很长一段时间,大约7小时之后。基本上加载后台页面已经要卡很久了。但是meminfo完全看不出内存去处。日志没有异常记录,tmp大小也正常。
    photo_2024-03-12_21-23-54

用这固件有mpd挂声卡,推送音乐成功的吗?我的报错

刚开始安装完时,直接运行mpd,正常运行,qq音乐也可以正常推送,设置了自启动/etc/init.d/mpd enable后,重启路由,就不能正常运行了,症状是:qq音乐链接后播放按钮点不动,手机MPDroid播放按钮也点不动,提示绑定端口失败
root@ImmortalWrt:~# mpd -v
config_file: loading file /etc/mpd.conf
May 21 13:33 : exception: Failed to bind to '0.0.0.0:6600'; Failed to bind socket: Address in use

系统日志:Tue May 21 13:32:25 2024 daemon.err mpd[11241]: Could not open /dev/crypto: Permission denied

mpd的log:May 21 13:57 : config: option 'mixer_control' on line 15 was not recognized
May 21 14:00 : ffmpeg/mp3: Estimating duration from bitrate, this may be inaccurate
May 21 14:00 : exception: Failed to open "My ALSA Device" (alsa); Failed to open ALSA device "hw:0,0": Permission denied
May 21 14:00 : exception: Failed to open "My ALSA Device" (alsa); Failed to open ALSA device "hw:0,0": Permission denied
May 21 14:00 : player: problems opening audio device while playing "费玉清 一剪梅.mp3"
May 21 14:00 : exception: Failed to open "My ALSA Device" (alsa); Failed to open ALSA device "hw:0,0": Permission denied
May 21 14:00 : exception: Failed to open "My ALSA Device" (alsa); Failed to open ALSA device "hw:0,0": Permission denied
May 21 14:00 : exception: Failed to open "My ALSA Device" (alsa); Failed to open ALSA device "hw:0,0": Permission denied
May 21 14:00 : exception: Failed to open "My ALSA Device" (alsa); Failed to open ALSA device "hw:0,0": Permission denied
May 21 14:01 : player: played "费玉清 一剪梅.mp3"
May 21 14:01 : exception: Failed to open "My ALSA Device" (alsa); Failed to open ALSA device "hw:0,0": Permission denied
May 21 14:01 : exception: Failed to open "My ALSA Device" (alsa); Failed to open ALSA device "hw:0,0": Permission denied
May 21 14:01 : player: problems opening audio device while playing "http://isure6.stream.qqmusic.qq.com/M5000030QIVp0DaIAg.mp3?guid=0000000070a2f81b00000183c73bf5a7&vkey=B029BDE02AF68F9853A588DE3CB42D6A727BE3A1B676693C23A50C077EBD561A3DAD102F0B9092AF17BA7EA1D20398E0D688717C67DCDFDF&uin=1152921504987820027&fromtag=111042"
May 21 14:01 : ffmpeg/mp3float: Could not update timestamps for skipped samples.
May 21 14:01 : exception: Failed to open "My ALSA Device" (alsa); Failed to open ALSA device "hw:0,0": Permission denied
May 21 14:01 : exception: Failed to open "My ALSA Device" (alsa); Failed to open ALSA device "hw:0,0": Permission denied

mpd.conf配置:

music_directory "/mnt/mmcblk0p1/mp3" #歌曲目录
playlist_directory "/mnt/mmcblk0p1/mp3/.mpd/" #播放列表存放目录
db_file "/mnt/mmcblk0p1/mp3/.mpd/mpd.db" #歌曲列表
log_file "/tmp/mpd.log"
pid_file "/tmp/mpd.pid"
user "root"
group "users"
bind_to_address "0.0.0.0"
port "6600"
audio_output {
type "alsa"
name "My ALSA Device"
device "hw:0,0"
format "44100:16:2"
mixer_control "PCM"
}
filesystem_charset "UTF-8"

#id3v1_encoding "gb2312"

#OSS Mixer
mixer_type "software"
#mixer_device "/dev/mixer"
#mixer_control "speaker"

auto_update "yes"
#gapless_mp3_playback "yes"

缺少依赖

./scripts/feeds update -a
Can't exec "": No such file or directory at ./scripts/feeds line 835.

./scripts/feeds install -a
Collecting package info: done
Collecting target info: done
WARNING: Makefile 'package/emortal/autocore/Makefile' has a dependency on 'lm-sensors', which does not exist
WARNING: Makefile 'package/emortal/automount/Makefile' has a dependency on 'ntfs-3g', which does not exist
WARNING: Makefile 'package/emortal/autosamba/Makefile' has a dependency on 'luci-app-samba', which does not exist
WARNING: Makefile 'package/emortal/autosamba/Makefile' has a dependency on 'wsdd2', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a build dependency on 'libpam', which does not exist
WARNING: Makefile 'package/emortal/default-settings/Makefile' has a dependency on 'luci-base', which does not exist
WARNING: Makefile 'package/emortal/ipv6-helper/Makefile' has a dependency on 'luci-proto-ipv6', which does not exist
WARNING: Makefile 'package/emortal/ipv6-helper/Makefile' has a dependency on 'wget-ssl', which does not exist
WARNING: Makefile 'package/boot/kexec-tools/Makefile' has a dependency on 'liblzma', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist
WARNING: Makefile 'package/emortal/luci-app-mtwifi/Makefile' has a build dependency on 'luci-base/host', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a build dependency on 'libpam', which does not exist

Mt7621.mk

大佬,对比了某些机油反馈添加ucidef_set_interfaces_lan_wan "eth0 ra0 rai0" "eth1"代码网口起不来,请教下这个看机型体质么

小米r3g编译失败

make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [/home/ubuntu/immortalwrt/include/toplevel.mk:230: world] Error 1
提示这个

mtkhnat loaded but no ppe was found

Device is Arcadyan WG630223, nearly identical with MTK MT7621+MT7915 DBDC reference design.
I've tried to patch the dts and uci defaults as you've suggested
But after boot the module doesn't detect PPE, and no hwnat acceleration at all (CPU goes to 100% at 400Mbps), please help

WAN is at port4, LAN at port 2 and 3

dmesg:

[ 542.782005] mediatek_soc_hnat 1e100000.hnat: wan = eth1
[ 542.787547] mediatek_soc_hnat 1e100000.hnat: lan = eth0
[ 542.792758] mediatek_soc_hnat 1e100000.hnat: ppd = eth0
[ 542.798341] mediatek_soc_hnat 1e100000.hnat: gmac num = 2
[ 542.809524] mediatek_soc_hnat 1e100000.hnat: ext devices = wlan0
[ 542.815335] mediatek_soc_hnat 1e100000.hnat: ext devices = wlan1
[ 542.851014] mediatek_soc_hnat 1e100000.hnat: FOE entry number = 16384
[ 542.870583] mediatek_soc_hnat 1e100000.hnat: hwnat start

Original dts looks like this:

&gmac0 {
	nvmem-cells = <&macaddr_factory_fff0>;
	nvmem-cell-names = "mac-address";
};

&gmac1 {
	status = "okay";
	label = "wan";
	phy-handle = <&ethphy4>;

	nvmem-cells = <&macaddr_factory_fff0>;
	nvmem-cell-names = "mac-address";
};

&mdio {
	ethphy4: ethernet-phy@4 {
		reg = <4>;
	};
};

&switch0 {
	ports {
		port@2 {
			status = "okay";
			label = "lan2";
		};

		port@3 {
			status = "okay";
			label = "lan1";
		};
[hwnat_dts.txt](https://github.com/padavanonly/immortalwrt/files/10083579/hwnat_dts.txt)

	};
};
[orig_openwrt_dts.txt](https://github.com/padavanonly/immortalwrt/files/10083575/orig_openwrt_dts.txt)
[stockfw_dts.txt](https://github.com/padavanonly/immortalwrt/files/10083576/stockfw_dts.txt)

After patching:

&gmac0 {
	nvmem-cells = <&macaddr_factory_fff0>;
	nvmem-cell-names = "mac-address";
};

&gmac1 {
	nvmem-cells = <&macaddr_factory_fff0>;
	nvmem-cell-names = "mac-address";
};

&hnat {
        mtketh-wan = "eth1";
        mtketh-ppd = "eth0";
        mtketh-lan = "eth0";
	ext-devices = "wlan0","wlan1";
        mtketh-max-gmac = <2>;
        status = "okay";
};

&gsw {
	mediatek,mdio = <&mdio>;
	mediatek,portmap = "llllw";
	mediatek,mcm;
	mt7530,direct-phy-access;

	resets = <&rstctrl 2>;
	reset-names = "mcm";

	port5: port@5 {
		compatible = "mediatek,mt753x-port";
		reg = <5>;
		phy-mode = "rgmii";
		fixed-link {
			speed = <1000>;
			full-duplex;
		};
	};

	port6: port@6 {
		compatible = "mediatek,mt753x-port";
		reg = <6>;
		phy-mode = "trgmii";
		fixed-link {
			speed = <1000>;
			full-duplex;
		};
	};

	mdio-bus {
		#address-cells = <1>;
		#size-cells = <0>;
	};
};

&switch0 {
	/* must delete compatible property */
	/delete-property/ compatible;
};

EA7500v2 WiFi不能分配ip

拉源码为EA7500v2生成了一个固件,各方面都很好,就是WiFi在刚刷机和重置后不能自动分配IP,不论是2.4g还是5g都是这样,必须要把原来的配置etc/network传上去重启才能正常分配IP。希望大佬能适配下ea7500v2,不胜感激。

如何开机自动中继

我使用源码自己编译了xiaomi-r3g的固件,设置中继可以正常上网,但重启后无法自动中继上,要手动点一下"连接中继"才生效,有什么办法能让路由器重启后自动连接中继。

build for tenbay_t-mb5eu-v01

hi, i'm trying to understand why the firmware softbrick my device, do i need change something in make menuconfig to do it right?
also are mtk mt7915 drivers working?

云编译失败

Applying /home/runner/work/OpenWrt_R7800_Stable/OpenWrt_R7800_Stable/owrt/target/linux/mediatek/patches-5.10/603-ARM-dts-mediatek-Update-mt7629-PCIe-node.patch using plaintext:
patching file arch/arm/boot/dts/mt7629-rfb.dts
patching file arch/arm/boot/dts/mt7629.dtsi
Applying /home/runner/work/OpenWrt_R7800_Stable/OpenWrt_R7800_Stable/owrt/target/linux/mediatek/patches-5.10/610-pcie-mediatek-fix-clearing-interrupt-status.patch using plaintext:
patching file drivers/pci/controller/pcie-mediatek.c
Applying /home/runner/work/OpenWrt_R7800_Stable/OpenWrt_R7800_Stable/owrt/target/linux/mediatek/patches-5.10/700-net-ethernet-mtk_eth_soc-add-support-for-coherent-DM.patch using plaintext:
patching file arch/arm64/boot/dts/mediatek/mt7622.dtsi
Hunk #1 FAILED at 364.
Hunk #2 FAILED at 977.
2 out of 2 hunks FAILED -- saving rejects to file arch/arm64/boot/dts/mediatek/mt7622.dtsi.rej
patching file drivers/net/ethernet/mediatek/mtk_eth_soc.c
Hunk #1 FAILED at 9.
Hunk #2 succeeded at 2508 with fuzz 2 (offset 14 lines).
Hunk #3 succeeded at 3165 with fuzz 1 (offset 87 lines).
1 out of 3 hunks FAILED -- saving rejects to file drivers/net/ethernet/mediatek/mtk_eth_soc.c.rej
patching file drivers/net/ethernet/mediatek/mtk_eth_soc.h
Hunk #1 succeeded at 465 with fuzz 2 (offset 15 lines).
Patch failed! Please fix /home/runner/work/OpenWrt_R7800_Stable/OpenWrt_R7800_Stable/owrt/target/linux/mediatek/patches-5.10/700-net-ethernet-mtk_eth_soc-add-support-for-coherent-DM.patch!
make[4]: *** [Makefile:27: /home/runner/work/OpenWrt_R7800_Stable/OpenWrt_R7800_Stable/owrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/linux-5.10.109/.prepared_3c2fdf9805cba614df35cc248ef691a0] Error 1
make[4]: Leaving directory '/home/runner/work/OpenWrt_R7800_Stable/OpenWrt_R7800_Stable/owrt/target/linux/mediatek'
make[3]: *** [Makefile:11: compile] Error 2
make[3]: Leaving directory '/home/runner/work/OpenWrt_R7800_Stable/OpenWrt_R7800_Stable/owrt/target/linux'
time: target/linux/compile#8.58#7.16#11.69
ERROR: target/linux failed to build.
make[2]: *** [target/Makefile:25: target/linux/compile] Error 1
make[2]: Leaving directory '/home/runner/work/OpenWrt_R7800_Stable/OpenWrt_R7800_Stable/owrt'
make[1]: *** [target/Makefile:18: /home/runner/work/OpenWrt_R7800_Stable/OpenWrt_R7800_Stable/owrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.target_compile] Error 2
make[1]: Leaving directory '/home/runner/work/OpenWrt_R7800_Stable/OpenWrt_R7800_Stable/owrt'
make: *** [/home/runner/work/OpenWrt_R7800_Stable/OpenWrt_R7800_Stable/owrt/include/toplevel.mk:230: world] Error 2
Error: Process completed with exit code 2.

luci-app-mtwifi的files缺失

luci-app-mtwifi的files被移动到mtkhqos_util啦,所以它的Makefile里install部分会失败
另外缺少了package/network/utils/fullconenat

编译出错,大佬帮忙看下

Makefile:58: recipe for target '/home/op/immortalwrt/build_dir/target-mipsel_24kc_musl/ddns-go-5.7.1/.built' failed
make[3]: *** [/home/op/immortalwrt/build_dir/target-mipsel_24kc_musl/ddns-go-5.7.1/.built] Error 1
make[3]: Leaving directory '/home/op/immortalwrt/package/ddns-go/ddns-go'
time: package/ddns-go/ddns-go/compile#0.68#0.52#27.30
ERROR: package/ddns-go/ddns-go failed to build.
package/Makefile:114: recipe for target 'package/ddns-go/ddns-go/compile' failed
make[2]: *** [package/ddns-go/ddns-go/compile] Error 1
make[2]: Leaving directory '/home/op/immortalwrt'
package/Makefile:110: recipe for target '/home/op/immortalwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/op/immortalwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/op/immortalwrt'
/home/op/immortalwrt/include/toplevel.mk:228: recipe for target 'world' failed
make: *** [world] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.