Age | Commit message (Collapse) | Author | Files | Lines |
|
Backport v9 of Eddie's series from mainline u-boot, plus required
dependanices from v2023.04-rc3.
https://lore.kernel.org/u-boot/20230308212537.1725343-1-eajames@linux.ibm.com/
Eddie James (7):
tpm: Pull in upstream changes
tpm: Fix spelling for tpmu_ha union
tpm: sandbox: Update for needed TPM2 capabilities
tpm: Support boot measurements
bootm: Support boot measurement
doc: Add measured boot documentation
ast2600: Measure the boot
Ilias Apalodimas (1):
tpm: add a function that performs selftest + startup
Change-Id: I40015e7d34b610dcacee6ea995088665bc12cdf5
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Backport some fixes to ensure the build completes without warnings. It
now also does not rebuild if all objects are up to date.
Joel Stanley (1):
configs: ast2600: Use stringify
Pali Rohár (2):
version: Move version_string[] from version.h to version_string.h
Remove including timestamp.h in version.h
Simon Glass (1):
image: Correct strncpy() warning with image_set_name()
Tom Rini (1):
Makefile: Silence binutils 2.39 linker warnings
Change-Id: I0c5d06d011117c9857cfb30a2a5fd06109bd35de
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Changes since v00.04.12:
Dylan Hung (2):
ram: aspeed: DDR4 DRAM and PHY ODT/Ron options depend on AST2600
net: ftgmac100: use %p for pointer variable printf
Jammy Huang (5):
misc: dp: Fix dp display turn black for a sudden if BMC reboot
misc: dp: Fix dp display turn black for a sudden if BMC reboot
misc: dp: refine config for redriver
misc: dp: Support VBIOS/UEFI's vga-only mode
misc: dp: Modify scratch reg's, 1e6e210c, behavior
Neal Liu (1):
otp: remove bit-field declaration
Change-Id: Id13e9e34ae54e4aad4f5d43fad90b7df96eeb1f7
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Address errata 80 from E2600-11.pdf in a ROM patch for integration into
the OTP image. A otptool configuration file is provided as an example
Signed-off-by: Neal Liu <neal_liu@aspeedtech.com>
[AJ: Take 098e7ba124184 from https://github.com/AspeedTech-BMC/openbmc]
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I936c60f9db8e36f3213f426aebeb62b72015303c
|
|
Zev Weiss (1):
Revert "config/ast2500: Enable RAM devices"
Change-Id: I9fc02a8f4c9e340e5110db196243ca8b3dc791a7
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Update to the latest ASPEED SDK. No other changes.
Change-Id: Icca4fb50e56ef718d31472aa895a81921b2ef94d
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Joel Stanley (1):
ram/aspeed: Re-init ECC if requested but not enabled
Change-Id: I083b2cec3b569efee97a16c5e9d2cbfeba642951
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
This moves ECC support to be device tree based. All u-boot images using
the defconfig will contain the code to run with ECC, but it will only be
enabled by systems that set the aspeed,ecc-enabled device tree property.
p10bmc is the first machine to enable ECC in this fashion.
Joel Stanley (4):
config/ast2500: Enable RAM devices
ram/aspeed: Use device tree to configure ECC
ram/aspeed: Remove ECC config option
ARM: dts: aspeed: p10bmc: Enable ECC
Change-Id: I352f7d801f4becb937a2dede5910618eeddd1f0e
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Joel Stanley (1):
ARM: dts: aspeed: Add a Romulus board (AST2500)
Change-Id: I7896cfaf111cd757b602cbd194c281bd05776170
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Jae Hyun Yoo (1):
mtd: spi-nor-ids: add winbond w25q512nw family support
Change-Id: Id46df51aab2bc6313d9f0d722ae25ff9325fc055
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
This moves OpenBMC to the latest SDK from Aspeed.
Note that a series of fixes were sent to Aspeed on top of the SDK
release to ensure the OpenBMC configuration continued to work. These
changes have been merged by Aspeed but do not appear in a SDK tag at
this stage. Also sent to Aspeed were some of the changes from the
OpenBMC branch.
Changes from Aspeed's new SDK:
Billy Tsai (1):
gpio: aspeed: Fix incorrect offset of read back register.
Chia-Wei Wang (3):
Merge branch pull request #10 into aspeed-dev-v2019.04
arm: aspeed: ast2600: Remove ASPEED_LOADERS
configs: aspeed: Remove legacy defconfig
Chin-Ting Kuo (10):
dts: aspeed: Create a device tree for DC-SCM solution
dts: aspeed: Add ast2600-dcscm device tree
spi-nor: Porting for S25HL series
dts: aspeed: DC-SCM early bring up
spi: aspeed: Fix bug when using 2Gb flash
dts: aspeed: dc-scm: Add support for external mux
spi_nor: Support s25hl without SFDP
mtd: spi: Support Gigadevice device with 64KB sector size
dts: aspeed: dc-scm: Extend bus-width to 4 for SPI1
spi-nor: Add fast read command for S25HL series flash support
Dylan Hung (5):
cmd/aspeed/nettest: apply addtional delay for RTL8211F
dts: aspeed: enable mac1 for ast2600-dcscm
cmd: aspeed: nettest: fix driving strength setting
cmd: aspeed: support ctrl+c to break dramtest loop
ram: aspeed: add AST2600 ODT configuration
Eddie James (2):
ARM: dts: aspeed: tacoma: Add eMMC nodes and parameters
ARM: dts: aspeed: rainier: Add eMMC nodes and parameters
George Hung (1):
ARM: dts: aspeed: add Quanta S6Q machine dts
Jammy Huang (11):
pinctrl: ast2600: Add support for secure-i2c
arm: dts: ast2600: Add definition for secure-i2c pinctrl
misc: dp: Support re-driver
misc: dp: Update dp-fw
misc: dp: Refine code
misc: dp: Update dp-fw
misc: dp: Fix black screen occasionally
misc: dp: Fix monitors black screen with 15m cable
misc: dp: Fix black screen occasionally
misc: dp: Improve compatibility
misc: dp: Improve compatibility
Joel Stanley (5):
ARM: dts: rainier: Enable ACRY and HACE
ARM: dts: tacoma: Enable ACRY and HACE
aspeed: Disable unused loaders, add STMICRO flash
aspeed: Sort dts files in makefile
as2600/scu: Fix printing of security info
Johnny Huang (4):
cmd: aspeed: otp: fix otp status polling
otp: update image checksum to SHA384
otp: add 'verify' sub-command
otp: add 'invalid' sub-command
Neal Liu (2):
arm: aspeed: ast2600: select USB2.0 device mode as default
arm: aspeed: ast2600: enable USB port B PHY clock
Peng Fan (1):
tools: imx image: fix write warning
Potin Lai (1):
ARM: dts: Aspeed: Add Bletchley dts
Tommy Huang (5):
cmd: aspeed: DP CTS command utility
cmd: aspeed: Update aspeed dptest default build config
cmd: dptest: Arrange tab align
cmd: aspeed: Fix the internal section compile fail
i2c: ast_i2c: Remove SCL direct drive mode
ryan_chen (4):
i2c:ast2600: add ast2600 new register mode driver
pcie:aspeed : update reset sequnce.
pcie:aspeed : fix two rc enable rc high config read timeout issue
pcie:aspeed : update perst sequence
Change-Id: I2b79d15f7016913cae3f2b1d9cf6ee143136aaf2
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Joel Stanley (2):
ftgmac100: Fail probe when NCSI selected but not enabled
config/ast-evb: Enable NCSI
Change-Id: I5ed0610738d83ad21a3a52956851d2dc938c1f1f
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Cédric Le Goater (1):
ARM: dts: aspeed: Add a palmetto board (AST2400)
Jae Hyun Yoo (2):
ARM: dts: ast2600-qcom-dc-scm-v1: enable HACE
board: Add initial version of Qualcomm DC-SCM V1 board
Change-Id: Ic4967aa383778b16224c06887467b74b51bbfc6a
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Previously the FLASH_SIZE-based config tweaks had only been applied to
u-boot itself, leaving fw-utils built with a different default
environment that could end up replacing the original one with a
non-working bootcmd setting.
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Change-Id: I147a601d6a348f94b221459eabee4555dfed63c6
|
|
Might as well have it in one place instead of duplicating it between both.
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Change-Id: Id87649691c93d0dbdc08d2484ca59a85cb54a3eb
|
|
Cédric Le Goater (3):
net: phy: ncsi: Add phy_interface_is_ncsi() helper
spi: aspeed: Use "jedec,spi-nor" compatible to count devices
ARM: dts: aspeed: Remove "spi-flash" compatible
Graeme Gregory (1):
ARM: dts: aspeed: add Qualcomm DC-SCM V1
Joel Stanley (4):
phy: Only create NCSI PHY when it's present
ARM: dts: ast2600: Consolidate A1 device tree
ARM: dts: ast2600: Consolidate A0 device tree
ARM: dts: ast2600: Consolidate NCSI device tree
Change-Id: I9b510afd3647afc66e99f2a64f0cb42a4aa65c15
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Joel Stanley (2):
ARM: dts: Rename Rainier to P10 BMC
ARM: dts: ast2600: Fix indentation
Change-Id: I732324d89b7c0f731160d69942051e4d4cadc778
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Howard Chiu (1):
configs: aspeed: Add SPL FIT image loading support
Change-Id: I913b63b740a98eb29c3ff1ea66d408f65d781169
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
This contains a backport of the TPM TIS core from u-boot mainline, plus
a driver from Eddie that enables the I2C backend.
It fixes I2C support for the AST2600 and enables the TPM on IBM's
rainier platform.
A new AST2600 board 'ast2600-ibm' is added that contains some machine specific
code for performing TPM init. This board does not have a in-tree
defconfig, rather it will be selected by Yocto metadata. This allows us
to keep the number of defconfigs low while still having machine
specific customisation.
Eddie James (6):
tpm: core: Set timeouts before requesting locality
i2c: ast_i2c: Remove SCL direct drive mode
tpm: add support for TPMv2.x I2C chips
arm: dts: ast2600-rainier: Add NPCT75X TPM
board: ast2600-ibm: Add AST2600 BMC based POWER10+ servers
arm: dts: ast2600: Add I2C pinctrl
Heinrich Schuchardt (1):
tis: fix tpm_tis_remove()
Ilias Apalodimas (1):
tpm2: Introduce TIS tpm core
Joel Stanley (2):
configs: ast2600: Remove redundant target option
configs: ast2600: openbmc: Add TPM TIS I2C support
Johannes Holland (1):
tpm: add #ifndef to fix redeclaration build errors
Simon Glass (1):
tpm: Add more TPM2 definitions
Change-Id: Ibd13e0b0a1920f344ead219894a264323f0b8cc5
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Zev Weiss (1):
ftgmac100: Use bus name in mdio error messages
Change-Id: Id63c80c5b4b95d8be6a50eec8bd67d22fc184bf7
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Zev Weiss (3):
aspeed: Fix typos in platform.h comments
pinctrl: ast2400: add support for RGMII1 and RGMII2
ARM: dts: aspeed: add Delta AHE-50DC BMC
Change-Id: I32f2d4dd7cfb7575579ea6089f54b57a8e7161e2
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
This is a version of the CVE-2019-6260 "pantsdown" mitigations for the
v2019.04 u-boot branch. The SuperIO and debug UART backdoors can be
optionally enabled through u-boot build time configuration, but default
to disabled as long as your machine uses the common board_init.
These changes are relevant for the AST2400 and the AST2500 only.
If your machine relies on these features to boot, look at the options in
this patch:
https://lore.kernel.org/openbmc/20220504004739.15829-1-zev@bewilderbeest.net/
See this email for instructions on how to test:
https://lore.kernel.org/openbmc/CACPK8XfYuWT9Q5G_bo9AGugx-DcODDZ8xb39Sr+Sa8qWqVeW6A@mail.gmail.com/
Thank you to Zev for the work on this patch.
Zev Weiss (1):
aspeed: Disable backdoor interfaces
Change-Id: I4ebeae13047b8c32f2d9324d4ef9c6f98c6f4a60
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
The 32MB and 64MB NOR environments are the same configuration, so use
the one file.
The AST2600 NOR layout is the same size as the others so it can use the
same file too.
Change-Id: I6ee3fbf0d68104bcc684c2536fe85c5aec76c409
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
OpenBMC places kernel at offset 512 if the flash size is 32MB,
but it was defined as 1024 in the present defconfig.
This patch corrects the offset if the flash size is set to 32MB.
Signed-off-by: Howard Chiu <howard_chiu@aspeedtech.com>
Change-Id: I05749eda519cc1660921e111a36be74cb121fa68
|
|
The LICENSE string 'GPLv2+' is considered obsolete by Yocto and raises a
warning. Switch them too the accepted tag 'GPL-2.0-or-later'.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I88c639dbb45762e2e019a3503f1f1930b65c09d6
|
|
THe diff between the old commit and this one is below. This includes new
changes from the SDK, and the existing patches rebased on top of the new
SDK release.
Adriana Kobylak (1):
configs: aspeed-common: Add redundant env for mmc
Chia-Wei Wang (1):
configs: evb-ast2600-spl: Remove U-Boot MMC raw sector
Chin-Ting Kuo (5):
spi_nor: aspeed: Update SPI driver
spi: apseed: Update timing compensation calculation method
dts: ast2600: Update decoded address size
spi: aspeed: Fix resource size calculation method
dts: aspeed: Sync the real scenario of AST2600 EVB
Dylan Hung (8):
ram: aspeed: remove incorrect Vref information
ram: aspeed: remove dead code and refine comment
ram: aspeed: revise tRFI configuration
ram: aspeed: fix incorrect printf
ram: aspeed: revise coding style
cmd: aspeed: nettest: add RTL8211F(D)-VD-CG support
net: phy: realtek: Add RTL8211F-VD driver support
clk: ast2600: fix ast2600_find_dly32_tap return value
Eddie James (5):
gpio: Enable hogging support in SPL
ast2600: Add GPIO controller and hog TPM reset pin
ARM: dts: aspeed: tacoma: Add eMMC nodes and parameters
ARM: dts: aspeed: rainier: Add eMMC nodes and parameters
Add GPIO hogging support for AST2600 openbmc config
George Hung (1):
ARM: dts: aspeed: add Quanta S6Q machine dts
Heiko Schocher (2):
gpio: add gpio-hog support
gpio: fixes for gpio-hog support
Jamin Lin (1):
fix compiling warnings for AST2600 A1 SPL
Jammy Huang (1):
misc: dp: Update fw
Jean-Jacques Hiblot (1):
dm: Add a No-op uclass
Joel Stanley (15):
Makefile: Conditionally add defaultenv_h to envtools target
ast2600: spl: Fix build when accelerators are disabled
ARM: dts: rainier: Enable ACRY and HACE
ARM: dts: tacoma: Enable ACRY and HACE
aspeed: Disable unused loaders, add STMICRO flash
aspeed: Sort dts files in makefile
as2600/scu: Fix printing of security info
ast2600: spl: Implement board_boot_order
configs: Add OpenBMC spl defconfig for AST2600 boards
ast2600: Allow selection of SPL boot devices
config: ast2600: Add config for SPL MMC boot with FIT signature verification
ast2600: Add environment for booting from mmc
ast2600/openbmc: Use emmc based configuration
crypto: Restore old driver for Aspeed HACE
ARM: dts: aspeed: Disable ACRY for rainier and tacoma
Neal Liu (3):
crypto: aspeed: combine acry drivers into a file
arm: dts: ast2600: add acry sram base
crypto: aspeed: acry: add private allocated space for device
Peng Fan (1):
tools: imx image: fix write warning
Potin Lai (1):
ARM: dts: Aspeed: Add Bletchley dts
Troy Lee (2):
ARM: aspeed: Disable ABR WDT when boot from UART with secure boot
configs: aspeed: Increase SPL stack size
Zev Weiss (1):
pinctrl: ast2400: add support for TXD3/RXD3 pins
ryan_chen (3):
rename pcie driver for aspeed phy and pcie controller
ast2600:bclk is come from epll. it will update in datasheet
platform.S:ast2600: modify for only reset at AC on
Change-Id: I52b1be9474461e18dd26fd08472c2824485c1c09
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Jamin Lin (1):
ast2600: Fix compile warnings for AST2600 A1 SPL
Joel Stanley (1):
as2600/scu: Fix printing of security info
Change-Id: I4f2ee7cf8a95721e49f7e98bcc87407d5b87c766
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Joel Stanley (1):
aspeed: Sort dts files in makefile
Potin Lai (1):
arm: dts: Aspeed: add Bletchley dts
Troy Lee (1):
configs: aspeed: Increase SPL stack size
Change-Id: If64f45949bb1a26ac6c8fc04427cb7f24a5c5420
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Joel Stanley (1):
aspeed: Disable unused loaders, add STMICRO flash
Peng Fan (1):
tools: imx image: fix write warning
Change-Id: I12b8d4dead50bee2c9053efef0a485cb7fe0b179
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
This moves to the latest ASPEED SDK release. In addition we have
backports of gpio-hog support added, in order to implement a feature for
the Rainier system.
The old branch is archived as archive/v2019.04-aspeed-openbmc-4.
The patches on top of the SDK are:
Adriana Kobylak (1):
configs: aspeed-common: Add redundant env for mmc
Eddie James (5):
ARM: dts: aspeed: tacoma: Add eMMC nodes and parameters
ARM: dts: aspeed: rainier: Add eMMC nodes and parameters
gpio: Enable hogging support in SPL
Add GPIO hogging support for AST2600 openbmc config
ast2600: Add GPIO controller and hog TPM reset pin
Heiko Schocher (2):
gpio: add gpio-hog support
gpio: fixes for gpio-hog support
Jean-Jacques Hiblot (1):
dm: Add a No-op uclass
Joel Stanley (13):
tools: Add script for generating recovery image
Makefile: Conditionally add defaultenv_h to envtools target
ast2600: spl: Fix build when accelerators are disabled
ARM: dts: rainier: Enable ACRY and HACE
ARM: dts: tacoma: Enable ACRY and HACE
ast2600: spl: Implement board_boot_order
configs: Add OpenBMC spl defconfig for AST2600 boards
ast2600: Allow selection of SPL boot devices
config: ast2600: Add config for SPL MMC boot with FIT signature verification
ast2600: Add environment for booting from mmc
ast2600/openbmc: Use emmc based configuration
crypto: Restore old driver for Aspeed HACE
ARM: dts: aspeed: Disable ACRY for rainier and tacoma
Zev Weiss (1):
pinctrl: ast2400: add support for TXD3/RXD3 pins
Signed-off-by: Joel Stanley <joel@jms.id.au>
Change-Id: I3cfb7a6bb39c2c2fb2aa53c8f911a6224d33fd87
|
|
1. Add otptool.bbclass to create otp image.
2. Update u-boot recipe to "inherit otptool.bbclass" for
otp image creation in the u-boot tasks.
3. Update socsec tool for SPL and OTP image verification if
verify failed u-boot should be built failed.
4. Use OE logging utilities.
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Change-Id: I0ba5da4d112b49d182bdf2751614afe62850eac3
|
|
Previously, the u-boot-fw-utils-aspeed-sdk build didn't take *.cfg files
in SRC_URI into account at all, leading to problematic mismatches
between fw_{set,print}env's configuration and that of u-boot itself
(such as discrepancies in their respective notions of what the default
environment should be).
With this change the fw-utils build uses the same do_configure as the
regular u-boot build, so the two packages can more easily be built with
a single consistent configuration.
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Change-Id: Ia83768597b6b75dc00425bdc23f216274d87e0ae
|
|
In general, software such as openssl calculates digest(big endian) of input data and uses big-endian digest to sign for RSA signature creation.
However, AST2600 A1 only supports little endian. In other words, AST2600 A1 crypto hardware engine digest output is “little endian”.
That is why our SOCSEC tool reverse signature and digest to match the AST2600 A1 crypto engine design(little endian).
AST2600 A3 changed the design to support big endian. ASPEED recommends using big endian to remain compatible with general software tool design
and therefore SOCSEC tool does not need to reverse digest and signature.
Default to big endian for OpenBMC platforms as A3 is production silicon, and earlier revisions are not well supported.
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Change-Id: Iba46f704b86990d53937f104c3c601da5a3c111f
|
|
When using 64M flash, the config of u-boot CONFIG_ENV_SIZE and
CONFIG_ENV_OFFSET is wrong. The config file fw_env.config is wrong, too.
Modify them according to the 64M flash dts file.
Before correcting these errors, when we used setenv to set environment
variables in u-boot, we could not use fw_printenv to get them. The
reverse is also the same. Because they set different offset and size.
Tested:
1. Use commands in u-boot:
setenv test value
saveenv
After BMC starts, use fw_printenv can get "test=value"
2. Use the command to change the value of "test"
fw_setenv test v
We can get "test=v" in u-boot by printenv.
Signed-off-by: zhanghaicheng <zhanghch05@inspur.com>
Change-Id: I9eccf6abe743253b6f8c344a8b8648e68ab52019
|
|
Move u-boot-aspeed-sdk to use u-boot.inc from poki instead our own. We
still need our own one for old u-boot-aspeed, so keep it as is.
Tested: Build image for AST2500-based machine with
u-boot-aspeed-sdk_2019.04, verified that it boots up and fw-utils
installed to the image properly.
Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com>
Change-Id: Ia5fecdedc94e9550196420884a727e7d87b313d4
|
|
Joel Stanley (1):
aspeed/hace: Reset when error occurs
Change-Id: I10ec988f7b0b01aa76a4338ef095fbe80b4229ec
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Include the socsec-sign class after the conditional assignments to
ensure the values we might assign are considered by the functions of
socsec-sign.
Without this, u-boot-aspeed-sdk do_deploy logs show:
```
DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing shell function do_deploy
Copying u-boot-nodtb binary...
Warning: Invalid socsec signing key - SPL verified boot won't be available
```
Adjusting the location of the include gives:
```
DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing shell function do_deploy
Copying u-boot-nodtb binary...
check header PASS
Found PEM header at position 381
check integrity PASS
```
Change-Id: I15cac4c315a6ceaeb69b0c02ba0b7d05e54f6e15
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
|
This fixes some build errors we faced due to add new ast2500-based
platform.
* Allow to redefine input env file.
* Backport providing "u-boot-default-env" from u-boot.inc
* PROVIDES += "u-boot-fw-utils" is not enough, add also RPROVIDES
Last two changes allows to exclude from build modern libubootenv which
somewhy doesn't work for us.
Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com>
Change-Id: I33f152c572f6c0b4d8b608375b252290efacd1ea
|
|
Allow configurations to override the SPL signing key if necessary, but
provide a default in case they don't. The provided key is intended a
low-security key.
Change-Id: I756271970b0a55409e40dbd06f1245ada6a3cb73
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
|
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I8135871ae0e3b360aff7d878f7cf04a2504f2dd0
|
|
Adriana Kobylak (1):
configs: aspeed-common: Add redundant env for mmc
Troy Lee (2):
ast2600: spl: Fixes boot from RAM device
ast2600: Provide u-boot FIT image boot from RAM offset
Change-Id: I9fd8c76593d83d32504288a6405c2b4c41fdb381
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
This adds the u-boot environment to the u-boot binary.
On the 2600 with mmc we currently rely on the default environment being
populated in the image. This has the downside that if something corrupts
the environment, the system won't know how to boot itself.
This wasn't a problem for NOR based systems as the built in command knew
how to boot the system (unless you were using a 'special' setup such as
Witherspoon's UBI setup).
The ast2600_openbmc_mmc.txt is copied from
meta-aspeed/recipes-bsp/u-boot/files/u-boot-env-ast2600.txt.
Adriana has indicated she will update openbmc to use the .txt from the
u-boot tree to generate the filesystem image (or we could stop doing
that, and simply use the default?).
The environment processing step requires xxd on the build system.
Joel Stanley (2):
Makefile: Conditionally add defaultenv_h to envtools target
ast2600: Add environment for booting from mmc
Change-Id: I0381ac168285bade75115b7b415e18dd7fc8694e
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Add environment variables to the AST2600 to boot a certain FIT
configuration of the kernel based on the "fitconfig" environment
variable. The boot command will fall back to the default FIT config
in case all other boot attempts fail. Also fix the kernel boot
arguments in the case that boot failure occurs.
The boot sequence would be:
- boota with fitconfig, if it fails:
- boota without fitconfig, if it fails:
- bootb with fitconfig, if it fails:
- bootb without fitconfig
Tested: Set fitconfig to a dummy variable, and also changed the bootm
command to a dummy command to force a boot failure, and verified the
sequence was as expected:
ast# boot
boota
Error loading kernel FIT image with fitconfig rainier-dummy
Unknown command 'bootm-dummy' - try 'help'
Error loading kernel FIT image
bootb
Error loading kernel FIT image with fitconfig rainier-dummy
Unknown command 'bootm-dummy' - try 'help'
Error loading kernel FIT image
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Change-Id: I14cf935a707bdb95b0a6e4e607919ea0e027d18c
|
|
This rebases on the latest SDK release. Notably this release includes
support for the A3 and disables debug backdoors in line with the
defaults in the A3 silicon.
Changes kept downstream from ASPEED's SDK in the OpenBMC branch:
Eddie James (1):
ARM: dts: Aspeed: Tacoma and Rainier: Add eMMC nodes and parameters
Joel Stanley (15):
board: ast2600: Disable eSPI early init by default
dts: ast2600-evb: Enable FSI masters
tools: Add script for generating recovery image
configs: Add OpenBMC spl defconfig for AST2600 boards
clk: ast2600: Add divisor settings for 100MHz PLL
ram: ast2600: Enable device tree based DDR config
ast2600: tacoma: Run DDR at 1333
ast2600: Allow selection of SPL boot devices
ast2600: Modify SPL SRAM layout
crypto: Add driver for Aspeed HACE
ast2600: Enable HACE probing in SPL
ast2600: Add HACE to device tree
ast2600: spl: Add ASPEED_LOADERS option
ast2600: spl: Support common boot loader features
config: ast2600: Add config for SPL MMC boot with FIT signature verification
Changes in the ASPEED SDK when moving from v00.03.03 include the branch
of fixes that were backported for FIT support, plus the following
changes from the ASPEED team:
Bing-Hua Wang (3):
configs: evb-ast2500-spl_defconfig: Use platform.S DDR init
ast2500: spl: Skip SPI timing calibration
ast2500: Fix VRAM size detection
Chia-Wei Wang (2):
ast2600: Disable backdoor to align A3 design
ast2600: Enable UART Debug based on FWSPIMISO
Chia-Wei, Wang (4):
board: ast2600: Add eSPI early init sequence
board: ast2600-intel: Add Intel EGS CRB support
aspeed: ast2600: Fix incorrect chip revision ID
board: ast2600: Enable eSPI early init by default
Chin-Ting Kuo (4):
sdhci: ast2600: HS200 support porting
mmc: Enable SDMA feature when boot from eMMC
uart: Fix UART1 route problem on A3
spi-nor: Porting MT25Q02G flash part
Dylan Hung (18):
cmd:aspeed: fix missing setting for the tx single packet
cmd:aspeed: change broadcom id matching
cmd:aspeed: add support of broadcom 54210/54213 test
cmd:aspeed: refactor phy internal loopback
cmd:aspeed: fix typo
cmd:aspeed: remove redundant debug print
cmd:aspeed: skip deselect package for I350 IOP issue
cmd:aspeed: add NCSI_VERBOSE_TEST (default off)
cmd:aspeed: add 100ms for phy ready
cmd:aspeed: bug fixed of the length decoding of the dramtest
arm:dts: revise ast2600 mac1/2 rgmii delay setting
net:phy: add phy-mode support on broadcom 5461 series
cmd:aspeed: add phy tx/rx delay control arguments
cmd:aspeed: add bcm54615, rtl8211f and marvell88e15 delay setting
cmd:aspeed: restore default page
ram:aspeed: revise coding style
ram:aspeed: refactor coding style
arm:dts: revise rgmii tx/rx delay
Fugang Duan (1):
net: phy: realtek: add rx delay support for RTL8211F
Jamin Lin (1):
Add evb-ast2600-obmc-emmc-cot_defconfig config to support AST2600 emmc secure boot for OpenBMC
Johnny Huang (6):
otp: fix a1 program issue
otp: fix otp cmd stuck
otp: update version number to 1.0.2
otp: add AST2600A3
secure boot: fix public key exponent
otp: update print otp image
Ryan Chen (3):
AST2600:platform.S for AST2600A3 fix for reset. it will apply for AST2600A1/A2/A3
ast2600:ddr: fix memory bandwidth issue
sdram : ast2600
Troy Lee (2):
config: ast2600: support OpenBMC boot from eMMC image
config: ast2600-evb for openbmc boot command update
chin-ting_kuo (1):
Revert "mmc: Enable SDMA feature when boot from eMMC"
The previous version of v2019.04-aspeed-openbmc is kept in the branch
archive/v2019.04-aspeed-openbmc-3.
Change-Id: Ie492bdbfaec32c3e3e0caf8d4fa1806fcd1febec
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
Add a development (insecure, also known as 'imprint') key to
u-boot-aspeed-sdk that can be used through socsec for signing the SPL on
ASPEED AST2600 devices.
The keypair was generated according to socsec's documentation, using:
$ openssl genrsa -out rsa_oem_dss_key.pem 4096
$ openssl rsa -in rsa_oem_dss_key.pem -pubout \
-out rsa_pub_oem_dss_key.pem
Signed-off-by: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
Change-Id: I9c03ed9603d7362e033862dd1e5138ba7164f13d
|
|
Add the necessary build infrastructure to allow ASPEED AST2600 devices
to use socsec to sign the U-boot SPL, allowing Aspeed's Verified Boot to
validate it.
Signed-off-by: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
Change-Id: I7b38a59596819982f0a222812fcc64dfb91e104f
|
|
Commit '3b8a17c1d7 poky: subtree update:7d0988966c..1203d1f24d' pulls a
change from openembedded-core ('cc6c3e3152 u-boot: Move definitions to
common locations') that moves some definitions from u-boot.inc to other
places. As u-boot-aspeed and u-boot-aspeed-sdk recipes in the
meta-aspeed layer have their own version of this file
(u-boot-aspeed.inc), apply the same changes that were applied to
openembedded-core, which is where those recipes were based on initially,
to keep them consistent and allow the use of functionality that was
introduced as part of that series as well (i.e., '5af4dfe83c u-boot: Add
infrastructure to SPL verified boot' on the openembedded-core tree).
Signed-off-by: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
Change-Id: If9fd1eebf988d341ed1e3adc46276daa56598cba
|
|
This updates the OpenBMC u-boot tree to use ASPEED's latest SDK, and
adds support for FIT verification including use of the HACE to perform
SHA calculations on the ast2600.
The changes come in three categories; fixes backported and sent to
ASPEED for merging in a future SDK release, patches carried that are
specific to OpenBMC, and the new FIT and HACE support.
Note that this does not remove the legacy image support from the SPL, so
there is no dependency on the changes to load u-boot as a FIT.
Fixes backported from upstream and set to ASPEED:
Harald Seiler (1):
common: hash: Remove a debug printf statement
Heinrich Schuchardt (2):
fit: check return value of fit_image_get_data_size()
image-fit: fit_check_format check for valid FDT
Jean-Jacques Hiblot (1):
spl: fit: don't load the firmware twice
Joel Stanley (4):
hw_sha: Fix coding style errors
hash: Allow for SHA512 hardware implementations
net/ncsi: Remove debugging
fit: Use hash.c to call SHA code
Patrick Doyle (1):
rsa: reject images with unknown padding
Reuben Dowle (1):
Add support for SHA384 and SHA512
Simon Glass (3):
image: Be a little more verbose when checking signatures
image: Return an error message from fit_config_verify_sig()
image: Check hash-nodes when checking configurations
Patches carried in the OpenBMC fork:
Eddie James (3):
ARM: dts: Aspeed: Tacoma and Rainier: Add eMMC nodes and parameters
arch: ARM: Aspeed: Add SPL eMMC partition boot support
configs: Add AST2600 SPL eMMC configuration
Joel Stanley (11):
dts: ast2600-evb: Enable FSI masters
tools: Add script for generating recovery image
configs: Add OpenBMC spl defconfig for AST2600 boards
clk: ast2600: Add divisor settings for 100MHz PLL
ram: ast2600: Enable device tree based DDR config
ast2600: tacoma: Run DDR at 1333
ast2600: Allow selection of SPL boot devices
config: ast2600: Reduce SPL image size
ast2600: Modify SPL SRAM layout
config: ast2600: Enable FIT signature verification
clk: aspeed: Add HACE yclk to ast2600
Features added for FIT verification and HACE support:
Joel Stanley (10):
configs/ast2600: Make early malloc pool larger
crypto: Add driver for Aspeed HACE
ast2600: Enable HACE probing in SPL
ast2600: Add HACE to device tree
ast2600: spl: Add ASPEED_LOADERS option
ast2600: spl: Support common boot loader features
config: ast2600: Configure common MMC SPL loader
configs: ast2600: Enable FIT SHA512 support
ast2600: Configure u-boot load size
configs: ast2600: Use non-a1 config for openbmc spl emmc
Change-Id: I4e5a1adb6e2bf17823b042c31b151bfdad9d3175
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
These patches bring SHA512 support to the FIT in u-boot, SPL and
mkimage. The majority of the feature comes in with "Add support for
SHA384 and SHA512", while the rest are relevant bugfixes that have been
made to master since v2019.04.
There is not yet a change to the configuration to enable the new
algorithm and therefore only a minor image size change (an increase of
247 bytes due to "image: Check hash-nodes when checking configurations").
Harald Seiler (1):
common: hash: Remove a debug printf statement
Heinrich Schuchardt (1):
image-fit: fit_check_format check for valid FDT
Joel Stanley (1):
ast2600: spl: Include RAM loader in BL2 ifdef
Patrick Doyle (1):
rsa: reject images with unknown padding
Reuben Dowle (1):
Add support for SHA384 and SHA512
Simon Glass (3):
image: Be a little more verbose when checking signatures
image: Return an error message from fit_config_verify_sig()
image: Check hash-nodes when checking configurations
Change-Id: I69d7ac29d8c4d710c57fc6a45b1c48022e6808c0
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
This turns on FIT signature verification ("vboot") features in the
ast2600_openbmc_spl_emmc_defconfig.
A signed FIT will be checked by the loader (either SPl or u-boot
proper).
Heinrich Schuchardt (1):
fit: check return value of fit_image_get_data_size()
Joel Stanley (4):
ast2600: Allow selection of SPL boot devices
config: ast2600: Reduce SPL image size
ast2600: Modify SPL SRAM layout
config: ast2600: Enable FIT signature verification
Change-Id: If0974fffc63072dc922b3bc5899a791adcdb40a3
Signed-off-by: Joel Stanley <joel@jms.id.au>
|