mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-13 18:08:54 +00:00
V1.0.5
This commit is contained in:
@@ -17,19 +17,32 @@
|
||||
#include <stdio.h>
|
||||
#include <dfs.h>
|
||||
#include <dfs_fs.h>
|
||||
#include <boot_param.h>
|
||||
#endif
|
||||
|
||||
int main(void)
|
||||
{
|
||||
#ifdef AIC_AB_SYSTEM_INTERFACE
|
||||
char target[32] = { 0 };
|
||||
enum boot_device boot_dev = aic_get_boot_device();
|
||||
|
||||
aic_ota_status_update();
|
||||
aic_get_rodata_to_mount(target);
|
||||
printf("Mount APP in blk %s\n", target);
|
||||
if (boot_dev != BD_SDMC0) {
|
||||
|
||||
if (dfs_mount(target, "/rodata", "elm", 0, 0) < 0)
|
||||
printf("Failed to mount elm\n");
|
||||
aic_ota_status_update();
|
||||
aic_get_rodata_to_mount(target);
|
||||
printf("Mount APP in blk %s\n", target);
|
||||
|
||||
if (dfs_mount(target, "/rodata", "elm", 0, 0) < 0)
|
||||
printf("Failed to mount elm\n");
|
||||
|
||||
memset(target, 0, sizeof(target));
|
||||
|
||||
aic_get_data_to_mount(target);
|
||||
printf("Mount APP in blk %s\n", target);
|
||||
|
||||
if (dfs_mount(target, "/data", "elm", 0, 0) < 0)
|
||||
printf("Failed to mount elm\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef ULOG_USING_FILTER
|
||||
|
||||
Reference in New Issue
Block a user