liqiangguo 090d577fa2 CSKY: fix (libacpi、efivar、efibootmgr、dmidecode、acpica、systemd) compile error | 3 years ago | |
---|---|---|
.github | 3 years ago | |
conf | 3 years ago | |
docs | 3 years ago | |
recipes-bsp | 3 years ago | |
recipes-core | 3 years ago | |
recipes-devtools | 3 years ago | |
recipes-graphics | 3 years ago | |
recipes-kernel | 3 years ago | |
recipes-support | 3 years ago | |
tools | 3 years ago | |
wic | 3 years ago | |
.travis.yml | 3 years ago | |
CONTRIBUTORS | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
setup.sh | 3 years ago |
CSKY Architecture Layer for OpenEmbedded/Yocto
This is the general hardware-specific BSP overlay for the CSKY based devices.
More information can be found at: https://csky.org/ (Official Site)
The core BSP part of meta-csky 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 csky-yocto && cd csky-yocto
repo init -u git://github.com/csky/meta-csky -b master -m tools/manifests/csky-yocto.xml
repo sync
repo start work --all
In order to bring all the layers up to date with upstream
cd csky-yocto
repo sync
repo rebase
. ./meta-csky/setup.sh
The three different machines you can build for are:
A console-only image for the 64-bit QEMU machine
MACHINE=qemucsky bitbake core-image-full-cmdline
To build an image to run on the HiFive Unleashed using Wayland run the following
MACHINE=freedom-u540 bitbake core-image-weston
To build a full GUI equipped image running Plasma Mobile see the in-tree documentation here.
Run the 32-bit machine in QEMU using the following command:
MACHINE=qemucsky runqemu nographic
If you would like to boot the images from a TFTP server (optional) you should set your TFTP server address in your local.conf with the following line. Change 127.0.0.1
to the IP address of your TFTP server and copy the uImage to the server.
TFTP_SERVER_IP = "127.0.0.1"
To use the Microsemi expansion board with your HiFive Unleased add the following line to your local.conf. This tells the Unleashed to use a device tree with the PCIe device described:
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/sdX
The output of a freedom-u540
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
<raj dot khem at gmail.com>