| adf9b6de | 26-Oct-2017 |
Stefan Agner <stefan.agner@toradex.com> |
UPSTREAM: tools: env: allow to print U-Boot version
The fw_env utility family has a default environment compiled in which ties it quite strongly to the U-Boot source/config it has been built with. A
UPSTREAM: tools: env: allow to print U-Boot version
The fw_env utility family has a default environment compiled in which ties it quite strongly to the U-Boot source/config it has been built with. Allow to display the U-Boot version it has been built with using the -v/--version argument.
Change-Id: Iba67d9f520d9315874758ddafe9d277610719c9d Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 84d46e7e8948780d7ca20c24dfc7b653b900f728)
show more ...
|
| 710f83a7 | 19-Oct-2017 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
UPSTREAM: tools: image: fix node name of signature node in FIT
Both "conf_name" and "sig_name" point to the name of config node. The latter should be the name of the signature node.
Change-Id: I2be
UPSTREAM: tools: image: fix node name of signature node in FIT
Both "conf_name" and "sig_name" point to the name of config node. The latter should be the name of the signature node.
Change-Id: I2be3ce4c9644a9dd6814d63cbc49f6e9348490d5 Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 16067e6b87293eeb1fc4bac3edc0fd675b94d1a8)
show more ...
|
| 18a87e93 | 12-Oct-2017 |
Bin Meng <bmeng.cn@gmail.com> |
UPSTREAM: tools: env: Add embedded.c to .gitignore
Change-Id: I81b0fec8fef268598f054103e859250315218ef9 Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.
UPSTREAM: tools: env: Add embedded.c to .gitignore
Change-Id: I81b0fec8fef268598f054103e859250315218ef9 Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 3b306c37cdf7488254d078ce63f508eaedb2be41)
show more ...
|
| 9a544e36 | 10-Oct-2017 |
Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> |
UPSTREAM: env: Drop CONFIG_ENV_IS_IN_DATAFLASH
Last user of this option went away in commit:
fdc7718999 ("board: usb_a9263: Update to support DT and DM")
Change-Id: Ie6cec28e4daf26b669f3f35db02642
UPSTREAM: env: Drop CONFIG_ENV_IS_IN_DATAFLASH
Last user of this option went away in commit:
fdc7718999 ("board: usb_a9263: Update to support DT and DM")
Change-Id: Ie6cec28e4daf26b669f3f35db026427bdb47a5b6 Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 7b7341d7f3ee915c89a7f8ab7054e39872057d90)
show more ...
|
| 8cc080c0 | 04-Oct-2017 |
Mirza, Taimoor <Taimoor_Mirza@mentor.com> |
UPSTREAM: tools/mkimage: Fix DTC run command to handle file names with space
fit_handle_file function does not quote input and output files while preparing command to run DTC to convert .its to .itb
UPSTREAM: tools/mkimage: Fix DTC run command to handle file names with space
fit_handle_file function does not quote input and output files while preparing command to run DTC to convert .its to .itb. This results in a failure if input or output files contain spaces in their names. Quote input and output files in DTC command to avoid this failure.
Change-Id: I866d740ef8e2c9f28059c55757bbcbdb017cd74a Signed-off-by: Mirza, Taimoor <Taimoor_Mirza@mentor.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit a6e9810495bc929b6beafb88f557cdaadf87fc83)
show more ...
|
| 017aad04 | 07-Oct-2017 |
Tom Rini <trini@konsulko.com> |
UPSTREAM: cmd/gpt.c, cmd/nvedit.c, tools/fit_image.c: Rework recent fixes for Coverity
The recent changes to these files did not completely fix the previous issues, or introduced different (minor) i
UPSTREAM: cmd/gpt.c, cmd/nvedit.c, tools/fit_image.c: Rework recent fixes for Coverity
The recent changes to these files did not completely fix the previous issues, or introduced different (minor) issues. In cmd/gpt.c we need to dereference str_disk_guid to be sure that malloc worked. In cmd/nvedit.c we need to be careful that we can also fit in that leading space when adding to the string. And in tools/fit_image.c we need to re-work the error handling slightly in fit_import_data() so that we only call munmap() once. We have two error paths here, one where we have an fd to close and one where we do not. Adjust labels to match this.
Change-Id: I66fafd0ed8d1c290a7773bba5ece8d11bfc15b50 Reported-by: Coverity (CID: 167366, 167367, 167370) Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit bf52fcdef4aac242b5e6b6b9827acf6d69ce1951)
show more ...
|
| 0757e90b | 27-Sep-2017 |
Tom Rini <trini@konsulko.com> |
UPSTREAM: tools/fit_image.c: Update some return code paths
Coverity has found some problems with the return paths in parts of this code. We have a case where we were going to the wrong part of the
UPSTREAM: tools/fit_image.c: Update some return code paths
Coverity has found some problems with the return paths in parts of this code. We have a case where we were going to the wrong part of the unwind (open() failed so we cannot close the fd), a case where we were only free()ing our buf on the error path and finally a case where we did not munmap in the failure path.
Change-Id: I31ee7b7099b7f2a4ec0c11c247029df5eb9d8552 Reported-by: Coverity (CID: 138492, 138495, 143064) Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 3c2dff5490831f85f06aa78aad5ef537b661cecf)
show more ...
|
| f8470aee | 24-Sep-2017 |
Tom Rini <trini@konsulko.com> |
UPSTREAM: tools/mkimage: Make the path to the dtc binary that mkimage calls configurable
In some cases, such as FreeBSD, the path to an alternative dtc needs to be used. Rather than override the on
UPSTREAM: tools/mkimage: Make the path to the dtc binary that mkimage calls configurable
In some cases, such as FreeBSD, the path to an alternative dtc needs to be used. Rather than override the one given in the Makefile on the command line, make this part of the build configuration.
Change-Id: Ib4e2b2603f22098edb11bf3f03be32a86b2d2f1a Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 1f6049e2501b5c35c61435dbc05ba96743202674)
show more ...
|
| d3aac30e | 13-Sep-2017 |
Simon Glass <sjg@chromium.org> |
UPSTREAM: patman: Fix error when the email blacklist is missing
This section of the settings file may be missing. Handle that gracefully rather than emitting an error.
Also update patman to write t
UPSTREAM: patman: Fix error when the email blacklist is missing
This section of the settings file may be missing. Handle that gracefully rather than emitting an error.
Also update patman to write this section when a new settings file is created.
Fixes: e11aa602 (patman: add support for omitting bouncing addresses)
Change-Id: I52174b84a9a28e3431fd039185f6e4d521bc037b Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Chris Packham <judge.pckham@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit ad8931400b193f701a415e7f69f1ad454d1b0380)
show more ...
|
| ad6e7aa6 | 01-Sep-2017 |
Chris Packham <judge.packham@gmail.com> |
UPSTREAM: patman: add support for omitting bouncing addresses
Add support for reading a list of bouncing addresses from a in-tree file (doc/bounces) and from the ~/.patman config file. These address
UPSTREAM: patman: add support for omitting bouncing addresses
Add support for reading a list of bouncing addresses from a in-tree file (doc/bounces) and from the ~/.patman config file. These addresses are stripped from the Cc list.
Change-Id: I0b4b4107a579b344034c750d63b838ef7960f96e Signed-off-by: Chris Packham <judge.packham@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com <mailto:philipp.tomsich@theobroma-systems.com>> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit e11aa602abd3e8007dfd3ed23ebb829101abcfec)
show more ...
|
| 48545cfb | 13-Aug-2017 |
Simon Glass <sjg@chromium.org> |
UPSTREAM: moveconfig: Use fd.write() instead of print >>
Adjust this code so that it can work with Python 2 and 3.
Fixes: d73fcb1 (moveconfig: Support building a simple config database) Change-Id:
UPSTREAM: moveconfig: Use fd.write() instead of print >>
Adjust this code so that it can work with Python 2 and 3.
Fixes: d73fcb1 (moveconfig: Support building a simple config database) Change-Id: Ifad4813594adfaf6504cc85f2ee99afb9d1c0fd2 Reported-by: Chris Packham <judge.packham@gmail.com> Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit c79d18c4b40d10c0a95b56e51f4517aca4515364)
show more ...
|
| 0c69cd52 | 04-Aug-2017 |
Simon Glass <sjg@chromium.org> |
UPSTREAM: genconfig.py: Print defconfig next to warnings
At present we sometimes see warnings of the form:
/tmp/tmpMA89kB:36: warning: overriding the value of CMD_SPL. Old value: "y", new value: "
UPSTREAM: genconfig.py: Print defconfig next to warnings
At present we sometimes see warnings of the form:
/tmp/tmpMA89kB:36: warning: overriding the value of CMD_SPL. Old value: "y", new value: "y".
This is not very useful as it does not show whch defconfig file it relates to. Update the tool to show this.
Change-Id: Ib4e5c75fa4e7948744d293a8b4d8f07e4474a0ff Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 8639f69a61b47971dba47ab5ed72e47436729bb1)
show more ...
|
| d2975239 | 13-Dec-2017 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: support pack resources into resource.img
This script supports pack charge pictures into resource.img
Usage: ./pack_resource.sh <input resource.img>
Change-Id: If0577a62d58a0c93826ac6c0d
rockchip: support pack resources into resource.img
This script supports pack charge pictures into resource.img
Usage: ./pack_resource.sh <input resource.img>
Change-Id: If0577a62d58a0c93826ac6c0db5df7872dced964 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| 6053e139 | 10-Oct-2017 |
Philipp Tomsich <philipp.tomsich@theobroma-systems.com> |
UPSTREAM: rockchip: mkimage: remove unused code-paths (spl_boot0 is now implied)
With all targets converted to generate prepadded images, this removes the spl_boot0 field from our config structure a
UPSTREAM: rockchip: mkimage: remove unused code-paths (spl_boot0 is now implied)
With all targets converted to generate prepadded images, this removes the spl_boot0 field from our config structure and removes the unused code-path (for images that are not prepadded): i.e. spl_boot0 is now implied as 'true' and the code is specialised by removing the other case.
Change-Id: Ib3d90539acb72e01c31a9da819ba8b46134bcb5e Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
show more ...
|
| 6bd5a2c4 | 10-Oct-2017 |
Kever Yang <kever.yang@rock-chips.com> |
UPSTREAM: rockchip: mkimage: use spl_boot0 for all Rockchip SoCs
Enable the spl_boot0 in SPL and use the pre-padding TAG memory, the mkimage do not need to pad it but only need to replace the value
UPSTREAM: rockchip: mkimage: use spl_boot0 for all Rockchip SoCs
Enable the spl_boot0 in SPL and use the pre-padding TAG memory, the mkimage do not need to pad it but only need to replace the value with correct TAG value.
Change-Id: I5ae7b402c9958774acd9eac95e9417c48854c035 Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
show more ...
|
| 6f14746b | 17-Aug-2017 |
Paweł Jarosz <paweljarosz3691@gmail.com> |
rockchip: mkimage: add support for rockchip nand boot image
The Rockchip boot ROM requires a particular file format for booting from NAND:
* It starts with 512-byte, rc4 encoded header and is align
rockchip: mkimage: add support for rockchip nand boot image
The Rockchip boot ROM requires a particular file format for booting from NAND:
* It starts with 512-byte, rc4 encoded header and is aligned to nand page size
* Then first 2KB of first stage loader (tpl) aligned to nand page size * n empty pages
* second 2KB of first stage loader (tpl) aligned to nand page size * n empty pages
* ...
* first 2KB of second stage loader (spl) aligned to nand page size * n empty pages
* second 2KB of first stage loader (spl) aligned to nand page size * n empty pages
* ...
Size of spl and tpl must be aligned to 2KB.
example usage for nand with page size 16384 and one empty page in iteration:
# mkimage -n rk3066 -T rknand -d ./u-boot/tpl/u-boot-tpl.bin:./u-boot/spl/u-boot-spl.bin -X 16384,1 out
Change-Id: Ie4ecb50637449251956a868272ce51ef489c7a1e Signed-off-by: Paweł Jarosz <paweljarosz3691@gmail.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| 7c2f4ca0 | 26-Oct-2017 |
Kever Yang <kever.yang@rock-chips.com> |
rockchip: tool: update rk3328 spl_boot0
rk3328 is a 64bit SoC, do have spl_boot0.
Change-Id: I26a472213f7f9a66a2fc6167d7ff4986de5e3a33 Signed-off-by: Kever Yang <kever.yang@rock-chips.com> |
| 7336d5ed | 27-Sep-2017 |
Kever Yang <kever.yang@rock-chips.com> |
rockchip: mkimage: add support for rk3128 soc
Add support for rk3128 package header in mkimage tool.
Change-Id: Ida30dda9c3bceccc81dad0780f2a46d97e13c38c Signed-off-by: Kever Yang <kever.yang@rock-
rockchip: mkimage: add support for rk3128 soc
Add support for rk3128 package header in mkimage tool.
Change-Id: Ida30dda9c3bceccc81dad0780f2a46d97e13c38c Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| 3b103c4e | 29-Aug-2017 |
Simon Glass <sjg@chromium.org> |
dtoc: Add a header to the generated files
Add a header that indicates that the files generated by dtoc should not be modified.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| 54d1a4b7 | 29-Aug-2017 |
Simon Glass <sjg@chromium.org> |
dtoc: Support properties containing multiple phandle values
At present dtoc has a very simplistic view of phandles. It assumes that a property has only a single phandle with a single argument (i.e.
dtoc: Support properties containing multiple phandle values
At present dtoc has a very simplistic view of phandles. It assumes that a property has only a single phandle with a single argument (i.e. two cells per property).
This is not true in many cases. Enhance the implementation to scan all phandles in a property and to use the correct number of arguments (which can be 0, 1, 2 or more) when generating the C code. For the struct definitions, use a struct which can hold the maximum number of arguments used by the property.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| f9faa230 | 29-Aug-2017 |
Simon Glass <sjg@chromium.org> |
dtoc: Put phandle args in an array
We want to support more than one phandle argument. It makes sense to use an array for this rather than discrete struct members. Adjust the code to support this. Re
dtoc: Put phandle args in an array
We want to support more than one phandle argument. It makes sense to use an array for this rather than discrete struct members. Adjust the code to support this. Rename the member to 'arg' instead of 'id'.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 59e6856d | 29-Aug-2017 |
Simon Glass <sjg@chromium.org> |
dtoc: Put each phandle on a separate line
When writing values from properties which contain phandles, dtoc currently writes 8 phandles per line. Change this to write one phandle per line. This helps
dtoc: Put each phandle on a separate line
When writing values from properties which contain phandles, dtoc currently writes 8 phandles per line. Change this to write one phandle per line. This helps reduce line length, since phandles are generally longer and may have arguments.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 3a40acd4 | 29-Aug-2017 |
Simon Glass <sjg@chromium.org> |
dtoc: Rename the phandle struct
Rather than naming the phandle struct according to the number of cells it uses (e.g. struct phandle_2_cell) name it according to the number of arguments it has (e.g.
dtoc: Rename the phandle struct
Rather than naming the phandle struct according to the number of cells it uses (e.g. struct phandle_2_cell) name it according to the number of arguments it has (e.g. struct phandle_1_arg). This is a more intuitive naming.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| cb3f9bf4 | 29-Aug-2017 |
Simon Glass <sjg@chromium.org> |
dtoc: Rename is_phandle() and adjust it to return more detail
Update this function to return more detail about a property that contains phandles. This will allow (in a future commit) more accurate h
dtoc: Rename is_phandle() and adjust it to return more detail
Update this function to return more detail about a property that contains phandles. This will allow (in a future commit) more accurate handling of these properties.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 7088d44b | 29-Aug-2017 |
Simon Glass <sjg@chromium.org> |
dtoc: Make is_phandle() a member function
This function will need to have access to class members once we enhance it to support multiple phandle values. In preparation for that, move it into the cla
dtoc: Make is_phandle() a member function
This function will need to have access to class members once we enhance it to support multiple phandle values. In preparation for that, move it into the class.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|