Skip to content

Trying to build custom kmods, unclear exactly what openwrt commit to apply this patch to #2

Description

@fmeef

I am trying to setup a private opkg mirror that holes some kernel modules not not built into the firmware itself. I dont want to flash the kernel or anything risky, I just want to install kmod packages using opkg.

I have experience with other openwrt routers so I was able to clone, checkout the v24.10.1 tag, and apply the patch (which contains the dts file). Unfortunately the generated ipk files do not install because of a mismatch in the .vermagic hash.

 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.86~61d5ba9a627a2a074b99acc15d5a250b-r1) for kmod-dax
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-dax found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.86~61d5ba9a627a2a074b99acc15d5a250b-r1) for kmod-dm
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-dm found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.86~61d5ba9a627a2a074b99acc15d5a250b-r1) for kmod-crypto-user
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-crypto-user found, but incompatible with the architectures configured

This is likely because either there are missing kernel config options not in the patch(?) or because I have used the wrong commit on the openwrt sources with this patch.

Loading the kernel modules manually by untar the ipk and manually run insmod on the .ko file also fails with

module crypto_user: .gnu.linkonce.this_module section size must match the kernel's built struct module size at run time

as there are a large number of commits that use the 6.6.86 kernel I have not yet been able to rule out config mismatch vs openwrt source mismatch. Any help here (especially publishing the openwrt source and/or kernel tarball and config) would be appreciated

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions