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] nsh and SmartFS file system are not SMP-proof #13856

Open
1 task done
UAV-Pilot opened this issue Oct 6, 2024 · 3 comments
Open
1 task done

[BUG] nsh and SmartFS file system are not SMP-proof #13856

UAV-Pilot opened this issue Oct 6, 2024 · 3 comments
Labels
Arch: arm Issues related to ARM (32-bit) architecture Area: OS Components OS Components issues

Comments

@UAV-Pilot
Copy link

UAV-Pilot commented Oct 6, 2024

Description / Steps to reproduce the issue

  1. On Pi Pico W board with Pi Pico SDK 2.0, setup a system with working flash SmartFS file system and without SMP, e.g.,
    ./tools/configure.sh -l raspberrypi-pico-w:nsh-flash

  2. verify that the following file creation, deletion and smart_test command work
    cd /flash
    echo Hello_NuttX > test2.txt
    cat test2.txt
    smart_test -w 2 /flash/test2.txt
    rm test2.txt

  3. enable SMP and run ps or other command to verify that SMP is working
    ref: https://blog.mark-stevens.co.uk/2023/06/adding-smp-to-nuttx-on-the-raspberry-pi-picow/

  4. try to re-run commands in step 2)
    notice that when executing file creation or deletion or smart_test command, nsh hangs. If there is a USB nsh and a telnet nsh, then both nsh hang.

Not sure if there is any other part of NuttX OS that is also not SMP-proof.

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: OS Components]

Verification

  • I have verified before submitting the report.
@github-actions github-actions bot added Arch: arm Issues related to ARM (32-bit) architecture Area: OS Components OS Components issues labels Oct 6, 2024
@UAV-Pilot UAV-Pilot changed the title [BUG] nsh is not SMP-proof [BUG] nsh and SmartFS file system are not SMP-proof Oct 7, 2024
@xiaoxiang781216
Copy link
Contributor

could you test on littlefs? so we can know whether is specific to smartfs.

@UAV-Pilot
Copy link
Author

Created a related bug: #13882 (Flash file system creation process does not take configured parameters on Pi Pico #13882), don't know how to create a working littlefs. Note that in menuconfig, selecting RP2040_FLASH_FILE_SYSTEM (Configure a read/write filesystem on unused flash memory) will automatically select SmartFS.

@jerpelea
Copy link
Contributor

@UAV-Pilot updates?

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: OS Components OS Components issues
Projects
None yet
Development

No branches or pull requests

3 participants