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

HOW-TO: Compile kernel modules for RN212

Quercus10ntata
Aspirant

HOW-TO: Compile kernel modules for RN212

model: RN212
kernel: 4.4.190.alpine.1
firmware: 6.10.3

 

I want to enable iptables. But I can't enable iptabes becase aren't iptables modules.
Therefore following I installed iptables modules and rebuild kernel.

 

1) Installation packages necessary compiling
sudo apt install gcc build-essential libncurses5-dev libncursesw5-dev bc

 

2) Download source
wget https://www.downloads.netgear.com/files/GPL/ReadyNASOS_V6.10.3_WW_src.zip

 

3) Unzip source
mkdir $HOME/ReadyNASOS_V6.10.3_WW_src
unzip ReadyNASOS_V6.10.3_WW_src.zip -d $HOME/ReadyNASOS_V6.10.3_WW_src

 

4) Copy to work directory the configuration file from arm folder
cd $HOME/ReadyNASOS_V6.10.3_WW_src/linux-4.4.190-alpine/
cp $HOME/ReadyNASOS_V6.10.3_WW_src/linux-4.4.190-arm/arch/arm/configs/readynas_defconfig .config

 

5) Edit following the configuration file.
[Before]
CONFIG_CROSS_COMPILE="arm-marvell-linux-gnueabi-"
CONFIG_LOCALVERSION=".armada.1"

 

[After]
CONFIG_CROSS_COMPILE=""
CONFIG_LOCALVERSION=".alpine.1"

 

6) Build
make clean
make menuconfig ARCH=arm
make -j4 ARCH=arm
make -j4 modules ARCH=arm
make modules_install ARCH=arm

 

7) Copy to library directory compiling modules and load
sudo cp -r net /lib/modules/4.4.190.alpine.1/
sudo depmod -a
sudo modprobe ip_tables

 

But following error is indicated.
modprobe: ERROR: could not insert 'ip_tables': Exec format error

 

I can't understand cause, that is bad the configuration file copying or bad method compiling.
Can you please teach me?

Model: RN212|2 BAY Desktop ReadyNAS Storage
Message 1 of 1
Top Contributors
Discussion stats
  • 0 replies
  • 1059 views
  • 0 kudos
  • 1 in conversation
Announcements