I am new to the Android world and I am familar with older Kernel / DTB upgrade procedure where the zImage and DTB are copied to /Boot folder and the Board has new Kernel / DTB.
I need to upgrade since I want to add external RTC (DS3231) , but the filesystem and DTB does not have entries hence I decided to build the kernel and DTB.
I downloaded the latest kernel 4.4.179 and also updated the DTB to indicate the i2c rtc device @ 0x68.
Following is done:
Downloaded DietPi_NanoPCT4-ARMv8-Stretch.7z and using Android Tool I have updated the Board and Boots OK.
Compiled the Linux source from Friendlyarm GIT as explained in thier wiki
- git clone https://github.com/friendlyarm/kernel-rockchip --depth 1 -b nanopi4-linux-v4.4.y kernel-rockchip
cd kernel-rockchip
export PATH=/opt/FriendlyARM/toolchain/6.4-aarch64/bin/:$PATH
make ARCH=arm64 nanopi4_linux_defconfig
make ARCH=arm64 nanopi4-images nanopi4-bootimg
This created kernel.img , resource.img & boot.img …
I replaced with the ones in DietPi_NanoPCT4-ARMv8-Stretch … The Board does not Boot.
If I dont replace boot.img file , board boots but the kernel is 4.4.154 … So Kernel is in boot.img file.
From some googling there is a link I found http://opensource.rock-chips.com/wiki_Rockchip_Kernel … This also did not work.
As per the link , the boot.img file should be programmed @ 0x8000 but in the parameter.txt file it is @ 0x1E000.
Please help me prepare the boot.img file so that I can upgrade the kernel and proceed further.