Difference between revisions of "Template:RockchipMiscCustome/zh"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
Line 6: Line 6:
 
然后再用烧写卡启动,把系统烧写进 eMMC。
 
然后再用烧写卡启动,把系统烧写进 eMMC。
 
===SD启动===
 
===SD启动===
要修改SD卡启动时的命令行参数, 需要重新打包SD卡镜像文件, 可以使用我们提供的sd-fuse脚本来辅助打包, <br />
+
要修改SD卡启动时的命令行参数, 需要重新打包SD卡镜像文件, 可以使用我们提供的sd-fuse脚本来辅助打包:<br />
这里以rk3568为例, 其他CPU也有相应的sd-fuse仓库, 将rk3568字样替换成其他cpu型号即可:
+
{{#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  # 编辑命令行参数
 +
./mk-sd-image.sh friendlywrt22    # 重新打包sd映象文件
 +
./mk-emmc-image.sh friendlywrt22  # 重新打包sd-to-emmc映象文件(eflasher img)
 +
</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  # 编辑命令行参数
 +
./mk-sd-image.sh friendlywrt22    # 重新打包sd映象文件
 +
./mk-emmc-image.sh friendlywrt22  # 重新打包sd-to-emmc映象文件(eflasher img)
 +
</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 # 编辑命令行参数
+
vim friendlywrt22/parameter.txt  # 编辑命令行参数
./mk-sd-image.sh debian-buster-desktop-arm64 # 重新打包sd映象文件
+
./mk-sd-image.sh friendlywrt22    # 重新打包sd映象文件
 +
./mk-emmc-image.sh friendlywrt22  # 重新打包sd-to-emmc映象文件(eflasher img)
 +
</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   # 编辑命令行参数
 +
./mk-sd-image.sh friendlywrt22    # 重新打包sd映象文件
 +
./mk-emmc-image.sh friendlywrt22 # 重新打包sd-to-emmc映象文件(eflasher img)
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
| #default =
 +
仅支持RK3328/RK3399/RK3568/RK3588<br />
 +
}}

Revision as of 09:49, 14 April 2023

1 更改内核命令行参数

1.1 eMMC启动

步骤如下:
先做一张eflahser的烧写卡 (使用rk3xxxx-eflasher-开头的固件文件),
将烧写卡插入电脑,进入sd卡的OS相关目录,编辑文件parameter.txt, 这是个文本文件,里面有命令行参数,
然后再用烧写卡启动,把系统烧写进 eMMC。

1.2 SD启动

要修改SD卡启动时的命令行参数, 需要重新打包SD卡镜像文件, 可以使用我们提供的sd-fuse脚本来辅助打包:
仅支持RK3328/RK3399/RK3568/RK3588