Files
meta-riscv/README.md
2018-06-21 15:59:00 -07:00

81 lines
1.9 KiB
Markdown

# meta-riscv
RISC-V Architecture Layer for OpenEmbedded/Yocto
[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/riscv/meta-riscv/blob/kraj/master/COPYRIGHT)
[![Build Status](https://travis-ci.org/riscv/meta-riscv.svg?branch=master)](https://travis-ci.org/riscv/meta-riscv)
## 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](https://source.android.com/setup/downloading#installing-repo) first.
## Create workspace
```shell
mkdir 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
```shell
cd riscv-yocto
repo sync
repo rebase
```
## Setup Build Environment
```shell
. ./meta-riscv/setup.sh
```
## Build Image
```shell
bitbake core-image-full-cmdline
```
## Run in QEMU
```shell
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:
```shell
$ 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>`