summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhuzhuzhu <[email protected]>2024-06-13 08:51:57 +0800
committerGitHub <[email protected]>2024-06-13 08:51:57 +0800
commit58e42caea7f8b5145841327cff02fb4f3ebfeeb0 (patch)
treed041fbabf3e29155cd85d2bcb3bcf836e65ec473
parent40e64e5be679523b95f2acd66bc4343be102ba94 (diff)
【修改】修改imx6ull-smart中mnt.c的逻辑错误 (#9045)
* Update mnt.c * Update mnt.c * Update mnt.c * Add files via upload * Update mnt.c * Update mnt.c
-rw-r--r--bsp/nxp/imx/imx6ull-smart/applications/mnt.c21
-rw-r--r--bsp/nxp/imx/imx6ull-smart/emmc/image/input/u-boot-dtb.imxbin0 -> 523264 bytes
2 files changed, 9 insertions, 12 deletions
diff --git a/bsp/nxp/imx/imx6ull-smart/applications/mnt.c b/bsp/nxp/imx/imx6ull-smart/applications/mnt.c
index d1cb5083e2..90ebfead6a 100644
--- a/bsp/nxp/imx/imx6ull-smart/applications/mnt.c
+++ b/bsp/nxp/imx/imx6ull-smart/applications/mnt.c
@@ -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)
diff --git a/bsp/nxp/imx/imx6ull-smart/emmc/image/input/u-boot-dtb.imx b/bsp/nxp/imx/imx6ull-smart/emmc/image/input/u-boot-dtb.imx
new file mode 100644
index 0000000000..1a8650bcf5
--- /dev/null
+++ b/bsp/nxp/imx/imx6ull-smart/emmc/image/input/u-boot-dtb.imx
Binary files differ