NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
vbif
Dec 26, 2016Aspirant
dmesg "disagrees about version of symbol module_layout" modprobe fails with self compiled cdc_acm
Hello,
I try to compile cdc_acm kernel driver to make out of NAS a zwave control center (USB Zwave stick). First I've tried to compile ftdi_sio und succeded, modprobe can load this driver.
what've I done:
took the info on how to compile from hier: community.netgear.com/t5/Community-Add-ons/HOW-TO-Compile-Custom-Kernel-Modules/td-p/864234 but with fresh 6.6.0 OS Version (as on my NAS).
for
.config
copied
linux-4.1.30-armada/arch/arm/configs/readynas_defconfig
I can compile modules. Vermagic
vermagic: 4.1.30.armada.1 SMP mod_unload modversions ARMv7 p2v8
of my modules are the same, but sill, cdc_acm fails, the other one not.
Apropos I could have compiled soundcore.ko, and modprobe loads it! (the usb audio is still not working, but that is subject for another question )
As I understand this error have something to do with kernel config, the supplied defconfig seems to be not the same as the production version.... Am I right? or it is a copmletly different problem?
19 Replies
Replies have been turned off for this discussion
- FramerVNETGEAR Employee Retired
Hi vbif,
Let me try to inquire about this logs message.
Regards,
- WhoCares_Mentor
Starting with I believe ReadyNAS OS 6.5.0 I found that the only way to successfully compile kernel modules is to do it directly on the ReadyNAS. All other ways I tried (using VMs, cross compiling and dedicated hardware) simply failed because of the symbol mismatches you're experiencing.
-Stefan
- vbifAspirant
hm, I hope NetGear tries to fix this, the VM is realy nice. In the mean time, I've failed to compile directly on NAS, the headers are missing. have had tried the obvious
apt-get install linux-headers-$(uname -r) or
apt-get install linux-headers or
apt-get install linux-headers-generic.... there are no such packeges available. Should I mess with apt sources to install headers? Or is there some other possibilities to compile kernel drivers?
- WhoCares_Mentor
Huh? You don't need the kernel headers. Everything you need is in the GPL archive provided by NETGEAR. This includes the complete kernel sources.
-Stefan
- vbifAspirant
Something happend with GPL Server, I think.
I can't find the 6.6.0 version on GPL Site http://www.readynas.com/download/GPL/index.php?dir=readynasos
and today there is a 6.6.1 avialable on a regular download siteI'm still trying to compile the drivers with older version of 6.6.0 kernel (it was available for some time, but not now) so I think, it was some how corrupted.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!