Re: update firmware binary for v5.4
Renjiang Han <[email protected]>
| Newsgroups | org.kernel.lore.linux-firmware |
|---|---|
| Message-ID | <[email protected]> |
On 11/21/2025 6:24 AM, Dmitry Baryshkov wrote: > Which ProgramHeader is it? I don't see any alignment issues with the > 0059 firmware. > > $ strings /lib/firmware/qcom/venus-5.4/venus.mbn | grep QC_IMAGE_VERSION > QC_IMAGE_VERSION_STRING=VIDEO.VE.5.4-00059-PROD-1 > > $ readelf -l /lib/firmware/qcom/venus-5.4/venus.mbn > > Elf file type is EXEC (Executable file) > Entry point 0xf500000 > There are 5 program headers, starting at offset 52 > > Program Headers: > Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align > NULL 0x000000 0x00000000 0x00000000 0x000d4 0x00000 0 > NULL 0x001000 0x0fa00000 0x0fa00000 0x01a98 0x02000 0x1000 > LOAD 0x003000 0x00000000 0x0f500000 0xd5de0 0xd5de0 R E 0x100000 > LOAD 0x0d8de0 0x00100000 0x0f600000 0x08468 0x3f4000 RW 0x100000 > LOAD 0x0e1248 0x004ff000 0x0f9ff000 0x00020 0x00020 RW 0x4 > > -- With best wishes Dmitry ELF spec: (Offset % Alignment) must equal (Virtual Address % Alignment). 0x3000 % 0x100000 != 0x00000000 % 0x10000 0x0d8de0 % 0x100000 != 0x00100000 % 0x100000 Therefore, the Program Header alignment in this file does not conform to the ELF specification. -- Best regards, Renjiang Han