Orbi WiFi 7 RBE973
Reply

Re: Compiling kernel modules fails for 6.4.0

bacobart
Aspirant

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/958... ) -- is this again the case?

 

Thanks.

Message 1 of 5
bacobart
Aspirant

Re: Compiling kernel modules fails for 6.4.0

nevermind, i messed it up. sorry.

Message 2 of 5
camattin
Aspirant

Re: Compiling kernel modules fails for 6.4.0

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!

 

Message 3 of 5
bacobart
Aspirant

Re: Compiling kernel modules fails for 6.4.0

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

 

Message 4 of 5
camattin
Aspirant

Re: Compiling kernel modules fails for 6.4.0

Looking through my history, I'm not exactly sure what I did to get mine working, but I hadn't kicked off depmod manually (and got it working late last night with modules).

 

One variation I kicked off was:

make CONFIG_DEBUG_SECTION_MISMATCH=y

 

Followed by the 'make modules_install', which then correctly kicked off depmod itself.

 

With this out of the way, now I have to look into fan replacements (way cheaper than buying a new NAS, right? 🙂 ).

 

Message 5 of 5
Top Contributors
Discussion stats
  • 4 replies
  • 2999 views
  • 0 kudos
  • 2 in conversation
Announcements