|
Edited by darkstar at 2021-12-31 20:11
there are different ways to prepare a firmware image.
If you just want to take a backup of your working sd / usb drive you can use the command below.
For example : your SD cars is recognized as /dev/sdb and you want to take a backup from it.
- dd if=/dev/sdb of=sdcard-backup.img
Copy the Code
this command will take a one to one copy of your sd card to sdcard-backup.img file.
this is just for backup if want to restore from backup just use command below.
- dd if=sdcard-backup.img of=/dev/sdb
Copy the Code
If you want to build a new firmware you can use Khadas Fenix Script or Armbian Build System
https://github.com/khadas/fenix
https://github.com/armbian/build
It is also possible to modify or port a firmware image to your device, but it needs advanced Linux skills.
There is another way to build an image from scratch but this is more difficult.
If you want to give it a try, fenix script is a good point to start.
By the way may images are compressed with xz, compression ratio is about %75-%80. balenaetcher decompresses it automatically.
You can compress your image with xz -z your-image.img command. xz will copress your image to your-image.img.xz file.
|
|