4469bd7b | 03-Jul-2018 |
Willy Tarreau <w@1wt.eu> |
tools: kwboot: properly quit when read() returns 0
When kwboot is attached to a terminal which disappears such as one connected via an unplugged USB cable, read() returns 0, making kwboot loop until
tools: kwboot: properly quit when read() returns 0
When kwboot is attached to a terminal which disappears such as one connected via an unplugged USB cable, read() returns 0, making kwboot loop until a key is pressed in the terminal. The only case where read() may return 0 here is when the terminal is closed anyway, so let's properly handle this one and report is similar to other errors.
Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
3475a71d | 03-Jul-2018 |
Willy Tarreau <w@1wt.eu> |
tools: kwboot: unbreak terminal-only mode
Commit 84899e2 ("tools/kwboot: Sync with latest barebox version to support Armada XP") accidently broke the terminal-only mode (-t) by removing the test on
tools: kwboot: unbreak terminal-only mode
Commit 84899e2 ("tools/kwboot: Sync with latest barebox version to support Armada XP") accidently broke the terminal-only mode (-t) by removing the test on the bootmsg. Thus even when trying to use kwboot as a plain terminal, it asks to reboot the target.
This commit simply reintroduces the lost test so that it is possible again to use kwboot to attach to the target system's console.
Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
cee02e6f | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
binman: Adjust _GetPropTree() parameters
At present this function takes a filename, but it is better to use an Fdt object so that the caller can control this, perhaps obtainint the device tree from
binman: Adjust _GetPropTree() parameters
At present this function takes a filename, but it is better to use an Fdt object so that the caller can control this, perhaps obtainint the device tree from a bytearray. Update the method accordingly and also fix a confusing parameter name.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
15a587c9 | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
binman: Add a test to catch use of the old 'pos' property
This property has been changed to 'offset'. To help downstream users who might still be using 'pos', add a check that this is not used by mi
binman: Add a test to catch use of the old 'pos' property
This property has been changed to 'offset'. To help downstream users who might still be using 'pos', add a check that this is not used by mistake.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
7e7c5877 | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
binman: Rename ReadContents() to ReadBlobContents()
This function name is too generic for its purpose and is therefore confusing. It actually only applies to blobs, so rename it to indicate this.
S
binman: Rename ReadContents() to ReadBlobContents()
This function name is too generic for its purpose and is therefore confusing. It actually only applies to blobs, so rename it to indicate this.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
1be70d20 | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
binman: Show the image position in the map
At present the map only shows the offset and size for each region. The image position provides the actual position of each entry in the image, regardless o
binman: Show the image position in the map
At present the map only shows the offset and size for each region. The image position provides the actual position of each entry in the image, regardless of the section hierarchy.
Add the image position to the map.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
b8ef5b6b | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
binman: Add support for adding TPL binaries
Add support for U-Boot's TPL and TPL device tree. Also fix a few comments in the other device-tree entries.
Signed-off-by: Simon Glass <sjg@chromium.org> |
24d0d3c3 | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
binman: Add an entry for a Chromium vblock
This adds support for a Chromium verified boot block, used to sign a read-write section of the image.
Signed-off-by: Simon Glass <sjg@chromium.org> |
94a7c603 | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
dtoc: Add a function to obtain a list of phandles
Add a function which can decode a property containing a list of phandles. This is useful for finding nodes linked to a property. Also provide a way
dtoc: Add a function to obtain a list of phandles
Add a function which can decode a property containing a list of phandles. This is useful for finding nodes linked to a property. Also provide a way to look up a single phandle and get the Fdt object from a Node.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
4f5dea45 | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
patman: Show the current directory in GetInputFilename()
When this fails it is useful to see the current directory, since U-Boot's build system will typically change into the output directory during
patman: Show the current directory in GetInputFilename()
When this fails it is useful to see the current directory, since U-Boot's build system will typically change into the output directory during the build. Add this information to the error.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
0ef87aa3 | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
binman: Add support for Chromium GBB
This entry contains a Google Binary Block, used to store keys and bitmaps in a Chromium image.
Signed-off-by: Simon Glass <sjg@chromium.org> |
aeffc5e9 | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
patman: Add a few more helpers to the tools library
Add functions to read and write a file, looking through a list of search paths to find it.
Signed-off-by: Simon Glass <sjg@chromium.org> |
2b19321e | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
patman: Allow test commands to fall back to real ones
Tests use the 'test_result' feature to return a predetermined command result for particular commands. The avoids needing to have the real comman
patman: Allow test commands to fall back to real ones
Tests use the 'test_result' feature to return a predetermined command result for particular commands. The avoids needing to have the real command available just to run a test. It works by calling the function provided by the test, to get the value.
However sometimes the test does need to run the real command. Allow it to fall back to do this when the function does not return a result.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
1d85888c | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
dtoc: Export the _FindNode() function
This is useful for clients that want to find a node. Export it so it can be used by others.
Signed-off-by: Simon Glass <sjg@chromium.org> |
3af8e49c | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
binman: Add an entry filled with a repeating byte
It is sometimes useful to have an area of the image which is all zeroes, or all 0xff. This can often be achieved by padding the size of an an existi
binman: Add an entry filled with a repeating byte
It is sometimes useful to have an area of the image which is all zeroes, or all 0xff. This can often be achieved by padding the size of an an existing entry and setting the pad byte for an entry or image.
But it is useful to have an explicit means of adding blocks of repeating data to the image. Add a 'fill' entry type to handle this.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
ec127af0 | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
binman: Add support for a cros_ec image
Add an entry type which can hold a Chrome OS EC.
To make this work a new entry type is created, which supports getting a blob filename from the command line.
binman: Add support for a cros_ec image
Add an entry type which can hold a Chrome OS EC.
To make this work a new entry type is created, which supports getting a blob filename from the command line.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
11e36cce | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
binman: Add support for flashrom FMAP
Add an entry which can hold an FMAP region as used by flashrom, an open-source flashing tool used on Linux x86 machines. This provides a simplified non-hierarch
binman: Add support for flashrom FMAP
Add an entry which can hold an FMAP region as used by flashrom, an open-source flashing tool used on Linux x86 machines. This provides a simplified non-hierarchical view of the entries in the image and has a signature at the start to allow flashrom to find it in the image.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
5a5da7ce | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
binman: Create README.entries
Create a new README containing documentation for the entry types supported by binman. This provides an easy reference in one place. It is automatically generated from t
binman: Create README.entries
Create a new README containing documentation for the entry types supported by binman. This provides an easy reference in one place. It is automatically generated from the source-code documentation.
Add a reference to this from the binman README.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
fd8d1f79 | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
binman: Allow creation of entry documentation
Binman supports quite a number of different entries now. The operation of these is not always obvious but at present the source code is the only referen
binman: Allow creation of entry documentation
Binman supports quite a number of different entries now. The operation of these is not always obvious but at present the source code is the only reference for understanding how an entry works.
Add a way to create documentation (from the source code) which can be put in a new 'README.entries' file.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
3fb397bb | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
binman: Expand documentation for entries
At present only the more complex entries are documented. It is useful to have documentation for all entries in one place.
As a first step, add and expand th
binman: Expand documentation for entries
At present only the more complex entries are documented. It is useful to have documentation for all entries in one place.
As a first step, add and expand the documentation to cover all entries.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
9b1a804d | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
binman: Allow help to work without libfdt
At present binman needs libfdt.py to be available before it will do anything, even print help. Import those modules later to avoid this, as it is bad practi
binman: Allow help to work without libfdt
At present binman needs libfdt.py to be available before it will do anything, even print help. Import those modules later to avoid this, as it is bad practice to fail to even show help on startup.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
bb74837c | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
binman: Support an entry that holds text
It is useful to able to write an identifying string to the image within an entry. Add a 'text' entry type to handle this. The actual text is typically passed
binman: Support an entry that holds text
It is useful to able to write an identifying string to the image within an entry. Add a 'text' entry type to handle this. The actual text is typically passed to binman on the command line. The text is not itself nul-terminated but this can be achieved if required by setting the size of the entry to something larger than the text.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
53af22a9 | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
binman: Add support for passing arguments to entries
Sometimes it is useful to pass binman the value of an entry property from the command line. For example some entries need access to files and it
binman: Add support for passing arguments to entries
Sometimes it is useful to pass binman the value of an entry property from the command line. For example some entries need access to files and it is not always convenient to put these filenames in the image definition (device tree).
Add a -a option which can be used like this:
-a<prop>=<value>
where
<prop> is the property to set <value> is the value to set it to
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
dc08ecc9 | 17-Jul-2018 |
Simon Glass <sjg@chromium.org> |
dtoc: Add missing comments to fdt_util
This module has a few missing comments. Add them.
Signed-off-by: Simon Glass <sjg@chromium.org> |
dbf6be9f | 01-Aug-2018 |
Simon Glass <sjg@chromium.org> |
binman: Add a new 'image-pos' property
At present each entry has an offset within its parent section. This is useful for figuring out how entries relate to one another. However it is sometimes neces
binman: Add a new 'image-pos' property
At present each entry has an offset within its parent section. This is useful for figuring out how entries relate to one another. However it is sometimes necessary to locate an entry within an image, regardless of which sections it is nested inside.
Add a new 'image-pos' property to provide this information. Also add some documentation for the -u option binman provides, which updates the device tree with final entry information.
Since the image position is a better symbol to use for the position of U-Boot as obtained by SPL, update the SPL symbols to use this instead of offset, which might be incorrect if hierarchical sections are used.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|