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...
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.
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.
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 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)
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...