From: SnickerSun Date: Sun, 20 Oct 2024 05:40:07 +0000 (+0800) Subject: 由于mount速度已经加快,恢复正常mount 顺序,取消剥离的mount user分区操作 X-Git-Tag: release_V1.2.70_20241020_135402~2 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=29fec792e3a65157f7ec4339a25621c1b9c36e47;p=mirrors%2FFD230.git 由于mount速度已经加快,恢复正常mount 顺序,取消剥离的mount user分区操作 --- diff --git a/code/sdk/application/brandy/brandy_recovery/app_os_init.c b/code/sdk/application/brandy/brandy_recovery/app_os_init.c index b9fce367d..c93f7ed71 100755 --- a/code/sdk/application/brandy/brandy_recovery/app_os_init.c +++ b/code/sdk/application/brandy/brandy_recovery/app_os_init.c @@ -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"); diff --git a/code/sdk/application/brandy/brandy_standard/thread_init.c b/code/sdk/application/brandy/brandy_standard/thread_init.c index fc5bec9b2..c180a962b 100755 --- a/code/sdk/application/brandy/brandy_standard/thread_init.c +++ b/code/sdk/application/brandy/brandy_standard/thread_init.c @@ -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 }, diff --git a/code/sdk/application/brandy/brandy_testsuite/main.c b/code/sdk/application/brandy/brandy_testsuite/main.c index e16163e72..bf7d62037 100755 --- a/code/sdk/application/brandy/brandy_testsuite/main.c +++ b/code/sdk/application/brandy/brandy_testsuite/main.c @@ -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(); diff --git a/code/sdk/drivers/drivers/driver/nand_flash/nand/nandflash_config.c b/code/sdk/drivers/drivers/driver/nand_flash/nand/nandflash_config.c index 2fe7f5294..44800fb5e 100755 --- a/code/sdk/drivers/drivers/driver/nand_flash/nand/nandflash_config.c +++ b/code/sdk/drivers/drivers/driver/nand_flash/nand/nandflash_config.c @@ -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);