hi3520dv200: enable CONFIG_OVERLAYFS_FS (mirror hi3516cv100)#2096
Merged
Conversation
Without overlayfs the rootfs stays squashfs read-only after /init's overlay check fails, /var/lib and /etc cannot be written, and fw_printenv spams "Cannot parse config file '/etc/fw_env.config'" from every init script that consults the U-Boot env. hi3516cv100 (same Linux 3.0.x base) ships the overlayfs-v11 backport and this flag enabled. Pairs with OpenIPC/linux#40 which cherry-picks the v11 backport onto the hisilicon-hi3520dv200 kernel branch (already merged). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
81a9fe1 to
836da7c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why
On a freshly-flashed hi3520dv200, `general/overlay/init` exits at the `grep -q overlay /proc/filesystems || exit 1` check because Linux 3.0.8 ships with no overlayfs. The rootfs stays squashfs-read-only, `/var/lib` and `/etc` are not writable, and every init script that calls `fw_printenv` (rcS, S40network, S98wireguard, /etc/profile, udhcpc default.script, …) prints:
```
Cannot parse config file '/etc/fw_env.config': No such file or directory
```
hi3516cv100 (same Linux 3.0.x kernel vintage) doesn't have this problem because its branch carries the overlayfs-v11 backport and the matching `CONFIG_OVERLAYFS_FS=y` flag.
With OpenIPC/linux#40 merged and this flag flipped:
Test plan
Known limitation
A second, unrelated source of `Cannot parse config file '/etc/fw_env.config'` spam remains on factory-raw flash: the OpenIPC `fw_env` patch (`0011-env-partition-autosearch.patch`) locates the env partition by CRC-scanning each MTD, which fails when the env partition is still erased (all `0xFF`). That affects every SoC, not just hi3520dv200, and is out of scope for this PR.