| efefe122 | 04-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dtoc: Ignore the u-boot, dm-pre-reloc property
This property is not useful for of-platdata, so omit it.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| 162a7a42 | 04-Jul-2016 |
Simon Glass <sjg@chromium.org> |
Only build the libfdt python module if 'swig' is available
When swig is not available, we can still build correctly. So make this optional. Add a comment about how to enable this build.
Signed-off-
Only build the libfdt python module if 'swig' is available
When swig is not available, we can still build correctly. So make this optional. Add a comment about how to enable this build.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 76bce10d | 04-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dm: Add a more efficient libfdt library
Add a Python version of the libfdt library which contains enough features to support the dtoc tool. This is only a very bare-bones implementation. It requires
dm: Add a more efficient libfdt library
Add a Python version of the libfdt library which contains enough features to support the dtoc tool. This is only a very bare-bones implementation. It requires the 'swig' to build.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 69f2ed77 | 04-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dm: Add a tool to generate C code from a device tree
This tool can produce C struct definitions and C platform data tables. This is used to support the of-platdata feature.
Signed-off-by: Simon Gla
dm: Add a tool to generate C code from a device tree
This tool can produce C struct definitions and C platform data tables. This is used to support the of-platdata feature.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| ec564b47 | 04-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dm: Add a library to provide simple device-tree access
This Python library provides a way to access the contents of the device tree. It uses fdtget, so is inefficient for larger device tree files.
dm: Add a library to provide simple device-tree access
This Python library provides a way to access the contents of the device tree. It uses fdtget, so is inefficient for larger device tree files.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| b6fefa76 | 12-Jul-2016 |
Teddy Reed <teddy.reed@gmail.com> |
mkimage: fix missing break for -p switch
Signed-off-by: Teddy Reed <teddy.reed@gmail.com> Reported-by: Coverity (CID: 150277) Reviewed-by: Tom Rini <trini@konsulko.com> |
| 1152a05e | 03-Jul-2016 |
Simon Glass <sjg@chromium.org> |
tools: Correct error handling in fit_image_process_hash()
We should not be returning -1 as an error code. This can mask a situation where we run out of space adding things to the FIT. By returning t
tools: Correct error handling in fit_image_process_hash()
We should not be returning -1 as an error code. This can mask a situation where we run out of space adding things to the FIT. By returning the correct error in this case (-ENOSPC) it can be handled by the higher-level code.
This may fix the error reported by Tom Van Deun here:
https://www.mail-archive.com/u-boot@lists.denx.de/msg217417.html
although I am not sure as I cannot actually repeat it.
Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by: Tom Van Deun <tom.vandeun@wapice.com> Reviewed-by: Teddy Reed <teddy.reed@gmail.com>
show more ...
|
| 655cc696 | 03-Jul-2016 |
Simon Glass <sjg@chromium.org> |
tools: Add an error code when fit_handle_file() fails
The error code may provide useful information for debugging. Add it to the error string.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed
tools: Add an error code when fit_handle_file() fails
The error code may provide useful information for debugging. Add it to the error string.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Teddy Reed <teddy.reed@gmail.com>
show more ...
|
| 51f03e6a | 30-Jun-2016 |
Simon Glass <sjg@chromium.org> |
mkimage: Show item lists for all categories
Update the error-handling code for -A, -C and -O to show a list of valid options when an invalid one is provided.
Signed-off-by: Simon Glass <sjg@chromiu
mkimage: Show item lists for all categories
Update the error-handling code for -A, -C and -O to show a list of valid options when an invalid one is provided.
Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by: Vinoth Eswaran <evinoth1206@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| f24e1050 | 30-Jun-2016 |
Simon Glass <sjg@chromium.org> |
mkimage: Use generic code for showing an 'image type' error
The existing error code only displays image types which are claimed by a particular U_BOOT_IMAGE_TYPE() driver. But this does not seem cor
mkimage: Use generic code for showing an 'image type' error
The existing error code only displays image types which are claimed by a particular U_BOOT_IMAGE_TYPE() driver. But this does not seem correct. The mkimage tool should support all image types, so it makes sense to allow creation of images of any type with the tool.
When an incorrect image type is provided, use generic code to display the error.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 30664225 | 30-Jun-2016 |
Simon Glass <sjg@chromium.org> |
mkimage: Allow display of a list of any image header category
Add a generic function which can display a list of items in any category. This will allow displaying of images for the -A, -C, -O and -T
mkimage: Allow display of a list of any image header category
Add a generic function which can display a list of items in any category. This will allow displaying of images for the -A, -C, -O and -T flags. At present only -T is supported.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 3a45f38d | 30-Jun-2016 |
Simon Glass <sjg@chromium.org> |
image: Correct auto-fit architecture property name
The fit_write_images() function incorrectly uses the long name for the architecture. This cannot be parsed with the FIT is read. Fix this by using
image: Correct auto-fit architecture property name
The fit_write_images() function incorrectly uses the long name for the architecture. This cannot be parsed with the FIT is read. Fix this by using the short name instead.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 58b22475 | 30-Jun-2016 |
Simon Glass <sjg@chromium.org> |
mkimage: Drop blank line before main()
This is not needed. Drop it.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> |
| 63ef31b9 | 30-Jun-2016 |
Simon Glass <sjg@chromium.org> |
mkimage: Drop premature setting of params.fit_image_type
There is no need to set params.fit_image_type while parsing the arguments. It is set up later anyway.
Signed-off-by: Simon Glass <sjg@chromi
mkimage: Drop premature setting of params.fit_image_type
There is no need to set params.fit_image_type while parsing the arguments. It is set up later anyway.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| e324a925 | 30-Jun-2016 |
Simon Glass <sjg@chromium.org> |
mkimage: Require a data file when auto-fit is used
When auto-fit is used, it is not valid to create a FIT without an image file. Add a check for this to avoid a very confusing error message later ("
mkimage: Require a data file when auto-fit is used
When auto-fit is used, it is not valid to create a FIT without an image file. Add a check for this to avoid a very confusing error message later ("Can't open (null): Bad address").
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 3c23c0fe | 30-Jun-2016 |
Simon Glass <sjg@chromium.org> |
mkimage: Explain the auto-fit imagefile special case
There is a special case in the code when auto-fit is used. Add a comment to make it easier to understand why this is needed.
Signed-off-by: Simo
mkimage: Explain the auto-fit imagefile special case
There is a special case in the code when auto-fit is used. Add a comment to make it easier to understand why this is needed.
Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
| 20deaddd | 30-Jun-2016 |
Simon Glass <sjg@chromium.org> |
mkimage: Honour the default image type with auto-fit
The default image type is supposed to be IH_TYPE_KERNEL, as set in the 'params' variable. Honour this with auto-fit also.
Signed-off-by: Simon G
mkimage: Honour the default image type with auto-fit
The default image type is supposed to be IH_TYPE_KERNEL, as set in the 'params' variable. Honour this with auto-fit also.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 94fbd3e3 | 27-Jun-2016 |
Bin Meng <bmeng.cn@gmail.com> |
tools: patman: Handle missing 'END' in non-last commit of a series
The following python error:
Traceback (most recent call last): File "./tools/patman/patman", line 144, in <module> series =
tools: patman: Handle missing 'END' in non-last commit of a series
The following python error:
Traceback (most recent call last): File "./tools/patman/patman", line 144, in <module> series = patchstream.FixPatches(series, args) File "./tools/patman/patchstream.py", line 477, in FixPatches commit = series.commits[count] IndexError: list index out of range
is seen when:
- 'END' is missing in those tags - those tags are put in the last part in a commit message - the commit is not the last commit of the series
Add testing logic to see if a new commit starts.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 57b6b190 | 27-Jun-2016 |
Bin Meng <bmeng.cn@gmail.com> |
tools: patman: Handle missing blank line for 'Series-changes'
'Series-changes' uses blank line to indicate its end. If that is missing, series internal state variable 'in_change' may be wrong. Corre
tools: patman: Handle missing blank line for 'Series-changes'
'Series-changes' uses blank line to indicate its end. If that is missing, series internal state variable 'in_change' may be wrong. Correct its state.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 0d577187 | 27-Jun-2016 |
Bin Meng <bmeng.cn@gmail.com> |
tools: patman: Generate cover letter correctly when 'END' is missing
If 'END' is missing in a 'Cover-letter' section, and that section happens to show up at the very end of the commit message, and t
tools: patman: Generate cover letter correctly when 'END' is missing
If 'END' is missing in a 'Cover-letter' section, and that section happens to show up at the very end of the commit message, and the commit is the last commit of the series, patman fails to generate cover letter for us. Handle this in CloseCommit of patchstream.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 13b98d95 | 27-Jun-2016 |
Bin Meng <bmeng.cn@gmail.com> |
tools: patman: Handle tag sections without an 'END'
'Cover-letter', 'Series-notes' and 'Commit-notes' tags require an 'END' to be put at the end of its section. If we forget to put an 'END' in those
tools: patman: Handle tag sections without an 'END'
'Cover-letter', 'Series-notes' and 'Commit-notes' tags require an 'END' to be put at the end of its section. If we forget to put an 'END' in those sections, and these sections are followed by another patman tag, patman generates incorrect patches. This adds codes to handle such scenario.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| e7df218c | 27-Jun-2016 |
Bin Meng <bmeng.cn@gmail.com> |
tools: patman: Use cover_match for 'Cover-letter'
Like other patman tags, use a new variable cover_match to indicate a match for 'Cover-letter'.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-b
tools: patman: Use cover_match for 'Cover-letter'
Like other patman tags, use a new variable cover_match to indicate a match for 'Cover-letter'.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 969cd1fa | 11-Jul-2016 |
Stefano Babic <sbabic@denx.de> |
mkimage -l is broken for images after gpimage
Because a gpimage cannot be detected, a false GP header is printed instead of checking for further image types.
Move gpimage as last to be linked, lett
mkimage -l is broken for images after gpimage
Because a gpimage cannot be detected, a false GP header is printed instead of checking for further image types.
Move gpimage as last to be linked, letting check all other image types and printing a GP header just in case no image is detected.
Signed-off-by: Stefano Babic <sbabic@denx.de>
show more ...
|
| 5847084f | 16-Jun-2016 |
Vagrant Cascadian <vagrant@debian.org> |
Respect SOURCE_DATE_EPOCH when building FIT images.
Embedding timestamps in FIT images results in unreproducible builds for targets that generate a fit image, such as dra7xx_evm.
This patch uses th
Respect SOURCE_DATE_EPOCH when building FIT images.
Embedding timestamps in FIT images results in unreproducible builds for targets that generate a fit image, such as dra7xx_evm.
This patch uses the SOURCE_DATE_EPOCH environment variable, when set, to use specified value for the date.
Thanks to HW42 for debugging the issue and providing the patch:
https://lists.alioth.debian.org/pipermail/reproducible-builds/Week-of-Mon-20160606/005722.html
For more information about reproducible builds and the SOURCE_DATE_EPOCH specification:
https://reproducible-builds.org/specs/source-date-epoch/ https://reproducible-builds.org/
Signed-off-by: Vagrant Cascadian <vagrant@debian.org> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| f8f9107d | 10-Jun-2016 |
Teddy Reed <teddy.reed@gmail.com> |
mkimage: fit: spl: Add an optional static offset for external data
When building a FIT with external data (-E), U-Boot proper may require absolute positioning for executing the external firmware. To
mkimage: fit: spl: Add an optional static offset for external data
When building a FIT with external data (-E), U-Boot proper may require absolute positioning for executing the external firmware. To acheive this use the (-p) switch, which will replace the amended 'data-offset' with 'data-position' indicating the absolute position of external data.
It is considered an error if the requested absolute position overlaps with the initial data required for the compact FIT.
Signed-off-by: Teddy Reed <teddy.reed@gmail.com>
show more ...
|