From mboxrd@z Thu Jan 1 00:00:00 1970 From: sbabic at denx.de Date: Sat, 4 Jan 2020 12:00:11 +0100 (CET) Subject: [PATCH v3] mach-imx: bootaux: elf firmware support In-Reply-To: <20191230115644.19199-1-igor.opaniuk@gmail.com> Message-ID: <20200104110011.67C8381730@phobos.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > From: Igor Opaniuk > Currently imx-specific bootaux command doesn't support ELF format > firmware for Cortex-M4 core. > This patches introduces a PoC implementation of handling elf firmware > (load_elf_image_phdr() was copy-pasted from elf.c just for PoC). > ELF64 binaries isn't supported yet. > This has the advantage that the user does not need to know to which > address the binary has been linked to. However, in order to handle > and load the elf sections to the right address, we need to translate the > Cortex-M4 core memory addresses to primary/host CPU memory > addresses (Cortex A7/A9 cores). > This allows to boot firmwares from any location with just using > bootaux, e.g.: > > tftp ${loadaddr} hello_world.elf && bootaux ${loadaddr} > Similar translation table can be found in the Linux remoteproc > driver [1]. > [1] https://elixir.bootlin.com/linux/latest/source/drivers/remoteproc/imx_rproc.c > Signed-off-by: Igor Opaniuk > Signed-off-by: Stefan Agner > Reviewed-by: Oleksandr Suvorov Applied to u-boot-imx, -next, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================