2019-03-02 06:50:28 +00:00
|
|
|
# Yocto
|
|
|
|
|
|
|
|
...
|
|
|
|
|
|
|
|
## Get the repository
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ mkdir yocto-bf
|
|
|
|
$ cd yocto-bf
|
|
|
|
$ repo init -u "https://git.blackfinn.de/yocto/linux-blackfinn.git"
|
|
|
|
$ repo sync
|
|
|
|
```
|
|
|
|
|
|
|
|
## Set Environment
|
|
|
|
|
|
|
|
```shell
|
2019-11-29 19:26:51 +00:00
|
|
|
$ MACHINE=<machineconf> source blackfinn-init-build-env
|
2019-03-02 06:50:28 +00:00
|
|
|
```
|
|
|
|
|
2019-03-12 08:05:41 +00:00
|
|
|
Supported machineconfs:
|
|
|
|
|
|
|
|
* qemuarm
|
|
|
|
* beaglebone-yocto
|
|
|
|
* raspberrypi3-64
|
|
|
|
* bananapi-m3
|
|
|
|
|
|
|
|
|
2019-03-02 06:50:28 +00:00
|
|
|
## Build the Image
|
|
|
|
```shell
|
|
|
|
$ bitbake console-image
|
|
|
|
```
|
|
|
|
|
|
|
|
## Flash the Image
|
|
|
|
```shell
|
|
|
|
$ dd if=tmp/deploy/images/beaglebone/<image_name> of=/dev/<sd_card>
|
2019-11-29 16:12:06 +00:00
|
|
|
```
|
2019-03-02 06:50:28 +00:00
|
|
|
|