Cannot install kmod-mii package
-
when I try to install kmod-mii package, I get below result
Command :
opkg update
opkg install kmod-miiResult:
Installing kmod-mii (4.14.81-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/core/kmod-mii_4.14.81-1_mipsel_24kc.ipk
Collected errors:- satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-mii:
-
kernel (= 4.14.81-1-4d99ecc9745adb4d8a275d8e3a38961b) *
- opkg_install_cmd: Cannot install package kmod-mii.**
I have upgraded the software using command oupgrade.
After up-gradation following are omega2s software details- software version : 0.3.2 b233
- Kernel release : 4.14.81
- Kernel version : #0 Fri Dec 6 16:28:06 2019
But still i get the same result. How can I fix it?
Thank you
-
Help I have this issue again with kmod-spi-gpio-custom. Exact same error and situation, just a different package
-
opkg --force-depends install kmod-
-
Whenever you get this message it means that the kernel that you're running and the kmod packages in the repository are out of sync.
My recommendation would be:
- Upgrade your firmware. The most-recent version appears to be b237 as of 2020-04-07.
- On reboot, enable the target repository, which would be
kmod-mii_4.14.171-1_mipsel_24kc.ipk
as of 2020-04-07.
Then attempt to install the kernel module again.
-
@Lnx-Prof I think you did not try your recommendation.
# Omega2+ FW v0.3.2 b237 2020-04-07 root@Omega-5BE1:~# opkg update ... root@Omega-5BE1:~# opkg install kmod-spi-gpio-custom Installing kmod-spi-gpio-custom (4.14.81-1) to root... Downloading http://repo.onioniot.com/omega2/packages/core/kmod-spi-gpio-custom_4.14.81-1_mipsel_24kc.ipk Collected errors: * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-spi-gpio-custom: * kernel (= 4.14.81-1-4d99ecc9745adb4d8a275d8e3a38961b) * kernel (= 4.14.81-1-4d99ecc9745adb4d8a275d8e3a38961b) * kernel (= 4.14.81-1-4d99ecc9745adb4d8a275d8e3a38961b) * * opkg_install_cmd: Cannot install package kmod-spi-gpio-custom.
@Jeremy-Shubert This happens very easily when you are using a snapshot image.
OpenWrt FAQ Cannot satisfy dependenciesOpenWrt Development builds / snapshots
Main differences of buildbot snapshots vs. official stable releases- snapshots are completely untested.
-
If you're attempting to install 4.14.81-1, you don't have the most recent firmware/sources.
You've also moved to gpio?
Following my process, I am able to install every kmod in the current target repository.
-
@Lnx-Prof 4.14.81 is the kernel version of my official (out of the box) v0.3.2 b237 firmware.
Do you say that akmod-spi-gpio-custom (4.14.171-1) kernel (= 4.14.171 ...)
module is OK for this kernel?# Omega2+ FW v0.3.2 b237 2020-04-07 root@Omega-5BE1:/# cat /etc/opkg/distfeeds.conf src/gz openwrt_core http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ramips/mt76x8/packages #src/gz openwrt_base http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/base #src/gz openwrt_luci http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/luci #src/gz openwrt_onion http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/onion #src/gz openwrt_packages http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages #src/gz openwrt_routing http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/routing #src/gz openwrt_telephony http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/telephony src/gz omega2_core http://repo.onioniot.com/omega2/packages/core src/gz omega2_base http://repo.onioniot.com/omega2/packages/base src/gz omega2_packages http://repo.onioniot.com/omega2/packages/packages src/gz omega2_routing http://repo.onioniot.com/omega2/packages/routing src/gz omega2_onion http://repo.onioniot.com/omega2/packages/onion root@Omega-5BE1:~# opkg update ... root@Omega-5BE1:/# opkg install kmod-spi-gpio-custom Installing kmod-spi-gpio-custom (4.14.171-1) to root... Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ramips/mt76x8/packages/kmod-spi-gpio-custom_4.14.171-1_mipsel_24kc.ipk Collected errors: * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-spi-gpio-custom: * kernel (= 4.14.171-1-da4f999cff891c50c6d11774cc24f4e2) * kernel (= 4.14.171-1-da4f999cff891c50c6d11774cc24f4e2) * kernel (= 4.14.171-1-da4f999cff891c50c6d11774cc24f4e2) * * opkg_install_cmd: Cannot install package kmod-spi-gpio-custom.
What is your kernel version please?
-
I'm sorry that you're having issues with loading the kernel modules. It's a commonly-hit wall.
If you're using
4.14.81
, you'll needkmod-spi-bitbang
,kmod-spi-gpio
andkmod-spi-gpio-custom
.mazer@snowball:~# ssh root@192.168.3.1 root@192.168.3.1's password: BusyBox v1.28.3 () built-in shell (ash) ____ _ ____ / __ \___ (_)__ ___ / __ \__ _ ___ ___ ____ _ / /_/ / _ \/ / _ \/ _ \ / /_/ / ' \/ -_) _ `/ _ `/ \____/_//_/_/\___/_//_/ \____/_/_/_/\__/\_, /\_,_/ W H A T W I L L Y O U I N V E N T ? /___/ ----------------------------------------------------- Ω-ware: 0.3.2 b237 ----------------------------------------------------- root@Omega-73D6:~# uname -r 4.14.81 root@Omega-73D6:~# lsmod | grep spi regmap_spi 1274 0 spi_bitbang 2661 1 spi_gpio spi_gpio 5424 0 spidev 6336 0 root@Omega-73D6:~# opkg list-installed | grep spi kmod-spi-bitbang - 4.14.81-1 kmod-spi-dev - 4.14.81-1 kmod-spi-gpio - 4.14.81-1 kmod-spi-gpio-custom - 4.14.81-1 spi-tools - 1-cc6a41fdcec60610703ba6db488c621c64952898
Edit: added the package versions
-
@Lnx-Prof Many thanks for your
sympathyempathy.# Omega2+, FW v0.3.2 237 (out of the box) root@Omega-5BE1:~# opkg update ... root@Omega-5BE1:/# opkg list-installed | grep ^kernel kernel - 4.14.81-1-10b6683764d58480e54ef73aa783b9bb # installed kernel 4.14.81-1-10b6683764d58480e54ef73aa783b9bb root@Omega-5BE1:/# opkg depends -A kmod-spi-gpio-custom kmod-spi-gpio-custom depends on: kernel (= 4.14.81-1-4d99ecc9745adb4d8a275d8e3a38961b) # required kernel 4.14.81-1-4d99ecc9745adb4d8a275d8e3a38961b kmod-spi-bitbang kmod-spi-gpio kmod-spi-dev root@Omega-5BE1:~# opkg install kmod-spi-gpio-custom Installing kmod-spi-gpio-custom (4.14.81-1) to root... Downloading http://repo.onioniot.com/omega2/packages/core/kmod-spi-gpio-custom_4.14.81-1_mipsel_24kc.ipk Collected errors: * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-spi-gpio-custom: * kernel (= 4.14.81-1-4d99ecc9745adb4d8a275d8e3a38961b) * kernel (= 4.14.81-1-4d99ecc9745adb4d8a275d8e3a38961b) * kernel (= 4.14.81-1-4d99ecc9745adb4d8a275d8e3a38961b) * * opkg_install_cmd: Cannot install package kmod-spi-gpio-custom. root@Omega-5BE1:~# opkg --force-depends install kmod-spi-gpio-custom Installing kmod-spi-gpio-custom (4.14.81-1) to root... Downloading http://repo.onioniot.com/omega2/packages/core/kmod-spi-gpio-custom_4.14.81-1_mipsel_24kc.ipk Installing kmod-spi-bitbang (4.14.81-1) to root... Downloading http://repo.onioniot.com/omega2/packages/core/kmod-spi-bitbang_4.14.81-1_mipsel_24kc.ipk Installing kmod-spi-gpio (4.14.81-1) to root... Downloading http://repo.onioniot.com/omega2/packages/core/kmod-spi-gpio_4.14.81-1_mipsel_24kc.ipk Configuring kmod-spi-bitbang. Configuring kmod-spi-gpio. [ 637.305666] kmodloader: loading kernel modules from /etc/modules.d/* [ 637.328374] kmodloader: done loading kernel modules from /etc/modules.d/* Configuring kmod-spi-gpio-custom. Collected errors: * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-spi-gpio-custom: * kernel (= 4.14.81-1-4d99ecc9745adb4d8a275d8e3a38961b) * kernel (= 4.14.81-1-4d99ecc9745adb4d8a275d8e3a38961b) * kernel (= 4.14.81-1-4d99ecc9745adb4d8a275d8e3a38961b) *
Do you say hereupon each spi related stuff is installed correctly and fully usable - independently of the snapshot's kernel mismatch?
-
@Jeremy-Shubert Unfortunately I can not reproduce your previous solution.
You wrote in OpenWRT opkg Packages error on 30 Aug 2019, 00:59i downloaded an older firmware to my Omega...0.3.2 b230 and this was resolved. The build number of the kernel in this firmware matches what was available
Is/was the 0.3.2 b230 version number correct?
-
We looked into this. The kernel mismatches were due to how our continuous deployment build system used to work.
It's now been fixed! If you're on the latest release you'll be able to install all kernel modules
Tested on my end and everything worked fine:
root@Omega-F195:/# opkg install kmod-spi-gpio-custom Installing kmod-spi-gpio-custom (4.14.81-1) to root... Downloading http://repo.onioniot.com/omega2/packages/core/kmod-spi-gpio-custom_4.14.81-1_mipsel_24kc.ipk Installing kmod-spi-bitbang (4.14.81-1) to root... Downloading http://repo.onioniot.com/omega2/packages/core/kmod-spi-bitbang_4.14.81-1_mipsel_24kc.ipk Installing kmod-spi-gpio (4.14.81-1) to root... Downloading http://repo.onioniot.com/omega2/packages/core/kmod-spi-gpio_4.14.81-1_mipsel_24kc.ipk Configuring kmod-spi-bitbang. Configuring kmod-spi-gpio. [ 2461.589814] kmodloader: loading kernel modules from /etc/modules.d/* [ 2461.608685] kmodloader: done loading kernel modules from /etc/modules.d/* Configuring kmod-spi-gpio-custom. root@Omega-F195:/# uci show onion onion.@onion[0]=onion onion.@onion[0].version='0.3.2' onion.@onion[0].build='239' ...
-
@Lazar-Demin
Replying "Cannot install kmod-spi-gpio-custom package"# Omega2+, FW upgrade from v0.3.2 237 to v0.3.2 239 root@Omega-5BE1:~# oupgrade -l -f ... root@Omega-5BE1:~# opkg update ... root@Omega-5BE1:~# opkg list-installed | grep ^kernel kernel - 4.14.81-1-10b6683764d58480e54ef73aa783b9bb root@Omega-5BE1:~# opkg depends -A kmod-spi-gpio-custom kmod-spi-gpio-custom depends on: kernel (= 4.14.81-1-10b6683764d58480e54ef73aa783b9bb) kmod-spi-bitbang kmod-spi-gpio kmod-spi-dev root@Omega-5BE1:~# opkg install kmod-spi-gpio-custom ...
OK Thank you (on behalf of the other guys too)
-
Like the kernel itself, modules can take parameters that customize their behavior, though the default parameters work well in most cases. User-space tools can list the modules currently loaded into a running kernel; query all available modules for available parameters and module-specific information.
-
@Lazar-Demin
Curious. I run v0.3.3 b250 on Omega2Spro yet I'm unable to install a few packages; firstly, when only Onion package repo is in use; secondly, when the OpenWRT larger repo is uncommented in /etc/opkg/distfeeds.confI'm unable to install kmod-usb-net-cdc-mbim and few others because of the error below.
root@Cortex-2004:~# opkg install kmod-usb-serial-option Installing kmod-usb-serial-option (4.14.206-1) to root... Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ramips/mt76x8/packages/kmod-usb-serial-option_4.14.206-1_mipsel_24kc.ipk Collected errors: * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-serial-option: * kernel (= 4.14.206-1-da4f999cff891c50c6d11774cc24f4e2) * * opkg_install_cmd: Cannot install package kmod-usb-serial-option. root@Cortex-2004:~# uname -r 4.14.81 root@Cortex-2004:~#
-
@TypeSeven It's always better to start a new thread instead of a necroposting.
kmod-usb-serial-option is part of a standard Omega firmware, I checked the latest 0.3.2 b232.
If you have the build system installed you can build kmod-usb-net-cdc-mbim and then load the package, the version you are download from OpenWrt repos has been built with a kernel version dependency.