- Jan 22, 2018
-
-
Heinrich Schuchardt authored
For testing EFI disk management we need an in-memory image of a disk. The tool file2include converts a file to a C include. The file is separated into strings of 8 bytes. Only the non-zero strings are written to the include. The output format has been designed to maintain readability. #define EFI_ST_DISK_IMG { 0x00010000, { \ {0x000001b8, "\x94\x37\x69\xfc\x00\x00\x00\x00"}, /* .7i..... */ \ {0x000001c0, "\x02\x00\x83\x02\x02\x00\x01\x00"}, /* ........ */ \ {0x000001c8, "\x00\x00\x7f\x00\x00\x00\x00\x00"}, /* ........ */ \ {0x000001f8, "\x00\x00\x00\x00\x00\x00\x55\xaa"}, /* ......U. */ \ ... {0x00006000, "\x48\x65\x6c\x6c\x6f\x20\x77\x6f"}, /* Hello wo */ \ {0x00006008, "\x72\x6c\x64\x21\x0a\x00\x00\x00"}, /* rld!.... */ \ {0, NULL} } } As the disk image needed for testing contains mostly zeroes a high compression ratio can be attained. Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by:
Alexander Graf <agraf@suse.de>
-
- Jan 21, 2018
-
-
Stefan Brüns authored
get_maintainer.pl quotes names which it considers unsafe, i.e. anything containing [^a-zA-Z0-9_ \-]. This confuses patman, it will duplicate addresses which are also in Series-to/cc. Strip the quotes. Signed-off-by:
Stefan Brüns <stefan.bruens@rwth-aachen.de> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Jan 19, 2018
-
-
Lokesh Vutla authored
The size field in GP header that is expected by ROM is size of the image + size of the header. But omapimage tool is updating size as image size + 2 * header size. Remove this extra header size bytes. Reported-by:
Denys Dmytriyenko <denys@ti.com> Debugged-by:
Madan Srinivas <madans@ti.com> Signed-off-by:
Lokesh Vutla <lokeshvutla@ti.com>
-
- Jan 16, 2018
-
-
Tom Rini authored
In some cases when "more" is told to page a given file it will prepend the output with: :::::::::::::: /PATH/TO/THE/FILE :::::::::::::: And when this happens the output will not match the expected length. Further, if we use a different pager we will instead fail the coverage tests as we will not have 100% coverage. Update the help test to remove the string in question. Reviewed-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Tom Rini <trini@konsulko.com>
-
Simon Glass authored
The system device-tree compiler may not be new enough to run the tests we use in U-Boot (e.g. with binman). Allow use of a DTC environment variable to point to the correct dtc. If not defined, the dtc on the default PATH is used. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Andre Przywara authored
The DT spec demands a unit-address in a node name to match the "reg" property in that node. Newer dtc versions will throw warnings if this is not the case. Correct the generated unit names when U-Boot's mkimage creates a FIT image. Signed-off-by:
Andre Przywara <andre.przywara@arm.com>
-
Andre Przywara authored
The DT spec demands a unit-address in a node name to match the "reg" property in that node. Newer dtc versions will throw warnings if this is not the case. Fix all occurences in the tree where node names were mentioned in comments, to not give bad examples to the reader. Signed-off-by:
Andre Przywara <andre.przywara@arm.com>
-
- Jan 12, 2018
-
-
Rick Chen authored
Add prelink-riscv to arrange .rela.dyn and .rela.got in compile time. So that u-boot can be directly executed without fixup. Signed-off-by:
Chih-Mao Chen <cmchen@andestech.com> Signed-off-by:
Rick Chen <rick@andestech.com> Signed-off-by:
Rick Chen <rickchen36@gmail.com> Signed-off-by:
Greentime Hu <green.hu@gmail.com>
-
- Jan 09, 2018
-
-
Konstantin Porotchkin authored
Introduce the recovery image download script for usage with Marvell Armada SoC families (excepting 37xx family). Since Marvell BootROM uses a sliding window in UART buffer for detecting escape sequence during the boot, it's easier to interrupt the normal boot flow by sending a long stream of chained escape sequences to the serial port instead of periodically sending a single escape sequence as it is done by kwboot utility. Additional benefit of using this script is the ability to adjust the escape sequence stream length withoiut need for compilation. Signed-off-by:
Konstantin Porotchkin <kostap@marvell.com> Cc: Stefan Roese <sr@denx.de> Cc: Igal Liberman <igall@marvell.com> Signed-off-by:
Stefan Roese <sr@denx.de>
-
- Dec 18, 2017
-
-
Michal Simek authored
Check all return values from file functions. In case of negative return exit immediately. Also change fsize return value which can't be negative. Reported-by: Coverity (CID: 23276, 23304, 169357) Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
- Dec 13, 2017
-
-
Simon Glass authored
Add this feature to the README. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Lukasz Majewski <lukma@denx.de>
-
Simon Glass authored
Binman construct images consisting of multiple binary files. These files sometimes need to know (at run timme) where their peers are located. For example, SPL may want to know where U-Boot is located in the image, so that it can jump to U-Boot correctly on boot. In general the positions where the binaries end up after binman has finished packing them cannot be known at compile time. One reason for this is that binman does not know the size of the binaries until everything is compiled, linked and converted to binaries with objcopy. To make this work, we add a feature to binman which checks each binary for symbol names starting with '_binman'. These are then decoded to figure out which entry and property they refer to. Then binman writes the value of this symbol into the appropriate binary. With this, the symbol will have the correct value at run time. Macros are used to make this easier to use. As an example, this declares a symbol that will access the 'u-boot-spl' entry to find the 'pos' value (i.e. the position of SPL in the image): binman_sym_declare(unsigned long, u_boot_spl, pos); This converts to a symbol called '_binman_u_boot_spl_prop_pos' in any binary that includes it. Binman then updates the value in that binary, ensuring that it can be accessed at runtime with: ulong u_boot_pos = binman_sym(ulong, u_boot_spl, pos); This assigns the variable u_boot_pos to the position of SPL in the image. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The elf module can provide some debugging information to assist with figuring out what is going wrong. This is also useful in tests. Update the -D option so that it is passed through to tests as well. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This is only 3 bytes long which is not enough to hold two symbol values, needed to test the binman symbols feature. Increase it to 15 bytes. Using very small regions is useful since we can easily compare them in tests and errors are fairly easy to diagnose. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
For testing we need to build some ELF files containing binman symbols. Add these to the Makefile and check in the binaries: u_boot_binman_syms - normal, valid ELF file u_boot_binman_syms_bad - missing the __image_copy_start symbol u_boot_binman_syms_size - has a binman symbol with an invalid size Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This feature is now supported. Drop the incorrect comment. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This file contains SPL image without a device tree. Add support for including this in images. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This file contains the SPL device tree. Add support for including this by itself in images. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
In some cases we need to read symbols from U-Boot. At present we have a a few cases which does this via 'nm' and 'grep'. It is better to use objdump since that tells us the size of the symbols and also whether it is weak or not. Add a new module which reads ELF information from files. Update existing uses of 'nm' to use this module. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Dec 06, 2017
-
-
Philipp Tomsich authored
Since commit 2614a208 ("common: command: tempory buffer should have size of command line buf"), there have been consistent Travis CI failures on my builds (interestingly not for Tom, even though building the same commit id) due to a SEGV in building the byteswapped omapimage: arm: pcm051_rev3 make[2]: *** [MLO.byteswap] Error 139 ^^^ error code for a SEGV Turns out that the word-based byte-swapping loop in omapimage.c is to blame. With the loop condition while (swapped <= (sbuf->st_size / sizeof(uint32_t))) there had been one-too-many iterations for all file sizes divisible by the sizeof(uint32_t). I.e. we had 1 iteration for 0 bytes (and also 1 through 3 bytes) and 2 iterations at 4 bytes... clearly overshooting on 0 and 4 bytes. This commit fixes the calculation of an up-rounded word-count and makes sure to keep the zero-based loop-counter below the number of words to be processed. References: 2614a208 ("common: command: tempory buffer should have size of command line buf") Fixes: 79b9ebb7 ("omapimage: Add support for byteswapped SPI images") Signed-off-by:
Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by:
Martin Elshuber <martin.elshuber@theobroma-systems.com>
-
- Dec 04, 2017
-
-
Masahiro Yamada authored
Now, lib/libfdt/fdt_wip.c is the same as scripts/dtc/libfdt/fdt_wip.c Change the former to a wrapper of the latter. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Nov 30, 2017
-
-
S. Lockwood-Childs authored
Up to now we were able to read/write environment data from/to UBI volumes only indirectly by gluebi driver. This driver creates NAND MTD on top of UBI volumes, which is quite a workaroung for this use case. Add support for direct read/write UBI volumes in order to not use obsolete gluebi driver. Forward-ported from this patch: http://patchwork.ozlabs.org/patch/619305/ Original patch: Signed-off-by:
Marcin Niestroj <m.niestroj@grinn-global.com> Forward port: Signed-off-by:
S. Lockwood-Childs <sjl@vctlabs.com>
-
- Nov 29, 2017
-
-
Jean-Francois Dagenais authored
The chapter in which the table explaining the image format changed chapter as the document evolved. This should help people track the info down faster. Signed-off-by:
Jean-Francois Dagenais <jeff.dagenais@gmail.com> Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
- Nov 28, 2017
-
-
Michal Simek authored
The patch is adding external pmufw "Platform Management Unit firmware" to boot.bin image. Boot.bin is a Xilinx format which bootrom is capable to read and boot the system. pmufw is copied to the header data section follows by u-boot-spl.bin. pmufw is consumed by PMU unit (Microblaze) and SPL runs on a53-0. This is generated command line when PMUFW_INIT_FILE is setup. ./tools/mkimage -T zynqmpimage -R ./"" -n ./"board/xilinx/zynqmp/pmufw.bin" -d spl/u-boot-spl.bin spl/boot.bin Signed-off-by:
Michal Simek <michal.simek@xilinx.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Nov 23, 2017
-
-
Simon Glass authored
Return exit code 1 when test fail so that callers can detect this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
MRC (Memory Reference Code) is a binary blob used to set up the SDRAM controller on some Intel boards. Add a test for this feature. With this test coverage on binman is back up to 100%. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a test for this feature. It allows SPL to hold a pointer to the microcode block. This is used for 64-bit U-Boot on x86. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This allows us to put the 16-bit x86 start-up code in SPL. Add a test for it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a test that we can pad the BSS with zero bytes. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Files that are never imported are not shown in the test-coverage report. Detect these and show an error. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Make a minor tweak to fix test coverage. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a main program so that the tests can be executed directly, without going through the main binman program. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a test that the 'entry' module works with or without importlib. The tests are numbered so that they are executed in the correct order. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
There is a little check at the top of entry.py which decides if importlib is available. At present this has no test coverage. To add this we will need to import the module twice, once with importlib and once without. In preparation for allowing a test to control the importing of this module, remove all global imports of the 'entry' module. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Rather that overwrite this, append to it, in case the caller has already set up the path correctly. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The tool has changed slightly since it was originally written. Update the tests to suit. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The tests were broken by two separate commits which adjusted the output when boards are listed. Fix this by adding back a PowerPC board and putting the name of each board in the test. Fixes: b9f7d881 (powerpc, 5xx: remove some "5xx" remains) Fixes: 8d7523c5 (buildman: Allow showing the list of boards with -n) Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Accessing the network slows down the test and limits the environment in which it can be run. Add an option to disable network tests. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The checkpatch tool was updated but the patman tests were not. Fix this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These warnings are not useful for binman tests. Disable them. Signed-off-by:
Simon Glass <sjg@chromium.org>
-