[ROC-RK3568-PC] Kernel去除overlayfs的配置

Posted Neutionwei

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[ROC-RK3568-PC] Kernel去除overlayfs的配置相关的知识,希望对你有一定的参考价值。

进入Kernel目录,以下补丁是支持overlayfs的操作,去除overlayfs反过来操作即可:

diff --git a/arch/arm64/boot/dts/rockchip/rk3568-linux.dtsi b/arch/arm64/boot/dts/rockchip/rk3568-linux.dtsi             
index b3ca6720cdc5..a612c6e13a1a 100644
--- a/arch/arm64/boot/dts/rockchip/rk3568-linux.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3568-linux.dtsi
@@ -6,7 +6,7 @@

 / 
        chosen: chosen 
-               bootargs = "earlycon=uart8250,mmio32,0xfe660000 swiotlb=1 console=ttyFIQ0 root=PARTUUID=614e0000-0000 rw rootwait";
+               bootargs = "earlycon=uart8250,mmio32,0xfe660000 swiotlb=1 console=ttyFIQ0 root=PARTLABEL=rootfs rootfstype=ext4 ro rootwait overlayroot=device:dev=PARTLABEL=userdata,fstype=ext4,mkfs=1 coherent_pool=1m systemd.gpt_auto=0 cgroup_enable=memory swapaccount=1";
        ;

        fiq-debugger 
diff --git a/arch/arm64/configs/firefly_linux_defconfig b/arch/arm64/configs/firefly_linux_defconfig                     
index 339f82f7e455..7c31443573b7 100644
--- a/arch/arm64/configs/firefly_linux_defconfig
+++ b/arch/arm64/configs/firefly_linux_defconfig
@@ -521,6 +521,7 @@ CONFIG_EXT4_FS_SECURITY=y
 CONFIG_XFS_FS=y
 # CONFIG_DNOTIFY is not set
 CONFIG_FUSE_FS=y
+CONFIG_OVERLAY_FS=y
 CONFIG_ISO9660_FS=y
 CONFIG_JOLIET=y
 CONFIG_ZISOFS=y
diff --git a/ramdisk.img b/ramdisk.img
new file mode 100644
index 000000000000..1a55ae303381
Binary files /dev/null and b/ramdisk.img differ

以上是关于[ROC-RK3568-PC] Kernel去除overlayfs的配置的主要内容,如果未能解决你的问题,请参考以下文章

[ROC-RK3568-PC] 手把手教你解包Ubuntu系统固件

[ROC-RK3568-PC] 手把手教你在Linux下解包与打包Ubuntu系统固件

[ROC-RK3568-PC] 手把手教你打包能使用Etcher或dd命令烧写的Ubuntu系统固件

[ROC-RK3568-PC] 手把手教你打包能使用Etcher或dd命令烧写的Ubuntu系统固件

[ROC-RK3568-PC] 手把手教你编译Linux_SDK并打包Ubuntu系统固件

[ROC-RK3568-PC] 手把手教你制作Ubuntu系统TF卡启动盘