找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2209|回复: 16

求助!openwrt编译未生成固件

[复制链接]
发表于 2021-4-1 21:49 | 显示全部楼层 |阅读模式
本帖最后由 yonglin2103 于 2021-4-2 18:00 编辑

本人接触openwrt时间不长,但也在网上查了些资料,费了不少精力。但仍是小白。我是按照lede的源码仓库介绍的方法搭建好平台,然后用https://openwrt.org/的源码编译红米AC2100的固件(暂未配插件)。前面都未有报错,但未生成固件。不知时什么原因?请求指导,谢谢!配置选择红米外,文件均按默认。配置文件我也另存为ac2100.config,此文件是否要放入config文件夹中,要输入怎样的命令才能调用?




已重新按LEDE的方法重头开始,但目前 有文件错误 upx,怎么处理


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2021-4-1 21:56 | 显示全部楼层
  1. make download V=s -j1
复制代码
只是下载源码包,还没编译
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-1 21:56 | 显示全部楼层
你这只是下载好了相应的源码包,还没开始编译吧,make了吗

点评

在看贴同时,我也按照https://openwrt.org/zh-cn/doc/howto/build说的,直接make 这与LEDE的方法有何不同?  详情 回复 发表于 2021-4-1 22:14
是不是还要 git pull ./scripts/feeds update -a && ./scripts/feeds install -a make defconfig make -j8 download make -j$(($(nproc) + 1)) V=s  详情 回复 发表于 2021-4-1 22:08
make menuconfig 我输入了 make -j8 download v=s make -j1 download v=s  详情 回复 发表于 2021-4-1 22:06
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-1 22:05 | 显示全部楼层
运行 make -j1 V=s 来编译

点评

我已经直接make了,没有问题吧?实在是菜  详情 回复 发表于 2021-4-1 22:22
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-4-1 22:06 | 显示全部楼层
tangn 发表于 2021-4-1 21:56
你这只是下载好了相应的源码包,还没开始编译吧,make了吗


make menuconfig
我输入了
make -j8 download v=s
make -j1 download v=s
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-4-1 22:08 | 显示全部楼层
tangn 发表于 2021-4-1 21:56
你这只是下载好了相应的源码包,还没开始编译吧,make了吗

是不是还要
git pull
./scripts/feeds update -a && ./scripts/feeds install -a
make defconfig
make -j8 download
make -j$(($(nproc) + 1)) V=s
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-1 22:11 来自手机 | 显示全部楼层
乱搞什么码,就是四楼的行了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-4-1 22:14 | 显示全部楼层
tangn 发表于 2021-4-1 21:56
你这只是下载好了相应的源码包,还没开始编译吧,make了吗

在看贴同时,我也按照https://openwrt.org/zh-cn/doc/howto/build说的,直接make
这与LEDE的方法有何不同?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-4-1 22:22 | 显示全部楼层
jjit 发表于 2021-4-1 22:05
运行 make -j1 V=s 来编译

我已经直接make了,没有问题吧?实在是菜
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-1 23:07 | 显示全部楼层
make menuconfig的时候保存默认文件名不要改 改了就找不到配置默认叫. config   

点评

我是另存备份  详情 回复 发表于 2021-4-1 23:25
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-4-1 23:25 | 显示全部楼层
dybjxx 发表于 2021-4-1 23:07
make menuconfig的时候保存默认文件名不要改 改了就找不到配置默认叫. config

我是另存备份
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-1 23:26 来自手机 | 显示全部楼层
十楼正解,你是画蛇添足了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-1 23:29 | 显示全部楼层
你还没运行编译那来的固件?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-4-2 00:31 | 显示全部楼层
编译出译错误:Makefile:557: recipe for target '/usr/lib/vmware-tools/openwrt/openwrt/staging_dir/target-mipsel_24kc_musl/root-ramips/stamp/.kmod-mac80211_installed' failed
make[3]: *** [/usr/lib/vmware-tools/openwrt/openwrt/staging_dir/target-mipsel_24kc_musl/root-ramips/stamp/.kmod-mac80211_installed] Error 1
make[3]: Leaving directory '/usr/lib/vmware-tools/openwrt/openwrt/package/kernel/mac80211'
time: package/kernel/mac80211/compile#84.15#12.53#98.29
    ERROR: package/kernel/mac80211 failed to build.
package/Makefile:112: recipe for target 'package/kernel/mac80211/compile' failed
make[2]: *** [package/kernel/mac80211/compile] Error 1
make[2]: Leaving directory '/usr/lib/vmware-tools/openwrt/openwrt'
package/Makefile:108: recipe for target '/usr/lib/vmware-tools/openwrt/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/usr/lib/vmware-tools/openwrt/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/usr/lib/vmware-tools/openwrt/openwrt'
/usr/lib/vmware-tools/openwrt/openwrt/include/toplevel.mk:228: recipe for target 'world' failed
make: *** [world] Error 2
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-2 04:29 | 显示全部楼层
yonglin2103 发表于 2021-4-2 00:31
编译出译错误:Makefile:557: recipe for target '/usr/lib/vmware-tools/openwrt/openwrt/staging_dir/tar ...

国内编译固件,最好准备一个稳定的违禁词语,不然某些文件下载不了会导致编译失败

点评

有文件错误 upx,怎么处理?  详情 回复 发表于 2021-4-2 18:00
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-29 02:51

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表