mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
A target that defines HAVE_STORAGE_READONLY provides storage_readonly(), and USB mass storage reports such a drive write protected: MODE SENSE sets the WP bit, and WRITE(10) and WRITE(16) fail with DATA PROTECT / WRITE PROTECTED before taking data, so a host mounts it read-only instead of failing each write as a medium error. Only NAND storage wires it up so far. The iPod Nano 3G, added in the changes that follow, defines it: its FTL mounts read-only in the bootloader and after a failed commit, and the NAND check image is always read-only. Built for the Nano 3G (bootloader, check image, firmware) without new warnings. On hardware, Linux and Windows hosts have read the always-read-only check image over USB; no host write has been made to a read-only drive. AI provenance: developed with Claude Opus 5 (Anthropic), used through Claude Code. The model wrote most of the code and this message under Andrew Rice's direction. Any hardware testing described above was carried out by Andrew Rice, who is responsible for this change. Change-Id: Idb34def2d588047e5dced9bac1521c00b37dd5e5 |
||
|---|---|---|
| .. | ||
| iap | ||
| usb_audio.c | ||
| usb_audio.h | ||
| usb_audio_def.h | ||
| usb_charging_only.c | ||
| usb_charging_only.h | ||
| usb_class_driver.h | ||
| usb_core.c | ||
| usb_hid.c | ||
| usb_hid.h | ||
| usb_hid_def.h | ||
| usb_hid_usage_tables.h | ||
| usb_iap.c | ||
| usb_iap.h | ||
| usb_serial.c | ||
| usb_serial.h | ||
| usb_storage.c | ||
| usb_storage.h | ||