由于mount速度已经加快,恢复正常mount 顺序,取消剥离的mount user分区操作
authorSnickerSun <snickersun@163.com>
Sun, 20 Oct 2024 05:40:07 +0000 (13:40 +0800)
committerSnickerSun <snickersun@163.com>
Sun, 20 Oct 2024 05:40:07 +0000 (13:40 +0800)
code/sdk/application/brandy/brandy_recovery/app_os_init.c
code/sdk/application/brandy/brandy_standard/thread_init.c
code/sdk/application/brandy/brandy_testsuite/main.c
code/sdk/drivers/drivers/driver/nand_flash/nand/nandflash_config.c

index b9fce36..c93f7ed 100755 (executable)
@@ -187,7 +187,7 @@ static void app_main(const void *unused)
     recovery_display_sample();
 #ifdef CFG_DRIVERS_NANDFLASH
     //为了加速启动,把最耗时的mount_user_res_partition分区放到显示log之后
-    mount_user_res_partition();
+    // mount_user_res_partition();
 #endif
     if (upg_need_upgrade()) {
         printf("need upgrade\r\n");
index fc5bec9..c180a96 100755 (executable)
@@ -182,8 +182,8 @@ app_task_definition_t g_app_tasks[] = {
       (CreateQueueFunction_t)power_display_task_init, USE_DTCM_MEM },
 #endif
     // user分区mount位置修改,save_file必须放到user分区mount之后
-    // { { "save_file", 0, NULL, 0, NULL, SAVE_FILE_STACK_SIZE, TASK_PRIORITY_SAVE_FILE, 0, 0 },
-    //   (osThreadFunc_t)save_file_main, NULL, NULL, USE_EXTEND_MEM },
+    { { "save_file", 0, NULL, 0, NULL, SAVE_FILE_STACK_SIZE, TASK_PRIORITY_SAVE_FILE, 0, 0 },
+      (osThreadFunc_t)save_file_main, NULL, NULL, USE_EXTEND_MEM },
 #ifdef SUPPORT_AUTO_OTA
     { { "auto_ota", 0, NULL, 0, NULL, AUTO_OTA_STACK_SIZE, TASK_PRIORITY_AUTO_OTA, 0, 0 },
       (osThreadFunc_t)auto_ota_task_main, NULL, NULL, USE_EXTEND_MEM },
index e16163e..bf7d620 100755 (executable)
@@ -200,7 +200,7 @@ static void cmd_processor_entry(void *args)
 #endif
 #ifdef CFG_DRIVERS_NANDFLASH
     nandflash_filesystem_init();
-    mount_user_res_partition();
+    // mount_user_res_partition();
 #endif
     uapi_test_suite_init();
     test_suite_main_add_functions();
index 2fe7f52..44800fb 100755 (executable)
@@ -267,16 +267,17 @@ int nandflash_filesystem_init(void)
     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;
     return ret;
 }
 
-int mount_user_res_partition(void)
-{
-   return  mount_partition_by_index(3);
-}
+// int mount_user_res_partition(void)
+// {
+//     return  mount_partition_by_index(3);
+// }
 void nandflash_qspi_resume(void)
 {
     nand_driver_init(SPEED_MID);