7 posts / 0 new
Last post
wes westhaver
Error: Could not create VFS directory

I am trying to set up OVMS logging and I am getting this error:

OVMS# vfs mkdir /sd/test010
Error: Could not create VFS directory

In the OVMS console I see:

SD Card

SD CARD is inserted
Status: available
Name: SC32G
Size: 30420 MB
Free: 30420 MB

Card type: SDHC/SDXC
Max speed: 25000 kHz
Capacity: 30436 MB
CSD: ver=1, sector_size=512, capacity=62333952 read_bl_len=9
SCR: sd_spec=2, bus_width=5

So it appears that OVMS recognizes my MicroSD card but I am not able to create any folders or files on it. Any ideas?

-Wes

 

markwj
markwj's picture
Can you try 'vfs ls /sd'?

Can you try 'vfs ls /sd'? Perhaps the directory already exists?

wes westhaver
Thanks, I'll try that....

This what I get:

OVMS# vfs ls /sd
I (825174) webserver: HTTP POST /api/execute
I (825174) webcommand: HttpCommandStream[0x3f8b4ea8]: 3471376 bytes free, executing: vfs ls /sd

So, it looks like the MicroSD card is empty. Any other ideas?

wes westhaver
I tried a different MicroSD card

This MicroSD card is an older 8Gig card and when I try to read or write to it I get this:

I (127352) webserver: HTTP POST /api/execute
I (127352) webcommand: HttpCommandStream[0x3f8c21f4]: 3466484 bytes free, executing: vfs mkdir /sd/logs
E (131232) can: can1: intr=77178 rxpkt=76816 txpkt=305 errflags=0x8000d9 rxerr=0 txerr=8 rxinval=0 rxovr=0 txovr=0 txdelay=50 txfail=0 wdgreset=0 errreset=0
E (131232) can: can1: intr=77182 rxpkt=76816 txpkt=305 errflags=0x8000d9 rxerr=0 txerr=40 rxinval=0 rxovr=0 txovr=0 txdelay=50 txfail=0 wdgreset=0 errreset=0
E (131232) can: can1: intr=77184 rxpkt=76816 txpkt=305 errflags=0x8000d9 rxerr=0 txerr=56 rxinval=0 rxovr=0 txovr=0 txdelay=50 txfail=0 wdgreset=0 errreset=0
E (131232) can: can1: intr=77186 rxpkt=76816 txpkt=305 errflags=0x8000d9 rxerr=0 txerr=72 rxinval=0 rxovr=0 txovr=0 txdelay=50 txfail=0 wdgreset=0 errreset=0
E (131232) can: can1: intr=77188 rxpkt=76816 txpkt=305 errflags=0x8000d9 rxerr=0 txerr=88 rxinval=0 rxovr=0 txovr=0 txdelay=50 txfail=0 wdgreset=0 errreset=0
E (131232) can: can1: intr=77189 rxpkt=76816 txpkt=305 errflags=0x8440d9 rxerr=0 txerr=96 rxinval=0 rxovr=0 txovr=0 txdelay=50 txfail=0 wdgreset=0 errreset=0
E (131232) can: can1: intr=77191 rxpkt=76816 txpkt=305 errflags=0x8040d9 rxerr=0 txerr=112 rxinval=0 rxovr=0 txovr=0 txdelay=50 txfail=0 wdgreset=0 errreset=0
E (131232) can: can1: intr=77194 rxpkt=76816 txpkt=305 errflags=0x204c00 rxerr=0 txerr=128 rxinval=0 rxovr=0 txovr=0 txdelay=50 txfail=0 wdgreset=0 errreset=0
E (132462) sdmmc_req: sdmmc_host_wait_for_event returned 0x107
E (132462) sdmmc_cmd: sdmmc_write_sectors_dma: sdmmc_send_cmd returned 0x107
E (132462) diskio_sdmmc: sdmmc_write_blocks failed (263)
E (133472) sdmmc_req: sdmmc_host_wait_for_event returned 0x107

OVMS# vfs mkdir /sd/logs
Error: Could not create VFS directory

E (133472) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (133472) diskio_sdmmc: sdmmc_read_blocks failed (263)

 

markwj
markwj's picture
Can you try a different SD

Can you try a different SD card to rule that out as the cause of the problem?

Also if you have an older OVMS module, please check 'config list sdcard' to see the maxfreq.khz parameter. That should be 16000 for older OVMS modules.

wes westhaver
I found the answer to my

I found the answer to my problem in this thread:

https://www.openvehicles.com/node/3294

Turns out that you have to uncheck the "ENABLE GLOBAL FILE AUTH" option under the Config | Webserver page of the OVMS console.

-Wes

 

 

dexter
dexter's picture
I found the answer

No. See my post in the other thread.

Regards,
Michael

Log in or register to post comments
randomness