Skip to content

fastboot: provide MEMMAP device path for buffer-backed LoadImage - #17

Merged
quic-bjorande merged 1 commit into
qualcomm:mainfrom
quic-bjorande:for-qcom/loadimage-invalid-parameter
May 1, 2026
Merged

fastboot: provide MEMMAP device path for buffer-backed LoadImage#17
quic-bjorande merged 1 commit into
qualcomm:mainfrom
quic-bjorande:for-qcom/loadimage-invalid-parameter

Conversation

@quic-bjorande

Copy link
Copy Markdown
Contributor

The UEFI implementation in Hawi rejects LoadImage() invocations (INVALID_PARAMETER) with a NULL DevicePath.

Construct a Hardware/MemoryMapped device path describing the buffer range and pass it as file_path in LoadImageSource::FromBuffer, to work around this.

Comment thread src/main.rs Outdated
The UEFI implementation in Hawi rejects LoadImage() invocations
(INVALID_PARAMETER) with a NULL DevicePath.

Construct a Hardware/MemoryMapped device path describing the buffer
range and pass it as file_path in LoadImageSource::FromBuffer, to work
around this.

Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
@quic-bjorande
quic-bjorande force-pushed the for-qcom/loadimage-invalid-parameter branch from c8d98ba to 58cb0e3 Compare April 30, 2026 17:30
@quic-bjorande
quic-bjorande merged commit b19f586 into qualcomm:main May 1, 2026
6 checks passed
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.

2 participants