Skip to content

Add support for loading main_r5fss0_core0

Keerthy u-boot 10 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest9 patches 0 repliesNew
  2. v7 posting 2/20 of 10 patches 0 repliesSuperseded
  3. v7 posting 1/210 patches 0 repliesSuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v61 of 10 patches0 repliesSuperseded
v5 posting 2/20 of 10 patches0 repliesSuperseded
v5 posting 1/210 patches0 repliesSuperseded
v410 patches0 repliesSuperseded
v310 patches0 repliesSuperseded
v29 patches0 repliesSuperseded
v110 patches0 repliesSuperseded

Changes in v8 from the cover letter

* Dropped patch to set_env_default in the env/nowhere driver. That was causing memory over run issues on sandbox defconfig with simple_alloc.

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9lib: elf: Move the generic elf loading/validating functions to libarch/arm/mach-imx/imx_bootaux.c cmd/Kconfig cmd/elf.c +4 more+258 -2930 replies
2/9arm: k3: Add support for loading non linux remote coresarch/arm/mach-k3/common.c arch/arm/mach-k3/common.h arch/arm/mach-k3/j721e_init.c+115 -50 replies
3/9armv7R: K3: r5_mpu: Enable execute permission for MCU0 BTCMarch/arm/mach-k3/r5_mpu.c+3 -10 replies
4/9armv7R: K3: Add support for jumping to firmwarearch/arm/mach-k3/common.c+16 -60 replies
5/9arm: dts: k3-j721e-r5-u-boot: Add fs_loader nodearch/arm/dts/k3-j721e-r5-common-proc-board-u-boot.dtsi+15 -00 replies
6/9arm: dts: k3-j721e-r5: Enable r5fss0 cluster in SPLarch/arm/dts/k3-j721e-r5-common-proc-board-u-boot.dtsi arch/arm/dts/k3-j721e-r5-common-proc-board.dts+14 -00 replies
7/9include: configs: j721e_evm: Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0include/configs/j721e_evm.h+4 -00 replies
8/9configs: j721e_evm_r5: Enable R5F remoteproc supportconfigs/j721e_evm_r5_defconfig+2 -00 replies
9/9configs: j721e_evm_r5_defconfig: Remove saving ENV in eMMCconfigs/j721e_evm_r5_defconfig+0 -40 replies

Reviews trailers per patch

3 of 9 patches have a Reviewed-by or Acked-by.

PatchSimon GoldschmidtTom Rini
1/9R-b
2/9
3/9
4/9
5/9R-b
6/9R-b
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v8 thread

Cover letter [PATCH v8 0/9] Add support for loading main_r5fss0_core0

This patch series enables mcu_r5fss0_core0 & main_r5fss0_core0. Tested for firmware loading and execution on J721e.

Changes in v8:

* Dropped patch to set_env_default in the env/nowhere driver. That was causing memory over run issues on sandbox defconfig with simple_alloc.

Instead used env_relocate in place of env_load which does default environment set up to do env_set calls.

* Fixed IMX build warning.

All the travis tests passed:

https://travis-ci.org/Keerthyj/u-boot/builds/649274826

Changes in v7:

* Added BSD-2 SPDX on lib/elf.c file.
* Added Tom's Reviewed-by for the relevant patches.

Changes in v6:

* Fixed the imx build issue.

Changes in v5:

* Moved the fs_loader node under r5-common-proc-board-u-boot.dtsi
* Added more information on the envnowhere patch.
* Added help LIB_ELF option and removed user configurable description.

Changes in v4:

* Changed env variable names, config names and enhanced commit logs.

Changes in v3:

* Removed saving env in MMC and fixed env saving in SPL when nowhere option is set.

Changes in v2:

* Factored out all the generic elf handling functions under lib/elf.c

Keerthy (9):
lib: elf: Move the generic elf loading/validating functions to lib
arm: k3: Add support for loading non linux remote cores
armv7R: K3: r5_mpu: Enable execute permission for MCU0 BTCM
armv7R: K3: Add support for jumping to firmware
arm: dts: k3-j721e-r5-u-boot: Add fs_loader node
arm: dts: k3-j721e-r5: Enable r5fss0 cluster in SPL
include: configs: j721e_evm: Add env variables for mcu_r5fss0_core0 &

    main_r5fss0_core0

configs: j721e_evm_r5: Enable R5F remoteproc support
configs: j721e_evm_r5_defconfig: Remove saving ENV in eMMC

 .../k3-j721e-r5-common-proc-board-u-boot.dtsi |  27 ++
 .../arm/dts/k3-j721e-r5-common-proc-board.dts |   2 +
 arch/arm/mach-imx/imx_bootaux.c               |  64 -----
 arch/arm/mach-k3/common.c                     | 106 +++++++-
 arch/arm/mach-k3/common.h                     |   2 +
 arch/arm/mach-k3/j721e_init.c                 |  34 +++
 arch/arm/mach-k3/r5_mpu.c                     |   4 +-
 cmd/Kconfig                                   |   1 +
 cmd/elf.c                                     | 229 ----------------
 configs/j721e_evm_r5_defconfig                |   6 +-
 include/configs/j721e_evm.h                   |   4 +
 include/elf.h                                 |   4 +
 lib/Kconfig                                   |   6 +
 lib/Makefile                                  |   1 +
 lib/elf.c                                     | 246 ++++++++++++++++++
 15 files changed, 427 insertions(+), 309 deletions(-)
 create mode 100644 arch/arm/dts/k3-j721e-r5-common-proc-board-u-boot.dtsi
 create mode 100644 lib/elf.c
Signature · 1 line
2.17.1