Repository navigation
agent: the V500 donor U-Boot from OpenIPC/firmware, not u-boot-xmedia - #162
Conversation
download_v500_donor() fetched u-boot-gk7205v5x0-nor.bin from OpenIPC/u-boot-xmedia's own release, which stopped updating when that repository stopped publishing (#14) and is now archived. OpenIPC/u-boot publishes the same images to OpenIPC/firmware latest, which every other per-flash-type SoC already uses; the donor comes from there now. defib keeps only the donor's key area, params and DDR-init (aux) area; the U-Boot code after them is replaced by the agent. For gk7205v500, v510 and v530 both sources carry the same 0x400-byte key area and the same 20 KiB aux area byte for byte, and wrap_v500_payload() builds a byte-identical agent boot image from either, so the agent still loads at 0x41007000 and what reaches the camera does not change.
PR Summary by QodoFetch V500 agent donor images from OpenIPC/firmware
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
1.
|
From review: the README still named u-boot-xmedia as the default donor source after download_v500_donor() moved to OpenIPC/firmware.
download_v500_donor()fetchedu-boot-gk7205v5x0-nor.binfrom OpenIPC/u-boot-xmedia's own release. That release stopped updating when the repository stopped publishing (u-boot-xmedia#14), and the repository is now archived. OpenIPC/u-boot publishes the same images to OpenIPC/firmwarelatest, which every other per-flash-type SoC already uses; the donor comes from there now.defib keeps only the donor's key area, params and DDR-init (aux) area; the agent replaces the U-Boot code after them. For gk7205v500, v510 and v530:
wrap_v500_payload()builds a byte-identical agent boot image from either;so the agent still loads at 0x41007000 and what reaches the camera does not change.
Help text and docstrings stop naming u-boot-xmedia; the donor URL test expects the firmware release.
pytest tests/ --ignore=tests/fuzz: 1084 passed. ruff and mypy are clean. Not run on hardware (the image sent is unchanged).