Skip to content
易大宝 edited this page Jan 22, 2023 · 4 revisions

安装依赖:

  • 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 libgcc1 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 libfuse-dev

安装源码仓库及插件:

开始编译:

  • make download -j8
  • make V=s -j1

二次编译:

  • cd openwrt
  • git pull
  • ./scripts/feeds update -a && ./scripts/feeds install -a
  • make defconfig
  • make -j8 downloadmake -j$(($(nproc) + 1)) V=s

更改配置:

  • cd openwrt
  • rm -rf ./tmp && rm -rf .config
  • make menuconfig
  • make -j$(($(nproc) + 1)) V=s

编译完成后输出路径:bin/targets

配置文件更改lanI路劲:

  • package/base-files/files/bin/config_generate
Clone this wiki locally