V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
OpenWrt 是一个专门面向嵌入式设备的 Linux 发行版。你可以将 OpenWrt 支持的型号的嵌入式设备,比如各种路由器上的系统,换成一个有更多可能性可以折腾的 Linux 系统。
OpenWrt 官方网站
poporange
V2EX  ›  OpenWrt

编译 openwrt 的时候出现了报错,不知道怎么解决,求问

  •  1
     
  •   poporange · 2023-02-12 15:07:43 +08:00 · 977 次点击
    这是一个创建于 466 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我打算单独编译一个 ipk ,但是编译的过程中报了下面的错误,谷歌了很久,没有找到解决办法,希望有大哥能指点一下。

    报错代码如下:
    can't open file '/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-armvirt_64/linux-5.4.111/.config' at /home/openwrt/scripts/kconfig.pl line 32.
    grep: /home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-armvirt_64/linux-5.4.111/modules.builtin: No such file or directory
    ERROR: module '/home/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-armvirt_64/linux-5.4.111/drivers/md/md-mod.ko' is missing.
    make[2]: *** [modules/block.mk:316: /home/openwrt/bin/targets/armvirt/64/packages/kmod-md-mod_5.4.111-1_aarch64_cortex-a53.ipk] Error 1
    make[2]: Leaving directory '/home/openwrt/package/kernel/linux'
    time: package/kernel/linux/compile#0.99#0.01#0.99
    ERROR: package/kernel/linux failed to build.
    poporange
        1
    poporange  
    OP
       2023-02-12 15:56:48 +08:00
    最终还是找到了解决办法,需要先编译一下内核:make target/linux/compile V=99 然后再编译单独的 ipk 插件
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2760 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:32 · PVG 22:32 · LAX 07:32 · JFK 10:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.