【修改】修改imx6ull-smart中mnt.c的逻辑错误 (#9045)

* Update mnt.c

* Update mnt.c

* Update mnt.c

* Add files via upload

* Update mnt.c

* Update mnt.c
This commit is contained in:
zhuzhuzhu 2024-06-13 08:51:57 +08:00 committed by GitHub
parent 40e64e5be6
commit 58e42caea7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 12 deletions

View File

@ -22,23 +22,20 @@ int mnt_init(void)
int part_id = 0;
if (dfs_mount("emmc0", "/", "elm", 0, (void *)part_id) != 0)
{
rt_kprintf("Dir / emmc mount failed!\n");
return -1;
if (dfs_mount("sd0", "/", "elm", 0, (void *)part_id) != 0)
{
rt_kprintf("Dir / mount failed!\n");
return -1;
}
else
{
rt_kprintf("sd0 file system initialization done!\n");
}
}
else
{
rt_kprintf("emmc file system initialization done!\n");
}
if (dfs_mount("sd0", "/", "elm", 0, (void *)part_id) != 0)
{
rt_kprintf("Dir / mount failed!\n");
return -1;
}
else
{
rt_kprintf("sd0 file system initialization done!\n");
}
#else
rt_thread_mdelay(500);
if (dfs_mount(NULL, "/", "rom", 0, &romfs_root) != 0)