Skip to content

reflander/flawrt

Repository files navigation

2024年4月15日构建多分支 可以编译7981芯片的路由器 此项目源于ImmortalWrt,源代码来自 https://github.com/hanwckf/immortalwrt-mt798x.git

设置

默认IP: http://192.168.1.7 or http://immortalwrt.lan

用户名: root 密码: none

相关介绍

要求

  • 要使用这个项目进行构建,首选ubuntu 20.04 lts。你需要使用amd64架构上的代码,至少有4gb的内存和25 gb的可用磁盘空间。确保互联网是可访问的。

  • 安装依赖

    1.使用普通用户身份 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 clang clangd cmake cpio curl device-tree-compiler ecj fastjar flex gawk gettext gcc-multilib \
    g++-multilib git gperf haveged help2man intltool lib32gcc-s1 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 lld lldb 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

    方式二:

    sudo bash -c 'bash <(curl -s https://build-scripts.immortalwrt.eu.org/init_build_environment.sh)'

    注意:

编译

  1. 拉取源码
git clone --depth=1 https://github.com/reflander/flawrt.git
  1. 转到文件夹
cd flawrt
  1. 更新安装包
./scripts/feeds update -a
  1. 安装包
./scripts/feeds install -a
  1. defconfig 文件夹复制配置文件并重命名为 .config

    # MT7981
    cp -f defconfig/mt7981-ax3000.config .config
    
    # MT7986
    cp -f defconfig/mt7986-ax6000.config .config
    
    # MT7986 256M Low Memory
    cp -f defconfig/mt7986-ax6000-256m.config .config
    
    # x86
    cp -f defconfig/x86.config .config
    
    
  2. 选择您偏好的工具链、目标系统和固件包的配置

make menuconfig
  1. 构建您的固件。这将下载所有源代码,构建交叉编译工具链,然后为您的目标系统交叉编译 GNU/Linux 内核和所有选择的应用程序。
 make V=s -j$(nproc)

编译其他相关

  • 清除全部构建环境、回复到源代码状态
make distclean

相关存储库

主存储库使用多个子存储库来管理不同类别的软件包。所有软件包均通过 ImmortalWrt 软件包管理器 opkg 安装。如果您想开发 Web 界面或将软件包移植到 ImmortalWrt,请在下面找到相应的存储库。

支持信息

有关受支持设备的列表,请参阅OpenWrt 硬件数据库

Documentation

支持社区

许可证

ImmortalWrt is licensed under GPL-2.0-only.

致谢

Dler Cloud JetBrains Black Box Logo logo SourceForge

About

openwrt固件

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors