Difference between revisions of "Template:RockchipMiscCustome/zh"
From FriendlyELEC WiKi
(updated by API) |
(updated by API) |
||
Line 35: | Line 35: | ||
git clone https://github.com/friendlyarm/sd-fuse_rk3399 --single-branch -b kernel-4.19 | git clone https://github.com/friendlyarm/sd-fuse_rk3399 --single-branch -b kernel-4.19 | ||
cd sd-fuse_rk3399 | cd sd-fuse_rk3399 | ||
+ | tar xvzf /path/to/netdrive/03_Partition\ image\ files/debian-bullseye-desktop-arm64-images.tgz | ||
+ | tar xvzf /path/to/netdrive/03_Partition\ image\ files/emmc-eflasher-images.tgz | ||
+ | scp pi@BOARDIP:/rootfs.tar.gz /rootfs.tar.gz | ||
+ | mkdir rootfs | ||
+ | tar xvzfp rootfs.tar.gz -C rootfs --numeric-owner --same-owner | ||
+ | ./build-rootfs-img.sh rootfs debian-bullseye-desktop-arm64 | ||
+ | ./mk-sd-image.sh debian-bullseye-desktop-arm64 | ||
+ | ./mk-emmc-image.sh debian-bullseye-desktop-arm64 autostart=yes | ||
+ | </syntaxhighlight> | ||
+ | | RK3576 = | ||
+ | 在Linux PC上执行以下shell命令,为了简洁起见,这里以debian-bullseye-desktop-arm64系统为例,但方法适用于所有Linux系统。 | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | su root | ||
+ | git clone https://github.com/friendlyarm/sd-fuse_rk3576 --single-branch -b kernel-6.1.y | ||
+ | cd sd-fuse_rk3576 | ||
tar xvzf /path/to/netdrive/03_Partition\ image\ files/debian-bullseye-desktop-arm64-images.tgz | tar xvzf /path/to/netdrive/03_Partition\ image\ files/debian-bullseye-desktop-arm64-images.tgz | ||
tar xvzf /path/to/netdrive/03_Partition\ image\ files/emmc-eflasher-images.tgz | tar xvzf /path/to/netdrive/03_Partition\ image\ files/emmc-eflasher-images.tgz |
Latest revision as of 10:51, 8 April 2025
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/RK3566/RK3588