Difference between revisions of "Template:RockchipMiscCustome"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
Line 77: Line 77:
 
Only support RK3328/RK3399/RK3568/RK3588<br />
 
Only support RK3328/RK3399/RK3568/RK3588<br />
 
}}
 
}}
==Configuring kernel command line parameters==
+
{{#switch: {{{1}}}
 +
| RK3399 =
 +
==Configuring kernel command line parameters (only support for kernel4.4)==
 
===eMMC Boot===
 
===eMMC Boot===
 
Here are the steps:<br />
 
Here are the steps:<br />
Line 87: Line 89:
 
you can use the sd-fuse script we provide to assist packaging:<br />
 
you can use the sd-fuse script we provide to assist packaging:<br />
 
:<br />
 
:<br />
 +
| #default =
 +
}}
 
{{#switch: {{{1}}}
 
{{#switch: {{{1}}}
| RK3328 =
 
<syntaxhighlight lang="bash">
 
git clone https://github.com/friendlyarm/sd-fuse_rk3328.git -b kernel-6.1.y --single-branch
 
cd sd-fuse_rk3328
 
tar xvzf /path/to/netdrive/03_Partition\ image\ files/friendlywrt23-images.tgz
 
tar xvzf /path/to/netdrive/03_Partition\ image\ files/emmc-flasher-images.tgz
 
vim friendlywrt23/parameter.txt  # Edit command-line parameters
 
./mk-sd-image.sh friendlywrt23    # Repackage sd image file
 
./mk-emmc-image.sh friendlywrt23  # Repackage sd-to-emmc image file
 
</syntaxhighlight>
 
 
  | RK3399 =
 
  | RK3399 =
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
git clone https://github.com/friendlyarm/sd-fuse_rk3399.git -b kernel-6.1.y --single-branch
 
git clone https://github.com/friendlyarm/sd-fuse_rk3399.git -b kernel-6.1.y --single-branch
 
cd sd-fuse_rk3399
 
cd sd-fuse_rk3399
tar xvzf /path/to/netdrive/03_Partition\ image\ files/friendlywrt23-images.tgz
 
tar xvzf /path/to/netdrive/03_Partition\ image\ files/emmc-flasher-images.tgz
 
vim friendlywrt23/parameter.txt  # Edit command-line parameters
 
./mk-sd-image.sh friendlywrt23    # Repackage sd image file
 
./mk-emmc-image.sh friendlywrt23  # Repackage sd-to-emmc image file
 
</syntaxhighlight>
 
| RK3568 =
 
<syntaxhighlight lang="bash">
 
git clone https://github.com/friendlyarm/sd-fuse_rk3568.git -b kernel-6.1.y --single-branch
 
cd sd-fuse_rk3568
 
tar xvzf /path/to/netdrive/03_Partition\ image\ files/friendlywrt23-images.tgz
 
tar xvzf /path/to/netdrive/03_Partition\ image\ files/emmc-flasher-images.tgz
 
vim friendlywrt23/parameter.txt  # Edit command-line parameters
 
./mk-sd-image.sh friendlywrt23    # Repackage sd image file
 
./mk-emmc-image.sh friendlywrt23  # Repackage sd-to-emmc image file
 
</syntaxhighlight>
 
| RK3588 =
 
<syntaxhighlight lang="bash">
 
git clone https://github.com/friendlyarm/sd-fuse_rk3588.git -b kernel-6.1.y --single-branch
 
cd sd-fuse_rk3588
 
 
tar xvzf /path/to/netdrive/03_Partition\ image\ files/friendlywrt23-images.tgz
 
tar xvzf /path/to/netdrive/03_Partition\ image\ files/friendlywrt23-images.tgz
 
tar xvzf /path/to/netdrive/03_Partition\ image\ files/emmc-flasher-images.tgz
 
tar xvzf /path/to/netdrive/03_Partition\ image\ files/emmc-flasher-images.tgz
Line 129: Line 103:
 
</syntaxhighlight>
 
</syntaxhighlight>
 
  | #default =
 
  | #default =
Only support RK3328/RK3399/RK3568/RK3588<br />
 
 
}}
 
}}

Revision as of 07:15, 17 May 2024

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 /

Note: if there is a mounted directory on the system, an error message will appear at the end, which can be ignored.

1.2 Making a bootable SD card from a root filesystem

Only support RK3328/RK3399/RK3568/RK3588