diff --git a/br-ext-chip-sigmastar/configs/ssc338q_lite_defconfig b/br-ext-chip-sigmastar/configs/ssc338q_lite_defconfig index 806fda81..d70ce416 100644 --- a/br-ext-chip-sigmastar/configs/ssc338q_lite_defconfig +++ b/br-ext-chip-sigmastar/configs/ssc338q_lite_defconfig @@ -36,8 +36,6 @@ BR2_TARGET_ROOTFS_SQUASHFS=y 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_UBIFS_LEBSIZE=0x1f000 BR2_ROOTFS_OVERLAY="$(TOPDIR)/../general/overlay" BR2_ROOTFS_POST_BUILD_SCRIPT="$(TOPDIR)/../scripts/executing_commands_for_$(BR2_TOOLCHAIN_BUILDROOT_LIBC).sh" @@ -84,6 +82,7 @@ BR2_PACKAGE_DOSFSTOOLS=y BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y BR2_PACKAGE_EXFAT_OPENIPC=y BR2_PACKAGE_EXFATPROGS=y +BR2_PACKAGE_MTD=y # BR2_PACKAGE_SSHPASS is not set BR2_PACKAGE_UACME_OPENIPC=y BR2_PACKAGE_VTUND_OPENIPC=y diff --git a/general/overlay/init b/general/overlay/init index 25a0136e..70926af8 100755 --- a/general/overlay/init +++ b/general/overlay/init @@ -12,6 +12,9 @@ grep -q overlay /proc/filesystems || exit if ! grep -q 'root=.*nfs\|mmcblk\|ram' /proc/cmdline; then if grep -q ubifs /proc/cmdline; then + if [ ! -e /dev/ubi1_0 ] && grep -q rootfs_data /proc/mtd; then + mount -t sysfs sysfs /sys && ubimkvol /dev/ubi1 -N rootfs_data -m && umount /sys + fi mount -t ubifs ubi0:rootfs_data /overlay else mtdblkdev=$(awk -F ':' '/rootfs_data/ {print $1}' /proc/mtd | sed 's/mtd/mtdblock/')