Skip to content

原版 Lienol’s openwrt 编译方法

编译命令如下:

  • 首先装好 Ubuntu 64bit,推荐 Ubuntu 18 LTS x64

  • 命令行输入 sudo apt-get update ,然后输入 sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3.5 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

  • git clone -b dev-19.07 https://github.com/Lienol/openwrt op19 命令下载好源代码,然后 cd op19 进入目录

  • ./scripts/feeds clean./scripts/feeds update -a./scripts/feeds install -amake menuconfig

  • make -j8 download V=s 下载dl库(国内请尽量全局科学上网)

  • 输入 make -j1 V=s (-j1 后面是线程数。第一次编译推荐用单线程)即可开始编译你要的固件了。

  • 编译完成后输出路径:op-19/bin/targets

Comments are closed, but trackbacks and pingbacks are open.