Skip to content

floppy: detect the format from image size instead of always reporting 1.44MB - #421

Open
erichelgeson wants to merge 1 commit into
mainfrom
eric/floppy-geometry
Open

floppy: detect the format from image size instead of always reporting 1.44MB#421
erichelgeson wants to merge 1 commit into
mainfrom
eric/floppy-geometry

Conversation

@erichelgeson

Copy link
Copy Markdown
Contributor

MODE SENSE page 05h was a fixed constant claiming 1 head, 18 sectors and 8192-byte sectors. Match the image against the standard formats so page 05h, the medium type and the CHS geometry describe the mounted disk.

Fixes #33

… 1.44MB

MODE SENSE page 05h was a fixed constant claiming 1 head, 18 sectors and
8192-byte sectors. Match the image against the standard formats so page
05h, the medium type and the CHS geometry describe the mounted disk.

Fixes #33
@github-actions

Copy link
Copy Markdown

Test this PR

Flash the firmware built from 4b83bd0: BlueSCSI binaries.zip

Must be signed in to GitHub. Build expires after 90 days.

BlueSCSI Memory Report

Compared against release v2026.08.17

Memory Usage

Target FLASH RAM SCRATCH_X SCRATCH_Y
Pico_2_Audio_SPDIF 687.9 KB (+2.3 KB) [34%] 511.7 KB [100%] 3.5 KB [88%] 3.8 KB [94%]
Pico_2_DaynaPORT 680.2 KB (+2.3 KB) [33%] 511.7 KB [100%] 3.5 KB [88%] 3.0 KB [75%]
Pico_Audio_SPDIF 710.8 KB (+2.4 KB) [35%] 252.6 KB [99%] 1.5 KB [38%] 768 B [19%]
Pico_DaynaPORT 702.6 KB (+2.4 KB) [34%] 246.3 KB [96%] 1.5 KB [38%]
Ultra 697.6 KB (+2.2 KB) [34%] 511.7 KB [100%] 3.5 KB [88%] 3.0 KB [75%]
Ultra_Wide 456.1 KB (+2.0 KB) [22%] 511.7 KB [100%] 2.0 KB [50%] 3.0 KB [75%]

Symbol Region Changes

Pico_Audio_SPDIF: 4 symbols moved RAM → FLASH (-312 B RAM)
Symbol Size
void logmsg<char const*, char const*>(char const*, char const*) 80 B
void logmsg<char const*, char*>(char const*, char*) 80 B
void logmsg<char const*, unsigned long>(char const*, unsigned long) 80 B
void logmsg<char const*>(char const*) 72 B
Pico_DaynaPORT: 4 symbols moved RAM → FLASH (-312 B RAM)
Symbol Size
void logmsg<char const*, char const*>(char const*, char const*) 80 B
void logmsg<char const*, char*>(char const*, char*) 80 B
void logmsg<char const*, unsigned long>(char const*, unsigned long) 80 B
void logmsg<char const*>(char const*) 72 B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ROM disk - seems to be fixed at floppy1.4

1 participant