Alistair Francis 4157f3e012 gdb: Remove the RISC-V GDB | před 5 roky | |
---|---|---|
.github | před 5 roky | |
conf | před 5 roky | |
docs | před 5 roky | |
dynamic-layers | před 5 roky | |
recipes-bsp | před 5 roky | |
recipes-core | před 5 roky | |
recipes-devtools | před 5 roky | |
recipes-extended | před 5 roky | |
recipes-kernel | před 5 roky | |
recipes-support | před 5 roky | |
tools | před 5 roky | |
wic | před 5 roky | |
.travis.yml | před 6 roky | |
LICENSE | před 6 roky | |
README.md | před 5 roky | |
setup.sh | před 5 roky |
RISC-V Architecture Layer for OpenEmbedded/Yocto
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:
This layer depends on:
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.
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
In order to bring all layers uptodate with upstream
cd riscv-yocto
repo sync
repo rebase
. ./meta-riscv/setup.sh
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
runqemu nographic
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
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
<raj dot khem at gmail.com>