1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-07-17 04:07:18 +00:00

arm-bsp/documentation: corstone1000: add a note and fix instructions

Add a note for Capsule update negative test scenario and fixes instructions
regarding distro-boot in Corstone-1000 user guide.

Signed-off-by: Emekcan Aras <Emekcan.Aras@arm.com>
Signed-off-by: Delane Brandy <delane.brandy@arm.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
This commit is contained in:
Emekcan Aras
2023-11-24 15:07:49 +00:00
committed by Ross Burton
parent 4cb225ae8f
commit af84b2c79d
@@ -388,7 +388,7 @@ the testing.
Prepare EFI System Partition Prepare EFI System Partition
=========================================================== ===========================================================
Corstone-1000 FVP and MPS3 do not have enough on-chip nonvolatile memory to host Corstone-1000 FVP and FPGA do not have enough on-chip nonvolatile memory to host
an EFI System Partition (ESP). Thus, Corstone-1000 uses mass storage device for an EFI System Partition (ESP). Thus, Corstone-1000 uses mass storage device for
ESP. The instructions below should be followed for both FVP and FPGA before ESP. The instructions below should be followed for both FVP and FPGA before
running the ACS tests. running the ACS tests.
@@ -948,8 +948,8 @@ In the Linux command-line run the following:
lowest_supported_fw_ver: 0 lowest_supported_fw_ver: 0
Negative scenario Negative scenario (Applicable to FPGA only)
================= ===========================================
In the negative case scenario (rollback the capsule version), the user should In the negative case scenario (rollback the capsule version), the user should
see appropriate logs in the secure enclave terminal. see appropriate logs in the secure enclave terminal.
@@ -1012,6 +1012,12 @@ In the Linux command-line run the following:
last_attempt_version: 5 last_attempt_version: 5
lowest_supported_fw_ver: 0 lowest_supported_fw_ver: 0
**Note**: This test is currently not working properly in Corstone-1000 FVP.
However, it is not part of the System-Ready IR tests, and it won't affect the
SR-IR certification. All the compulsory `capsule update tests for SR-IR
<https://developer.arm.com/documentation/DUI1101/2-1/Test-SystemReady-IR/Test-UpdateCapsule>`__
works on both Corstone-1000 FVP and FPGA.
Linux distros tests Linux distros tests
------------------- -------------------
@@ -1041,8 +1047,17 @@ documentation.
cd meta-arm cd meta-arm
git am 0001-arm-bsp-u-boot-corstone1000-Skip-the-shim-by-booting.patch git am 0001-arm-bsp-u-boot-corstone1000-Skip-the-shim-by-booting.patch
cd .. cd ..
**On FPGA**
::
kas shell meta-arm/kas/corstone1000-mps3.yml:meta-arm/ci/debug.yml -c="bitbake u-boot trusted-firmware-a corstone1000-image -c cleansstate; bitbake corstone1000-image" kas shell meta-arm/kas/corstone1000-mps3.yml:meta-arm/ci/debug.yml -c="bitbake u-boot trusted-firmware-a corstone1000-image -c cleansstate; bitbake corstone1000-image"
**On FVP**
::
kas shell meta-arm/kas/corstone1000-fvp.yml:meta-arm/ci/debug.yml -c="bitbake u-boot trusted-firmware-a corstone1000-image -c cleansstate; bitbake corstone1000-image"
On FPGA, please update the cs1000.bin on the SD card with the newly generated wic file. On FPGA, please update the cs1000.bin on the SD card with the newly generated wic file.
************************************************* *************************************************
@@ -1051,12 +1066,11 @@ Preparing the Installation Media
Download one of following Linux distro images: Download one of following Linux distro images:
- `Debian installer image <https://cdimage.debian.org/debian-cd/current/arm64/iso-dvd/>`__ (Tested on: debian-12.2.0-arm64-DVD-1.iso) - `Debian installer image <https://cdimage.debian.org/debian-cd/current/arm64/iso-dvd/>`__ (Tested on: debian-12.2.0-arm64-DVD-1.iso)
- `OpenSUSE Tumbleweed installer image <http://download.opensuse.org/ports/aarch64/tumbleweed/iso/>`__ (Tested on: openSUSE-Tumbleweed-DVD-aarch64-Snapshot20231105-Media.iso) - `OpenSUSE Tumbleweed installer image <http://download.opensuse.org/ports/aarch64/tumbleweed/iso/>`__ (Tested on: openSUSE-Tumbleweed-DVD-aarch64-Snapshot20231120-Media.iso)
**NOTE:** For OpenSUSE Tumbleweed, the user should look for a DVD Snapshot like **NOTE:** For OpenSUSE Tumbleweed, the user should look for a DVD Snapshot like
openSUSE-Tumbleweed-DVD-aarch64-Snapshot<date>-Media.iso openSUSE-Tumbleweed-DVD-aarch64-Snapshot<date>-Media.iso
Once the iso file is downloaded, it needs to be flashed to your drive as explained in the next paragraphs.
FPGA FPGA
================================================== ==================================================
@@ -1082,17 +1096,10 @@ following command in the development machine:
FVP FVP
================================================== ==================================================
To test Linux distro install and boot on FVP, the user should prepare two mmc images. To test Linux distro install and boot on FVP, the user should prepare an mmc image.
One containing the OS-DVD image and another with a minimum size of 8GB formatted with gpt. With a minimum size of 8GB formatted with gpt.
The downloaded iso file needs to be flashed to one of your mmc images.
:: ::
#Generating mmc1
sudo dd if=<path-to-iso_file> of=<_workspace>/mmc1.iso iflag=direct oflag=direct status=progress bs=1M; sync;
#Generating mmc2 #Generating mmc2
dd if=/dev/zero of=<_workspace>/mmc2_file.img bs=1 count=0 seek=8G; sync; dd if=/dev/zero of=<_workspace>/mmc2_file.img bs=1 count=0 seek=8G; sync;
parted -s mmc2_file.img mklabel gpt parted -s mmc2_file.img mklabel gpt
@@ -1127,7 +1134,7 @@ FVP
:: ::
<_workspace>/meta-arm/scripts/runfvp --terminals=xterm <_workspace>/build/tmp/deploy/images/corstone1000-fvp/corstone1000-image-corstone1000-fvp.fvpconf -- -C board.msd_mmc.p_mmc_file="<_workspace>/mmc1.iso" -C board.msd_mmc_2.p_mmc_file="<_workspace>/mmc2_file.img" <_workspace>/meta-arm/scripts/runfvp --terminals=xterm <_workspace>/build/tmp/deploy/images/corstone1000-fvp/corstone1000-image-corstone1000-fvp.fvpconf -- -C board.msd_mmc.p_mmc_file="<path-to-iso_file>" -C board.msd_mmc_2.p_mmc_file="<_workspace>/mmc2_file.img"
The installer should now start. The installer should now start.
The os will be installed on the second mmc 'mmc2_file.img'. The os will be installed on the second mmc 'mmc2_file.img'.
@@ -1205,7 +1212,9 @@ Proceed to edit the following files accordingly:
:: ::
vi /etc/systemd/system.conf vi /etc/systemd/system.conf #Only applicable to Debian
DefaultDeviceTimeoutSec=infinity
vi /usr/lib/systemd/system.conf # Only applicable to openSUSE
DefaultDeviceTimeoutSec=infinity DefaultDeviceTimeoutSec=infinity
The file to be edited next is different depending on the installed distro: The file to be edited next is different depending on the installed distro: