Template:RockchipMiscCustome
Contents
1 Backup rootfs and create custom SD image (to burn your application into other boards)
Run the following commands on your target board, these commands will backup the whole root partition:
sudo passwd root su root cd / tar --warning=no-file-changed -cvpzf /rootfs.tar.gz \ --exclude=/rootfs.tar.gz --exclude=/var/lib/docker/runtimes \ --exclude=/etc/firstuser --exclude=/etc/friendlyelec-release \ --exclude=/usr/local/first_boot_flag --one-file-system /
Run the following script on your host linux PC, build the SD image and SD-to-eMMC image using the rootfs.tar.gz you just backed up:
Only support RK3328/RK3399/RK3568/RK3588
2 Configuring kernel command line parameters
2.1 eMMC Boot
Here are the steps:
Make an eflahser bootable SD card (use the firmware file starting with rk3xxxx-eflasher-),
Insert the SD card into your computer, go to the SD card's OS-related directory, and edit the file parameter.txt, which is a text file containing command-line parameters,
Then boot from the SD card and burn the system to the eMMC.
2.2 SD Boot
To modify the command line parameters of the SD card, you need to repackage the SD card image file,
you can use the sd-fuse script we provide to assist packaging:
Only support RK3328/RK3399/RK3568/RK3588