Difference between revisions of "Template:RockchipMiscCustome"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
Line 7: Line 7:
 
===SD Boot===
 
===SD Boot===
 
To modify the command line parameters of the SD card, you need to repackage the SD card image file, <br />
 
To modify the command line parameters of the SD card, you need to repackage the SD card image file, <br />
you can use the sd-fuse script we provide to assist packaging, here take rk3568 as an example, <br />
+
you can use the sd-fuse script we provide to assist packaging:<br />
other CPUs also have the corresponding sd-fuse repository, replace the word rk3568 with other cpu models:
+
:<br />
 +
{{#switch: {{{1}}}
 +
| RK3328 =
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
git clone https://github.com/friendlyarm/sd-fuse_rk3568.git
+
git clone https://github.com/friendlyarm/sd-fuse_rk3328.git -b kernel-5.15.y --single-branch
 +
cd sd-fuse_rk3328
 +
tar xvzf /path/to/netdrive/03_Partition\ image\ files/friendlywrt22-images.tgz
 +
tar xvzf /path/to/netdrive/03_Partition\ image\ files/emmc-flasher-images.tgz
 +
vim friendlywrt22/parameter.txt  # Edit command-line parameters
 +
./mk-sd-image.sh friendlywrt22    # Repackage sd image file
 +
./mk-emmc-image.sh friendlywrt22  # Repackage sd-to-emmc image file
 +
</syntaxhighlight>
 +
| RK3399 =
 +
<syntaxhighlight lang="bash">
 +
git clone https://github.com/friendlyarm/sd-fuse_rk3399.git -b kernel-5.15.y --single-branch
 +
cd sd-fuse_rk3399
 +
tar xvzf /path/to/netdrive/03_Partition\ image\ files/friendlywrt22-images.tgz
 +
tar xvzf /path/to/netdrive/03_Partition\ image\ files/emmc-flasher-images.tgz
 +
vim friendlywrt22/parameter.txt  # Edit command-line parameters
 +
./mk-sd-image.sh friendlywrt22    # Repackage sd image file
 +
./mk-emmc-image.sh friendlywrt22  # Repackage sd-to-emmc image file
 +
</syntaxhighlight>
 +
| RK3568 =
 +
<syntaxhighlight lang="bash">
 +
git clone https://github.com/friendlyarm/sd-fuse_rk3568.git -b master --single-branch
 
cd sd-fuse_rk3568
 
cd sd-fuse_rk3568
wget --no-proxy http://112.124.9.243/dvdfiles/RK3568/images-for-eflasher/debian-buster-desktop-arm64-images.tgz
+
tar xvzf /path/to/netdrive/03_Partition\ image\ files/friendlywrt22-images.tgz
tar xvzf debian-buster-desktop-arm64-images.tgz
+
tar xvzf /path/to/netdrive/03_Partition\ image\ files/emmc-flasher-images.tgz
vim debian-buster-desktop-arm64/parameter.txt # Edit command-line parameters
+
vim friendlywrt22/parameter.txt  # Edit command-line parameters
./mk-sd-image.sh debian-buster-desktop-arm64 # Repackage sd image file
+
./mk-sd-image.sh friendlywrt22    # Repackage sd image file
 +
./mk-emmc-image.sh friendlywrt22  # Repackage sd-to-emmc image file
 +
</syntaxhighlight>
 +
| RK3588 =
 +
<syntaxhighlight lang="bash">
 +
git clone https://github.com/friendlyarm/sd-fuse_rk3588.git -b master --single-branch
 +
cd sd-fuse_rk3588
 +
tar xvzf /path/to/netdrive/03_Partition\ image\ files/friendlywrt22-images.tgz
 +
tar xvzf /path/to/netdrive/03_Partition\ image\ files/emmc-flasher-images.tgz
 +
vim friendlywrt22/parameter.txt   # Edit command-line parameters
 +
./mk-sd-image.sh friendlywrt22    # Repackage sd image file
 +
./mk-emmc-image.sh friendlywrt22 # Repackage sd-to-emmc image file
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
| #default =
 +
Only support RK3328/RK3399/RK3568/RK3588<br />
 +
}}

Revision as of 09:49, 14 April 2023

1 Configuring kernel command line parameters

1.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.

1.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