Skip to content

pieeprom-2026-10-22: 2711: Improve HTTP status handling (latest) - #907

Merged
timg236 merged 1 commit into
raspberrypi:masterfrom
timg236:pieeprom-2026-10-22-2711
Oct 22, 2026
Merged

timg236 merged 1 commit into
raspberrypi:masterfrom
timg236:pieeprom-2026-10-22-2711

Conversation

@timg236

@timg236 timg236 commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator
  • Improve HTTP status handling
    The code currently only handles specific responses and doesn't treat an unexpected response as an error. An unexpected response will be treated as the file contents and fail the signature check.
  • Disable HTTP redirects
    For safety disable HTTP redirects. If you change HTTP_HOST you can re-enable redirects with HTTP_ALLOW_REDIRECTS=1 in the eeprom config.
  • sd_host: Fix the capacity calculation for pre-SDHC cards
    s->capacity was copied before the READ_BL_LEN adjustment. Only relevant for 1024, 2048 byte block cards.
  • sd_host: Fix potential infinite loop with CMD1
    poll A card that keeps answering busy stalled boot indefinitely instead of failing over to the next boot mode.
  • Fix platform_error_msg timestamps
    platform_error_msg bypasses the usual logging infrastructure, and has its own copy of the old ms -> cs bug. Fix that bug.

* Improve HTTP status handling
  The code currently only handles specific responses and doesn't treat
  an unexpected response as an error. An unexpected response will be
  treated as the file contents and fail the signature check.
* Disable HTTP redirects
  For safety disable HTTP redirects.
  If you change HTTP_HOST you can re-enable redirects with
  HTTP_ALLOW_REDIRECTS=1 in the eeprom config.
* sd_host: Fix the capacity calculation for pre-SDHC cards
  s->capacity was copied before the READ_BL_LEN adjustment. Only relevant
  for 1024, 2048 byte block cards.
* sd_host: Fix potential infinite loop with CMD1 poll
  A card that keeps answering busy stalled boot indefinitely instead of
  failing over to the next boot mode.
* Fix platform_error_msg timestamps
  platform_error_msg bypasses the usual logging infrastructure, and has
  its own copy of the old ms -> cs bug. Fix that bug.
@timg236
timg236 merged commit 72af2b6 into raspberrypi:master Oct 22, 2026
1 check passed
@timg236
timg236 deleted the pieeprom-2026-10-22-2711 branch October 22, 2026 16:56
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.

1 participant