← index #16510Issue #16171
Off-topic · high · value 1.517
QUERY · ISSUE

Cannot convert to littlefs2

openby benj5378opened 2025-01-01updated 2025-03-06
bug

Port, board and/or hardware

ESP32 S3 (Arduino Nano ESP32)

MicroPython version

MicroPython v1.24.1 on 2024-11-29; Arduino Nano ESP32 with ESP32S3

Reproduction

>>> import vfs
>>> vfs.umount('/')
>>> vfs.VfsLfs2.mkfs(bdev)
>>> vfs.mount(bdev, '/')

as according to https://docs.micropython.org/en/latest/reference/filesystem.html#littlefs

Expected behaviour

No errors, filesystem with littlefs2 made succesfully.

Observed behaviour

>>> import vfs
>>> vfs.umount('/')
>>> vfs.VfsLfs2.mkfs(bdev)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 22] EINVAL

:(

Additional Information

Works for fat32:

>>> import vfs
>>> vfs.umount('/')
>>> vfs.VfsFat.mkfs(bdev)
>>> vfs.mount(bdev, '/')

Code of Conduct

Yes, I agree

CANDIDATE · ISSUE

SDCard os.mount(sd,'/sd') OSError: [Errno 5] EIO

closedby FreddyBIopened 2024-11-06updated 2024-11-18
bug

Port, board and/or hardware

port esp32, esp32 devkit v1

ports esp32 build-ESP32_GENERIC Chip ESP32D0WDQ5 (revision 1)

MicroPython version

MicroPython v1.25.0-preview.16.g919756cea on 2024-11-05; Generic ESP32 module with ESP32

With IDF v5.1.2 or v5.2. or v5.2.2.

or MicroPython from downloads v1.24 IDF version ?

Reproduction

MicroPython v1.25.0-preview.16.g919756cea on 2024-11-05; Generic ESP32 module with ESP32

With IDF v5.1.2 or v5.2. or v5.2.2.

or MicroPython v1.24 from github download

import machine
sd=machine.SDCard(slot=2)
import os
os.mount(sd,'/sd')

Traceback (most recent call last):
File "<stdin>", line 4, in <module>
OSError: [Errno 5] EIO

Expected behaviour

No response

Observed behaviour

no

Additional Information

With this build no problem:

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4728
load:0x40078000,len:14888
load:0x40080400,len:3368
entry 0x400805cc
MicroPython v1.24.0-preview.181.g91f4a6b9e on 2024-11-06; Generic ESP32 module with ESP32
Type "help()" for more information.

IDF version:

~/esp-idf$ git describe
v5.0.4

import machine
import os
sd=machine.SDCard(slot=2)
os.mount(sd,'/sd')
print(os.listdir())

%Run -c $EDITOR_CONTENT

['sd', 'boot.py', 'config.txt', 'shellfbi.py']

Code of Conduct

Yes, I agree

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied