[U-Boot] [PATCH v3 4/7] remoteproc: add elf file load support

Patrick DELAUNAY patrick.delaunay at st.com
Mon Jul 22 12:29:17 UTC 2019


Hi,

> From: Fabien DESSENNE <fabien.dessenne at st.com>
> Sent: vendredi 31 mai 2019 15:12
> 
> The current implementation supports only binary file load.
> Add helpers to support ELF32 format (sanity check, and load).
> Note that since an ELF32 image is built for the remote processor, the load function
> uses the device_to_virt ops to translate the addresses.
> Implement a basic translation for sandbox_testproc.
> 
> Add related tests. Test result:
> => ut dm remoteproc_elf
> Test: dm_test_remoteproc_elf: remoteproc.c
> Test: dm_test_remoteproc_elf: remoteproc.c (flat tree)
> Failures: 0
> 
> Signed-off-by: Loic Pallardy <loic.pallardy at st.com>
> Signed-off-by: Fabien Dessenne <fabien.dessenne at st.com>
> ---
>  drivers/remoteproc/Makefile           |   2 +-
>  drivers/remoteproc/rproc-elf-loader.c | 106 +++++++++++++++++++++++++++++
> drivers/remoteproc/sandbox_testproc.c |  19 ++++++
>  include/remoteproc.h                  |  30 ++++++++-
>  test/dm/remoteproc.c                  | 122
> ++++++++++++++++++++++++++++++++++
>  5 files changed, 275 insertions(+), 4 deletions(-)  create mode 100644
> drivers/remoteproc/rproc-elf-loader.c
> 

Applied to u-boot-stm32/master, thanks!

Patrick


More information about the U-Boot mailing list