Skip to content

RP2040 (Raspberry Pi Pico W) - CIRCUITPY appears corrupted on linux #8538

@epeay

Description

@epeay

CircuitPython version

I flashed 8.2.7, and then bounced back to 8.2.2. Same issue on both versions.

Code/REPL

N/A

Behavior

I have a Raspberry Pi Pico W.

When I flash micropython, I have no trouble. This only happens with circuitpython.

To Recreate:

  1. Hold BOOTSEL, unplug and re-plug the pico W. Release BOOTSEL.
  2. Copy the 8.2.7 bootloader onto the RPI... mount.
  3. Wait for the flash to finish. The drive unmounts. The new CIRCUITPY mount is created.
  4. Attempt to view the files in the mount.

Expected:

A normal-ish filesystem.

Actual:

> /media/epeay/CIRCUITPY$ ll
ls: cannot access '.fseventsd': Input/output error
ls: cannot access 'lib': Input/output error
ls: cannot access 't pin  #. Im': Input/output error
ls: cannot access 'or GPIO.con': Input/output error
ls: cannot access 't red'$'\n''im.por': Input/output error
ls: cannot access 'in=0'$'\n''boa.RD_': Input/output error
ls: cannot access 'LS  # Nu.mbe': Input/output error
ls: cannot access ' leds =.mat': Input/output error
ls: cannot access 'eoPixel.cla': Input/output error
ls: cannot access 'onColor.= (': Input/output error
ls: cannot access 't pin  #. Im': Input/output error
ls: cannot access 'or GPIO.con': Input/output error
ls: cannot access 't red'$'\n''im.por': Input/output error

This is junk data, being read as a filesystem.

Description

I have the same symptoms as #2944 , and the workaround mentioned in that bug, also worked for me.

  1. Unplug the pico W.
  2. Plug into a mac. Observe the correctly mounted filesystem.
  3. Unplug from the mac.
  4. Plug back into linux. Observe the correctly mounted filesystem.
> /media/epeay/CIRCUITPY$ ll
total 26
drwxr-xr-x  3 epeay epeay 16384 Dec 31  1969 ./
drwxr-x---+ 6 root  root   4096 Oct 28 23:28 ../
-rw-r--r--  1 epeay epeay  4096 Oct 28 16:25 ._boot_out.txt
-rw-r--r--  1 epeay epeay   152 Dec 31  2019 boot_out.txt
-rw-r--r--  1 epeay epeay    22 Dec 31  2019 code.py
drwxr-xr-x  2 epeay epeay   512 Oct 28 16:25 .fseventsd/
-rw-r--r--  1 epeay epeay     0 Dec 31  2019 .metadata_never_index
-rw-r--r--  1 epeay epeay     0 Dec 31  2019 settings.toml
-rw-r--r--  1 epeay epeay     0 Dec 31  2019 .Trashes

Don't know why that workaround works, but it does.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions