解决Openwrt版本内核不兼容
Configuring luci-i18n-firewall-zh-cn. Collected errors: * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-fs-nfs: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-fs-nfs. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-fs-nfs-v3: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-fs-nfs-v3. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-leds-gpio: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-leds-gpio. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ledtrig-heartbeat: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-ledtrig-heartbeat. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ledtrig-timer: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-ledtrig-timer. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-lib-crc-ccitt: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-lib-crc-ccitt. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-nf-reject: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-nf-reject. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-nf-reject6: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-nf-reject6. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-nf-ipt: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-nf-ipt. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-nf-ipt6: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-nf-ipt6. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ipt-core: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-ipt-core. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-nf-conntrack: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-nf-conntrack. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-nf-conntrack6: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-nf-conntrack6. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-nf-nat: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-nf-nat. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ipt-conntrack: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-ipt-conntrack. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ipt-ipopt: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-ipt-ipopt. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ipt-nat: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-ipt-nat. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ip6tables: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-ip6tables. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-nls-base: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-nls-base. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-softdog: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-softdog. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-core: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-usb-core. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-ohci: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-usb-ohci. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-ehci: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-usb-ehci. * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb2: * kernel (= 4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071) * * opkg_install_cmd: Cannot install package kmod-usb2. make[2]: *** [package/install] Error 255 make[2]: Leaving directory `/opt/svnworking/A1806_Openwrt-lede.bak/source/master' make[1]: *** [/opt/svnworking/A1806_Openwrt-lede.bak/source/master/staging_dir/target-mipsel_24kc_musl/stamp/.package_install] Error 2 make[1]: Leaving directory `/opt/svnworking/A1806_Openwrt-lede.bak/source/master' Build failed - please re-run with -j1 to see the real error message make: *** [world] 错误 1
排查问题:根据http://www.mm126.cc/305.html里的内容, 确定是md5不一致的问题,而md5的生成是通过kernel-defualts.mk进行生成md5, 所以问题是不同设备树编译相同内核时,由于内核配置不一样,导致.config.set不一致引起md5的问题,引起上面问题。 要保持内核配置内容基本一致, 生成的.config.set 就会保持一致,编译的时候就不会产生内核版本不致问题
根据链接 http://www.mm126.cc/305.html 的解释, 通过读取.config.set 再通过./include/kernel-defaults.mk里换算生成的.vermagic , 通过.vermagic生成的control文件的version与上述编译的内核版本不一样引起的问题
最终解决方法:
1、要么进行make clean 重新编译
2、按照 http://www.mm126.cc/305.html 把编译的内核版本的md5写入到. vermagic文件
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?