[19] local ipk from [m] don't satisfy kernel version due to using http/s instead of passed local.ipk

I had some size problems and figured out that its possible to make small builds and exclude but prebuild packages by seting them in make menuconfig to [m] what is great, but unfortunetely im now tring to install kmod-fs-ext4 and there fore i looked in tho the dependencies and first tried to install kmod-crypto-hash first but that fails.

The Build is from the same run. what i did is: copy the .ipk out of package folder from ~/openwrt/bin/targets/ramips/mt76x8/packages/to /tmp and install manualy...

Why does that fail?

1 Like

usually there is some output on the terminal... it may be relevant here...

Not a lot of information..

root@audiobox:/tmp# opkg install upload.ipk
Installing kmod-crypto-hash (4.14.209-1) to root...
Downloading http://downloads.openwrt.org/releases/19.07.5/targets/ramips/mt76x8/packages/kmod-crypto-hash_4.14.209-1_mipsel_24kc.ipk
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-crypto-hash:
 * 	kernel (= 4.14.209-1-d92769dc5268e102503ae83fe968a56c)
 * opkg_install_cmd: Cannot install package kmod-crypto-hash.
1 Like

well that's no good... with luck this will assist until resolved... http seems similarly whacky...

opkg install --nodeps --verify-program $(command -v true) --cache /dev/null /tmp/keyboardwarrior.ipk

Can you explain more what the failure is and what the command does?
I can not follow...

The kernel you compiled is not 100% compatible with the kernel modules at the official package repositories. You need to compile an image using exactly the same parameters as the official release, or (if you just want to add/remove some packages), use the image builder.

2 Likes

edit: flawed test or unknown variable

that is not the issue here...

the user has provided an ipk which was compiled alongside the kernel.

opkg ignores the 'file.ipk' on the command line and fetches whatever is in it's repo database.

the same symptom can be seen on master... using current snapshot... and providing an exact replica of the current ipk/kmod file locally...

the file is ignored... and opkg goes online to get the package...

Works for me.
At least when there are no dependencies.

If you have downloaded packages that require dependencies, you have to also first download and install dependencies, or otherwise opkg tries to download them. It does not scan a random local directory to find those locally.

root@router1:~# cd /tmp/
root@router1:/tmp# wget https://downloads.openwrt.org/snapshots/packages/arm_cor
tex-a15_neon-vfpv4/packages/joe_4.6-1_arm_cortex-a15_neon-vfpv4.ipk
--2020-12-21 11:04:03--  https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/packages/joe_4.6-1_arm_cortex-a15_neon-vfpv4.ipk
Resolving downloads.openwrt.org...
...
2020-12-21 11:04:03 (2.08 MB/s) - 'joe_4.6-1_arm_cortex-a15_neon-vfpv4.ipk' saved [230497/230497]

root@router1:/tmp# opkg install joe_4.6-1_arm_cortex-a15_neon-vfpv4.ipk
Installing joe (4.6-1) to root...
Configuring joe.

novski's example above was about installing upload.ipk that required kmod-crypto-hash which was then downloaded.

1 Like

interesting... ( tested above works ok this is weird ... totally working fine today )

must have messed up something... maybe did not pay attention that it was actually pulling in a dep as you say... and log is gone...

@novski can you clarify what upload.ipk was?

I tested with kernel packages, too.
Works ok in master.

I compiled kmod-sound-core and kmod-input-core as "m".
kmod-sound-core depends on kmod-input-core, so these two test both installing any local kmod and a dependent kmod.

First "sound" fails due to missing "input", but if "input" is installed first, the installation goes ok.
The error messages in master are unclear :frowning: Looks like they have got more cryptic in the latest opkg changes.

FAILURE (no package list, depdency missing)

root@router2:~# opkg install  /tmp/kmod-sound-core_5.4.83-1_mips_24kc.ipk
Unknown package 'kmod-sound-core'.
Collected errors:
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-sound-core found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-sound-core.

FAILURE (after "opkg update" so that there are package lists)

root@router2:~# opkg update
Downloading https://downloads.openwrt.org/snapshots/targets/ath79/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/snapshots/targets/ath79/generic/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mips_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/snapshots/packages/mips_24kc/base/Packages.sig
Signature check passed.
...
Signature check passed.
root@router2:~# opkg install  /tmp/kmod-sound-core_5.4.83-1_mips_24kc.ipk
Unknown package 'kmod-sound-core'.
Collected errors:
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-input-core found, but incompatible with the architectures configured
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-sound-core found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-sound-core.

SUCCESS (local "input" installed first, local "sound" then)

root@router2:~# opkg install  /tmp/kmod-input-core_5.4.83-1_mips_24kc.ipk
Installing kmod-input-core (5.4.83-1) to root...
Configuring kmod-input-core.
root@router2:~# opkg install  /tmp/kmod-sound-core_5.4.83-1_mips_24kc.ipk
Installing kmod-sound-core (5.4.83-1) to root...
Configuring kmod-sound-core.
1 Like

I wanted to install kmod-fs-ext4 that depends on kmod-crypto-hash. Therefore, I tried to install the kmod-crypto-hash by uploading it via Luci then installed it via Luci and again manually to go sure it didn't throw errors that do not get displayed in Luci...

1 Like