1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-05-30 00:21:17 +00:00

arm-bsp/documentation: update fvp-base documentation to use runfvp

Signed-off-by: Ross Burton <ross.burton@arm.com>
This commit is contained in:
Ross Burton
2022-12-05 12:25:50 +00:00
parent bd12f11348
commit dafc5ec028
2 changed files with 21 additions and 75 deletions
+12 -43
View File
@@ -1,55 +1,24 @@
# Armv7-A Base Platform FVP Support in meta-arm-bsp # Armv8-A Base Platform FVP (32-bit) Support in meta-arm-bsp
## How to build and run ## Howto Build and Run
### Configuration: ### Configuration:
In the local.conf file, MACHINE should be set as follows: In the local.conf file, `MACHINE` should be set:
MACHINE ?= "fvp-base-arm32" ```
MACHINE = "fvp-base-arm32"
```
### Build: ### Build:
```bash$ bitbake core-image-minimal``` ```
$ bitbake core-image-base
```
### Run: ### Run:
To Run the Fixed Virtual Platform simulation tool you must download "Armv8-A The `fvp-base` machine has support for the `runfvp` script, so running is simple:
Base Platform FVP" from Arm developer (This might require the user to
register) from this address:
https://developer.arm.com/tools-and-software/simulation-models/fixed-virtual-platforms
and install it on your host PC.
Fast Models Fixed Virtual Platforms (FVP) Reference Guide:
https://developer.arm.com/docs/100966/latest
Armv8A Foundation Platform User Guide:
https://developer.arm.com/docs/100961/latest/
Once done, do the following to build and run an image:
```bash$ bitbake core-image-minimal```
```bash$ export YOCTO_DEPLOY_IMGS_DIR="<yocto-build-dir/tmp/deploy/images/fvp-base-arm32>"```
```bash$ cd <path-to-Base_RevC_AEMv8A_pkg-dir/models/Linux64_GCC-X.X/>```
```
bash$ ./FVP_Base_RevC-2xAEMv8A -C bp.virtio_net.enabled=1 \
-C cache_state_modelled=0 \
-C bp.secureflashloader.fname=${YOCTO_DEPLOY_IMGS_DIR}/bl1-fvp.bin \
-C bp.flashloader0.fname=${YOCTO_DEPLOY_IMGS_DIR}/fip-fvp.bin \
--data cluster0.cpu0=${YOCTO_DEPLOY_IMGS_DIR}/Image@0x80080000 \
-C bp.virtioblockdevice.image_path=${YOCTO_DEPLOY_IMGS_DIR}/core-image-minimal-fvp-base-arm32.wic \
-C cluster0.cpu0.CONFIG64=0 \
-C cluster0.cpu1.CONFIG64=0 \
-C cluster0.cpu2.CONFIG64=0 \
-C cluster0.cpu3.CONFIG64=0 \
-C cluster1.cpu0.CONFIG64=0 \
-C cluster1.cpu1.CONFIG64=0 \
-C cluster1.cpu2.CONFIG64=0 \
-C cluster1.cpu3.CONFIG64=0 \
``` ```
$ runfvp tmp/deploy/images/fvp-base-arm32/core-image-base-fvp-base-arm32.fvpconf
```
If you have built a configuration without a ramdisk, you can use the following
command in U-boot to start Linux:
```fvp32# bootz 0x80080000 - 0x82000000```
## Devices supported in the kernel ## Devices supported in the kernel
- serial - serial
- virtio disk - virtio disk
+9 -32
View File
@@ -3,45 +3,22 @@
## Howto Build and Run ## Howto Build and Run
### Configuration: ### Configuration:
In the local.conf file, MACHINE should be set as follow: In the local.conf file, `MACHINE` should be set:
MACHINE ?= "fvp-base" ```
MACHINE = "fvp-base"
```
### Build: ### Build:
```bash$ bitbake core-image-minimal``` ```
$ bitbake core-image-base
```
### Run: ### Run:
To Run the Fixed Virtual Platform simulation tool you must download "Armv8-A The `fvp-base` machine has support for the `runfvp` script, so running is simple:
Base Platform FVP" from Arm developer (This might require the user to
register) from this address:
https://developer.arm.com/tools-and-software/simulation-models/fixed-virtual-platforms
and install it on your host PC.
Fast Models Fixed Virtual Platforms (FVP) Reference Guide:
https://developer.arm.com/docs/100966/latest
Armv8A Foundation Platform User Guide:
https://developer.arm.com/docs/100961/latest/
Once done, do the following to build and run an image:
```bash$ bitbake core-image-minimal```
```bash$ export YOCTO_DEPLOY_IMGS_DIR="<yocto-build-dir/tmp/deploy/images/fvp-base>"```
```bash$ cd <path-to-Base_RevC_AEMv8A_pkg-dir/models/Linux64_GCC-X.X/>```
``` ```
bash$ ./FVP_Base_RevC-2xAEMv8A -C bp.virtio_net.enabled=1 \ $ runfvp tmp/deploy/images/fvp-base/core-image-base-fvp-base.fvpconf
-C cache_state_modelled=0 \
-C bp.secureflashloader.fname=${YOCTO_DEPLOY_IMGS_DIR}/bl1-fvp.bin \
-C bp.flashloader0.fname=${YOCTO_DEPLOY_IMGS_DIR}/fip-fvp.bin \
--data cluster0.cpu0=${YOCTO_DEPLOY_IMGS_DIR}/Image@0x80080000 \
--data cluster0.cpu0=${YOCTO_DEPLOY_IMGS_DIR}/fvp-base-gicv3-psci-custom.dtb@0x83000000 \
-C bp.virtioblockdevice.image_path=${YOCTO_DEPLOY_IMGS_DIR}/core-image-minimal-fvp-base.wic
``` ```
If you have built a configuration without a ramdisk, you can use the following
command in U-boot to start Linux:
```VExpress64# booti 0x80080000 - 0x83000000```
## Devices supported in the kernel ## Devices supported in the kernel
- serial - serial
- virtio disk - virtio disk