Нет описания

Khem Raj 51b766a7b3 Document building a full featured image with SDK 5 лет назад
.github 2cf991cc31 add templates for commits and issues 5 лет назад
conf b7526a3e22 risc-v: Fix packagegroup dependencies for no clang 5 лет назад
recipes-core b708de6a45 recipes-core: sysvinit-inittab: Work around getty issue 6 лет назад
recipes-devtools f2ec7afd1f gdb: keep empty gdbserver 5 лет назад
recipes-extended 93ef8369d7 ghostscript: Fix typo in FILESEXTRAPATHS_prepend 6 лет назад
recipes-kernel e9c5a90783 perf: Disable libunwind support via PACKAGECONFIG 5 лет назад
recipes-support 12f79e34ef libatomic_ops: Remove using master branch 5 лет назад
tools 8fa69a8f27 switch to using OE-Core/bitbake instead of poky 5 лет назад
wic 1c407570ac wic: add kickstarter file for freedom-u540 6 лет назад
.travis.yml bb86c39270 travis: Use mkdir -p so we can reuse the existing directories 6 лет назад
LICENSE c4a4f88410 Initial commit 6 лет назад
README.md 51b766a7b3 Document building a full featured image with SDK 5 лет назад
setup.sh 7e95e78074 Set BASH_SOURCE to use new path to oe-init-build-env 5 лет назад

README.md

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

Maintainer(s)

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