8812au: disagrees about version of symbol module_layout #23

Closed
brainstorm opened this Issue Jul 26, 2014 · 8 comments

Comments

Projects
None yet
5 participants

I'm getting the following error message when trying to load the module for this edimax adapter:

https://wikidevi.com/wiki/Edimax_EW-7822UAC

Compiling inside a Raspberry Pi (no cross-compiling).

root@rpi:/usr/src/rtl8812AU-git# modprobe 8812au
ERROR: could not insert '8812au': Exec format error

In dmesg:

[ 2593.836183] 8812au: disagrees about version of symbol module_layout
[ 2616.580796] 8812au: disagrees about version of symbol module_layout

I've followed the following blog post:

https://www.debinux.de/2014/06/sitecom-wifi-usb-adapter-ac1200-treiber-dkms-einrichtung-unter-ubuntu/

But I had to do a:

# ln -sf /usr/src/linux-headers-3.12-1-rpi /lib/modules/3.12.22+/build

Which I guess it's the root of the problem, but since the exact linux-headers for my running kernel version (3.12.22+) are not available, I thought that 3.12.x linux-headers would be enough.

Any pointers on how can I circumvent this issue?

Contributor

joseph-jja commented Jul 13, 2015

http://stackoverflow.com/questions/20167411/how-to-compile-a-kernel-module-for-raspberry-pi

In case you are still looking. I found this which talk about compiling modules on pi

I have got the same error on Ubuntu 14.04.2 LTS

[ 288.292851] 8812au: disagrees about version of symbol module_layout
Contributor

joseph-jja commented Jul 14, 2015

Ubuntu on Raspberry pi?

Hi @joseph-jja,

Ubuntu war installed on a common PC, but the error is the same. That error appeared when the kernel was updated. The only way I found to fix this is to rebuild rtl8812AU_8821AU_linux

    MODULE="rtl8812AU_8821AU_linux"
    MODULE_VERSION="1.0"
    MODULE_SRC_PATH="/usr/src/"

    dkms remove "${MODULE}/${MODULE_VERSION}" --all
    dkms add "${MODULE}/${MODULE_VERSION}"
    dkms build "${MODULE}/${MODULE_VERSION}"
    dkms install --force "${MODULE}/${MODULE_VERSION}"

Do you any idea how to fix it without rebuilding?

Contributor

joseph-jja commented Jul 15, 2015

You must rebuild with each kernel update. No way around that. You can setup dkms to have that done automatically. I do it manually music though.

I've run your script above and it fixed my problem. Thanks a lot! Is there a way to automatically do this when the kernel is updated?

Contributor

joseph-jja commented Nov 13, 2015

Use dkms to do or on every kernel update. I just do it manually

Collaborator

harshavardhana commented Nov 13, 2015

Adding module to dkms will make it automatic for kernel update or manual is another choice. Closing this issue.

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