From 132b88adff5d61ed34c7bd8c39804806196c23e1 Mon Sep 17 00:00:00 2001 From: viktorxda <35473052+viktorxda@users.noreply.github.com> Date: Wed, 26 Apr 2023 15:53:52 +0200 Subject: [PATCH] [Sigmastar] enable ubifs compatibility layer (#747) Co-authored-by: viktorxda --- .../kernel/ssc338q.generic.config.camhi | 5 +-- .../configs/ssc338q_lite_defconfig | 2 +- scripts/ubinize_sigmastar.cfg | 34 +++++++++++++++++++ 3 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 scripts/ubinize_sigmastar.cfg diff --git a/br-ext-chip-sigmastar/board/infinity6e/kernel/ssc338q.generic.config.camhi b/br-ext-chip-sigmastar/board/infinity6e/kernel/ssc338q.generic.config.camhi index c41da83d..dea5ba5e 100644 --- a/br-ext-chip-sigmastar/board/infinity6e/kernel/ssc338q.generic.config.camhi +++ b/br-ext-chip-sigmastar/board/infinity6e/kernel/ssc338q.generic.config.camhi @@ -921,7 +921,7 @@ CONFIG_MTD_UBI=y CONFIG_MTD_UBI_WL_THRESHOLD=4096 CONFIG_MTD_UBI_BEB_LIMIT=20 # CONFIG_MTD_UBI_FASTMAP is not set -# CONFIG_MTD_UBI_GLUEBI is not set +CONFIG_MTD_UBI_GLUEBI=y # CONFIG_MTD_UBI_BLOCK is not set CONFIG_DTC=y CONFIG_OF=y @@ -2055,7 +2055,8 @@ CONFIG_MISC_FILESYSTEMS=y # CONFIG_EFS_FS is not set CONFIG_JFFS2_FS=y CONFIG_JFFS2_FS_DEBUG=0 -# CONFIG_JFFS2_FS_WRITEBUFFER is not set +CONFIG_JFFS2_FS_WRITEBUFFER=y +# CONFIG_JFFS2_FS_WBUF_VERIFY is not set # CONFIG_JFFS2_SUMMARY is not set # CONFIG_JFFS2_FS_XATTR is not set # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set diff --git a/br-ext-chip-sigmastar/configs/ssc338q_lite_defconfig b/br-ext-chip-sigmastar/configs/ssc338q_lite_defconfig index 2a1e2d45..a10c7e50 100644 --- a/br-ext-chip-sigmastar/configs/ssc338q_lite_defconfig +++ b/br-ext-chip-sigmastar/configs/ssc338q_lite_defconfig @@ -37,7 +37,7 @@ BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y BR2_TARGET_ROOTFS_UBI=y BR2_TARGET_ROOTFS_UBI_SUBSIZE=2048 BR2_TARGET_ROOTFS_UBI_USE_CUSTOM_CONFIG=y -BR2_TARGET_ROOTFS_UBI_CUSTOM_CONFIG_FILE="$(TOPDIR)/../scripts/ubinize.cfg" +BR2_TARGET_ROOTFS_UBI_CUSTOM_CONFIG_FILE="$(TOPDIR)/../scripts/ubinize_sigmastar.cfg" BR2_TARGET_ROOTFS_UBIFS_LEBSIZE=0x1f000 BR2_ROOTFS_OVERLAY="$(TOPDIR)/../general/overlay" BR2_ROOTFS_POST_BUILD_SCRIPT="$(TOPDIR)/../scripts/executing_commands_for_$(BR2_TOOLCHAIN_BUILDROOT_LIBC).sh" diff --git a/scripts/ubinize_sigmastar.cfg b/scripts/ubinize_sigmastar.cfg new file mode 100644 index 00000000..df0d12c9 --- /dev/null +++ b/scripts/ubinize_sigmastar.cfg @@ -0,0 +1,34 @@ +[kernel] +mode=ubi +vol_id=0 +vol_type=dynamic +vol_name=kernel +vol_alignment=1 +vol_size=4MiB +image=BINARIES_DIR/uImage + +[rootfs] +mode=ubi +vol_id=1 +vol_type=dynamic +vol_name=rootfs +vol_alignment=1 +vol_size=10MiB +image=BINARIES_DIR/rootfs.squashfs + +[rootfs_data] +mode=ubi +vol_id=2 +vol_type=dynamic +vol_name=rootfs_data +vol_alignment=1 +vol_size=10MiB + +[other] +mode=ubi +vol_id=3 +vol_type=dynamic +vol_name=other +vol_alignment=1 +vol_size=10MiB +vol_flags=autoresize