Add xenguest-base-image recipe to create an initial xenguest image
directory in deploy.
This is using the xenguest-image class.
The recipe is also introducing several parameters named
XENGUEST_IMAGE_SRC_URI_* to allow the user to specify files or elements
to be added to the xenguest image.
Those parameters are documented inside the recipe.
Change-Id: I806a2fa07fb9593c366d88e2f4ee8b649cbcf8ea
Issue-Id: SCM-767
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
Create xenguest-image class to be used by recipes and other classes to
manipulate xenguest images.
The recipe is defining some variables to configure default parameters of
xenguest image (memory size, number of vcpus, command line, etc.). Those
parameters all have the prefix XENGUEST_IMAGE_ and are documented at the
beginning of the class.
The class also provide some helper functions:
- xenguest_image_create to create a xenguest image (using global
parameters) in deploy as xenguest image directory
- xenguest_image_clone to clone current xenguest image from deploy to be
able to extend it and pack it in a xenguest image file
- xenguest_image_rootfs_file function to allow other recipes to detect
if the rootfs should or not be embedded in the xenguest image
Change-Id: I4ba54aa2c41e72964c152f673b71fe32f30b4aca
Issue-Id: SCM-767
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
Add xenguest-manager to handle xenguest image based guests:
- create guest (use LVM to create disks for guests)
- start/stop guests
- provide init script to have guest auto started on boot
- add documentation
Change-Id: I5319ecb77f3aa9f8c1aff4891c05973288156f11
Issue-Id: SCM-767
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
Create a xenguest-mkimage tool to create Xen guest images.
Add documentation to explain what is a xenguest-image and how to use
xenguest-mkimage.
Change-Id: Id87240a4dfac2723f1dcceb8bfe969a7633ef261
Issue-Id: SCM-767
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
Create a xen-devicetree recipe to add entries required to boot Xen and a
Dom0 inside a DTB.
The recipe is introducing XEN_DEVICETREE_* parameters to define the xen
command line, the dom0 command line, the dom0 memory size, the dom0
kernel load address and size.
The recipe can also be extended using bbappend to adapt the device tree
and the parameters.
Adaptation are provided to support Juno, fvp-base and foundation-armv8
boards from meta-arm-bsp.
Add xen-devicetree as EXTRA_IMAGEDEPENDS to
arm-autonomy-host-image-minimal
Change-Id: Ibcfbd02c2377a9abcbd20caa47ea833b5308fbac
Issue-Id: SCM-767
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
Add a quick start documentation to help user to start using the layer.
Change-Id: I3aea950d2dfdcae41bbdb8f3df4f29196048338b
Issue-Id: SCM-767
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
Create a minimalistic BSP to be used as an arm-autonomy-guest on ARM64.
The BSP is enabling ARM64 and SMP in the kernel configuration and is
enabling the arm-autonomy-guest in DISTRO_FEATURES.
Rework README.md file.
Change-Id: I7ef0176a3426748c4b66cdec5801aa34229187ba
Issue-Id: SCM-767
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
Introduce DISTRO_FEATURE arm-autonomy-guest which is:
- enabling ipv4 in distro features
- enabling xen frontend driver in the linux kernel using a kernel
feature
- enabling console over hvc0
Change-Id: Idd9a708799b35e483dbba22279ce677d9674ef09
Issue-Id: SCM-767
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
Create minimal image suitable for an arm-autonomy-host containing:
- the boot packagegroup
- the ssh server packagegroup
- xen base tools
- qemu (required to start xen guests)
Change-Id: If864fc6b768cbe4ca19bfe24753c008146b7550c
Issue-Id: SCM-767
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
Create a new distribution feature to enable functionalities for autonomy
host systems:
- enable xen and ipv4 in distribution features
- enable xen backend drivers in Linux kernel using a kmeta feature
For the feature to work properly, create a class inherited when the
layer is included to enable required parameters
Change-Id: Ia0cdaa2b69bc030515ea16d67c47fec6b1ea0897
Issue-Id: SCM-767
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
meta-arm-bsp has dependencies on other layers, which are not being
represented in the layers.conf file. This causes build breaks when
using tools like `bitbake-layers layerindex-fetch`, as it will not fetch
the depencies properly. Currently, the dependencies on other layers are:
* core => u-boot, linux, etc
* openembedded-layer (meta-oe) => haveged
* meta-arm => trusted-firmware-a
Change-Id: Icafc2f1c55a6138172706bb4b99e9dc59904cad4
Signed-off-by: Jon Mason <jon.mason@arm.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>
The current WIC references in the A5DS config file are causing a build
break, due to not being defined. These WIC files should be revisited
once the IOTA distro is present.
Change-Id: Ied2cd6f768625d18150ed60bd5fe317e06c7f48a
Signed-off-by: Jon Mason <jon.mason@arm.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>
This patch is to add recipe for OpenCSD, which is an open source
CoreSight trace decode library and utility.
Also create a new folder recipes-devtools under meta-arm to place
this recipe.
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
A user of the BSP layer may decide to use the machine
configuration but a different kernel.
Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Jon Mason <jon.mason@arm.com>
When foundation platform is booted with SVE enabled in linux
kernel and with Xen hypervisor, linux kernel is stopped by a
trap catched by Xen during early boot as Xen is configuring
the coprocessor to trap access to SVE to EL2.Disabling the SVE
in foundation to boot the guest and host.
Change-Id: I862540a46686f1fb5343a3143da61db6073bb1d3
Signed-off-by: Rahul Singh <rahul.singh@arm.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
Use xen dtb if xen image is present for foundation
and fvp pltaform.
Change-Id: I8ee0c5f59ea731202ca97c2cdef315cc5e6665e6
Signed-off-by: Rahul Singh <rahul.singh@arm.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
When calling `bitbake virtual/kernel -c menuconfig` it fails if the
ncurses-dev package is not installed on the host machine.
This patch makes usage of the ncurses library built by yocto if it
is present.
Change-Id: I6a8c4ca6a7da07ac834b29a2d23e83e6c153efb3
Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
Add tf-a recipes, u-boot, machine configuration, and documentation to
support Arm Cortex-A5 Designstart.
The output of this build is compatible to run on the FVP and
the FPGA implementation of the package.
For more information see:
https://community.arm.com/developer/ip-products/processors/\
designstart/b/blog/posts/\
pre-silicon-software-development-with-arm-models-for-cortex-a5-designstart
Change-Id: Ie2715ad1871975cb7620d7a195c8dd74144629da
Signed-off-by: Rui Miguel Silva <rui.silva@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
Move Juno patches to machine specific directory. This will allow to
add others machines related patches later on.
Change-Id: I71c327ca4866fdb0205eeac0f40475e691caf4cc
Signed-off-by: Rui Miguel Silva <rui.silva@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
Add support to build using the upstream (Linus tree) and as first user
add recipe for v5.3, which will be later.
Change-Id: I0f30a45002adca7c0b95a0421e0291a6852295eb
Signed-off-by: Rui Miguel Silva <rui.silva@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
Feedback received that it is not acceptable to have a distro layer
inside (https://lists.yoctoproject.org/g/meta-arm/message/6). Removing
from meta-arm and will create a separate git repository once that code
is ready.
Change-Id: I74d1083341d90caa038c1bd8c1d53aa565d28460
Signed-off-by: Jon Mason <jon.mason@arm.com>
The current MACHINE setting could be different than when bitbake was
originally run, thus causing an error when the start scripts are run.
Set the MACHINE in each bitbake command call to get around this.
Change-Id: I778b58d751ea0ddbcac6d73f347e6861edcf1ecf
Signed-off-by: Jon Mason <jon.mason@arm.com>
This has moved from meta-linaro to meta-arm as this
is the new place for general recipes for Arm arch
and has a mailing list for external contributors.
python2 is now EOL. This patch updates to python3
but is a backport from v3.8.0 release.
Change-Id: Ib778b8dd9c605e1fbb69627f5e640c1683c3176b
Tested-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
This has moved from meta-linaro to meta-arm as this
is the new place for general recipes for Arm arch
and has a mailing list for external contributors.
Change-Id: I75de7398e9247c8a329f50292f912b7787ead372
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
This has moved from meta-linaro to meta-arm as this
is the new place for general recipes for Arm arch
and has a mailing list for external contributors.
Change-Id: Id43f498e35350eb62a718e64011c8b2f8cd85fdd
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
This has moved from meta-linaro to meta-arm as this
is the new place for general recipes for Arm arch
and has a mailing list for external contributors.
Change-Id: I5550620801d1d86217abb84f52fcd1e9a5873b08
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Add an extra partition to the disk image generated for FVP and
Foundation platform (to be used for user data or extra usage). The
partition is created on the hard drive but is not formated.
Speed up running on FVP and Foundation by optimizing model parameters:
- disable options that are already set by default
- disable cache modelling on FVP
- disable secure memory
- disable real time on Foundation (prevents timeout as execution is a
lot slower then on a real system)
Change-Id: I20d613bd8b0f4cb7df87c294d45b9f718f6a8ed3
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Use haveged instead of rngd (That gets added when adding ssh) since rngd
init is taking ~7 mins during boot time
Change-Id: I038c42b8a7c025959248d78940483322421ad5ef
Signed-off-by: Vineeth Raveendran <vineeth.raveendran@arm.com>
Add a new meta-arm-toolchain layer to hold ARM GNU-A toolset recipes
imported from meta-linaro tree, branch: master and commit ID:
504ca3b217c9602b10eda0ec8a9f1055b59e482f.
Change-Id: I5a2907874da2869ab94d7d48e0cf4a1bfe241041
Tested-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Do not try to add distro features from juno machine definition.
Modify juno documentation to mention usbhost and usbgadget in case
someone use a distribution not activating them by default.
Change-Id: I7fc44c9921ce3fdbf069fd5354f37bb2ec38ac53
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
In order to have SCMi or HDMI support, the Juno BSP must use
the Linaro kernel instead of the standard Yocto one.
Change-Id: Ib53cb81a074439e9a4018bf356d749c7fd0a5d5a
Signed-off-by: Vineeth Raveendran <vineeth.raveendran@arm.com>
The following warnings are seen when building fvp-base
WARNING: fvp-base-native-r11p7-30rel0-r0 do_populate_lic: fvp-base-native: No generic license file exists for: GPL in any provider
WARNING: fvp-base-native-r11p7-30rel0-r0 do_populate_lic: fvp-base-native: No generic license file exists for: Apache in any provider
Correct the license names to the expected strings resolves the issue
Change-Id: Ia4962736840de8b4a02d0c9d59b7c14c9999997c
Signed-off-by: Jon Mason <jon.mason@arm.com>
Remove meta-arm-integration, as it is not currently being used. Also,
remove the reference in the README.md. These can be added bach when
they are in use again.
Change-Id: If8535d6d9a0a307a42b24e8f42e0eb7847e047c4
Signed-off-by: Jon Mason <jon.mason@arm.com>
The TF-A recipes should only be in meta-arm-integration after we have
submitted them for inclusion in Yocto git tree. Move them to the proper
location until this occurs.
Change-Id: Ia2fa5c5a377392aa45b801bd1f2ae4ca0f056c34
Signed-off-by: Jon Mason <jon.mason@arm.com>
Exceptions will be cases involving overrides, machine specific
varible expansion and cases where variable modification needed to be
done after all += operations.
Change-Id: I7c76a77949d0a012238d488d5a75c489c54abf68
Signed-off-by: Vineeth Raveendran <vineeth.raveendran@arm.com>
Add Yocto support for Gem5:
- add kernel configuration
- add recipes to build an image using boot-wrapper-aarch64
- add recipes to build Gem5 native to run the produced image
- add script to start image using gem5
- add recipe to create a dtb using gem5
- add recipe to build an image using gem5 boot wrapper
- add dts to linux kernel for gem5 for arm64
- add scons for python2 as this is required to build gem5 (until gem5
will support python3)
- add xen patch to limit number of interrupts if hardware is claiming to
have to more interrupts then the number supported by xen
When an image has been built it can be directly started using gem5 using
this command (console is available using telnet localhost 3456):
./tmp/deploy/tools/start-gem5.sh
Change-Id: Iec5ef735fc22643685e29ffbdaf63a55b1111c60
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Add Yocto support for Juno development board:
- add machine definition
- add kernel configuration
- add u-boot patch to get the environment from a file in flash
- add trusted firmware extension to produce a firmware image
- add ifupdown interfaces to start eth0 and eth1 on startup
Change-Id: I5046166cf1cc9e80a57815ef6bfb0cbb263a704e
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Add recipes and configuration files to add Yocto support
for FVP Base simulator from arm.
The following components are supported:
- trusted-firmware-a
- linux kernel (with specific kernel configuration and dts)
- xen (with meta-virtualization layer)
- unpacking and starting the generated image directly in Foundation
simulator (package must be download from www.arm.com website and put in
the directory downloads/licensed/silver.arm.com).
After building, the following command can be used to start a generated
image in fvp:
./tmp/deploy/tools/start-fvp-base.sh
Change-Id: I1759aecf32e84e25e813d7b0305f49616d4b47ef
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Add recipes and configuration files to add Yocto support
for Foundation armv8 simulator from arm.
The following components are supported:
- trusted-firmware-a
- linux kernel (with specific kernel configuration)
- xen (with meta-virtualization layer)
- unpacking and starting the generated image directly in Foundation
simulator (package must be download from www.arm.com website and put in
the directory downloads/licensed/silver.arm.com).
After building, the following command can be used to start a generated
image in foundation:
./tmp/deploy/tools/start-foundation-armv8.sh
Change-Id: Iade343c38f0799ee8523434d555cb3ca42068a86
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Fix TF-A recipe to only download mbedTLS when it is activated.
Allow user to modify TFA_BUILD_DIR and set BUILD_PLAT accordingly in
make arguments to properly set the build directory.
Change-Id: Ib53b245d4d3b2d62e41f0ef238ad03dc45bab056
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Also, removed empty README.md files (which were place holders for the
directories).
Change-Id: I1c1db95158f257015b5eb9f4a6f05219df489b4a
Signed-off-by: Jon Mason <jon.mason@arm.com>
Add a little more description for what belongs in meta-arm/meta-arm (per
feedback from Richard Purdie), and modify the max width to be 80
characters to improve readability.
Change-Id: I8f7b0598e3336132c2594c92cf3400dd5e216baf
Signed-off-by: Jon Mason <jon.mason@arm.com>
Add a generic Trusted Firmware A recipe using TF-A version 2.1
Change-Id: I873509970bd44c6cfdaa0456516197a4eebf6ebd
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Add README and License Files in the root directory describing the layers
and process for interacting with the meta-arm layer. Create the
directories for future layers (and add empty README files to force the
directories to be created by git).
Change-Id: I4d70759bf90b1c964e6d9040d145737b2f441205
Signed-off-by: Jon Mason <jon.mason@arm.com>