【修改】修改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:
parent
40e64e5be6
commit
58e42caea7
|
@ -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.
Loading…
Reference in New Issue