OpenEmbedded/Yocto layer for RISC-V Architecture
Find a file
Alistair Francis 672c73f1be riscv-pk: Remove riscv-pk as we no longer use BBL
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-07 22:37:41 -08:00
.github add templates for commits and issues 2018-07-27 07:49:52 -07:00
conf qemuriscv: Enable earlycon via SBI 2019-03-07 20:23:00 -08:00
docs docs: Add information on building Plasma Mobile for RISC-V 2019-03-04 18:24:09 -08:00
recipes-bsp/opensbi opensbi: Bump to version 0.3 2019-02-27 10:22:02 -08:00
recipes-core glibc: Update the 32-bit glibc fork 2019-02-05 11:04:55 -08:00
recipes-dbs/mariadb mariadb: Fix build issues on risc-v 2019-03-03 22:07:15 -08:00
recipes-devtools riscv-pk: Remove riscv-pk as we no longer use BBL 2019-03-07 22:37:41 -08:00
recipes-extended/ghostscript ghostscript: Fix typo in FILESEXTRAPATHS_prepend 2018-02-15 01:08:42 -08:00
recipes-kernel/linux linux-yocto: Set qemuriscv32 and qemuriscv64 as compatible 2019-03-07 20:23:00 -08:00
recipes-support/libffi libgpg-error: Remove riscv32 backport patch 2019-02-04 19:21:02 -08:00
tools/manifests switch to using OE-Core/bitbake instead of poky 2018-08-29 09:56:07 -07:00
wic riscv-pk: Remove riscv-pk as we no longer use BBL 2019-03-07 22:37:41 -08:00
.travis.yml travis: Use mkdir -p so we can reuse the existing directories 2018-03-16 18:32:49 -07:00
LICENSE Initial commit 2017-10-02 23:08:43 -07:00
README.md README.md: Update to use openSBI 2019-03-04 18:21:38 -08:00
setup.sh Add systemd for distro init manager (derived from #34 comment) 2018-09-25 15:16:08 -07:00

meta-riscv

RISC-V Architecture Layer for OpenEmbedded/Yocto

license Build Status

Description

This is the general hardware specific BSP overlay for the RISC-V based devices.

More information can be found at: https://riscv.org/ (Official Site)

The core BSP part of meta-riscv should work with different OpenEmbedded/Yocto distributions and layer stacks, such as:

  • Distro-less (only with OE-Core).
  • Angstrom.
  • Yocto/Poky (main focus of testing).

Dependencies

This layer depends on:

  • URI: git://github.com/openembedded/openembedded-core
    • branch: master
    • revision: HEAD
  • URI: git://github.com/openembedded/bitbake
    • branch: master
    • revision: HEAD

Quick Start

Note: You only need this if you do not have an existing Yocto Project build environment.

Make sure to install the repo command by Google first.

Create workspace

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

Update existing workspace

In order to bring all layers uptodate with upstream

cd riscv-yocto
repo sync
repo rebase

Setup Build Environment

. ./meta-riscv/setup.sh

Build Image

A console-only image

bitbake core-image-full-cmdline

Basic image without X support suitable for Linux Standard Base (LSB) implementations. It includes the full meta-toolchain, plus development headers and libraries to form a standalone (on device) SDK

bitbake core-image-lsb-sdk

Run in QEMU

runqemu nographic

Running wic.gz image on hardware

The output of the build will be a <image>.wic.gz file. You can write this file to an sd card using:

$ zcat <image>-<machine>.wic.gz | sudo dd of=/dev/sdX bs=4M iflag=fullblock oflag=direct conv=fsync status=progress

Sparse Image Creation

The output of the build can also be written to an SD card using bmaptool, the steps to do this are below:

$ MACHINE=freedom-u540 wic create freedom-u540-opensbi -e core-image-minimal
$ bmaptool create ./freedom-u540-opensbi-201812181337-mmcblk.direct > image.bmap
$ sudo bmaptool copy --bmap image.bmap ./freedom-u540-opensbi-201812181337-mmcblk.direct /dev/sdd

Maintainer(s)

  • Khem Raj <raj dot khem at gmail.com>