Compare commits
No commits in common. "master" and "thud" have entirely different histories.
68
README.md
68
README.md
@ -5,74 +5,42 @@
|
|||||||
## Get the repository
|
## Get the repository
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
mkdir yocto-bf
|
$ mkdir yocto-bf
|
||||||
cd yocto-bf
|
$ cd yocto-bf
|
||||||
repo init -u "https://git.blackfinn.de/yocto/linux-blackfinn.git"
|
$ repo init -u "https://git.blackfinn.de/yocto/linux-blackfinn.git"
|
||||||
repo sync
|
$ repo sync
|
||||||
```
|
|
||||||
|
|
||||||
## Build environment
|
|
||||||
|
|
||||||
For details see <https://git.blackfinn.de/docker/oe-buildenv>.
|
|
||||||
|
|
||||||
### Execute
|
|
||||||
|
|
||||||
```shell
|
|
||||||
docker run -it --rm --network host -v=/var/lib/sss/pipes/:/var/lib/sss/pipes/:rw -v $(pwd):$(pwd) -w $(pwd) -u $(id -u $USER):$(id -g $USER) oe-buildenv /bin/bash
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Set Environment
|
## Set Environment
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
MACHINE=<machineconf> source blackfinn-init-build-env
|
$ MACHINE=<machineconf> source blackfinn-init-build-env-init-build-env
|
||||||
```
|
```
|
||||||
|
|
||||||
Supported machineconfs:
|
Supported machineconfs:
|
||||||
|
|
||||||
* qemuarm
|
* qemuarm
|
||||||
|
* qemuarm64
|
||||||
|
* qemumips
|
||||||
|
* qemumips64
|
||||||
|
* qemuppc
|
||||||
|
* qemux86
|
||||||
|
* qemux86-64
|
||||||
* beaglebone-yocto
|
* beaglebone-yocto
|
||||||
|
* edgerouter
|
||||||
|
* genericx86
|
||||||
|
* genericx86-64
|
||||||
|
* mpc8315e-rdb
|
||||||
* raspberrypi3-64
|
* raspberrypi3-64
|
||||||
* raspberrypi4-64
|
* bananapi-m3
|
||||||
|
|
||||||
|
|
||||||
## Build the Image
|
## Build the Image
|
||||||
```shell
|
```shell
|
||||||
bitbake <image_name>
|
$ bitbake console-image
|
||||||
```
|
```
|
||||||
|
|
||||||
Supported images:
|
|
||||||
|
|
||||||
* console-image
|
|
||||||
* console-dev-image
|
|
||||||
* docker-image
|
|
||||||
|
|
||||||
## Flash the Image
|
## Flash the Image
|
||||||
|
|
||||||
### beaglebone-yocto
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
dd if=tmp/deploy/images/beaglebone-yocto/docker-image-beaglebone-yocto.wic of=/dev/<sd_card>
|
$ dd if=tmp/deploy/images/beaglebone/<image_name> of=/dev/<sd_card>
|
||||||
```
|
|
||||||
|
|
||||||
### raspberrypiX-64
|
|
||||||
|
|
||||||
```shell
|
|
||||||
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>
|
|
||||||
```
|
|
||||||
|
|
||||||
## opkg package handling
|
|
||||||
|
|
||||||
### Build index
|
|
||||||
|
|
||||||
```shell
|
|
||||||
bitbake package index
|
|
||||||
```
|
|
||||||
|
|
||||||
### Synchronize packages
|
|
||||||
|
|
||||||
```shell
|
|
||||||
rsync -avz --progress build/tmp/deploy/ipk/ /srv/files.blackfinn.de/data/yocto/gatesgarth/
|
|
||||||
```
|
|
||||||
|
18
default.xml
18
default.xml
@ -4,17 +4,15 @@
|
|||||||
|
|
||||||
<remote name="yo" fetch="git://git.yoctoproject.org"/>
|
<remote name="yo" fetch="git://git.yoctoproject.org"/>
|
||||||
<remote name="oe" fetch="git://git.openembedded.org"/>
|
<remote name="oe" fetch="git://git.openembedded.org"/>
|
||||||
<remote name="gh" fetch="https://github.com"/>
|
<remote name="bf" fetch="https://git.blackfinn.de/yocto"/>
|
||||||
<remote name="bf" fetch="https://git.blackfinn.de"/>
|
<remote name="sx" fetch="https://github.com/linux-sunxi"/>
|
||||||
|
|
||||||
<project name="poky" remote="yo" revision="honister" path="layers/poky" clone-depth="1"/>
|
<project name="poky" remote="yo" revision="thud" path="layers/poky" clone-depth="1"/>
|
||||||
<project name="meta-openembedded" remote="oe" revision="honister" path="layers/meta-openembedded" clone-depth="1"/>
|
<project name="meta-openembedded" remote="oe" revision="thud" path="layers/meta-openembedded" clone-depth="1"/>
|
||||||
<project name="meta-raspberrypi" remote="yo" revision="master" path="layers/meta-raspberrypi" clone-depth="1"/>
|
<project name="meta-raspberrypi" remote="yo" revision="thud" path="layers/meta-raspberrypi" clone-depth="1"/>
|
||||||
<project name="meta-security" remote="yo" revision="honister" path="layers/meta-security" clone-depth="1"/>
|
<project name="meta-sunxi" remote="sx" revision="thud" path="layers/meta-sunxi" clone-depth="1"/>
|
||||||
<project name="meta-virtualization" remote="yo" revision="honister" path="layers/meta-virtualization" clone-depth="1"/>
|
<project name="meta-blackfinn" remote="bf" revision="thud" path="layers/meta-blackfinn">
|
||||||
|
|
||||||
<project name="yocto/meta-blackfinn" remote="bf" revision="master" path="layers/meta-blackfinn">
|
|
||||||
<linkfile dest="blackfinn-init-build-env" src="buildconf/blackfinn-init-build-env"/>
|
<linkfile dest="blackfinn-init-build-env" src="buildconf/blackfinn-init-build-env"/>
|
||||||
</project>
|
</project>
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user