| #
57807e00 |
| 26-May-2023 |
Joseph Chen <chenjh@rock-chips.com> |
tools: Makefile: Remove build boot_merger/trust_merger/loaderimage
We use them from rkbin.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I6cd429da609ccd312b35b1d7881211764c4164f2
|
| #
0466543c |
| 11-Nov-2020 |
Wenping Zhang <wenping.zhang@rock-chips.com> |
tools: add tools for convert bmp to gray16 and saved as logo.img.
This tool support convert 16bpp/24bpp/32bpp bmp images into 4 bits grayscale image, and add header info to save as logo.img. logo.im
tools: add tools for convert bmp to gray16 and saved as logo.img.
This tool support convert 16bpp/24bpp/32bpp bmp images into 4 bits grayscale image, and add header info to save as logo.img. logo.img is flash into emmc and parsed in uboot to display uboot/charging/lowpower/kernel logo. [Note]the requirement of bmp files: 1. The resolution of all bmp image must be same. 2. The logo.img will be parsed in uboot, the uboot require the resolution of image must be same as screen resolution, otherwise will be failed. 3. The color depth of bmp image must be 16bpp/24bpp/32bpp, 8bpp is not supported.
The usage: ./tools/bmp2gray16 --uboot-logo tools/images/eink/uboot.bmp --kernel-logo tools/images/eink/kernel.bmp --charge-logo tools/images/eink/battery_0.bmp tools/images/eink/battery_1.bmp tools/images/eink/battery_2.bmp tools/images/eink/battery_3.bmp tools/images/eink/battery_4.bmp tools/images/eink/battery_5.bmp tools/images/eink/battery_fail.bmp --output ./logo.img
Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com> Change-Id: Ifc39f0344693fb0b26b04d7904289847e6fa9b90
show more ...
|
| #
b8dc613c |
| 19-Nov-2019 |
Joseph Chen <chenjh@rock-chips.com> |
Merge branch 'next-dev' into thunder-boot
|
| #
467d16db |
| 11-Nov-2019 |
Joseph Chen <chenjh@rock-chips.com> |
tools: rockchip: resource_tool: independent on other files
Merge all codes into resource_tool.c
Sync from kernel-4.4: (0787850 rk: scripts/resource_tool: add sha1 for file entry)
Change-Id: Iff379
tools: rockchip: resource_tool: independent on other files
Merge all codes into resource_tool.c
Sync from kernel-4.4: (0787850 rk: scripts/resource_tool: add sha1 for file entry)
Change-Id: Iff379458086f1623e7e5126dcb532b178d94c684 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| #
5e817a0e |
| 04-Nov-2019 |
Joseph Chen <chenjh@rock-chips.com> |
tools: rockchip: resource_tool: add sha1 for file entry
Change-Id: If7bd80d68019f6ea5ad737793ed996d47134b568 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
3aff587f |
| 04-Nov-2019 |
Joseph Chen <chenjh@rock-chips.com> |
tools: rockchip: remove useless checksum
Change-Id: I0b40f0b0677920abfe873fd6b8db23475f113a78 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
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 ...
|
| #
fbedfcfb |
| 21-Jan-2018 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
UPSTREAM: libfdt: migrate include/libfdt_env.h to a wrapper
libfdt_env.h is supposed to provide system-dependent defines.
scripts/dtc/libfdt/libfdt_env.h from upstream DTC is suitable for user-spac
UPSTREAM: libfdt: migrate include/libfdt_env.h to a wrapper
libfdt_env.h is supposed to provide system-dependent defines.
scripts/dtc/libfdt/libfdt_env.h from upstream DTC is suitable for user-space, so we should use this for USE_HOSTCC case.
For compiling U-Boot, we need to override such system-dependent defines, so use <linux/libfdt_env.h> imported from Linux.
<libfdt.h> selects a proper one. Maybe, we should split header inclusion completely, but I do not want too many patches at one.
I can rip off the include/libfdt_env.h from HOST_EXTRACFLAGS.
Change-Id: I6f5ea1067cd3ada1c8ece0c39b7bf43382c58ff6 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 ...
|
| #
23ba6841 |
| 26-Sep-2018 |
Joseph Chen <chenjh@rock-chips.com> |
tools: rockchip: support hostprogs for pack tools
- include: boot_merge/trust_merge/loaderimage/resource_tool/checksum; - porting from rkdevelop and base on commit 8fd1d8f (resource: get resource
tools: rockchip: support hostprogs for pack tools
- include: boot_merge/trust_merge/loaderimage/resource_tool/checksum; - porting from rkdevelop and base on commit 8fd1d8f (resource: get resource primary from boot partition); - clean generated binary file when execute clean command;
Change-Id: I41c1893c2da0a0f25c2d39dbbd933f89fbb04948 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| #
70b70db6 |
| 27-Nov-2017 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
UPSTREAM: libfdt: migrate fdt_wip.c to a wrapper of scripts/dtc/libfdt/fdt_wip.c
Now, lib/libfdt/fdt_wip.c is the same as scripts/dtc/libfdt/fdt_wip.c
Change the former to a wrapper of the latter.
UPSTREAM: libfdt: migrate fdt_wip.c to a wrapper of scripts/dtc/libfdt/fdt_wip.c
Now, lib/libfdt/fdt_wip.c is the same as scripts/dtc/libfdt/fdt_wip.c
Change the former to a wrapper of the latter.
Change-Id: Ifce4c63db38146297c14218ef94d226bf6e3bb27 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 26e961c8cfdff00c5c9389d301d9a2eb10eb844c)
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 ...
|
| #
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 ...
|
| #
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 ...
|
| #
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 ...
|
| #
6935aec0 |
| 03-Sep-2017 |
Bin Meng <bmeng.cn@gmail.com> |
Makefile: Suppress output of python libfdt build command
This should not be printed by default. Prefix it with $(Q).
Fixes ee95d10b: ("fdt: Build the new python libfdt module") Signed-off-by: Bin M
Makefile: Suppress output of python libfdt build command
This should not be printed by default. Prefix it with $(Q).
Fixes ee95d10b: ("fdt: Build the new python libfdt module") Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
show more ...
|
| #
a5ab5c77 |
| 03-Sep-2017 |
Bin Meng <bmeng.cn@gmail.com> |
Makefile: Quiesce libfdt build
Since commit 3809e302 "Makefile: honor PYTHON configuration properly", the build commands of libfdt are printed while previously were not.
This adds the missing '--qu
Makefile: Quiesce libfdt build
Since commit 3809e302 "Makefile: honor PYTHON configuration properly", the build commands of libfdt are printed while previously were not.
This adds the missing '--quiet' back.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
show more ...
|
| #
3809e302 |
| 14-Aug-2017 |
Clément Bœsch <u@pkh.me> |
Makefile: honor PYTHON configuration properly
On some systems `python` is `python3` (for instance, Archlinux). The `PYTHON` variable can be used to point to `python2` to have a successful build.
Th
Makefile: honor PYTHON configuration properly
On some systems `python` is `python3` (for instance, Archlinux). The `PYTHON` variable can be used to point to `python2` to have a successful build.
The use of `PYTHON` is currently limited in the Makefile and needs to be extended in other places:
First, pylibfdt is required to be a Python 2 binding (binman imports pylibfdt and is only compatible Python 2), so its setup.py needs to be called accordingly. An alternative would be to change the libfdt setup.py shebang to python2, but the binding is actually portable. Also, it would break on system where there is no such thing as `python2`.
Secondly, the libfdt import checks need to be done against Python 2 as well since the Python 2 compiled modules (in this case _libdft.so) can not be imported from Python 3.
Note on the libfdt imports: "@if ! PYTHONPATH=tools $(PYTHON) -c 'import libfdt'; then..." is probably simpler than the currently sub-optimal pipe. Reviewed-by: Jonathan Gray <jsg@jsg.id.au>
show more ...
|
| #
0649cd0d |
| 03-Aug-2017 |
Simon Glass <sjg@chromium.org> |
Move environment files from common/ to env/
About a quarter of the files in common/ relate to the environment. It seems better to put these into their own subdirectory and remove the prefix.
Signed
Move environment files from common/ to env/
About a quarter of the files in common/ relate to the environment. It seems better to put these into their own subdirectory and remove the prefix.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| #
0ddc9c17 |
| 26-Jul-2017 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-mips
|
| #
703ec9dd |
| 19-Jun-2017 |
Paul Burton <paul.burton@imgtec.com> |
MIPS: Stop building position independent code
U-Boot has up until now built with -fpic for the MIPS architecture, producing position independent code which uses indirection through a global offset t
MIPS: Stop building position independent code
U-Boot has up until now built with -fpic for the MIPS architecture, producing position independent code which uses indirection through a global offset table, making relocation fairly straightforward as it simply involves patching up GOT entries.
Using -fpic does however have some downsides. The biggest of these is that generated code is bloated in various ways. For example, function calls are indirected through the GOT & the t9 register:
8f998064 lw t9,-32668(gp) 0320f809 jalr t9
Without -fpic the call is simply:
0f803f01 jal be00fc04 <puts>
This is more compact & faster (due to the lack of the load & the dependency the jump has on its result). It is also easier to read & debug because the disassembly shows what function is being called, rather than just an offset from gp which would then have to be looked up in the ELF to discover the target function.
Another disadvantage of -fpic is that each function begins with a sequence to calculate the value of the gp register, for example:
3c1c0004 lui gp,0x4 279c3384 addiu gp,gp,13188 0399e021 addu gp,gp,t9
Without using -fpic this sequence no longer appears at the start of each function, reducing code size considerably.
This patch switches U-Boot from building with -fpic to building with -fno-pic, in order to gain the benefits described above. The cost of this is an extra step during the build process to extract relocation data from the ELF & write it into a new .rel section in a compact format, plus the added complexity of dealing with multiple types of relocation rather than the single type that applied to the GOT. The benefit is smaller, cleaner, more debuggable code. The relocate_code() function is reimplemented in C to handle the new relocation scheme, which also makes it easier to read & debug.
Taking maltael_defconfig as an example the size of u-boot.bin built using the Codescape MIPS 2016.05-06 toolchain (gcc 4.9.2, binutils 2.24.90) shrinks from 254KiB to 224KiB.
Signed-off-by: Paul Burton <paul.burton@imgtec.com> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Cc: u-boot@lists.denx.de Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Tested-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
show more ...
|
| #
47a52cd1 |
| 25-Jun-2017 |
Emmanuel Vadot <manu@bidouilliste.com> |
dtc: mkimage: Add the possibility to specify DTC
FreeBSD recently switch to it's BSDL dtc. While it support most of the features of the GPL one it still lacks the incbin directive. Add the possibili
dtc: mkimage: Add the possibility to specify DTC
FreeBSD recently switch to it's BSDL dtc. While it support most of the features of the GPL one it still lacks the incbin directive. Add the possibility to specify which dtc we want to use for compiling dts and generating fit image.
Signed-off-by: Emmanuel Vadot <manu@bidouilliste.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
dd31be21 |
| 04-Jun-2017 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-fdt
|
| #
727f1536 |
| 27-May-2017 |
Simon Glass <sjg@chromium.org> |
fdt: Stop building the old python libfdt module
This is no-longer needed, so stop building it.
Signed-off-by: Simon Glass <sjg@chromium.org>
|