OpenWrt Forum Archive

Topic: Self built firmware - kmod kernel version missmatch

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hey everyone,

I have compiled my own version of OpenWrt for a device (AR71XX board) without issues. Building standard packages for it is also no issue.
The issue I am having is that when I try to install kmods from either the OpenWrt repository or if I build the packages and try to install them manually, I get an unsatisfied dependency issue.

Now, say my firmware's kernel version is 3.7.8 and I want to install a kmod, all of them seem to be built for 3.7.8-1 (revision 1?). The weird thing is, if I include a kmod into the build it works without an issue. If I want to install a kmod after flashing the firmware it becomes impossible (without forcing dependencies).

I am wondering if I am doing anything wrong or if there is anything I can do?

C126

Nothing wrong, but keep in mind that rebuilding modules with another compiler version produces a mismatch and that openwrt package building is even tighter when it's up to compiler/toochain/libc/... versions.

The only way i know to produce no errors/warnings is to rebuild everything again from source and reflash your device

You could try opkg install –force-depends xxxxx

Thanks for the replies!

@rAndy: Thanks for that, sadly this happens when I check out the latest trunk (tried a couple of times). It seems to be hit and miss, sometimes I get the right versions built of the kmods sometimes I get them built with -1 behind the kernel version. This seems very odd to me as I am using the same toolchain and environment to build them at the same time.

@robthebrew, I am aware of this but I want to get this fixed rather than just using a workaround. Thanks though!

Does anyone have any tips? I have just re-checked out the buildroot and now my firmware's kernel is 3.7.9 and the kmods that have been built are on version 3.7.9-1. They are built in and work fine if I select them to be (instead of m) in the menuconfig but the packages created won't install without errors in opkg. (They do with --force-depends but yeah).

C126

(Last edited by c1266002 on 18 Feb 2013, 18:36)

The discussion might have continued from here.