Skip to content

ThalesGroup/meta-openhw

Repository files navigation

All development for Yocto CVA6 is now done in the OpenHWGroup repo.

meta-openhw

This README file contains information on the contents of the meta-cva6 layer.

This layer is compatible with honister.

Dependencies

This layer depends on:

System requirements

The system requirements for yocto are described here.

Adding the meta-cva6 layer to your build

First install the repo tool

mkdir ${HOME}/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ${HOME}/bin/repo
chmod a+x ${HOME}/bin/repo
PATH=${PATH}:~/bin

Create workspace

mkdir cva6-yocto && cd cva6-yocto
repo init -u https://github.com/ThalesGroup/meta-openhw -b master -m tools/manifests/openhw-yocto.xml
repo sync
repo start work --all

Setup Build Environment

. ./meta-openhw/setup.sh

Available Machines

This layer is available for:

  • cv[32|64]a6-genesys2: The Digilent FPGA board with the bitstream generated from the cva6 corev-apu.

Build and flash your image

To generate a console-only image for the cv32a6-genesys2:

MACHINE=cv32a6-genesys2 bitbake core-image-minimal

Image files will be located in build/tmp-glibc/deploy/images/cv32a6-genesys2.

Warning, you need to find the correct device image and fill it in the dd's of= parameter:

gunzip -c build/tmp-glibc/deploy/images/cv32a6-genesys2/core-image-minimal-cv32a6-genesys2.wic.gz | sudo dd of=/dev/sd$ bs=1M iflag=fullblock oflag=direct conv=fsync status=progress

The login is "root", no password is needed.

Tests done

The core-image-minimal has been tested for the 32 and 64bits version of corev-apu with release 3ddf797.

TFTP boot from u-boot is working.