NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Quercus10ntata
Mar 30, 2021Aspirant
What should I do to make a uImage of the kernel?
What should I do to make a uImage of the kernel?
I made following a uImage and I wrote it to a nand, but Redaynas don't start up.
[Summary of the ReadyNAS]
model: RN212
kernel: 4.4.190.alpine.1
firmware: 6.10.3
1) To install packages for compile.
sudo apt install gcc build-essential libncurses5-dev libncursesw5-dev bc
2) To download kernel source.
wget https://www.downloads.netgear.com/files/GPL/ReadyNASOS_V6.10.3_WW_src.zip
3) To unzip kernel 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) To make copy of the configuration file.
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) To 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) To compile
make clean
make menuconfig ARCH=arm
make -j4 ARCH=arm
make -j4 uImage LOADADDR=0x200000 ARCH=arm
make -j4 modules ARCH=arm
make modules_install ARCH=arm
7) To write uImage
apt-get install mtd-utils
flash_erase /dev/mtd2 0 0
nandwrite -p /dev/mtd2 arch/arm/boot/uImage
I think the load address of a value is bad. What should I want the calculated value ? It would be greatly appreciated if you could explain the details.
3 Replies
Replies have been turned off for this discussion
- mdgmVirtuoso
Why do you want to build and install a custom kernel rather than simply compile kernel modules?
- mdgmVirtuoso
You may wish to look at post 19 in this thread: https://community.netgear.com/t5/New-ReadyNAS-Users-General/6-9-5-GPL-not-posted/m-p/1712652#M35387
- Quercus10ntataAspirant
Thanks for your comment.
It seems that when I retry method of post 19 in its thread. it still doesn't work.
I want to load state module of iptables, and I compiled a kernel module, and I tried to load its module but following error is indicated and I couldn't. So I try to install a custom kernel.
[Error details]
modprobe: ERROR: could not insert 'xt_state': Exec format error.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!