- Jul 21, 2021
-
-
The sandbox can handle signals. Due to a damaged global data pointer additional exceptions in the signal handler may occur leading to an endless loop. In this case leave the handling of the secondary exception to the operating system. Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
One of binman's attributes is that it is extremely fast, at least for a Python program. Add some simple timing around operations that might take a while, such as reading an image and compressing it. This should help to maintain the performance as new features are added. This is for debugging purposes only. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
If the process outputs a lot of data on stdout this can be quite slow, since the bytestring is regenerated each time. Use a bytearray instead. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This is faster if data is being concatenated. Update the section and collection etypes. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The constructor should not read the node information. Move it to the ReadNode() method instead. This allows this etype to be subclassed. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Some images may take a while to build, e.g. if they are large and use slow compression. Support compiling sections in parallel to speed things up. Signed-off-by:
Simon Glass <sjg@chromium.org> (fixed to use a separate test file to fix flakiness)
-
Simon Glass authored
At present compression uses the same temporary file for all invocations. With multithreading this causes the data to become corrupted. Use a different filename each time. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present when function names are logged, the output is a little hard to read since every function is a different length. Add a way to pad the names so that the log messages line up vertically. This doesn't work if the function name is very long, but it makes a big difference in most cases. Use 20 characters as a default since this covers the vast majority of functions. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
It is useful to be able to iterate over block devices. Typically there are fixed and removable devices. For security reasons it is sometimes useful to ignore removable devices since they are under user control. Add iterators which support selecting the block-device type. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add support for reading devicetree flags for MMC devices. With this we can distinguish between fixed and removable drives. Note that this information is only available when the device is probed, not when it is bound, since it is read in the of_to_plat() method. This could be changed if needed later. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Jaehoon Chung <jh80.chung@samsung.com>
-
Simon Glass authored
If SPL fails to boot, try to provide an error code to indicate what is wrong. For example, if a uclass is missing, this can return -EPFNOSUPPORT (-96) which provides useful information. Add a helper for accessing the image-loader name so we can drop the use of #ifdefs in this code. Put this feature behind a CONFIG_SHOW_ERRORS option to avoid increasing the code size. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
If signature verification is not in use we don't need to worry about the risk of using @ in node names. Update fit_image_verify() to allow it if the function is not enabled. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
It is possible to add a blob that ends at the end of the bloblist, but at present this is not supported. Fix it and add a regression test for this case. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Some comments for struct bloblist_hdr are a bit ambiguous. Update them to clarify the meaning more precisely. Also document bloblist_get_stats() properly. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Sometimes a blob needs to expand, e.g. because it needs to hold more log data. Add support for this. Note that the bloblist must have sufficient spare space for this to work. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Rather than calling directly into the sandbox SDL code, we can use the normal U-Boot console handling for this feature. Update the code, to make it more generic. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The v2 format is 64-bytes in size. Support this and drop v1 since it is not used anymore. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This function is not needed anymore. Drop it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a function to read this information from the EC. It is useful for determining whether the battery has enough charge to boot. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Move this down to provide more space for the bloblist. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
SDL provides a hinting feature which provides a higher-quality image with the double-display option (-K). Enable it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present the display does not show on some machines, e.g. Ubunutu 20.04 but the reason is unknown. Add a work-around until this can be determined. Also include more error checking just in case. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The SPL header has a function for obtaining the phase in capital letters, e.g. 'SPL'. Add one for lower-case also, as used by sandbox. Use this to generalise the sandbox logic for determining the filename of the next sandbox executable. This can provide support for VPL. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present this fails to build chromeos_sandbox due to a rebase error in dm_test_pre_run(). Fix it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present if DM_DMA is disabled on a sandbox build, the build fails. Make the test conditional. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present if this is not enabled on a sandbox build, the build fails. Add a condition to avoid this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Allow lzma compression as well as lz4. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
It is sometimes helpful to see which sequence is assigned to a device. Add debugging info for that. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
When things go wrong it can be confusing to figure out what to change. Add a few more details to the documentation. Fix a 'make htmldocs' warning while we are here. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Walter Lozano <walter.lozano@collabora.com>
-
Simon Glass authored
At present if a driver is missing a uclass or compatible stirng, this is silently ignored. This makes sense in most cases, particularly for the compatible string, since it is not required except when the driver is used with of-platdata. But it is also not very helpful. When there is some sort of problem with a driver, the missing compatible string (for example) may be the cause. Add a warning in this case, showing it only for drivers which are used by the build. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Walter Lozano <walter.lozano@collabora.com>
-
Simon Glass authored
Some rockchip drivers use a suffix on the of_match line which is not strictly valid. At present this causes the parsing to fail. Fix this and offer a warning. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This test captures output but does not always check it. Add the missing code and drop the old comment. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This expects a . before the field name (.e.g '.compatible = ...) but presently accepts anything at all. Fix it. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Walter Lozano <walter.lozano@collabora.com>
-
Simon Glass authored
At present we show when a driver is missing but this is not always that useful. There are various reasons why a driver may appear to be missing, such as a parse error in the source code or a missing field in the driver declaration. Update the implementation to record all warnings for each driver, showing only those which relate to drivers that are actually used. This avoids spamming the user with warnings related to a driver for a different board. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Walter Lozano <walter.lozano@collabora.com>
-
Simon Glass authored
Use this parser instead of OptionParser, which is deprecated. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Walter Lozano <walter.lozano@collabora.com>
-
Simon Glass authored
These are not supported before Python 3.6 so avoid them. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Walter Lozano <walter.lozano@collabora.com>
-
- Jul 20, 2021
-
-
-
Marek Vasut authored
Filter out dmas dma-names interrupt-parent interrupts interrupts-extended interrupt-names interrupt-map interrupt-map-mask iommus DT properties on R-Car Gen3, since they are not used by U-Boot and only take space. Signed-off-by:
Marek Vasut <marek.vasut+renesas@gmail.com>
-
Marek Vasut authored
The RPC HF might be locked by ATF, and any access to its register space would result in complete hang. Disable the RPC HF by default. The ATF should be patched to set RPC node status = "okay" in the DT fragment it passes to U-Boot in case the RPC HF access is unlocked, and that way U-Boot could access the RPC HF safely. Signed-off-by:
Marek Vasut <marek.vasut+renesas@gmail.com>
-
Marek Vasut authored
The CPU: print only has one space after it, while the other prints from U-Boot align the value to offset 7. Align the CPU: print too. No functional change. Signed-off-by:
Marek Vasut <marek.vasut+renesas@gmail.com>
-