07-03-2016, 07:27 PM
I have come closer to building the driver for this device, in fact actually built it by fixing sources a little. I also had to enable loadable module support in `make menuconfig` which was disabled by default and preventing me from generating .ko files.
However, I now have `mt7601Usta.ko` file, which I should load using `insmod`. This fails with "Invalid module format". I'm quite puzzled as this is second module I've built and has such problem (I'm also trying to build another dongle driver in parallel and use the one I first succeed)..
I think the problem is in kernel / headers mismatch. `modinfo` on the mentioned file shows "vermagic: 3.10.102-dirty aarch64". While I have no experience whatsoever building modules (I'm just poor software engineer mostly battling in higher spheres), this doesn't look right compared to what `uname -r` shows. Am I doing something wrong? And would it be possible, by any chance, to simply provide the headers required for these module builds through PPA as usual so that no-one has to go through the hassle of configuring kernel? If this is already possible I'm sorry and could you possibly help me how to get them?
However, I now have `mt7601Usta.ko` file, which I should load using `insmod`. This fails with "Invalid module format". I'm quite puzzled as this is second module I've built and has such problem (I'm also trying to build another dongle driver in parallel and use the one I first succeed)..
I think the problem is in kernel / headers mismatch. `modinfo` on the mentioned file shows "vermagic: 3.10.102-dirty aarch64". While I have no experience whatsoever building modules (I'm just poor software engineer mostly battling in higher spheres), this doesn't look right compared to what `uname -r` shows. Am I doing something wrong? And would it be possible, by any chance, to simply provide the headers required for these module builds through PPA as usual so that no-one has to go through the hassle of configuring kernel? If this is already possible I'm sorry and could you possibly help me how to get them?