OTA升级后无法自动重启修复,多次尝试使用AT开始升级成功重启,是否依然有问题待验证 1261/1
authorhcj <1224667075@qq.com>
Fri, 25 Oct 2024 07:53:01 +0000 (15:53 +0800)
committerhcj <1224667075@qq.com>
Fri, 25 Oct 2024 07:53:01 +0000 (15:53 +0800)
code/sdk/build/config/target_config/brandy/config.py
code/sdk/drivers/drivers/driver/nand_flash/nand/nandflash_config.c

index 85b652f..30356fe 100755 (executable)
@@ -391,7 +391,7 @@ target = {
                     'FT_SINGLE_UART','TPTYPE_FT6X46',
                     'CFG_FLASH_SIZE=16',
                     'FD230',
-                    'ENABLE_ECC', 'SUPPORT_RECOVERY_DISPLAY'],
+                    'ENABLE_ECC', 'SUPPORT_RECOVERY_DISPLAY','SINGLE_USER_PARTITION'],
         'ram_component': ["algorithm", "dfx_port_brandy", "dfx_update", "osal", "arch_port", "-:testsuite",
                           "liteos_port", 'lcd', 'qspi_display', 'dfx_file_operation',
                           'psram', 'hal_mipi', 'mipi_tx', 'non_os', 'touch',
index 81f38b8..6ff0446 100755 (executable)
@@ -266,11 +266,15 @@ int nandflash_filesystem_init(void)
     PRINT("yaffs filesystem init start!\n");
     int ret = formate_filesystem_init(freertos_nandflash_driver->total_block);
 
-
-    mount_partition_by_index(0);
-    mount_partition_by_index(1);
-    mount_partition_by_index(2);
-    mount_partition_by_index(3);
+    int i=0;
+    for(i=0;i<YF_VOLUMES_NUM;i++)
+    {
+        mount_partition_by_index(i);
+    }
+    //mount_partition_by_index(0);
+    // mount_partition_by_index(1);
+    // mount_partition_by_index(2);
+    // mount_partition_by_index(3);
 
     PRINT("yaffs filesystem init end!\n");
     has_nandflash_init = 1;