927d42f5 | 01-Mar-2023 |
Joel Stanley <joel@jms.id.au> |
configs: ast2600: Use stringify
This avoids the warning about mutliple STR defines:
../env/mmc.c:22: warning: "STR" redefined 22 | #define STR(X) __STR(X)
Signed-off-by: Joel Stanley <joel@jms
configs: ast2600: Use stringify
This avoids the warning about mutliple STR defines:
../env/mmc.c:22: warning: "STR" redefined 22 | #define STR(X) __STR(X)
Signed-off-by: Joel Stanley <joel@jms.id.au>
show more ...
|
db9eaecc | 27-Jan-2021 |
Joel Stanley <joel@jms.id.au> |
configs: Add OpenBMC config for SPL MMC boot
This adds a configuration for FIT signature verification for the OpenBMC SPL configuration, for both the SPL and u-boot. It uses the common MMC SPL loade
configs: Add OpenBMC config for SPL MMC boot
This adds a configuration for FIT signature verification for the OpenBMC SPL configuration, for both the SPL and u-boot. It uses the common MMC SPL loader code present in u-boot.
This enables rsa and SHA512 algorithms for verifying the signature of the u-boot FIT when loading it. Hashing is performed by the AST2600's HACE.
The SPL will load u-boot proper from sector 0x80 (128), which is 64KB into the device.
The u-boot load size of 1MB, minus 64KB for the SPL, is configured through CONFIG_SYS_MONITOR_LEN. FIT can describe it's length, so this is only used when loading a raw image.
Ensure the SPL fits in the 64KB payload size with FIT signature verification in the SPL.
- Build with thumb
- Disable the arch memcpy/memset changes to save 668 bytes. The tiny memset saves 52 bytes. (Anyone who wants to test the runtime impact of these changes should do so!)
- FIT_IMAGE_TINY is selected to save approx 3KB from the image size.
Set the size of the early (pre-DRAM) SRAM heap in u-boot proper to 8KB. The DRAM driver would perform an allocation that exceeded the default limit, due to the probing of the HACE driver increasing memory presssure. As SRAM is unused when u-boot proper is running, it can all be allocated.
(In theory the entire 88KB of SRAM is free, but testing showed more than 60KB would break booting. Finding out why is TODO).
The SPL early heap is fixed to 0x800, the default before this change. Testing shows that:
SPL malloc() before relocation used 0x794 bytes (1 KB)
So 2KB should be enough.
Signed-off-by: Joel Stanley <joel@jms.id.au>
show more ...
|
623f5d1a | 23-Jun-2021 |
Adriana Kobylak <anoo@us.ibm.com> |
configs: aspeed-common: Add redundant env for mmc
If the env is in MMC, specify the location of the redundant environment. Per the ast2600_openbmc_spl_emmc_defconfig, the environment is located at b
configs: aspeed-common: Add redundant env for mmc
If the env is in MMC, specify the location of the redundant environment. Per the ast2600_openbmc_spl_emmc_defconfig, the environment is located at byte offset 0x5000 in the user data partition, and is sized at 0x10000. The redundant environment follows it immediately and is the same size.
Signed-off-by: Eddie James <eajames@linux.ibm.com> Signed-off-by: Adriana Kobylak <anoo@us.ibm.com> Link: https://lore.kernel.org/r/20210623195646.2639822-1-anoo@linux.ibm.com Signed-off-by: Joel Stanley <joel@jms.id.au>
show more ...
|
c5b1f1ec | 23-Feb-2022 |
Jamin Lin <jamin_lin@aspeedtech.com> |
fix compiling warnings for AST2600 A1 SPL
remove duplicated define
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com> Change-Id: Iba3a2167085812cdc30b1ab2320bbb6ba89c81a7 |
27b5292d | 26-Aug-2021 |
Jamin Lin <jamin_lin@aspeedtech.com> |
ast2600a1: fix bootspi command not found
Fix bootspi command not found issue when boot kernel image
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com> Change-Id: Ida4972d97ac84819828dae094bd052c05
ast2600a1: fix bootspi command not found
Fix bootspi command not found issue when boot kernel image
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com> Change-Id: Ida4972d97ac84819828dae094bd052c05cc95fd8
show more ...
|
f7242833 | 05-Aug-2021 |
neal_liu <neal_liu@aspeedtech.com> |
includes: configs: Remove usbtty related define
Remove usbtty related define.
Signed-off-by: neal_liu <neal_liu@aspeedtech.com> Change-Id: I301cecaf374e5071792e37567cfd1cbbf27c88e6 |
2faf051a | 04-Aug-2021 |
neal_liu <neal_liu@aspeedtech.com> |
configs: ast2600: add usb related define to support usbtty
Re-set stdout/stderr/stdin to both usbtty & serial. The input/output works on both COM ports.
Example: setenv usbtty cdc_acm setenv stdout
configs: ast2600: add usb related define to support usbtty
Re-set stdout/stderr/stdin to both usbtty & serial. The input/output works on both COM ports.
Example: setenv usbtty cdc_acm setenv stdout usbtty,serial@1e784000 setenv stderr usbtty,serial@1e784000 setenv stdin usbtty,serial@1e784000
Signed-off-by: neal_liu <neal_liu@aspeedtech.com> Change-Id: I850201086228f92d38c2330d1cc7c027c9043ada
show more ...
|
a07430c0 | 02-Jul-2021 |
Chia-Wei Wang <chiawei_wang@aspeedtech.com> |
configs: intel_ast2600: Add SPL FIT load support
1. Add load address for SPL FIT image load support 2. Revise boot command to copy kernel FIT image into DRAM for HW crypto engine to perform hash
configs: intel_ast2600: Add SPL FIT load support
1. Add load address for SPL FIT image load support 2. Revise boot command to copy kernel FIT image into DRAM for HW crypto engine to perform hash digest and signature verification
Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com> Change-Id: I37cf56a945406464467f40b682f06eef37593772
show more ...
|
bc1213a3 | 27-May-2021 |
Chia-Wei Wang <chiawei_wang@aspeedtech.com> |
spl: ast2600: Add SPL FIT image loading support
1. Enable SPL_LOAD_FIT and FIT hash/signature verification 2. Enable HACE/ARCY HW crypto engine probing 3. Disable ASPEED_LOADERS to instead use gener
spl: ast2600: Add SPL FIT image loading support
1. Enable SPL_LOAD_FIT and FIT hash/signature verification 2. Enable HACE/ARCY HW crypto engine probing 3. Disable ASPEED_LOADERS to instead use generic FIT image bootflow 4. Add dedicated headers for SPI and eMMC boot, respectively 5. Sync evb-ast2600-emmc_defconfig to the OBMC one
Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com> Change-Id: I101643a6d85722cf08f7170f2c7ee14d002b339b
show more ...
|
e3124519 | 13-May-2021 |
Chia-Wei Wang <chiawei_wang@aspeedtech.com> |
configs: ast2600-spl: Add SPL FIT loading address
Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com> Change-Id: I683d259088fbcf96f8ca253381e08b724eeb0729 |
fabbeb33 | 09-Mar-2021 |
Chia-Wei, Wang <chiawei_wang@aspeedtech.com> |
board: ast2600-intel: Add Intel EGS CRB support
Add support for Intel EGS CRB, where AST2600 is embedded as the BMC.
Signed-off-by: Chia-Wei, Wang <chiawei_wang@aspeedtech.com> Change-Id: I66717537
board: ast2600-intel: Add Intel EGS CRB support
Add support for Intel EGS CRB, where AST2600 is embedded as the BMC.
Signed-off-by: Chia-Wei, Wang <chiawei_wang@aspeedtech.com> Change-Id: I6671753779927ce42b8890f94458f033cecacd40
show more ...
|
a62cf9f2 | 26-Jan-2021 |
Chia-Wei, Wang <chiawei_wang@aspeedtech.com> |
configs: ast2600-spl: Move stack to extra SRAM space
AST2600 A1 and beyond has additional 24KB SRAM supported. This patch move stack to the 24KB SRAM region so that the SPL image can fully leverage
configs: ast2600-spl: Move stack to extra SRAM space
AST2600 A1 and beyond has additional 24KB SRAM supported. This patch move stack to the 24KB SRAM region so that the SPL image can fully leverage the original 64KB SRAM, where the image can be authenticated by secure boot.
show more ...
|
7828ddb3 | 10-Nov-2020 |
Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com> |
eMMC: Locate env on eMMC
Put env on eMMC user data partition in order to support boot from eMMC feature. |
15461080 | 10-Nov-2020 |
Ryan Chen <ryan_chen@aspeedtech.com> |
update reserve memory for ssp |
f8a0023a | 08-Nov-2020 |
Ryan Chen <ryan_chen@aspeedtech.com> |
update ast2600 defconfig |
8671acc9 | 08-Nov-2020 |
Ryan Chen <ryan_chen@aspeedtech.com> |
add support ast2605 |
5386f9f1 | 02-Nov-2020 |
Ryan Chen <ryan_chen@aspeedtech.com> |
add ast2600 evb defconfig |
23f8870d | 22-Sep-2020 |
Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com> |
standalone: Fix standalone application executed address
Assign atandalone address. u-boot application can be developed and executed independently of u-boot itself. |
f88c345b | 20-Jul-2020 |
ryan_chen <ryan_chen@aspeedtech.com> |
add ast2400 include file |
f295299a | 22-Jun-2020 |
Chia-Wei, Wang <chiawei_wang@aspeedtech.com> |
configs: ast2600-fpga: Fix defconfig and header
Fix AST2600 FPGA defconfig and configuration header to fit the revised boot flow. |
e6faac32 | 08-Jun-2020 |
Johnny Huang <johnny_huang@aspeedtech.com> |
aspeed: emmc: support emmc boot |
fe8b5fda | 04-Jun-2020 |
Chia-Wei, Wang <chiawei_wang@aspeedtech.com> |
update bootflow |
91d8613b | 19-May-2020 |
Chia-Wei, Wang <chiawei_wang@aspeedtech.com> |
spl: ast2600: Add secure boot flow support
This patch refactors the AST2600 boot flow to support both secure and normal boot in the consistent way. |
a6a2ac83 | 14-Apr-2020 |
Johnny Huang <johnny_huang@aspeedtech.com> |
spl: fix duplicate define CONFIG_SYS_MONITOR_LEN |
4e0b57fb | 09-Apr-2020 |
ryan_chen <ryan_chen@aspeedtech.com> |
add kconfig for env |