Difference between revisions of "Template:RockchipMiscCustome"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
Line 1: Line 1:
 
==Backup rootfs and create custom SD image  (to burn your application into other boards)==
 
==Backup rootfs and create custom SD image  (to burn your application into other boards)==
 
 
===Backup rootfs===
 
===Backup rootfs===
 
Run the following commands on your target board. These commands will back up the entire root partition:  
 
Run the following commands on your target board. These commands will back up the entire root partition:  
Line 15: Line 14:
 
{{#switch: {{{1}}}
 
{{#switch: {{{1}}}
 
  | RK3328 =
 
  | RK3328 =
Tips:
+
Run the following script on your Linux PC host, we'll only mention "friendlycore-lite-focal-arm64 os" for brevity, but you can apply the same process for every linux OS.
<blockquote>we'll only mention "friendlycore-lite-focal-arm64 os" for brevity, but you can apply the same process for every linux OS.</blockquote>
+
Run the following script on your Linux PC host:
+
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
su root
 
su root
Line 32: Line 29:
 
</syntaxhighlight>
 
</syntaxhighlight>
 
  | RK3399 =
 
  | RK3399 =
 +
Run the following script on your Linux PC host, we'll only mention "debian-buster-desktop-arm64 os" for brevity, but you can apply the same process for every linux OS.
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
su root
 
su root
Line 46: Line 44:
 
</syntaxhighlight>
 
</syntaxhighlight>
 
  | RK3568 =
 
  | RK3568 =
 +
Run the following script on your Linux PC host, we'll only mention "debian-buster-desktop-arm64 os" for brevity, but you can apply the same process for every linux OS.
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
su root
 
su root
Line 60: Line 59:
 
</syntaxhighlight>
 
</syntaxhighlight>
 
  | RK3588 =
 
  | RK3588 =
 +
Run the following script on your Linux PC host, we'll only mention "debian-buster-desktop-arm64 os" for brevity, but you can apply the same process for every linux OS.
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
su root
 
su root
Line 76: Line 76:
 
Only support RK3328/RK3399/RK3568/RK3588<br />
 
Only support RK3328/RK3399/RK3568/RK3588<br />
 
}}
 
}}
 
 
==Configuring kernel command line parameters==
 
==Configuring kernel command line parameters==
 
===eMMC Boot===
 
===eMMC Boot===

Revision as of 05:26, 28 April 2023

1 Backup rootfs and create custom SD image (to burn your application into other boards)

1.1 Backup rootfs

Run the following commands on your target board. These commands will back up the entire 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 /

1.2 Making a bootable SD card from a root filesystem

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