Bladeren bron

use sd as '/' mount ponit

prife 12 jaren geleden
bovenliggende
commit
4f45c460d8
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      bsp/simlinux/applications/application.c

+ 2 - 1
bsp/simlinux/applications/application.c

@@ -50,7 +50,8 @@ void rt_init_thread_entry(void *parameter)
 
 #ifdef RT_USING_DFS_ELMFAT
         /* mount sd card fatfs as root directory */
-        if (dfs_mount("sd0", "/disk/sd", "elm", 0, 0) == 0)
+        //if (dfs_mount("sd0", "/disk/sd", "elm", 0, 0) == 0)
+        if (dfs_mount("sd0", "/", "elm", 0, 0) == 0)
             rt_kprintf("fatfs initialized!\n");
         else
             rt_kprintf("fatfs initialization failed!\n");