summaryrefslogtreecommitdiff
path: root/src/data_layout.h
Commit message (Collapse)AuthorAgeFilesLines
* Correct spelling mistakesHEADmasterEdward Betts2019-09-191-1/+1
| | | | | Signed-off-by: Edward Betts <edward@4angle.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
* Use C99 uintXX_t instead of implementation-specific u_intXX_t typesThomas Petazzoni2017-10-031-1/+1
| | | | | | | | | | | | | | | | | | | | The u_intXX_t types are implementation-specific and not part of a standard. As an example, they are not provided by the musl C library. Therefore, this commit switches cbootimage to use the C99 uintXX_t types. This commit has been produced by: 1. Running: find . -name '*.[ch]' | xargs sed -i 's%u_int\([0-9]*\)_t%uint\1_t%g' 2. Adding a #include <stdint.h> in cbootimage.h The result has been compile tested with the musl C library. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> (swarren, validated "objdump -d cbootimage" is identical before/after) Signed-off-by: Stephen Warren <swarren@nvidia.com>
* Add new configuration keyword "RehashBl"Jimmy Zhang2015-10-191-0/+2
| | | | | | | | | | | | | | | | | | This feature is needed in case an image is updated at later stage after bootimage has been created. How to use: Add keyword "RehashBl" to configuration file, for example, update.cfg: RehashBl; Invoke cbootimage to re-calculate bootloader aes hash, for example, for bootimage bootloader.bin: $ cbootimage -s tegra210 --update update.cfg bootloader.bin bootloader.bin-resigned Where bootloader.bin-resigned is the resigned bootimage bootloader.bin Signed-off-by: Jimmy Zhang <jimmzhang@nvidia.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
* Add Tegra132 support for the cbootimage utilityVince Hsu2014-07-151-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for Tegra132. This are only slight differences between Tegra124 and Tegra132. The command line usage is exactly the same as other platforms like Tegra124. The structure nvboot_mts_info is added into the bct for Tegra132. So the bootrom and first stage bootloader know where to load the preboot and mts images. Two parse items "Mts=" and "MtsPreboot=" are added to embedded MTS images in BCT image like what we do for bootloader. The syntax is also the same. For example: MtsPreboot = <preboot_image>,<load_address>,<entry_address>,Complete; Mts = <mts_image>,<load_address>,<entry_address>,Complete; The load and entry addresses depned on your board design. Four files are added in src/t132: nvbctlib_t132.c - is cloned from nvbctlib_t124.c and adds mts information getter and setter. nvboot_bct_t132.h - adds mts structure into bct nvboot_sdram_param_t132.h - clone of nvboot_sdram_param_t124.h parse_t132.c - clone of parse_t124.c Signed-off-by: Vince Hsu <vinceh@nvidia.com> Acked-by: Allen Martin <amartin@nvidia.com>
* Add update BCT configs featurePenny Chiu2014-04-151-0/+9
| | | | | | | | | This feature reads the BCT data from BCT or BCT with bootloader appended binary, updates the BCT data based on config file, then writes to new image file. Signed-off-by: Penny Chiu <pchiu@nvidia.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
* Move all source files to subdir "src"Allen Martin2013-04-091-0/+55
This is in preparation for adding autotools support to help separate the source code from the build support files. Signed-off-by: Allen Martin <amartin@nvidia.com> Change-Id: I128c258db7bbf2c1adf34fbaad188ea7678b79ff Reviewed-on: http://git-master/r/217545 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com> Tested-by: Stephen Warren <swarren@nvidia.com>