[PATCH 5/5 v3] mips: octeon: tools: Add update_octeon_header tool

Daniel Schwierzeck daniel.schwierzeck at gmail.com
Mon Nov 30 18:28:13 CET 2020


Am Montag, den 30.11.2020, 13:14 +0100 schrieb Stefan Roese:
> Add a tool to update or insert an Octeon specific header into the U-Boot
> image. This is needed e.g. for booting via SPI NOR, eMMC and NAND.
> 
> While working on this, move enum cvmx_board_types_enum and
> cvmx_board_type_to_string() to cvmx-bootloader.h and remove the
> unreferenced (unsupported) board definition.
> 
> Signed-off-by: Stefan Roese <sr at denx.de>
> Cc: Aaron Williams <awilliams at marvell.com>
> Cc: Chandrakala Chavva <cchavva at marvell.com>
> Cc: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>
> ---
> v3:
> - Add .gitignore entry
> - Use compiletime_assert() instead of adhoc-coded compile_time_assert()
> - Dropped forward declarations
> - All functions now static
> - Used prinf instead of debug in most places to make the output
>   more verbose and descriptive
> - Used "fprintf(stderr" for error messages
> - Dropped cvmx_cpu_to_be64
> - Removed crashes as suggested by Daniel
> 
> v2:
> - No change
> - Azure build success here:
>   https://dev.azure.com/sr0718/u-boot/_build/results?buildId=59&view=results
> 
>  .../mach-octeon/include/mach/cvmx-bootinfo.h  | 222 ---------
>  .../include/mach/cvmx-bootloader.h            | 172 +++++++
>  tools/.gitignore                              |   1 +
>  tools/Makefile                                |   3 +
>  tools/update_octeon_header.c                  | 456 ++++++++++++++++++
>  5 files changed, 632 insertions(+), 222 deletions(-)
>  create mode 100644 arch/mips/mach-octeon/include/mach/cvmx-bootloader.h
>  create mode 100644 tools/update_octeon_header.c
> 

Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>

-- 
- Daniel



More information about the U-Boot mailing list