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

Forum Discussion

bacobart's avatar
bacobart
Aspirant
Oct 11, 2015

Compiling kernel modules fails for 6.4.0

I'm trying to built kernel modules on 6.4.0 for a readynas 516. I've got the source from http://www.downloads.netgear.com/files/GPL/ReadyNASOS_V6.4.0_WW_src.zip and am using the kernel from the directory linux-4.1.7-x86_64. No matter what I try, modprobe always ends up complaining "invalid module format". In dmesg I see "no symbol version for module_layout". Unfortunately this happend before, the last time this happend (on 6.1.9) the included kernel/config in the zip was wrong ( see https://community.netgear.com/t5/Community-Add-ons/Compiling-kernel-modules-for-6-1-9-fails/td-p/958206 ) -- is this again the case?

 

Thanks.

4 Replies

Replies have been turned off for this discussion
    • camattin's avatar
      camattin
      Aspirant

      Can I ask what you messed up?

       

      I had no troubles recompiling the kernel on 6.3.5 (to add in usbserial and cp210x modules).  Can't figure out what's changed in 6.4.0, but "installing" the new kernel isn't taking effect (the boot changes in 6.4.0?).

       

      And when compiling them as modules, I'm getting the same error as you.

       

      What'd I miss??

       

      Thanks!

       

      • bacobart's avatar
        bacobart
        Aspirant

        The following steps worked for me eventually. I've only tried compiling modules, not replacing the entire kernel, so can't help you with that.

         

        make oldconfig
        make menuconfig
        make prepare
        make modules_prepare
        make
        make SUBDIRS=scripts/mod
        make SUBDIRS=path/to/module modules

        make modules_install

        depmod -a

         

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