From f97a0fc9ed3dd2d8602181a12c54e98ce1b8aeb5 Mon Sep 17 00:00:00 2001 From: Dylan Corrales Date: Fri, 6 Nov 2026 21:04:19 -0500 Subject: [PATCH] ambarella: s3l: enable overlayfs, so a flashed image keeps its settings /init stacks an overlay on the rootfs to keep settings in rootfs_data, and skips it when the kernel has no overlay filesystem. The S3L kernel had none, so a flashed s3l image booted with a read-only root: nothing persisted, and /etc/fw_env.config could not be written, so fw_printenv/fw_setenv failed. CONFIG_OVERLAYFS_FS comes with the overlayfs v18 patch for the 3.10 ambarella-s3l kernel (the one OpenIPC carries for the 3.10 ingenic-t31 kernel). Until that kernel has it, olddefconfig drops the unknown option and nothing else in the config changes. Tested on an Amcrest IP4M-1026E, flashed and booted from flash: rootfs_data mounts as jffs2 with overlayfs over /, fw_printenv works, and settings survive reboots. With the patched kernel this config passes olddefconfig unchanged, and the kernel keeps the inode/file layout the prebuilt iav.ko expects. --- br-ext-chip-ambarella/board/s3l/s3l.generic.config | 1 + 1 file changed, 1 insertion(+) diff --git a/br-ext-chip-ambarella/board/s3l/s3l.generic.config b/br-ext-chip-ambarella/board/s3l/s3l.generic.config index 542b106c3..914258e08 100644 --- a/br-ext-chip-ambarella/board/s3l/s3l.generic.config +++ b/br-ext-chip-ambarella/board/s3l/s3l.generic.config @@ -2092,6 +2092,7 @@ CONFIG_INOTIFY_USER=y # CONFIG_QUOTACTL is not set # CONFIG_AUTOFS4_FS is not set # CONFIG_FUSE_FS is not set +CONFIG_OVERLAYFS_FS=y CONFIG_GENERIC_ACL=y #