build/imxrt : Update partition for fs loading and enable fs CRC for making smartfs image
1. Update partition for fs loading
2. CRC should be enabled for smartfs image
@@ -28,7 +28,7 @@ CONFIG_KSRAM_SIZE=192
CONFIG_USRAM_SIZE=64
CONFIG_AUTOGEN_MEMORY_LDSCRIPT=y
CONFIG_APP_BINARY_SEPARATION=y
-CONFIG_NUM_APPS=2
+CONFIG_NUM_APPS=5
# CONFIG_APPS_RAM_REGION_SHAREABLE is not set
CONFIG_SUPPORT_COMMON_BINARY=y
CONFIG_COMMON_BINARY_PATH="/mnt/"
@@ -379,7 +379,7 @@ CONFIG_BOARDCTL_RESET=y
CONFIG_IMXRT_NORFLASH=y
CONFIG_IMXRT_AUTOMOUNT=y
CONFIG_IMXRT_AUTOMOUNT_USERFS=y
-CONFIG_IMXRT_AUTOMOUNT_USERFS_DEVNAME="/dev/smart0p6"
+CONFIG_IMXRT_AUTOMOUNT_USERFS_DEVNAME="/dev/smart0p2"
CONFIG_IMXRT_AUTOMOUNT_USERFS_MOUNTPOINT="/mnt"
# CONFIG_IMXRT_AUTOMOUNT_SSSRW is not set
# CONFIG_IMXRT_AUTOMOUNT_ROMFS is not set
@@ -395,9 +395,9 @@ CONFIG_ARCH_USE_FLASH=y
#
CONFIG_FLASH_PARTITION=y
CONFIG_FLASH_MINOR=0
-CONFIG_FLASH_PART_SIZE="2048,512,1024,1024,1024,1024,1024,128,128,"
-CONFIG_FLASH_PART_TYPE="kernel,none,bin,bin,bin,bin,smartfs,ftl,config,"
-CONFIG_FLASH_PART_NAME="kernel,app,micom,micom,wifi,wifi,userfs,ftl,config,"
+CONFIG_FLASH_PART_SIZE="2048,512,3072,128,128,"
+CONFIG_FLASH_PART_TYPE="kernel,none,smartfs,ftl,config,"
+CONFIG_FLASH_PART_NAME="kernel,app,userfs,ftl,config,"
#
# SE Selection
@@ -1036,9 +1036,11 @@ CONFIG_MTD_SMART=y
#
# SMART Device options
#
-CONFIG_MTD_SMART_SECTOR_SIZE=1024
+CONFIG_MTD_SMART_SECTOR_SIZE=512
CONFIG_MTD_SMART_WEAR_LEVEL=y
-# CONFIG_MTD_SMART_ENABLE_CRC is not set
+CONFIG_MTD_SMART_ENABLE_CRC=y
+CONFIG_SMART_CRC_8=y
+# CONFIG_SMART_CRC_16 is not set
# CONFIG_MTD_SMART_SECTOR_ERASE_DEBUG is not set
# CONFIG_MTD_SMART_ALLOC_DEBUG is not set
# CONFIG_MTD_W25 is not set
