arm-trusted-firmware/plat/arm/board/arm_fpga
Andre Przywara fa30f73b37 arm_fpga: Support uploading a custom command line
The command line for BL33 payloads is typically taken from the DTB. On
"normal" systems the bootloader will put the right version in there, but
we typically don't use one on the FPGAs.
To avoid editing (and possibly re-packaging) the DTB for every change in
the command line, try to read it from some "magic" memory location
instead. It can be easily placed there by the tool that uploads the
other payloads to the FPGA's memory. BL31 will then replace the existing
command line in the DTB with that new string.

To avoid reading garbage, check the memory location for containing a
magic value. This is conveniently chosen to be a simple ASCII string, so
it can just preceed the actual command line in a text file:
--------------------------------
CMD:console=ttyAMA0,38400n8 debug loglevel=8
--------------------------------

Change-Id: I5923a80332c9fac3b4afd1a6aaa321233d0f60da
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2020-07-30 17:18:37 +01:00
..
aarch64 arm_fpga: Add support for topology self-discovery 2020-07-24 15:06:42 +01:00
include arm_fpga: Add support for topology self-discovery 2020-07-24 15:06:42 +01:00
fpga_bl31_setup.c arm_fpga: Support uploading a custom command line 2020-07-30 17:18:37 +01:00
fpga_console.c arm_fpga: Read UART address from DT 2020-05-05 15:36:51 +01:00
fpga_def.h arm_fpga: Add support for topology self-discovery 2020-07-24 15:06:42 +01:00
fpga_gicv3.c arm_fpga: Read GICD and GICR base addresses from DT 2020-05-05 15:36:51 +01:00
fpga_pm.c Fix coverity defects found on the FPGA port. 2020-04-02 14:11:12 +01:00
fpga_private.h arm_fpga: Support uploading a custom command line 2020-07-30 17:18:37 +01:00
fpga_topology.c arm_fpga: Add support for topology self-discovery 2020-07-24 15:06:42 +01:00
platform.mk arm_fpga: Support uploading a custom command line 2020-07-30 17:18:37 +01:00