Session 19 — 2026-03-27b — ABL Source Cleanup; Flashing-Fix Code Removed

Session 19 — 2026-03-27b

FieldValue
Date2026-03-27
Phase03a — Custom UEFI ABL
Duration~30 min

What Happened

ABL source had accumulated speculative fastboot flashing-fix changes across v1.4–v1.6 (gRxBuffer DMA redirect, buffer size reductions, SetMem zeroing, FASTBOOT_PLACEHOLDER_SIZE). None of these resolved the bulk transfer hang. This session reviewed all 18 prior diary entries, classified every change as “advancement” (keep) or “flashing fix attempt” (remove), and surgically reverted three files to upstream.

Final Clean State vs Upstream

FileChangeSource version
BaseTools/Conf/tools_def.template-Wno-misleading-indentationv1.0
BaseTools/Source/C/Makefiles/header.makefile-Wno-stringop-truncationv1.0
Conf/tools_def.txt-Wno-misleading-indentationv1.0
LinuxLoader.cVBSendRot + VBCmdLine stock overridev1.3
LinuxLoader.infgEfiQcomVerifiedBootProtocolGuidv1.3
FastbootCmds.cCmdOemRebootEdl + registration onlyv1.3
QcomModulePkg.dscEnableDisplayMenu|FALSEv1.3

FastbootCmds.h and FastbootMain.c are now fully identical to upstream — no diff at all.

Removed Code Summary

VersionWhat was removed
v1.4gRxBuffer DMA redirect in CmdDownload; USB_BUFFER_SIZE 16→64 MB
v1.5gRxBuffer SetMem zeroing; continued redirect
v1.6Buffer reductions (256→34 MB); FASTBOOT_PLACEHOLDER_SIZE; mFlashDataBuffer override

Root cause of fastboot bulk transfer hang remains below ABL level — likely XBL USB driver (TRB ring overflow). Documented in phase 03a doc for future investigation.

Next Step

Build clean source as v2.0 (new major version — clean slate). Flash and verify Android boots + fastboot enumerates + oem reboot-edl works.

More posts