| 24f9e652 | 24-Jun-2019 |
Joseph Chen <chenjh@rock-chips.com> |
tools: rockchip: boot_merger: add option to enable rc4 flag
The legacy chips like rk3188 maskrom require all IDB data with RC4, the boot_merger pack the loader with a rc4 flag in header, and the upg
tools: rockchip: boot_merger: add option to enable rc4 flag
The legacy chips like rk3188 maskrom require all IDB data with RC4, the boot_merger pack the loader with a rc4 flag in header, and the upgrade_tool will write the data with rc4 to IDB area.
usage: boot_merger --rc4 RKBOOT/RK310BMINIALL.ini
and you can see log below if success with RC4: * enable RC4 for IDB data(both ddr and preloader)
Test on rk3188.
Change-Id: If221a32a462bb43bef67aae802adff5e1e8436ac Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| 9ad3008a | 11-Apr-2019 |
Joseph Chen <chenjh@rock-chips.com> |
tools: rockchip: boot/trust_merger: fix prefix append error
- still append prefix if not match legacy prefix; - ignore append prefix for output;
Change-Id: I1a8fc77ce73cbf169af49ce40ce3a0731861c617
tools: rockchip: boot/trust_merger: fix prefix append error
- still append prefix if not match legacy prefix; - ignore append prefix for output;
Change-Id: I1a8fc77ce73cbf169af49ce40ce3a0731861c617 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| fe47e2a1 | 02-Mar-2018 |
Paul Kocialkowski <contact@paulk.fr> |
UPSTREAM: tools: Include U-Boot libfdt headers from their actual path
There are no headers for libfdt in lib/libfdt, as they are instead located in scripts/dtc/libfdt. Specifying lib/libfdt for head
UPSTREAM: tools: Include U-Boot libfdt headers from their actual path
There are no headers for libfdt in lib/libfdt, as they are instead located in scripts/dtc/libfdt. Specifying lib/libfdt for headers inclusion in host tools results in using the system libfdt headers, which is not what we want. Change this to the proper path.
Change-Id: I3ad1329f563d1083828ce168e2c4ee791b553da8 Signed-off-by: Paul Kocialkowski <contact@paulk.fr> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| 4e2c3b8c | 21-Jan-2018 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
UPSTREAM: libfdt: migrate fdt_rw.c to a wrapper of scripts/dtc/libfdt/fdt_rw.c
The only difference between scripts/dtc/libfdt/fdt_rw.c and lib/libfdt/fdt_rw.c is fdt_remove_unused_strings().
It is
UPSTREAM: libfdt: migrate fdt_rw.c to a wrapper of scripts/dtc/libfdt/fdt_rw.c
The only difference between scripts/dtc/libfdt/fdt_rw.c and lib/libfdt/fdt_rw.c is fdt_remove_unused_strings().
It is only used by fdtgrep, so we do not need to compile it for U-Boot image. Move it to tools/libfdt/fdw_rw.c so that lib/libfdt/fdt_rw.c can be a wrapper of scripts/dtc/libfdt/fdt_rw.c.
Change-Id: I6e2578d4bfdf75438d3aa1cb51f270f34527d37d 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>
show more ...
|
| 9862beb6 | 21-Jan-2018 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
UPSTREAM: tools: include necessary headers explicitly
Several host-tools use "bool" type without including <stdbool.h>. This relies on the crappy header inclusion chain.
tools/Makefile has the foll
UPSTREAM: tools: include necessary headers explicitly
Several host-tools use "bool" type without including <stdbool.h>. This relies on the crappy header inclusion chain.
tools/Makefile has the following line:
HOST_EXTRACFLAGS += -include $(srctree)/include/libfdt_env.h \
All host-tools are forced to include libfdt_env.h even if they are totally unrelated to FDT. Then, <stdbool.h> is indirectly included as follows:
include/libfdt_env.h -> include/linux/types.h -> <stdbool.h>
I am fixing this horrible crap. In advance, I need to add necessary include directives explicitly. tools/fdtgrep.c needs more; <fctl.h> for open() and <errno.h> for errno.
Change-Id: Ic2b0e0d4c417841f7eeb152e486d63fdfd1a4eff Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| e71e2cea | 13-Nov-2017 |
Simon Glass <sjg@chromium.org> |
UPSTREAM: dtoc: Fix up tests
The tool has changed slightly since it was originally written. Update the tests to suit.
Change-Id: I6935a7c4cc16e1a3e5c617133b12d1982e640c74 Signed-off-by: Simon Glass
UPSTREAM: dtoc: Fix up tests
The tool has changed slightly since it was originally written. Update the tests to suit.
Change-Id: I6935a7c4cc16e1a3e5c617133b12d1982e640c74 Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit aab660fe18ac24ee859a203f517f939685af5e10)
show more ...
|
| 141b0784 | 17-Oct-2017 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
UPSTREAM: tools: use files from scripts/dtc/libfdt where possible
Prior to this commit, tools/Makefile pulls all libfdt files from lib/libfdt.
lib/libfdt/ and scripts/dtc/libfdt have the same copie
UPSTREAM: tools: use files from scripts/dtc/libfdt where possible
Prior to this commit, tools/Makefile pulls all libfdt files from lib/libfdt.
lib/libfdt/ and scripts/dtc/libfdt have the same copies for the followings 6 files: fdt.c fdt_addresses.c fdt_empty_tree.c fdt_overlay.c fdt_strerr.c fdt_sw.c
This commit changes them to #include ones from scripts/dtc/libfdt.
Unfortunately, U-Boot locally modified the following 3 files: fdt_ro.c fdt_wip.c fdt_rw.c
I did not touch them in order to avoid unpredictable impact.
The fdt_region.c is U-Boot own file. This is also borrowed from lib/libfdt/.
Change-Id: I3e8fcd9f84cda502a0eca504896ab29d7f840d16 Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit b38ad663a4b4ccd91a43b12e2d65179dbd2b40cb)
show more ...
|
| 81536652 | 17-Oct-2017 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
UPSTREAM: pylibfdt: move pylibfdt to scripts/dtc/pylibfdt and refactor makefile
The pylibfdt is used by dtoc (and, indirectly by binman), but there is no reason why it must be generated in the tools
UPSTREAM: pylibfdt: move pylibfdt to scripts/dtc/pylibfdt and refactor makefile
The pylibfdt is used by dtoc (and, indirectly by binman), but there is no reason why it must be generated in the tools/ directory.
Recently, U-Boot switched over to the bundled DTC, and the directory structure under scripts/dtc/ now mirrors the upstream DTC project. So, scripts/dtc/pylibfdt is the best location.
I also rewrote the Makefile in a cleaner Kbuild style.
The scripts from the upstream have been moved as follows:
lib/libfdt/pylibfdt/setup.py -> scripts/dtc/pylibfdt/setup.py lib/libfdt/pylibfdt/libfdt.i -> scripts/dtc/pylibfdt/libfdt.i_shipped
The .i_shipped is coped to .i during building because the .i must be located in the objtree when we build it out of tree.
Change-Id: I48233cbae93794809397b7160234469f66fa11dc Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 15b97f5c5e6d88e0560c6928f3acd01c999a494d)
show more ...
|
| d8bee3a4 | 03-Nov-2017 |
Jan Kundrát <jan.kundrat@cesnet.cz> |
UPSTREAM: Do not attempt to use the systemwide libfdt
U-Boot bundles a patched copy of libfdt, so it's wrong to attempt to include it <like/this>. This breaks the build for me when I have dtc fully
UPSTREAM: Do not attempt to use the systemwide libfdt
U-Boot bundles a patched copy of libfdt, so it's wrong to attempt to include it <like/this>. This breaks the build for me when I have dtc fully installed in my host -- as happened earlier tonight with Buildroot, for example.
There are several other occurrences throughout the code where '<libfdt' matches. I'm not modifying these because I have no clue why the <systemwide> include style is being used -- IMHO wrongly.
Change-Id: Ie733b1454f8d76439abee770af54eca3699323f7 Signed-off-by: Jan Kundrát <jan.kundrat@cesnet.cz> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit b95a5190ba9284a06f9d0c56589bcb4080b4710a)
show more ...
|