06499e6b | 08-Mar-2023 |
Eddie James <eajames@linux.ibm.com> |
bootm: Support boot measurement
Add a configuration option to measure the boot through the bootm function. Add the measurement state to the booti and bootz paths as well.
Signed-off-by: Eddie James
bootm: Support boot measurement
Add a configuration option to measure the boot through the bootm function. Add the measurement state to the booti and bootz paths as well.
Signed-off-by: Eddie James <eajames@linux.ibm.com> Reviewed-by: Simon Glass <sjg@chromium.org> Link: https://lore.kernel.org/r/20230308212537.1725343-5-eajames@linux.ibm.com Signed-off-by: Joel Stanley <joel@jms.id.au>
show more ...
|
d7869cec | 25-Jan-2023 |
Eddie James <eajames@linux.ibm.com> |
tpm: Pull in upstream changes
Get the TPM driver into the same state as upstream as of v2023.04-rc3.
FILES="cmd/tpm-user-utils.h include/tpm-common.h include/tpm-v1.h \ include/tpm-v2.h include/
tpm: Pull in upstream changes
Get the TPM driver into the same state as upstream as of v2023.04-rc3.
FILES="cmd/tpm-user-utils.h include/tpm-common.h include/tpm-v1.h \ include/tpm-v2.h include/tpm_api.h cmd/tpm-common.c cmd/tpm-v1.c \ cmd/tpm-v2.c drivers/tpm/tpm-uclass.c lib/tpm-v1.c lib/tpm-v2.c \ lib/tpm_api.c"
git checkout v2023.04-rc3 -- $FILES
sed -i 's/struct cmd_tbl/cmd_tbl_t/' $FILES sed -i 's/env.h/environment.h/' $FILES
The tpm-uclass.c had tpm_uclass_post_probe and other references to UCLASS_RNG removed, as that class does not exist in v2019.04.
Signed-off-by: Eddie James <eajames@linux.ibm.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
show more ...
|
223bb744 | 02-Aug-2021 |
Pali Rohár <pali@kernel.org> |
Remove including timestamp.h in version.h
Header file version.h does not use anything from timestamp.h. Including of timestamp.h has side effect which cause recompiling object file at every make run
Remove including timestamp.h in version.h
Header file version.h does not use anything from timestamp.h. Including of timestamp.h has side effect which cause recompiling object file at every make run because timestamp.h changes at every run.
So remove timestamp.h from version.h and include timestamp.h in files which needs it.
This change reduce recompilation time of final U-Boot binary when U-Boot source files were not changed as less source files needs to be recompiled.
Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> [trini: Add in lib/acpi/acpi_table.c and test/dm/acpi.c, rework a few others] Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
show more ...
|
f486b9d0 | 02-Aug-2021 |
Pali Rohár <pali@kernel.org> |
version: Move version_string[] from version.h to version_string.h
More C files do not use compile time timestamp macros and do not have to be recompiled every time when SOURCE_DATE_EPOCH changes.
T
version: Move version_string[] from version.h to version_string.h
More C files do not use compile time timestamp macros and do not have to be recompiled every time when SOURCE_DATE_EPOCH changes.
This patch moves version_string[] from version.h to version_string.h and updates other C files which only needs version_string[] string to include version_string.h instead of version.h. After applying this patch these files are not recompiled every time when SOURCE_DATE_EPOCH changes.
Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
show more ...
|
0e24006f | 03-Aug-2022 |
Joel Stanley <joel@jms.id.au> |
aspeed: Remove remaining "Aspeed secure boot" code
This was mostly removed from the SDK in b88f3710ee38 ("arm: aspeed: ast2600: Remove ASPEED_LOADERS") when the "AST2600 proprietary CoT" was abandon
aspeed: Remove remaining "Aspeed secure boot" code
This was mostly removed from the SDK in b88f3710ee38 ("arm: aspeed: ast2600: Remove ASPEED_LOADERS") when the "AST2600 proprietary CoT" was abandoned.
Signed-off-by: Joel Stanley <joel@jms.id.au>
show more ...
|
1cf1c480 | 14-Jul-2022 |
Joel Stanley <joel@jms.id.au> |
cmd/otp: Fix struct storage type
Signed-off-by: Joel Stanley <joel@jms.id.au> |
591e1cf0 | 02-May-2023 |
Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com> |
spi: Add usage example for write protect APIs
Implement the demostration scenario for command filter and write address filter APIs.
Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com> Chang
spi: Add usage example for write protect APIs
Implement the demostration scenario for command filter and write address filter APIs.
Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com> Change-Id: Ia1e67aa222925a711e98148ccbf37741d7ae7812
show more ...
|
7ad6685b | 17-Feb-2023 |
Jammy Huang <jammy_huang@aspeedtech.com> |
cmd: aspeed: dptest: Modify SSC policy
1. Use 0 to switch SSC on/off 2. SSC on only work for pattern D10.2 3. SSC_SHIFT only work if SSC On
Version 0.3.3, 2023.02.17
Signed-off-by: Jammy Huang <ja
cmd: aspeed: dptest: Modify SSC policy
1. Use 0 to switch SSC on/off 2. SSC on only work for pattern D10.2 3. SSC_SHIFT only work if SSC On
Version 0.3.3, 2023.02.17
Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com> Change-Id: I1097f5304f6a9d1065d90dcac49828f81da7165a
show more ...
|
e00b7fc7 | 28-Feb-2023 |
Neal Liu <neal_liu@aspeedtech.com> |
otp: print actual value for programming data region
Print actual value for data region, could be 0 or 1.
Signed-off-by: Neal Liu <neal_liu@aspeedtech.com> Change-Id: I4ecdf6fde2e20403ba5d8de39d4fb0
otp: print actual value for programming data region
Print actual value for data region, could be 0 or 1.
Signed-off-by: Neal Liu <neal_liu@aspeedtech.com> Change-Id: I4ecdf6fde2e20403ba5d8de39d4fb0fb4da6ac2f
show more ...
|
7de3deea | 17-Feb-2023 |
Dylan Hung <dylan_hung@aspeedtech.com> |
cmd: nettest: disable ABR WDT
Disable ABR WDT in mactest to prevent WDT timeout reset happens during mactest.
Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com> Change-Id: Iff88c66457d9cc8a7ba44
cmd: nettest: disable ABR WDT
Disable ABR WDT in mactest to prevent WDT timeout reset happens during mactest.
Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com> Change-Id: Iff88c66457d9cc8a7ba44fe079d8f2d0f129bcb4
show more ...
|
9bc08ab7 | 04-Jan-2023 |
Jammy Huang <jammy_huang@aspeedtech.com> |
cmd: aspeed: dptest: Make D10.2 public
Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com> Change-Id: I88cd1da88886b5a1d2a93b582a1a22d033cb5584 |
3a36919f | 04-Jan-2023 |
Jammy Huang <jammy_huang@aspeedtech.com> |
cmd: aspeed: dptest: Add ctrl for ssc shift
6: shift 2, -80ppm 7: shift 3, -120ppm
default is shift 1, -40ppm
Change-Id: I5ac157d3cc19c1eeed48a8b4900eec9d2954c3ae Signed-off-by: Jammy Huang <jammy
cmd: aspeed: dptest: Add ctrl for ssc shift
6: shift 2, -80ppm 7: shift 3, -120ppm
default is shift 1, -40ppm
Change-Id: I5ac157d3cc19c1eeed48a8b4900eec9d2954c3ae Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
show more ...
|
02fa7476 | 04-Jan-2023 |
Jammy Huang <jammy_huang@aspeedtech.com> |
cmd: aspeed: dptest: Add log messages
Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com> Change-Id: I9400ce570e77ae4cb8f686d40577c319e9790909 |
9e1f8142 | 20-Nov-2022 |
Neal Liu <neal_liu@aspeedtech.com> |
otp: remove bit-field declaration
Fix integer comparison wrong problem by removing bit-field declaration.
Signed-off-by: Neal Liu <neal_liu@aspeedtech.com> Change-Id: Ia2465cf75025b9d6f1e606d5d5079
otp: remove bit-field declaration
Fix integer comparison wrong problem by removing bit-field declaration.
Signed-off-by: Neal Liu <neal_liu@aspeedtech.com> Change-Id: Ia2465cf75025b9d6f1e606d5d5079b309627b16a
show more ...
|
fd3e7122 | 12-Sep-2022 |
Neal Liu <neal_liu@aspeedtech.com> |
otp: write inversed compared data in OTP reg
The data used for comparison must be bit-wise inversed.
Signed-off-by: Neal Liu <neal_liu@aspeedtech.com> Change-Id: Ib7d1de6d50e58b9e7ce20e1034c8031b94
otp: write inversed compared data in OTP reg
The data used for comparison must be bit-wise inversed.
Signed-off-by: Neal Liu <neal_liu@aspeedtech.com> Change-Id: Ib7d1de6d50e58b9e7ce20e1034c8031b94504274
show more ...
|
bf54cdd1 | 09-Aug-2022 |
Jammy Huang <jammy_huang@aspeedtech.com> |
cmd/otp: Fix error 'maybe-uninitialized'
The error is as below: error: 'key_info.information' may be used uninitialized in this function [-Werror=maybe-uninitialized] 1395 | printf("%s\n", key_in
cmd/otp: Fix error 'maybe-uninitialized'
The error is as below: error: 'key_info.information' may be used uninitialized in this function [-Werror=maybe-uninitialized] 1395 | printf("%s\n", key_info.information);
Change-Id: Id76623518cc5e9bd1c73ab04899d55c19dba8923 Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
show more ...
|
22fda007 | 14-Jul-2022 |
Joel Stanley <joel@jms.id.au> |
cmd/otp: Reduce size of otpkey
Don't store more information than is used. Saves 3KB.
Function old new delta _otp_print_key
cmd/otp: Reduce size of otpkey
Don't store more information than is used. Saves 3KB.
Function old new delta _otp_print_key 540 580 +40 otp_verify_boot_image 1276 1268 -8 a2_key_type 640 40 -600 a1_key_type 640 40 -600 a3_key_type 1024 64 -960 a0_key_type 1024 64 -960 Total: Before=266547, After=263459, chg -1.16%
Signed-off-by: Joel Stanley <joel@jms.id.au>
show more ...
|
948e73aa | 14-Jul-2022 |
Joel Stanley <joel@jms.id.au> |
cmd/otp: Use hashing API
Instead of calling the hashing functions directly, which uses the software implementation of the algorithms, use the hash API which allows the use of the HACE driver.
Saves
cmd/otp: Use hashing API
Instead of calling the hashing functions directly, which uses the software implementation of the algorithms, use the hash API which allows the use of the HACE driver.
Saves 12.5KB:
Before=279327, After=266547, chg -4.58%
Signed-off-by: Joel Stanley <joel@jms.id.au>
show more ...
|
b16076b1 | 14-Jul-2022 |
Joel Stanley <joel@jms.id.au> |
cmd/otp: Depend on SHA variants
Indicate which SHA algorithms are required by depending on them. Don't select them, as this force enables the options.
Signed-off-by: Joel Stanley <joel@jms.id.au> |
09f2a38f | 14-Jul-2022 |
Joel Stanley <joel@jms.id.au> |
cmd/otp: Use any MOD_EXP driver
Instead of requesting the ACRY driver specifically, ask for the first DM device that implements MOD_EXP.
Selecting RSA ensures that one of the MOD_EXP drivers will b
cmd/otp: Use any MOD_EXP driver
Instead of requesting the ACRY driver specifically, ask for the first DM device that implements MOD_EXP.
Selecting RSA ensures that one of the MOD_EXP drivers will be built in. On Aspeed platforms this will be either the ACRY or the software implementation; Kconfig logic stops both from being built in.
Signed-off-by: Joel Stanley <joel@jms.id.au>
show more ...
|
f586eef6 | 11-Jul-2022 |
Tommy Huang <tommy_huang@aspeedtech.com> |
cmd: aspeed: Force ssc alwalys on
Force ssc setting is alwalys on. Change ssc default level from 0x0 into 0x400. Remove 5.4Gbps setting.
Signed-off-by: Tommy Huang <tommy_huang@aspeedtech.com> Chan
cmd: aspeed: Force ssc alwalys on
Force ssc setting is alwalys on. Change ssc default level from 0x0 into 0x400. Remove 5.4Gbps setting.
Signed-off-by: Tommy Huang <tommy_huang@aspeedtech.com> Change-Id: I75e03160d65e18a486b6b8c55c2ad595a6527bfa
show more ...
|
418822f0 | 01-Jul-2022 |
Johnny Huang <johnny_huang@aspeedtech.com> |
otp: add 'invalid' sub-command
'invalid' is used to invalid a key in OTP, it will set the key header type to 0x0 of 0xf.
Signed-off-by: Johnny Huang <johnny_huang@aspeedtech.com> Change-Id: Ibe4810
otp: add 'invalid' sub-command
'invalid' is used to invalid a key in OTP, it will set the key header type to 0x0 of 0xf.
Signed-off-by: Johnny Huang <johnny_huang@aspeedtech.com> Change-Id: Ibe4810e02ed42a2c3b09ddde9630cf245b898e78
show more ...
|
e7e21c44 | 28-Jun-2022 |
Johnny Huang <johnny_huang@aspeedtech.com> |
otp: add 'verify' sub-command
update otp tool to v2.0.0
Signed-off-by: Johnny Huang <johnny_huang@aspeedtech.com> Change-Id: I575c549f872a0a76a4071067073316e01b4b10a9 |
a3dcef30 | 15-Jun-2022 |
Johnny Huang <johnny_huang@aspeedtech.com> |
otp: update image checksum to SHA384
Update otp image checksum algorithm from sha256 to sha384.
Change-Id: Ic1a191e0e726137526ebde9302ddb7ceca80bad8 |
2031a123 | 12-May-2022 |
Johnny Huang <johnny_huang@aspeedtech.com> |
cmd: aspeed: otp: fix otp status polling
add delay in otp status polling to fix hanhing issue.
Signed-off-by: Johnny Huang <johnny_huang@aspeedtech.com> Change-Id: Ic7b8d68c95956ed989c40ed79adcc5ca
cmd: aspeed: otp: fix otp status polling
add delay in otp status polling to fix hanhing issue.
Signed-off-by: Johnny Huang <johnny_huang@aspeedtech.com> Change-Id: Ic7b8d68c95956ed989c40ed79adcc5ca8df5fcd2
show more ...
|