- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
HOW-TO: Compile kernel modules for RN212
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?