× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Re: Kernel modules for ReadyNASOS 6.9.X

Felson
Tutor

Kernel modules for ReadyNASOS 6.9.X

I am trying to build the pptp (ppp) modules, and I am getting stuck at and error "slhc: disagrees about version of symbol module_layout"

I have been fighting with this for about 1 week now, so I figured it was past time to see if anyone could help. Also, before you say it, yes I have googled for this, but all answers are either out of date or simply don't solve the issue. I am running a ReadyNAS 312.

 

Here is what I have worked out "should" work...:

cd ~/src
wget https://www.downloads.netgear.com/files/GPL/ReadyNASOS_V6.2.4_WW_src.zip
mkdir ReadyNAS
cd ReadyNAS
7z x ../ReadyNASOS_V6.2.4_WW_src.zip
cd linux-4.4.157-x86_64
make readynas_defconfig
make menuconfig
#Nav to
# Device Drivers-->Network device support
# expand with an M "PPP (point-to-point protocol) support"
# Mark wtih an M:
# PPP MPPE compression (encryption)
# PPP support for async serial ports
# Mark with a * (space bar)
# PPP filtering

make prepare
make modules_prepare

#Since there is no 'Module.symvers'
make
make modules

sudo mkdir /lib/modules/$(uname -r)/kernel
sudo mkdir /lib/modules/$(uname -r)/kernel/lib
sudo mkdir /lib/modules/$(uname -r)/kernel/drivers
sudo mkdir /lib/modules/$(uname -r)/kernel/drivers/net
sudo mkdir /lib/modules/$(uname -r)/kernel/drivers/net/ppp
sudo mkdir /lib/modules/$(uname -r)/kernel/drivers/net/slip
sudo cp drivers/net/ppp/*.ko /lib/modules/$(uname -r)/kernel/drivers/net/ppp/
sudo cp drivers/net/slip/*.ko /lib/modules/$(uname -r)/kernel/drivers/net/slip/
sudo cp lib/crc-ccitt.ko /lib/modules/$(uname -r)/kernel/lib

sudo depmod -a

sudo modprobe ppp_generic
#>modprobe: ERROR: could not insert 'ppp_generic': Exec format error
tail -n 1 /var/log/syslog
#>Mar  5 09:52:04 nas kernel: [443480.790854] slhc: disagrees about version of symbol module_layout
Message 1 of 4

Accepted Solutions
StephenB
Guru

Re: Kernel modules for ReadyNASOS 6.9.X

There is a change to the build enviroment for kernel modules starting with 6.9.5. There is some information here: https://community.netgear.com/t5/New-ReadyNAS-Users-General/6-9-5-GPL-not-posted/m-p/1712651#M35386

View solution in original post

Message 3 of 4

All Replies
Felson
Tutor

Re: Kernel modules for ReadyNASOS 6.9.X

Just noticed the wget line I put in my code block. That isn't the file I was working from, it should have read

wget https://www.downloads.netgear.com/files/GPL/ReadyNASOS_V6.9.5_WW_src.zip

 

Message 2 of 4
StephenB
Guru

Re: Kernel modules for ReadyNASOS 6.9.X

There is a change to the build enviroment for kernel modules starting with 6.9.5. There is some information here: https://community.netgear.com/t5/New-ReadyNAS-Users-General/6-9-5-GPL-not-posted/m-p/1712651#M35386

Message 3 of 4
Felson
Tutor

Re: Kernel modules for ReadyNASOS 6.9.X

Thanks. I will try this. IF it works, I will post a new "HOW-TO: Compile Custom Kernel Modules" thread

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