Difference between revisions of "Template:RockchipMiscCustome/zh"
From FriendlyELEC WiKi
(updated by API) |
(updated by API) |
||
Line 77: | Line 77: | ||
Only support RK3328/RK3399/RK3568/RK3588<br /> | Only support RK3328/RK3399/RK3568/RK3588<br /> | ||
}} | }} | ||
− | ==更改内核命令行参数== | + | {{#switch: {{{1}}} |
+ | | RK3399 = | ||
+ | ==更改内核命令行参数 (仅支持4.4内核)== | ||
===eMMC启动=== | ===eMMC启动=== | ||
步骤如下:<br /> | 步骤如下:<br /> | ||
Line 85: | Line 87: | ||
===SD启动=== | ===SD启动=== | ||
要修改SD卡启动时的命令行参数, 需要重新打包SD卡镜像文件, 可以使用我们提供的sd-fuse脚本来辅助打包:<br /> | 要修改SD卡启动时的命令行参数, 需要重新打包SD卡镜像文件, 可以使用我们提供的sd-fuse脚本来辅助打包:<br /> | ||
+ | | #default = | ||
+ | }} | ||
{{#switch: {{{1}}} | {{#switch: {{{1}}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| 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/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 127: | Line 101: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| #default = | | #default = | ||
− | |||
}} | }} |
Revision as of 07:15, 17 May 2024
1 备份文件系统并创建SD映像(将系统及应用复制到另一块开发板)
1.1 备份根文件系统
开发板上执行以下命令,备份整个文件系统(包括OS与数据):
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 从根文件系统制作一个可启动的SD卡
Only support RK3328/RK3399/RK3568/RK3588