Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remoteproc: fix management of non loadable segments #553

Merged
merged 1 commit into from
Feb 29, 2024

Commits on Feb 28, 2024

  1. remoteproc: Fix management of non loadable program segments

    The elf loader assumes that the last ELF program segment will always
    be a LOAD type segment. I deduce this from the fact that the elf_load()
    function, when loading the remote ELF sections during the
    RPROC_LOADER_READY_TO_LOAD stage, compares the last load segment num
    to the total ELF sections to determine if the loading is complete and
    it can move to the next stage RPROC_LOADER_POST_DATA_LOAD. If the last
    program segment in the ELF is not of type LOAD, the last loaded LOAD
    segment never equals total ELF sections. This creates an error
    condition and the firmware loading fails. This patch fixes this issue
    by comparing the last loaded LOAD segment number with the max LOAD
    segment number in the ELF.
    
    Signed-off-by: Umair Khan <[email protected]>
    UmairKhanUET committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    7e76eb0 View commit details
    Browse the repository at this point in the history