Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8621

Other RP2040 boards • Re: Programming the PICO.

$
0
0
Very curious description. Although I am inclined to fully support the orthodox steps per what gmx says, it _sounds_ like the /dev/sda method was working previously... :|

The bootrom source code is here:
https://github.com/raspberrypi/pico-bootrom-rp2040

If one looks at usb_device_tiny/usb_msc.c, and search all the vd_* calls, it doesn't look super complex. There is this:

Code:

vd_read_or_write = _msc_sector_transfer.stream.ep->in ? vd_read_block : vd_write_block;
And then, if one looks at bootrom/virtual_disk.c for the two calls in question, there isn't really any validity checks in the vd_write_block() function -- it does things like what rpdom says. So assume rew's client's method works (or worked before), but something broke it. Auto-mounting blocking the write? Those with Linux can test it... :|

Statistics: Posted by katak255 — Sun Dec 14, 2025 2:41 am



Viewing all articles
Browse latest Browse all 8621

Trending Articles