Page 1 of 1

how to generate boot.img

Posted: Fri Nov 30, 2018 5:54 am
by flatmax
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 ?

thanks
Matt

Re: how to generate boot.img

Posted: Fri Nov 30, 2018 6:20 am
by igorp
This script https://github.com/armbian/build produce a bootable image.

Re: how to generate boot.img

Posted: Fri Nov 30, 2018 11:46 am
by flatmax
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 ?

Re: how to generate boot.img

Posted: Mon Oct 28, 2019 12:38 pm
by ramgopalkota
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