解决Openwrt版本内核不兼容

摘要:
配置gluci-i18n-firewall zh-cn。收集器错误:*满足依赖性:无法满足以下依赖性forkmod fs nfs:*内核(=4.9.91-1-d882c8d0bcc953d0c9f6cc520732d071)*内核(=4.9.91-1-d
 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,  解决Openwrt版本内核不兼容第1张所以问题是不同设备树编译相同内核时,由于内核配置不一样,导致.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文件

免责声明:文章转载自《解决Openwrt版本内核不兼容》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇iOS APP提交上架流程kvm迁移下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

在openwrt上编译一个最简单的ipk包

1 什么是opkg   Opkg 是一个轻量快速的套件管理系统,目前已成为 Opensource 界嵌入式系统标准。常用于路由、交换机等嵌入式设备中,用来管理软件包的安装升级与下载。   opkg update 更新可以获取的软件包列表   opkg upgrade 对已经安装的软件包升级   opkg list 获取软件列表   opkg install...

OpenWrt上搭建纯L2TP服务器[ZT]

转自:http://www.openwrt.pro/post-389.html 纯L2TP(l2tp + ppp,无IPSec) 首先安装xl2tpd软件包 opkg update opkg install xl2tpd 编辑/etc/xl2tpd/xl2tpd.conf,配置l2tp服务器端 [global] port = 1701 auth fi...

软路由系统记录

openwrt openwrt中文网:http://www.openwrt.org.cn 恩山论坛:https://www.right.com.cn/forum/ openwrt官网:https://openwrt.org/ 爱快 官网:https://www.ikuai8.com/ Tips:x86平台 32位或64位 LEDL 官网:ht...

openwrt防火墙firewall

知识链接:linux平台下防火墙iptables原理 一、 OpenWrt 内置防火墙介绍   Openwrt 是一个 GNU/Linux 的发行版, 和其他大多数的发行版一样,Openwrt 的防火墙同样也是基于 iptables。 在 OpenWRT 下防火墙的默认行为已经可以满足路由器的需要,一般情况下也无需修改。OpenWrt 关于 NAT、 DM...

openwrt 上的 upnp wifi 音频推送 gmediarender

首先是必须启用的模块 Libraries ---><*> libupnp Sound ---> <*> alsa-utils<*> madplay-alsa-*- mpg123 Multimedia --->gst1-libavgstreamer1-libsgstreamer1-plugins-base...

Newifi D1或 D2在Openwrt中,启用硬件NAT,启用BBR

Newifi D1或 D2在Openwrt中,启用硬件NAT,启用BBR 转载注明来源: 本文链接 来自osnosn的博客,写于 2019-09-27. 启用 mt7621的硬件nat (Newifi D1 或 D2) newifi mini 用的是mt7620,也有硬件NAT,但不知道openwrt是否支持。 登陆路由器的网页。 Network -&g...