| #
b86dc419 |
| 05-Dec-2017 |
Peng Fan <peng.fan@nxp.com> |
UPSTREAM: SPL: Add FIT data-position property support
For external data, FIT has a optional property "data-position" which can set the external data to a fixed offset to FIT beginning. Add the suppo
UPSTREAM: SPL: Add FIT data-position property support
For external data, FIT has a optional property "data-position" which can set the external data to a fixed offset to FIT beginning. Add the support for this property in SPL FIT.
Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tomas Melin <tomas.melin@vaisala.com> Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com> Cc: "Andrew F. Davis" <afd@ti.com> Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: "tomas.melin@vaisala.com" <tomas.melin@vaisala.com> Cc: Kever Yang <kever.yang@rock-chips.com> Cc: Andre Przywara <andre.przywara@arm.com> Cc: York Sun <york.sun@nxp.com> Cc: Lokesh Vutla <lokeshvutla@ti.com> Cc: "Cooper Jr., Franklin" <fcooper@ti.com> Cc: George McCollister <george.mccollister@gmail.com> Cc: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Cc: Jean-Jacques Hiblot <jjhiblot@ti.com> Cc: Rick Altherr <raltherr@google.com> Cc: Tom Rini <trini@konsulko.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: York Sun <york.sun@nxp.com> (cherry picked from commit a1be94b65410c7ebba5e7695478b6623579b410c) Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I1cdcfe0358e5a39fed3dfcf0554a7ba0e16729b8
Change-Id: I44c3454addd85d70e6fba8e26b66a0278c5c1081
show more ...
|
| #
1a4f6af8 |
| 02-Mar-2020 |
Joseph Chen <chenjh@rock-chips.com> |
Merge branch 'next-dev' into thunder-boot
|
| #
ac459efd |
| 07-Feb-2020 |
Joseph Chen <chenjh@rock-chips.com> |
common: fit: add entry and load address set api
Add FIT_MULTI_PROP definition.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I5e98601799de88843f8110f118640339079905a5
|
| #
6527836d |
| 17-Dec-2019 |
Joseph Chen <chenjh@rock-chips.com> |
common: android: rename and export load_android_image()
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I7398b83bff0fd0dedd77834ee2a8ff14f2ae11e0
|
| #
e1b9a842 |
| 26-Nov-2019 |
Joseph Chen <chenjh@rock-chips.com> |
common: android: support decompress kernel for AVB bootflow
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: If253d573384d697338f92b591b28efde9dab48bf
|
| #
3f7fb06b |
| 26-Nov-2019 |
Joseph Chen <chenjh@rock-chips.com> |
common: android: make image separate load mandory
Since this feature is stable and helpful to save boot time, let't make it mandory.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I3
common: android: make image separate load mandory
Since this feature is stable and helpful to save boot time, let't make it mandory.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I36f244c6d319d6b54ed3d54730352c8d5b4cc6bd
show more ...
|
| #
b8dc613c |
| 19-Nov-2019 |
Joseph Chen <chenjh@rock-chips.com> |
Merge branch 'next-dev' into thunder-boot
|
| #
c092b139 |
| 12-Nov-2019 |
Joseph Chen <chenjh@rock-chips.com> |
common: image: provide BCB offset according to android os version
Rockchip platforms defines BCB message at the 16KB offset of misc partition while the Google defines it at 0x0 offset.
From Android
common: image: provide BCB offset according to android os version
Rockchip platforms defines BCB message at the 16KB offset of misc partition while the Google defines it at 0x0 offset.
From Android-Q, the 0x0 offset is mandary on Google VTS.
Change-Id: Iac36d421ed605684353c30bfe0e9982bdd5de065 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| #
98c12997 |
| 18-Jul-2019 |
Joseph Chen <chenjh@rock-chips.com> |
common: android: add android_image_memcpy_separate() interface
This is a encapsulation of android_image_load_separate(). It is used for AVB boot/recovery.img which has been loaded to ram by AVB boot
common: android: add android_image_memcpy_separate() interface
This is a encapsulation of android_image_load_separate(). It is used for AVB boot/recovery.img which has been loaded to ram by AVB bootflow, and we memcpy kernel/ramdisk/dtb to where we expect.
Change-Id: Iea4ea3404b84e9d3c091954ab27fb8c9d2ad84bc Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| #
503a892f |
| 14-May-2019 |
Joseph Chen <chenjh@rock-chips.com> |
common: android: avb support load android image separate
Skip fdt and ramdisk relocation to save boot time.
Change-Id: I56fd2fca97fa7795024aa542f0a45d0512be01d4 Signed-off-by: Joseph Chen <chenjh@r
common: android: avb support load android image separate
Skip fdt and ramdisk relocation to save boot time.
Change-Id: I56fd2fca97fa7795024aa542f0a45d0512be01d4 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| #
6e15146e |
| 14-Mar-2019 |
Joseph Chen <chenjh@rock-chips.com> |
lib: sysmem: refactor code
- import memblk id to manage memory blocks; - change "sysmem_property" to generic "memblock"; - use alloc instead of reserve for all memory blocks; - clean up and fix some
lib: sysmem: refactor code
- import memblk id to manage memory blocks; - change "sysmem_property" to generic "memblock"; - use alloc instead of reserve for all memory blocks; - clean up and fix some logic; - add U-Boot cmd for sysmem;
Change-Id: I614223ce3bf97a7b3566412a9d1864fb30b68fd8 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| #
a384e3f1 |
| 13-Jan-2019 |
Joseph Chen <chenjh@rock-chips.com> |
common: image-fdt: add boot_fdt_add_sysmem_rsv_regions()
It reserves fdt reserved memory for sysmem.
Change-Id: I7ce1be9bd25a3609bc6dabdc265addbd2571076c Signed-off-by: Joseph Chen <chenjh@rock-chi
common: image-fdt: add boot_fdt_add_sysmem_rsv_regions()
It reserves fdt reserved memory for sysmem.
Change-Id: I7ce1be9bd25a3609bc6dabdc265addbd2571076c Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| #
0e00a84c |
| 04-Mar-2018 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>
Thomas reported U-Boot failed to build host tools if libfdt-devel package is installed because tools include libfdt header
UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>
Thomas reported U-Boot failed to build host tools if libfdt-devel package is installed because tools include libfdt headers from /usr/include/ instead of using internal ones.
This commit moves the header code: include/libfdt.h -> include/linux/libfdt.h include/libfdt_env.h -> include/linux/libfdt_env.h
and replaces include directives: #include <libfdt.h> -> #include <linux/libfdt.h> #include <libfdt_env.h> -> #include <linux/libfdt_env.h>
Change-Id: I6c0f7e50e8b571106627f25ddac008a62bd2994e Reported-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| #
008aee87 |
| 12-Jun-2018 |
Andy Yan <andy.yan@rock-chips.com> |
boot_android: add runtime compatible for un/compressed kernel image
This patch add auto parse the compress format of kernel image. Then decompress the compressed kernel image for arm64, as for arm32
boot_android: add runtime compatible for un/compressed kernel image
This patch add auto parse the compress format of kernel image. Then decompress the compressed kernel image for arm64, as for arm32 zImage, we only need to load it to a higher memory, then the kernel will handle the decompress itself.
Test on RK3308 AARCH64 mode (Cortex A35 816 MHZ) boot with eMMC:
------------------------------------------------------------------ Format | Size(Byte) | Ratio | Decomp time(ms) | Boot time(ms) | ------------------------------------------------------------------- Image | 7720968 | | | 488 | ------------------------------------------------------------------- Image.lz4 | 4119448 | 53% | 59 | 455 | ------------------------------------------------------------------- Image.lzo | 3858322 | 49% | 141 | 536 | ------------------------------------------------------------------- Image.gz | 3529108 | 45% | 222 | 609 | ------------------------------------------------------------------- Image.bz2 | 3295914 | 42% | 2940 | | ------------------------------------------------------------------- Image.lzma| 2683750 | 34% | | | -------------------------------------------------------------------
Note: the boot time is counted from first ddr init log to first Kernel log.
Change-Id: I73b12ec944fbc8238b0e061a37e2f31aa3093231 Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
show more ...
|
| #
820a0a12 |
| 18-Dec-2017 |
Kever Yang <kever.yang@rock-chips.com> |
UPSTREAM: image: add os type for OP-TEE
OP-TEE is an open source trust OS maintained here: https://github.com/OP-TEE/optee_os
Series-changes: 2 - Add new image type like ATF
Change-Id: Idaae12027b
UPSTREAM: image: add os type for OP-TEE
OP-TEE is an open source trust OS maintained here: https://github.com/OP-TEE/optee_os
Series-changes: 2 - Add new image type like ATF
Change-Id: Idaae12027be1f8a3252d2f9ad2ee689b6dfcb3ad Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 8f7658998ba3ba4338344cee1d235bf090a1dd94)
show more ...
|
| #
4233e0b1 |
| 13-Sep-2017 |
Philipp Tomsich <philipp.tomsich@theobroma-systems.com> |
UPSTREAM: image: add IH_OS_ARM_TRUSTED_FIRMWARE for ARM Trusted Firmware
To boot on ARMv8 systems with ARM Trusted Firmware, we need to assemble an ATF-specific parameter structure and also provide
UPSTREAM: image: add IH_OS_ARM_TRUSTED_FIRMWARE for ARM Trusted Firmware
To boot on ARMv8 systems with ARM Trusted Firmware, we need to assemble an ATF-specific parameter structure and also provide the address of the images started by ATF (e.g. BL3-3, which may be the full U-Boot).
To allow us to identify an ARM Trusted Firmware contained in a FIT image, this adds the necessary definitions.
Change-Id: If9f54a8391bba18c5aa220aea09db53271ff4517 Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 4914af1286c4a48cd0ae98cf6adea3569111413b)
show more ...
|
| #
f1817ab2 |
| 10-Oct-2017 |
Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> |
UPSTREAM: common: Remove genimg_get_image()
Removal of the legacy DataFlash code turned genimg_get_image() into a no-op. Drop all calls to it and the function itself.
Change-Id: I79fc0cd75fb4ea7bdf
UPSTREAM: common: Remove genimg_get_image()
Removal of the legacy DataFlash code turned genimg_get_image() into a no-op. Drop all calls to it and the function itself.
Change-Id: I79fc0cd75fb4ea7bdfd0be8486d8be4b72cd773f Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 137aefba0319eaa69de0707dce01d62339158d4d)
show more ...
|
| #
0079efa1 |
| 15-Sep-2017 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: fit: If no matching config is found in fit_find_config_node(), use the default one
If board_fit_config_name_match() doesn't match any configuration node, then use the default one (if provi
UPSTREAM: fit: If no matching config is found in fit_find_config_node(), use the default one
If board_fit_config_name_match() doesn't match any configuration node, then use the default one (if provided).
Change-Id: Ieb93f146a54cb6d75d8f6b395078c315a4fac134 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 02035d0086b3f9114463a9b9df38a5618ffe8a04)
show more ...
|
| #
988a4042 |
| 04-Sep-2017 |
Pantelis Antoniou <pantelis.antoniou@konsulko.com> |
UPSTREAM: fit: Introduce methods for applying overlays on fit-load
Introduce an overlay based method for constructing a base DT blob to pass to the kernel.
It is based on a specific method now to g
UPSTREAM: fit: Introduce methods for applying overlays on fit-load
Introduce an overlay based method for constructing a base DT blob to pass to the kernel.
It is based on a specific method now to get the FDT from a FIT image named boot_get_fdt_fit().
Change-Id: I98e0526edd594e63b1c29bdd916e4c66774f4337 Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 169043d826e6b0db3c67a60acbedfc72c43aae5d)
show more ...
|
| #
ee0f94fe |
| 31-Jul-2017 |
Andrew F. Davis <afd@ti.com> |
image: Add TI PMMC image type
Add a new image type representing TI Power Management Micro-Controller (PMMC) Firmware image type.
Change-Id: I28a8132dfd5549ffde3d81e6da7399c3768ac1e7 Signed-off-by:
image: Add TI PMMC image type
Add a new image type representing TI Power Management Micro-Controller (PMMC) Firmware image type.
Change-Id: I28a8132dfd5549ffde3d81e6da7399c3768ac1e7 Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 6442c9643e82966ae8fff391bab3fcc763662564)
show more ...
|
| #
270f9eac |
| 07-Dec-2017 |
Kever Yang <kever.yang@rock-chips.com> |
image-android: add a api to get fdt from boot img
Get the dtb file from boot img second position or inside resource for Rockchip image.
Change-Id: I843366b32f79ea8fb320d695d79420607a496d68 Signed-o
image-android: add a api to get fdt from boot img
Get the dtb file from boot img second position or inside resource for Rockchip image.
Change-Id: I843366b32f79ea8fb320d695d79420607a496d68 Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| #
76e2a5a6 |
| 10-Jan-2017 |
Alex Deymo <deymo@google.com> |
Move Android Image loading logic to image-android.c
This patch moves the Android Image loading logic from the load_android command to a new android_load_image() function in image-android.c so it can
Move Android Image loading logic to image-android.c
This patch moves the Android Image loading logic from the load_android command to a new android_load_image() function in image-android.c so it can be re-used from other commands.
Bug: 32707546 Test: Booted the rpi3 with this patch. Signed-off-by: Alex Deymo <deymo@google.com> Change-Id: I12d206141ead1b94ebbcc90ee05512a276c7595a
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 ...
|
| #
723806cc |
| 03-Aug-2017 |
Simon Glass <sjg@chromium.org> |
env: Rename some other getenv()-related functions
We are now using an env_ prefix for environment functions. Rename these other functions as well, for consistency:
getenv_vlan() getenv_bootm_
env: Rename some other getenv()-related functions
We are now using an env_ prefix for environment functions. Rename these other functions as well, for consistency:
getenv_vlan() getenv_bootm_size() getenv_bootm_low() getenv_bootm_mapsize() env_get_default()
Suggested-by: Wolfgang Denk <wd@denx.de> Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
00caae6d |
| 03-Aug-2017 |
Simon Glass <sjg@chromium.org> |
env: Rename getenv/_f() to env_get()
We are now using an env_ prefix for environment functions. Rename these two functions for consistency. Also add function comments in common.h.
Quite a few place
env: Rename getenv/_f() to env_get()
We are now using an env_ prefix for environment functions. Rename these two functions for consistency. Also add function comments in common.h.
Quite a few places use getenv() in a condition context, provoking a warning from checkpatch. These are fixed up in this patch also.
Suggested-by: Wolfgang Denk <wd@denx.de> Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|