解決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文件


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM