mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
【修改】修改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:
1 parent
40e64e5be6
commit
58e42caea7
2 files changed
+9
-12
No files matched your search
@@ -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)
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user