Power & Source of Big Ideas

how to generate boot.img

Moderators: chensy, FATechsupport

Hi there,

I would like to generate boot.img, however any time I do generate boot.img the sdcard doesn't work.

If I do the following to build the boot.img :

Code: Select all

git clone https://github.com/friendlyarm/kernel-rockchip --depth 1 -b nanopi4-linux-v4.4.y kernel-rockchip
cd kernel-rockchip
make nanopi4_linux_defconfig
make rk3399-nanopi4-rev04.img

It generates the boot.img as expected, however sd_fuse-rk3399/fusing.sh doesn't generate a usable sd card.

If I replace boot.img with the original boot.img, the sdcard boots and works well.
If I build the kernel.img and resource.img files using the following command :

Code: Select all

make nanopi4-images

I can use sd_fuse-rk3399 with these images, and the sd card will boot as expected and works well.

What is the magic to build the boot.img ?

This script https://github.com/armbian/build produce a bootable image.
Can you please highlight exactly where the boot.img is generated ? Is this the same boot.img which is used by sd_fuse-rk3399 to generate the sdcard image ?
igorp wrote:
This script https://github.com/armbian/build produce a bootable image.

I replaced kernel.img , resource.img it is still going to old kernel version. Looks like boot.img should have latest kernel. How to create this boot.img file ? Does it have Image / DTB / Ramdisk ? Please help.

Ramgopal Kota

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 3 guests