openwrt MT7620 固件编译记录

  • 下载,安装相关软件

    git clone git@github.com:openwrt-mirror/openwrt.git
    sudo apt-get install gcc g++ binutils patch bzip2 flex bison make autoconf gettext texinfo unzip zip unrar p7zip p7zip-rar p7zip-full sharutils subversion libncurses5-dev ncurses-term zlib1g-dev gawk git-core libssl-dev
  • 下载完了之后更新

    cd openwrt
    ./scripts/feeds update -a
    ./scripts/feeds install -a
  • 配置参考

    https://blog.csdn.net/weiniliuchao/article/details/49277023
  • 遇到问题

    install -d -m0755 /bin
    install -m0755 src/po2lmo /bin/po2lmo
    install: cannot create regular file '/bin/po2lmo': Permission denied
    make[3]: *** [/home/oepnwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/host/stamp/.luci-base_installed] Error 1
    make[3]: Leaving directory `/home/oepnwrt/openwrt/feeds/luci/modules/luci-base'
    make[2]: *** [package/feeds/luci/luci-base/host/compile] Error 2
    // 解决
    cd /home/oepnwrt/openwrt/feeds/luci/modules/luci-base
    修改 这个  Makefile
    define Host/Install
            $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
            $(INSTALL_BIN) src/po2lmo $(STAGING_DIR_HOST)/bin/po2lmo
            $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/LuaSrcDiet.lua $(STAGING_DIR_HOST)/bin/LuaSrcDiet
    endef
    Makefile:49: *** missing separator (did you mean TAB instead of 8 spaces?).  Stop.
    这个是因为刚才复制的时候把 table 复制成 空格了, 将 8 个空格换成  table 就行
  • 编译

    make -j8 V=s
    // V=s 是指打印编译信息
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值