diff options
author | Jan Hoffmann <jan@3e8.eu> | 2022-07-23 22:53:17 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-07-28 14:08:56 +0200 |
commit | 3b1261224aa0313ab8c155d3a4679e598a04d9a6 (patch) | |
tree | 6ce4c730ceb243b2cba1b20f9365789d95d139de /target/linux/generic/config-5.10 | |
parent | 81e3017609be0ffa85c7ba430734e47519186481 (diff) | |
download | upstream-3b1261224aa0313ab8c155d3a4679e598a04d9a6.tar.gz upstream-3b1261224aa0313ab8c155d3a4679e598a04d9a6.tar.bz2 upstream-3b1261224aa0313ab8c155d3a4679e598a04d9a6.zip |
kernel: mtdsplit: add support for H3C VFS filesystem
The bootloader on some H3C devices (for example HPE 1920 switches) only
supports booting from flash by reading an image from an "VFS" filesystem
which spans most of the available flash. The filesystem size is hard-
coded in the bootloader. However, as long as no write operations are
performed in the bootloader menu, it is sufficient if the start of the
partition contains a valid filesystem with the kernel image.
This mtdsplit parser reads the size and location of the kernel image and
finds the location of the rootfs stored after it. It assumes that the
filesystem image matches the layout of one generated by mkh3cvfs, with
a filename of "openwrt-kernel.bin" for the kernel image.
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Diffstat (limited to 'target/linux/generic/config-5.10')
-rw-r--r-- | target/linux/generic/config-5.10 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/generic/config-5.10 b/target/linux/generic/config-5.10 index c14851dbdb..2223456fe0 100644 --- a/target/linux/generic/config-5.10 +++ b/target/linux/generic/config-5.10 @@ -3683,6 +3683,7 @@ CONFIG_MTD_SPLIT=y # CONFIG_MTD_SPLIT_FIRMWARE is not set CONFIG_MTD_SPLIT_FIRMWARE_NAME="firmware" # CONFIG_MTD_SPLIT_FIT_FW is not set +# CONFIG_MTD_SPLIT_H3C_VFS is not set # CONFIG_MTD_SPLIT_JIMAGE_FW is not set # CONFIG_MTD_SPLIT_LZMA_FW is not set # CONFIG_MTD_SPLIT_MINOR_FW is not set |