2019-03-02 06:50:28 +00:00
|
|
|
# Yocto
|
|
|
|
|
|
|
|
...
|
|
|
|
|
|
|
|
## Get the repository
|
|
|
|
|
|
|
|
```shell
|
2020-09-19 06:31:13 +00:00
|
|
|
mkdir yocto-bf
|
|
|
|
cd yocto-bf
|
|
|
|
repo init -u "https://git.blackfinn.de/yocto/linux-blackfinn.git"
|
|
|
|
repo sync
|
2019-03-02 06:50:28 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Set Environment
|
|
|
|
|
|
|
|
```shell
|
2020-09-19 06:31:13 +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
|
2020-09-23 06:30:31 +00:00
|
|
|
* raspberrypi4-64
|
2019-03-12 08:05:41 +00:00
|
|
|
|
|
|
|
|
2019-03-02 06:50:28 +00:00
|
|
|
## Build the Image
|
|
|
|
```shell
|
2020-09-19 06:31:13 +00:00
|
|
|
bitbake console-image
|
2019-03-02 06:50:28 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Flash the Image
|
2020-09-19 06:31:13 +00:00
|
|
|
|
|
|
|
### beaglebone-yocto
|
|
|
|
|
|
|
|
```shell
|
|
|
|
dd if=tmp/deploy/images/beaglebone-yocto/docker-image-beaglebone-yocto.wic of=/dev/<sd_card>
|
|
|
|
```
|
|
|
|
|
|
|
|
### raspberrypiX-64
|
|
|
|
|
2019-03-02 06:50:28 +00:00
|
|
|
```shell
|
2020-09-19 06:31:13 +00:00
|
|
|
bmaptool copy --bmap \
|
|
|
|
tmp/deploy/images/raspberrypiX-64/docker-image-raspberrypiX-64.wic.bmap \
|
|
|
|
tmp/deploy/images/raspberrypiX-64/docker-image-raspberrypiX-64.wic.bz2 \
|
|
|
|
/dev/<sd_card>
|
2019-11-29 16:12:06 +00:00
|
|
|
```
|
2019-03-02 06:50:28 +00:00
|
|
|
|