Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Flash file system creation process does not take configured parameters on Pi Pico #13882

Open
1 task done
UAV-Pilot opened this issue Oct 7, 2024 · 0 comments
Open
1 task done
Labels
Arch: arm Issues related to ARM (32-bit) architecture Area: File System File System issues

Comments

@UAV-Pilot
Copy link

UAV-Pilot commented Oct 7, 2024

Description / Steps to reproduce the issue

Use existing base configuration, e.g., ./tools/configure.sh raspberrypi-pico-w:nsh-flash
or set the following in menuconfig to create a flash system on Pi Pico
Select RP2040_FLASH_FILE_SYSTEM (Configure a read/write filesystem on unused flash memory)
set MTD_SMART_SECTOR_SIZE to a non-1K value, e.g., 512

Notice that no matter what value is set to MTD_SMART_SECTOR_SIZE, after created file system, block size is always 1024, so some parameters used in file system creation are hard-coded.

Also note that selecting RP2040_FLASH_FILE_SYSTEM will automatically select SmartFS.

NuttShell (NSH) NuttX-12.7.0-RC0
nsh> cd /flash
nsh> ls
/flash:
 test
nsh> df .
  Block    Number
  Size     Blocks       Used   Available Mounted on
  1024       1468         11        1457 /flash
     0          0          0           0 /proc

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Windows 11 WSL2 Ubuntu 22.04.2

NuttX Version

NuttX 12.7.0-RC0 0976258-dirty Oct 4 2024 22:58:36 arm rasp

Issue Architecture

[Arch: arm]

Issue Area

[Area: File System]

Verification

  • I have verified before submitting the report.
@github-actions github-actions bot added Arch: arm Issues related to ARM (32-bit) architecture Area: File System File System issues labels Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: arm Issues related to ARM (32-bit) architecture Area: File System File System issues
Projects
None yet
Development

No branches or pull requests

1 participant