Нема описа

Khem Raj 0aea644bb7 libunwind: Fix build for riscv64 пре 5 година
.github 2cf991cc31 add templates for commits and issues пре 5 година
conf 41ef243e31 qemuriscv: Add the virtio-rng device to pass entropy to the guest пре 5 година
docs 354aa21689 docs: Add information on building Plasma Mobile for RISC-V пре 5 година
dynamic-layers b9be00d487 qtbase,qtdeclarative: Add -pthread to linker flags пре 5 година
recipes-bsp 550e98c1bd opensbi: Fix build with gcc9 tentatively пре 5 година
recipes-core ab1ebdc9ba glibc: Update 32-bit glibc пре 5 година
recipes-devtools 672c73f1be riscv-pk: Remove riscv-pk as we no longer use BBL пре 5 година
recipes-extended 551482f31e ltp: Fix build with musl пре 5 година
recipes-kernel a14f6bbc93 recipes-kernel: linux-mainline: Initial commit of mainline 5.1 kernel пре 5 година
recipes-support 0aea644bb7 libunwind: Fix build for riscv64 пре 5 година
tools 8fa69a8f27 switch to using OE-Core/bitbake instead of poky пре 5 година
wic 672c73f1be riscv-pk: Remove riscv-pk as we no longer use BBL пре 5 година
.travis.yml bb86c39270 travis: Use mkdir -p so we can reuse the existing directories пре 6 година
LICENSE c4a4f88410 Initial commit пре 6 година
README.md cf24c54a36 README.md: Update to use openSBI пре 5 година
setup.sh eeffb318ad Add systemd for distro init manager (derived from #34 comment) пре 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

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>