| 726c9bee | 03-Oct-2017 |
André Draszik <adraszik@tycoint.com> |
UPSTREAM: tpm: fix reading of permanent flags
The offset of the permanent flags structure is in a different place in the response compared to what the code is doing, which gives us a completely usel
UPSTREAM: tpm: fix reading of permanent flags
The offset of the permanent flags structure is in a different place in the response compared to what the code is doing, which gives us a completely useless result.
Fix by replacing hand-crafted code with generic parser infrastructure.
Change-Id: I29e8e1ec7c8ae04d2bf9815290064a54a68c2b88 Signed-off-by: André Draszik <adraszik@tycoint.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit e8155dfe33eb2b3e538e8717d6578c1d08651454)
show more ...
|
| 51380c3b | 22-Sep-2017 |
zijun_hu <zijun_hu@htc.com> |
ARMv8: get new GD address from gd->new_gd directly
the new GD address is calculated via board data BD currently it require the new GD area locates below BD tightly, so a strict constraint is imposed
ARMv8: get new GD address from gd->new_gd directly
the new GD address is calculated via board data BD currently it require the new GD area locates below BD tightly, so a strict constraint is imposed on memory layout which maybe make special platform unpleasant.
fix it by getting new GD address from gd->new_gd directly.
Change-Id: I9fdfbbb13a7b0a572d7aa8394f754148c6285669 Signed-off-by: zijun_hu <zijun_hu@htc.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 01a835998935b78c31e80227358ac11212d60878)
show more ...
|
| 476f6045 | 15-Sep-2017 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: spl: dm: Make it possible for the SPL to pick its own DTB from a FIT
u-boot can be embedded within a FIT image with multiple DTBs. It then selects at run-time which one is best suited for
UPSTREAM: spl: dm: Make it possible for the SPL to pick its own DTB from a FIT
u-boot can be embedded within a FIT image with multiple DTBs. It then selects at run-time which one is best suited for the platform. Use the same principle here for the SPL: put the DTBs in a FIT image, compress it (LZO, GZIP, or no compression) and append it at the end of the SPL.
Change-Id: Ifebdd14bdf1abc923d228f9f3947e719c8645356 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> [trini: Move default y of SPL_MULTI_DTB_FIT_DYN_ALLOC to it being the default choice if SYS_MALLOC_F, drop spl.h include from lib/fdtdec.c it's unused.] Signed-off-by Tom Rini <trini@konsulko.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 2f57c95100f231de0f4e0301237cbe477e09084b)
show more ...
|
| 6f869ebd | 15-Sep-2017 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: fdtdec: sort include files
Sort include files in accordance to U-Boot coding style.
Change-Id: I3c7992edd31468f4105a95b86a6f05108e751e92 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.co
UPSTREAM: fdtdec: sort include files
Sort include files in accordance to U-Boot coding style.
Change-Id: I3c7992edd31468f4105a95b86a6f05108e751e92 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 035d64025c3e32a2f372981f86fc69255feeb2b2)
show more ...
|
| 205ac79e | 15-Sep-2017 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: lib: allow building lzo for the SPL
Change-Id: If6ccf36b13632f5450f700b8931975a4742a698e Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Rev
UPSTREAM: lib: allow building lzo for the SPL
Change-Id: If6ccf36b13632f5450f700b8931975a4742a698e 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 f52bdf4b678defea2341aa4b68736e6978180222)
show more ...
|
| 19471261 | 15-Sep-2017 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: gzip: add a function to parse the header
Change-Id: I9829ad25a955eb4764ae2e66f1c32751703d9ae6 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com
UPSTREAM: gzip: add a function to parse the header
Change-Id: I9829ad25a955eb4764ae2e66f1c32751703d9ae6 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 376ddf9d4a21d0af4c70e97c52e5f0854fb2d696)
show more ...
|
| df70772d | 15-Sep-2017 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: lzo: add a function to check the validity of the header
Change-Id: I8835606db327dc958e90ce717ae4fe85439b46e3 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <tri
UPSTREAM: lzo: add a function to check the validity of the header
Change-Id: I8835606db327dc958e90ce717ae4fe85439b46e3 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 d753f942ec12e6b5b2db73698aa6c55588053d3a)
show more ...
|
| 2bbcffb1 | 15-Sep-2017 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: dts: renamed FIT_EMBED to MULTI_DTB_FIT and moved it to the dts Kconfig
CONFIG_FIT_EMBED might be confused with CONFIG_OF_EMBED, rename it MULTI_DTB_FIT as it is able to get a DTB from a F
UPSTREAM: dts: renamed FIT_EMBED to MULTI_DTB_FIT and moved it to the dts Kconfig
CONFIG_FIT_EMBED might be confused with CONFIG_OF_EMBED, rename it MULTI_DTB_FIT as it is able to get a DTB from a FIT image containing multiple DTBs. Also move the option to the Kconfig dedicated to the DTS options and create a README for this feature.
Change-Id: Ide55c474339db3ccd5e20499c54c8bb41fe3a2c9 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 11955590a284ecb75892aad5f1174ca1b94a709b)
show more ...
|
| 92193ef7 | 03-Sep-2017 |
Marek Behún <marek.behun@nic.cz> |
UPSTREAM: lib: Add CRC32-C
This is needed for BTRFS.
Change-Id: I7415e99a6f06aef89f3520ebe9a9ba92a9189059 Signed-off-by: Marek Behun <marek.behun@nic.cz> Signed-off-by: Kever Yang <kever.yang@rock-
UPSTREAM: lib: Add CRC32-C
This is needed for BTRFS.
Change-Id: I7415e99a6f06aef89f3520ebe9a9ba92a9189059 Signed-off-by: Marek Behun <marek.behun@nic.cz> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 85d8bf57131a21424b50e50884372e813345f09a)
show more ...
|
| d8021238 | 04-Sep-2017 |
Pantelis Antoniou <pantelis.antoniou@konsulko.com> |
UPSTREAM: fdt: Allow stacked overlays phandle references
This patch enables an overlay to refer to a previous overlay's labels by performing a merge of symbol information at application time.
In a
UPSTREAM: fdt: Allow stacked overlays phandle references
This patch enables an overlay to refer to a previous overlay's labels by performing a merge of symbol information at application time.
In a nutshell it allows an overlay to refer to a symbol that a previous overlay has defined. It requires both the base and all the overlays to be compiled with the -@ command line switch so that symbol information is included.
base.dts --------
/dts-v1/; / { foo: foonode { foo-property; }; };
$ dtc -@ -I dts -O dtb -o base.dtb base.dts
bar.dts -------
/dts-v1/; /plugin/; / { fragment@1 { target = <&foo>; __overlay__ { overlay-1-property; bar: barnode { bar-property; }; }; }; };
$ dtc -@ -I dts -O dtb -o bar.dtb bar.dts
baz.dts -------
/dts-v1/; /plugin/; / { fragment@1 { target = <&bar>; __overlay__ { overlay-2-property; baz: baznode { baz-property; }; }; }; };
$ dtc -@ -I dts -O dtb -o baz.dtb baz.dts
Applying the overlays:
$ fdtoverlay -i base.dtb -o target.dtb bar.dtb baz.dtb
Dumping:
$ fdtdump target.dtb / { foonode { overlay-1-property; foo-property; linux,phandle = <0x00000001>; phandle = <0x00000001>; barnode { overlay-2-property; phandle = <0x00000002>; linux,phandle = <0x00000002>; bar-property; baznode { phandle = <0x00000003>; linux,phandle = <0x00000003>; baz-property; }; }; }; __symbols__ { baz = "/foonode/barnode/baznode"; bar = "/foonode/barnode"; foo = "/foonode"; }; };
Change-Id: If72870ec3e9260ccd4fbcbaff27ba035d001bd00 Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit f00c36a01e774dea1ed2a1171da9e372610ee8eb)
show more ...
|
| 174235d4 | 30-Aug-2017 |
Tien Fong Chee <tien.fong.chee@intel.com> |
UPSTREAM: libfdt: Initialize the stack variable
Report Coverity log: The code uses a variable that has not been initialized, leading to unpredictable or unintended results.
Change-Id: I488a9d183590
UPSTREAM: libfdt: Initialize the stack variable
Report Coverity log: The code uses a variable that has not been initialized, leading to unpredictable or unintended results.
Change-Id: I488a9d183590a2dc1ef049351d0c71a4eded2299 Reported-by: Coverity (CID: 60519) Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 18c991ca2bd72c30b7fb578cee8b5c7c835d383d)
show more ...
|
| 48d1b0a5 | 11-Sep-2017 |
Rob Clark <robdclark@gmail.com> |
UPSTREAM: lib: strto: fix incorrect handling of specified base
The strto functions should honor the specified base (if non-zero) rather than permitting a hex or octal string when the user wanted (fo
UPSTREAM: lib: strto: fix incorrect handling of specified base
The strto functions should honor the specified base (if non-zero) rather than permitting a hex or octal string when the user wanted (for example) base 10.
This has been fixed somewhere along the way in the upstream linux kernel src tree, at some point after these was copied in to u-boot. And also in a way that duplicates less code. So port _parse_integer_fixup_radix() to u-boot.
Change-Id: I4e2383c6d8ac4666e7e4e40b15f7577522bc9700 Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 2e794614838292499910060509d3c4a7aaed986a)
show more ...
|
| aa5728ff | 09-Sep-2017 |
Rob Clark <robdclark@gmail.com> |
UPSTREAM: vsprintf.c: add GUID printing
This works (roughly) the same way as linux's, but we currently always print lower-case (ie. we just keep %pUB and %pUL for compat with linux), mostly just bec
UPSTREAM: vsprintf.c: add GUID printing
This works (roughly) the same way as linux's, but we currently always print lower-case (ie. we just keep %pUB and %pUL for compat with linux), mostly just because that is what uuid_bin_to_str() supports.
%pUb: 01020304-0506-0708-090a-0b0c0d0e0f10 %pUl: 04030201-0605-0807-090a-0b0c0d0e0f10
It will be used by a later efi_loader paths for efi variables and for device-path-to-text protocol, and also quite useful for debug prints of protocol GUIDs.
Change-Id: I6b0920ae6fe99ac0638c9c3c8eed6ea3f964d2b5 Signed-off-by: Rob Clark <robdclark@gmail.com> Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 22ada0c8e6d50281af72176eecdfc356c794639c)
show more ...
|
| 5ec68503 | 09-Sep-2017 |
Rob Clark <robdclark@gmail.com> |
UPSTREAM: vsprintf.c: add UTF-16 string (%ls) support
This is convenient for efi_loader which deals a lot with UTF-16. Only enabled with CC_SHORT_WCHAR, leaving room to add a UTF-32 version when CC
UPSTREAM: vsprintf.c: add UTF-16 string (%ls) support
This is convenient for efi_loader which deals a lot with UTF-16. Only enabled with CC_SHORT_WCHAR, leaving room to add a UTF-32 version when CC_SHORT_WCHAR is not enabled.
Change-Id: I3c6cd45db5f29157760f99bc5956b482ff96fc6c Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 274325c50951dd16ad2a6f45e79dc062ad47011b)
show more ...
|
| 407d40f4 | 09-Sep-2017 |
Rob Clark <robdclark@gmail.com> |
UPSTREAM: lib: add some utf16 handling helpers
We'll eventually want these in a few places in efi_loader, and also vsprintf.
Change-Id: I6c04463ad364e46730fcc84b86d38400f433e8de Signed-off-by: Rob
UPSTREAM: lib: add some utf16 handling helpers
We'll eventually want these in a few places in efi_loader, and also vsprintf.
Change-Id: I6c04463ad364e46730fcc84b86d38400f433e8de Signed-off-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 78178bb0c9dfe2a91a636a411291d8bab50e8a7d)
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 ...
|
| b81c4739 | 15-Aug-2017 |
York Sun <york.sun@nxp.com> |
UPSTREAM: spl: fit: Eanble GZIP support for image decompression
Add Kconfig option SPL_GZIP and SPL_ZLIB to enable gunzip support for SPL boot, eg. falcon boot compressed kernel image.
Change-Id: I
UPSTREAM: spl: fit: Eanble GZIP support for image decompression
Add Kconfig option SPL_GZIP and SPL_ZLIB to enable gunzip support for SPL boot, eg. falcon boot compressed kernel image.
Change-Id: I68f64aca8ecad26478f2ce25676253cee7e57d30 Signed-off-by: York Sun <york.sun@nxp.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 7264f2928b46c5f5685e39ed607652c8991e47b6)
show more ...
|
| df3e17bd | 07-Dec-2017 |
Hisping Lin <hisping.lin@rock-chips.com> |
lib: optee_client: Fix compile error.
this bug make compile error when we compile all code in android.
Change-Id: Id9b8673576bee13c4df0990bd068548fa11458bf Signed-off-by: Hisping Lin <hisping.lin@r
lib: optee_client: Fix compile error.
this bug make compile error when we compile all code in android.
Change-Id: Id9b8673576bee13c4df0990bd068548fa11458bf Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
show more ...
|
| 95a51673 | 20-Nov-2017 |
Cody Xie <cody.xie@rock-chips.com> |
libavb: Fix compile warning.
Change-Id: I6a36f02348e61c166334221edc157ee8a261253a Signed-off-by: Cody Xie <cody.xie@rock-chips.com> (cherry picked from commit a0e0ea07af830fdf873fb874a7e76264597bca3
libavb: Fix compile warning.
Change-Id: I6a36f02348e61c166334221edc157ee8a261253a Signed-off-by: Cody Xie <cody.xie@rock-chips.com> (cherry picked from commit a0e0ea07af830fdf873fb874a7e76264597bca3b)
show more ...
|
| 4aa61755 | 07-Nov-2017 |
Andy Ye <Andy.Ye@rock-chips.com> |
lib: optee_client: add attestation protocol support using optee
support attestation commands: at-attest-dh,at-attest-uuid,at-get-ca-request,at-set-ca-request
Change-Id: I3fe94befa57a131e89dbe136c06
lib: optee_client: add attestation protocol support using optee
support attestation commands: at-attest-dh,at-attest-uuid,at-get-ca-request,at-set-ca-request
Change-Id: I3fe94befa57a131e89dbe136c065a948b1631756 Signed-off-by: Andy Ye <andy.ye@rock-chips.com>
show more ...
|
| ceecd5fe | 23-Oct-2017 |
Jason Zhu <jason.zhu@rock-chips.com> |
lib: avb: support the atx and public_key verify
1.support the permanent attribute verify 2.support the PRK, PIK, PSK certificate verify and then get the psk public_key, compare it with public_key in
lib: avb: support the atx and public_key verify
1.support the permanent attribute verify 2.support the PRK, PIK, PSK certificate verify and then get the psk public_key, compare it with public_key in vbmeta.
If the function is required, please open the macro AVB_VBMETA_PUBLIC_KEY_VALIDATE.
Change-Id: Ifeab776c76f97fadd980671481ce27d203516673 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
show more ...
|
| fd717dce | 08-Nov-2017 |
Jason Zhu <jason.zhu@rock-chips.com> |
lib: avb: support write efuse
Write the permanent attributes hash to efuse.
Change-Id: Id11586a66f055e7eb1a66997814f351509d49b21 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com> |
| e291f58f | 15-Nov-2017 |
Jason Zhu <jason.zhu@rock-chips.com> |
lib: avb: modify load boot partition size
Load the boot image real size other than the boot partition size. If not, the uboot can not malloc a big buffer for the all boot partition.
Change-Id: Ifc8
lib: avb: modify load boot partition size
Load the boot image real size other than the boot partition size. If not, the uboot can not malloc a big buffer for the all boot partition.
Change-Id: Ifc8d7cc1f214b94f6018c68cb03e8e9ce89781de Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
show more ...
|
| 52b8c717 | 02-Nov-2017 |
Jason Zhu <jason.zhu@rock-chips.com> |
lib: avb: close optee client
Change-Id: Iee7c991f7c06acbb064e016e11338cbf846be20d Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com> |
| 468df3b2 | 03-Nov-2017 |
Hisping Lin <hisping.lin@rock-chips.com> |
lib: optee_client: add read vboot key flag func
Change-Id: Id0405cc2b695f00b5d7586d01bd0b66279b24430 Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com> |