- Jan 30, 2020
-
-
Flavio Suligoi authored
Signed-off-by:
Flavio Suligoi <f.suligoi@asem.it> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Heinrich Schuchardt authored
Remove incorrect indentation. Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
- Jan 25, 2020
-
-
Baruch Siach authored
genboardscfg.py requires python 3.x since commit 3bc14098 ("genboardscfg.py: Convert to Python 3"). Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by:
Baruch Siach <baruch@tkos.co.il> Acked-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
- Jan 24, 2020
-
-
Patrick Delaunay authored
Use realloc and update the loop executed in do_fdtgrep to find all the regions: only test count > max_region after the second pass. This patch solve an issue if the number of region found (count) is greater then the default value (max_region = count = 100): the second pass is never executed, because the loop stops after the first pass (i = 0, count > 100, max_regions = 100) with error -1 and the error message "Internal error with fdtgrep_find_region". I also update the error message. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com>
-
- Jan 17, 2020
-
-
Philippe Reynes authored
This commit add to u-boot the support to decrypt fit image encrypted with aes. The FIT image contains the key name and the IV name. Then u-boot look for the key and IV in his device tree and decrypt images before moving to the next stage. Signed-off-by:
Philippe Reynes <philippe.reynes@softathome.com>
-
Philippe Reynes authored
This commit add the support of encrypting image with aes in mkimage. To enable the ciphering, a node cipher with a reference to a key and IV (Initialization Vector) must be added to the its file. Then mkimage add the encrypted image to the FIT and add the key and IV to the u-boot device tree. Signed-off-by:
Philippe Reynes <philippe.reynes@softathome.com>
-
- Jan 10, 2020
-
-
Heinrich Schuchardt authored
fit_check_params() wants at least two of dflag, fflag, and lflag set. Simplify the logical constraint checking this. Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
- Jan 07, 2020
-
-
Masahiro Yamada authored
The suffix should be ".bin" instead of ".dtb" . Signed-off-by:
Masahiro Yamada <masahiroy@kernel.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Andrew F. Davis authored
This has the same result but some compilers will warn about this fall-through if there are statements as part of the label block. Signed-off-by:
Andrew F. Davis <afd@ti.com> Reviewed-by:
Lokesh Vutla <lokeshvutla@ti.com>
-
Andrew F. Davis authored
This is very similar to fit_image_get_data but has the benefit of working on FIT images with external data unlike fit_image_get_data. This is useful for extracting sub-images from type of FIT image as this would previously just silently fail. Add an error message also so if this still fails it is easier to find out why. Signed-off-by:
Andrew F. Davis <afd@ti.com> Reviewed-by:
Lokesh Vutla <lokeshvutla@ti.com>
-
Andrew F. Davis authored
The dumpimage utility errors out in a number of places without providing sufficient feedback to allow the user to easily determine what has gone wrong. Add additional error messages to make the cause of the failure more obvious. Signed-off-by:
Andrew F. Davis <afd@ti.com> Reviewed-by:
Lokesh Vutla <lokeshvutla@ti.com>
-
Frieder Schrempf authored
The DDR firmware binaries are not part of the U-Boot source code, so we should look for them in the build directory, where they need to be copied to before building U-Boot. The ATF binary is already fetched from the build directory, but the README files for the i.MX8M EVKs claim that it needs to be copied to the source directory (which is still true for in-tree builds, but not in general). Therefore we also fix the READMEs to use the build directory as the correct location for all additional binary files. Sined-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
- Jan 02, 2020
-
-
Dario Binacchi authored
Add the tool to the ignore list to prevent being marked as unversioned. Signed-off-by:
Dario Binacchi <dariobin@libero.it> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
- Dec 27, 2019
-
-
Jorge Ramirez-Ortiz authored
IMX based platforms can have the DCD table located on different addresses due to differences in their memory maps (ie iMX7ULP). This information is required by the user to sign the images for secure boot so continue making it accessible via mkimage. Signed-off-by:
Jorge Ramirez-Ortiz <jorge@foundries.io> Reviewed-by:
Fabio Estevam <festevam@gmail.com> Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
Jeffy Chen authored
The rc4 encoding should cover spl header as well, and the file_size contains spl header too. Signed-off-by:
Jeffy Chen <jeffy.chen@rock-chips.com> Reviewed-by:
Kever Yang <kever.yang@rock-chips.com>
-
Jeffy Chen authored
Support packing optional second level boot-loader: $ ./tools/mkimage -n rk3399 -T rksd -d \ rk3399_ddr_800MHz_v1.24.bin:rk3399_miniloader_v1.19.bin out -v Adding Image rk3399_ddr_800MHz_v1.24.bin Size 116492(pad to 116736) Adding Image rk3399_miniloader_v1.19.bin Size 88060(pad to 88064) Image Type: Rockchip RK33 (SD/MMC) boot image Init Data Size: 116736 bytes Boot Data Size: 88064 bytes Mainly parse init file and boot file from datafile option, copy them to the image with 2KB alignment. Signed-off-by:
Jeffy Chen <jeffy.chen@rock-chips.com> Reviewed-by:
Kever Yang <kever.yang@rock-chips.com>
-
- Dec 20, 2019
-
-
Rasmus Villemoes authored
In the case where one deletes an already-non-existing variable, or sets a variable to the value it already has, there is no point in writing the environment back, thus reducing wear on the underlying storage device. In the case of redundant environments, if the two environments differ (e.g. because one is corrupt), make sure that any call of fw_setenv causes the two to become synchronized, even if the fw_setenv call does not change anything in the good copy. Signed-off-by:
Rasmus Villemoes <rasmus.villemoes@prevas.dk> Acked-by:
Joe Hershberger <joe.hershberger@ni.com>
-
- Dec 11, 2019
-
-
Tom Rini authored
Today when parsing the .sizes files we get a warning about an invalid line in the file as it's blank. Solve this by checking that we have a non-blank line prior to processing. Cc: Simon Glass <sjg@chromium.org> Signed-off-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Sometimes it is useful for external tools to use buildman to provide the toolchain information. Add an -a option which shows the value to use for the ARCH environment variable, and -A which does the same for CROSS_COMPILE Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present buildman looks at toolchains, then commits and then boards. Move the board processing up above the commit processing, since it relates to the toolchain code. This will make it easier to check the toolchains needed for a board without processing commits first. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Now that this tool has a 'quiet' flag, use it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
We don't really need buildman to print this every time it runs. Add a flag to run quietly, that buildman can use. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Dec 10, 2019
-
-
Cristian Ciocaltea authored
The parser responsible for the '[make-flags]' section in the '.buildman' settings file is currently not able to handle quoted strings, as given in the sample bellow: [make-flags] qemu_arm=HOSTCC="cc -isystem /add/include" HOSTLDFLAGS="-L/add/lib" This patch replaces the simple string splitter based on the <space> delimiter with a regex tokenizer that preserves spaces inside double quoted strings. Signed-off-by:
Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
-
- Dec 06, 2019
-
-
AKASHI Takahiro authored
Imported from linux kernel v5.3: asn1.h without changes asn1_ber_bytecode.h without changes asn1_decoder.h without changes asn1_compiler.c without changes This host command will be used to create a ASN1 parser, for example, for pkcs7 messages or x509 certificates. More specifically, it will generate *byte code* which will be interpreted by asn1 decoder library. Signed-off-by:
AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
- Dec 03, 2019
-
-
Thomas Hebb authored
Signed-off-by:
Thomas Hebb <tommyhebb@gmail.com>
-
- Dec 02, 2019
-
-
Simon Glass authored
Drop inclusion of crc.h in common.h and use the correct header directly instead. With this we can drop the conflicting definition in fw_env.h and rely on the crc.h header, which is already included. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Simon Glass authored
Some of these have a space before the bracket. Drop it to fix the style. Add some missing function comments while here. Note that u32 and u8 cannot be used here since crc.h is included on the host side. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
- Nov 23, 2019
-
-
Tom Rini authored
Now that we have buildman telling genboards.cfg to use an output directory we need to ensure that it exists. Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Simon Glass <sjg@chromium.org> Fixes: bc750bca ("tools: buildman: Honor output directory when generating boards.cfg") Signed-off-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Tom Rini authored
With the move to using Python 3 for real, we encounter two different issues. First, the file include/video_font_data.h includes at least one UTF-16 character. Given that it does not include any CONFIG symbols it is easiest to just ignore this file. Next, we encounter similar problems with some dts/dtsi files that come from Linux. In this case it's easiest to simply ignore all dts/dtsi files as there will not be CONFIG symbols for us to migrate in them. Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Nov 20, 2019
-
-
Tom Rini authored
We have CONFIG_ENV_SIZE_IS_REDUND but don't really use it. We have one board where we can simply multiple CONFIG_ENV_SIZE by two for the same result. The other place where we could but were not previously using this is for where env_internal.h checks for if we should set ENV_IS_EMBEDDED. This seems like the most likely use, historically, of the variable, but it was not used. Add logic to check for this now. Cc: Wolfgang Denk <wd@denx.de> Cc: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Acked-by:
Joe Hershberger <joe.hershberger@ni.com>
-
- Nov 17, 2019
-
-
Andy Yan authored
Usage: (1) tools/mkimage -n rk3308 -T rksd -d tpl/u-boot-tpl.bin idbloader.img (2) cat spl/u-boot-spl.bin >> idbloader.img (3) upgrade_tool wl 0x40 idbloader.img Note: When use ddr binary from rkbin as tpl, use it replace u-boot-tpl.bin in(1) Signed-off-by:
Andy Yan <andy.yan@rock-chips.com> Reviewed-by:
Kever Yang <kever.yang@rock-chips.com>
-
Kever Yang authored
Add the table entry for px30 socs. The px30 has 10K of sram available. Signed-off-by:
Kever Yang <kever.yang@rock-chips.com> Signed-off-by:
Heiko Stuebner <heiko.stuebner@theobroma-systems.com> Reviewed-by:
Kever Yang <kever.yang@rock-chips.com>
-
- Nov 14, 2019
-
-
Robert Beckett authored
fixes: 8ab452d5 When compiling list of cover letter cc addresses, using null as a separater, then encoding to utf-8 results in lots of "\x00" as separators. patman then doesnt understand that when it comes to repoting the list to send-email. Fix this by not encoding to utf-8, as done for the other patch files. Signed-off-by:
Robert Beckett <bob.beckett@collabora.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Anatolij Gustschin authored
s/Subprocress/Subprocess/ s/easiler/easier/ s/repositiory/repository/ s/rangem/range/ s/Retruns/Returns/ Signed-off-by:
Anatolij Gustschin <agust@denx.de> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Nov 12, 2019
-
-
Tom Rini authored
Move this symbol to Kconfig. As part of this we can drop a UBI-specific symbol that was a stop-gap for not having this particular symbol in Kconfig. Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Nov 11, 2019
-
-
Simon Glass authored
A recent change adjusted the symbol calculation to work on x86 but broke it for Tegra. In fact this is because they have different needs. On x86 devices the code is linked to a ROM address and the end-at-4gb property is used for the image. In this case there is no need to add the base address of the image, since the base address is already built into the offset and image-pos properties. On other devices we must add the base address since the offsets start at zero. In addition the base address is currently added to the 'offset' and 'size' values. It should in fact only be added to 'image-pos', since 'offset' is relative to its parent and 'size' is not actually an address. This code should have been adjusted when support for 'image-pos' and 'size' was added, but it was not. To correct these problems: - move the code that handles adding the base address to section.py, which can check the end-at-4gb property and which property (offset/size/image-pos) is being read - add the base address only when needed (only for image-pos and not if the image uses end-at-4gb) - add a note to the documentation - add a separate test to cover x86 behaviour Fixes: 15c981cc (binman: Correct symbol calculation with non-zero image base) Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Stephen Warren <swarren@nvidia.com>
-
- Nov 08, 2019
-
-
Tom Rini authored
This script was only used on the MX1ADS board (and possibly other MX1 platforms) to program the flash. As we no longer have any boards for that SoC, remove this tool. Fixes: e570aca9 ("mx1ads: remove board support") Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Nov 05, 2019
-
-
Peng Fan authored
some boards use ddr4, not lpddr4, so we need to check ddr4 firmware. Signed-off-by:
Peng Fan <peng.fan@nxp.com>
-
Peng Fan authored
The IVT offset is changed on i.MX8MN. Use ROM_VERSION to pass the v1 or v2 to mkimage. v1 is for iMX8MQ and iMX8MM v2 is for iMX8M Nano (iMX8MN) Signed-off-by:
Peng Fan <peng.fan@nxp.com>
-
Simon Glass authored
Update this tool to use Python 3 to meet the 2020 deadline. Unfortunately this introduces a test failure due to a problem in pylibfdt on Python 3. I will investigate. Signed-off-by:
Simon Glass <sjg@chromium.org>
-