How to create an .img out of rockpis

I would like to create a img file out of the nand flash (1GB) rockpis so that i can use it to create duplicates. I tried
sudo rkdeveloptool rl 0 2097152 xx.img

to read from nand flash but i can not write and boot from this img.
Please advise

What exactly is your goal? Why do you want to do this?

i have deployed a custom kernel and my app in one of them and i want to deploy the same in all of them
by making a copy.
It seems that i was able to d this using dd
on the running rockpis i inserted an sd card and i simply did
dd if=/dev/mmcblk1 of=/mnt/sdcard/myimage.img

now i can use myimage.img to write to new rockpis

sudo rkdeveloptool wl 0 myimage.img

1 Like

Then perhaps Armbian could perfectly cover your problem - the core of the project is a Linux build system, which you can customise in easy and controlled manner:
Add script to install your app, froze kernel to prevent critical upgrades and you are done. You only focus to your application.