NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

vbif's avatar
vbif
Aspirant
Dec 26, 2016

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
  • FramerV's avatar
    FramerV
    NETGEAR Employee Retired

    Hi vbif,

     

    Let me try to inquire about this logs message.

     

     

    Regards,

  • 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

    • vbif's avatar
      vbif
      Aspirant

      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_'s avatar
        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

  • 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 site

    I'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.

      • vbif's avatar
        vbif
        Aspirant

        Yes, I couldn't fixed it. Right now there is a new Firmware Version 6.6.1 (?) available, but I couldn't test it ... I've tried a couple of weeks ago and the source codes were not available there, or I could not find it.

NETGEAR Academy

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

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More