Skip to content

Commit 6b275b0

Browse files
authored
Merge pull request #25 from SoftwareDefinedVehicle/fix-raspi-kas-config
Fix kas config for Raspberry Pi boot problem
2 parents b9f08c4 + 999306f commit 6b275b0

File tree

16 files changed

+133
-213
lines changed

16 files changed

+133
-213
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
env:
4848
KAS_MACHINE: qemux86-64
4949
run: |
50-
(r=3;while ! kas build kas/leda-kirkstone.yaml:kas/spdx.yaml:kas/mirrors.yaml ; do ((--r))||exit;sleep 60;done)
50+
(r=3;while ! kas build kas/leda-qemux86-64 ; do ((--r))||exit;sleep 60;done)
5151
- name: Generate CHANGELOG.md
5252
run: |
5353
docker run --rm -v "$(pwd)":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator github_changelog_generator -u eclipse-leda -p leda-distro --no-author
@@ -125,7 +125,7 @@ jobs:
125125
env:
126126
KAS_MACHINE: qemuarm64
127127
run: |
128-
(r=3;while ! kas build kas/leda-kirkstone.yaml:kas/spdx.yaml:kas/mirrors.yaml ; do ((--r))||exit;sleep 60;done)
128+
(r=3;while ! kas build kas/leda-qemuarm64.yaml ; do ((--r))||exit;sleep 60;done)
129129
- name: Generate CHANGELOG.md
130130
run: |
131131
docker run --rm -v "$(pwd)":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator github_changelog_generator -u eclipse-leda -p leda-distro --no-author
@@ -201,7 +201,7 @@ jobs:
201201
env:
202202
KAS_MACHINE: raspberrypi4-64
203203
run: |
204-
(r=3;while ! kas build kas/leda-kirkstone.yaml:kas/spdx.yaml:kas/mirrors.yaml ; do ((--r))||exit;sleep 60;done)
204+
(r=3;while ! kas build kas/leda-raspberrypi4-64.yaml ; do ((--r))||exit;sleep 60;done)
205205
- name: Generate CHANGELOG.md
206206
run: |
207207
docker run --rm -v "$(pwd)":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator github_changelog_generator -u eclipse-leda -p leda-distro --no-author

.github/workflows/dryrun.yml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,41 @@ on:
2424
workflow_dispatch:
2525

2626
jobs:
27-
kirkstone:
28-
name: Yocto (Kirkstone)
27+
dryrun-qemux86-64:
28+
name: Dry-Run (qemux86-64)
2929
runs-on: ubuntu-22.04
3030
steps:
3131
- name: Checkout
3232
uses: actions/checkout@v3
3333
- name: Install tools
34-
run: sudo apt-get install -y --no-install-recommends socat file gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev zstd liblz4-tool tmux mc skopeo fdisk ruby-full jq libvirt-clients libvirt-daemon-system qemu-system-x86 qemu-system-arm qemu-kvm squashfs-tools rauc python3-newt ca-certificates curl gnupg lsb-release
34+
run: sudo apt-get install -y --no-install-recommends socat file gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev zstd liblz4-tool python3-newt ca-certificates curl gnupg lsb-release
3535
- name: Install kas
3636
run: sudo pip3 install kas
3737
- name: DryRun sdv-image-all
38-
run: kas build kas/leda-kirkstone.yaml -- --dry-run
38+
run: kas build kas/leda-qemux86-64.yaml -- --dry-run
39+
40+
dryrun-qemuarm64:
41+
name: Dry-Run (qemuarm64)
42+
runs-on: ubuntu-22.04
43+
steps:
44+
- name: Checkout
45+
uses: actions/checkout@v3
46+
- name: Install tools
47+
run: sudo apt-get install -y --no-install-recommends socat file gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev zstd liblz4-tool python3-newt ca-certificates curl gnupg lsb-release
48+
- name: Install kas
49+
run: sudo pip3 install kas
50+
- name: DryRun sdv-image-all
51+
run: kas build kas/leda-qemuarm64.yaml -- --dry-run
52+
53+
dryrun-raspberrypi4-64:
54+
name: Dry-Run (raspberrypi4-64)
55+
runs-on: ubuntu-22.04
56+
steps:
57+
- name: Checkout
58+
uses: actions/checkout@v3
59+
- name: Install tools
60+
run: sudo apt-get install -y --no-install-recommends socat file gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev zstd liblz4-tool python3-newt ca-certificates curl gnupg lsb-release
61+
- name: Install kas
62+
run: sudo pip3 install kas
63+
- name: DryRun sdv-image-all
64+
run: kas build kas/leda-raspberrypi4-64.yaml -- --dry-run

.github/workflows/prebuild-sstate.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
if: always()
5050
continue-on-error: true
5151
run: |
52-
KAS_MACHINE=qemux86-64 timeout --signal=SIGINT 4h kas build --update kas/leda-kirkstone.yaml:kas/spdx.yaml:kas/mirrors.yaml
52+
timeout --signal=SIGINT 4h kas build --update kas/leda-qemux86-64.yaml
5353
- uses: bacongobbler/azure-blob-storage-upload@v3.0.0
5454
if: github.repository_owner == 'SoftwareDefinedVehicle'
5555
with:
@@ -82,7 +82,7 @@ jobs:
8282
if: always()
8383
continue-on-error: true
8484
run: |
85-
KAS_MACHINE=qemuarm64 timeout --signal=SIGINT 4h kas build --update kas/leda-kirkstone.yaml:kas/spdx.yaml:kas/mirrors.yaml
85+
timeout --signal=SIGINT 4h kas build --update kas/leda-qemuarm64.yaml
8686
- uses: bacongobbler/azure-blob-storage-upload@v3.0.0
8787
if: github.repository_owner == 'SoftwareDefinedVehicle'
8888
with:
@@ -115,7 +115,7 @@ jobs:
115115
if: always()
116116
continue-on-error: true
117117
run: |
118-
KAS_MACHINE=raspberrypi4-64 timeout --signal=SIGINT 4h kas build --update kas/leda-kirkstone.yaml:kas/spdx.yaml:kas/mirrors.yaml
118+
timeout --signal=SIGINT 4h kas build --update kas/leda-raspberrypi4-64.yaml
119119
- uses: bacongobbler/azure-blob-storage-upload@v3.0.0
120120
if: github.repository_owner == 'SoftwareDefinedVehicle'
121121
with:

.github/workflows/test-eclipse-runner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
run: git clone --recurse-submodules https://github.com/${{github.repository}} leda/
3434

3535
- name: DryRun sdv-image-all
36-
run: cd leda && kas build kas/leda-kirkstone.yaml --target sdv-image-all -- --dry-run
36+
run: cd leda && kas build kas/leda-qemux86-64.yaml --target sdv-image-all -- --dry-run

.ort/ort-config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit d9208476ce149197a938e8411e9918105701228c
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 52b3dc25f6471c27b2144594abb11c741cb88f57

BUILD.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,8 @@ Please see the [Leda Documentation](https://eclipse-leda.github.io/leda/docs/bui
1212

1313
3. Start the build for qemux86_64:
1414

15-
kas build kas/leda-kirkstone.yaml
15+
kas build kas/leda-qemux86-64.yaml
1616

17-
4. To build for another target machine, set the `KAS_MACHINE` environment variable:
17+
4. To build for another target machine, is the other kas config files:
1818

19-
KAS_MACHINE=raspberrypi4-64 kas build kas/leda-kirkstone.yaml
20-
21-
22-
5. To build using mirrors which greatly improves build time:
23-
24-
kas build kas/leda-kirkstone.yaml:kas/mirrors.yaml
19+
kas build kas/leda-raspberrypi4-64.yaml

kas/README.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,32 @@
22

33
To start a full build, e.g. for the Kirkstone release, run the following command:
44

5-
kas build kas/leda-kirkstone.yaml
6-
7-
kas build -c cleanall kas/leda-kirkstone.yaml k3s
5+
kas build kas/leda-qemux86-64.yaml
86

97
kas will then check out all necessary dependencies as specified in the project configuration file. After that, it will start the build for the machine, distro and target device.
108

119
# Running
1210

1311
Running with user-level networking, in case the host does not have TAP/TUN set up properly. If you have TAP/TUN set up, remove the `slirp` keyword. Also enable the OVMF bios for multiboot. If you have kvm enabled on your host, add the `kvm` keyword:
1412

15-
kas shell kas/leda-kirkstone.yaml -c 'runqemu nographic ovmf kvm'
13+
kas shell kas/leda-qemux86-64.yaml -c 'runqemu nographic ovmf kvm'
1614

1715
Boot directly into a specific partition:
1816

19-
kas shell kas/leda-kirkstone.yaml -c 'runqemu slirp nographic ovmf sdv-image-all'
20-
kas shell kas/leda-kirkstone.yaml -c 'runqemu slirp nographic ovmf sdv-image-full'
21-
kas shell kas/leda-kirkstone.yaml -c 'runqemu slirp nographic ovmf sdv-image-minimal'
22-
kas shell kas/leda-kirkstone.yaml -c 'runqemu slirp nographic ovmf sdv-image-rescue'
17+
kas shell kas/leda-qemux86-64.yaml -c 'runqemu slirp nographic ovmf sdv-image-all'
18+
kas shell kas/leda-qemux86-64.yaml -c 'runqemu slirp nographic ovmf sdv-image-full'
19+
kas shell kas/leda-qemux86-64.yaml -c 'runqemu slirp nographic ovmf sdv-image-minimal'
20+
kas shell kas/leda-qemux86-64.yaml -c 'runqemu slirp nographic ovmf sdv-image-rescue'
2321

2422
# Debugging BitBake
2523

2624
The following commands show the layer setup and information about which recipes are being appended:
2725

28-
kas shell kas/leda-kirkstone.yaml -c 'bitbake-layers show-layers'
29-
kas shell kas/leda-kirkstone.yaml -c 'bitbake-layers show-overlayed'
30-
kas shell kas/leda-kirkstone.yaml -c 'bitbake-layers show-recipes'
31-
kas shell kas/leda-kirkstone.yaml -c 'bitbake-layers show-appends'
32-
kas shell kas/leda-kirkstone.yaml -c 'bitbake -c cleanall '
26+
kas shell kas/leda-qemux86-64.yaml -c 'bitbake-layers show-layers'
27+
kas shell kas/leda-qemux86-64.yaml -c 'bitbake-layers show-overlayed'
28+
kas shell kas/leda-qemux86-64.yaml -c 'bitbake-layers show-recipes'
29+
kas shell kas/leda-qemux86-64.yaml -c 'bitbake-layers show-appends'
30+
kas shell kas/leda-qemux86-64.yaml -c 'bitbake -c cleanall '
3331

3432
# Mirrors and Build Caching
3533

@@ -38,7 +36,7 @@ In general, run a BitBake Hash Equivalence Server centrally.
3836

3937
To use our project cache, include the `mirrors.yaml` configuration file when building:
4038

41-
kas build kas/leda-kirkstone.yaml:kas/mirrors.yaml
39+
kas build kas/leda-qemux86-64.yaml:kas/mirrors.yaml
4240

4341
## Updating the build cache
4442

@@ -54,10 +52,10 @@ Pre-Requisites:
5452

5553
# Ask BitBake to perform only the fetch tasks for each recipe, downloading the sources
5654
# and archiving them as a tar archive in the build/downloads/ folder.
57-
kas shell kas/leda-kirkstone.yaml:kas/mirrors.yaml:kas/generate-mirror.yaml -c 'bitbake --runall=fetch sdv-image-all'
55+
kas shell kas/leda-qemux86-64.yaml:kas/generate-mirror.yaml -c 'bitbake --runall=fetch sdv-image-all'
5856

5957
# Respectively, for other machines:
60-
KAS_MACHINE=raspberrypi4-64 kas shell kas/leda-kirkstone.yaml:kas/mirrors.yaml:kas/generate-mirror.yaml -c 'bitbake --runall=fetch sdv-image-all'
58+
kas shell kas/leda-raspberrypi4-64.yaml:kas/generate-mirror.yaml -c 'bitbake --runall=fetch sdv-image-all'
6159

6260
# Upload the downloads folder to the remote mirror.
6361
# In this example, an Azure Blob Storage is used
Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,10 @@
1313
# Every file needs to contain a header, that provides kas with information
1414
# about the context of this file.
1515
header:
16-
# The `version` entry in the header describes for which configuration
17-
# format version this file was created for. It is used by kas to figure
18-
# out if it is compatible with this file. The version is an integer that
19-
# is increased on every format change.
2016
version: 12
21-
# The machine as it is written into the `local.conf` of bitbake.
22-
machine: qemux86-64
23-
# The distro name as it is written into the `local.conf` of bitbake.
17+
includes:
18+
- kas/mirrors.yaml
19+
- kas/spdx.yaml
2420
distro: leda
2521
target: sdv-image-all
2622
local_conf_header:
@@ -36,22 +32,13 @@ local_conf_header:
3632
buils-stats: |
3733
USER_CLASSES += "buildstats buildstats-summary"
3834
repos:
39-
# This entry includes the repository where the config file is located
40-
# to the bblayers.conf:
41-
# Here we include a list of layers from the poky repository to the
42-
# bblayers.conf:
4335
poky:
4436
url: "https://git.yoctoproject.org/git/poky"
4537
refspec: kirkstone
4638
layers:
4739
meta:
4840
meta-poky:
4941
meta-yocto-bsp:
50-
meta-rauc-community:
51-
url: "https://github.com/rauc/meta-rauc-community.git"
52-
refspec: kirkstone
53-
layers:
54-
meta-rauc-qemux86:
5542
meta-rauc:
5643
url: "https://github.com/rauc/meta-rauc.git"
5744
refspec: kirkstone
@@ -69,9 +56,6 @@ repos:
6956
meta-filesystems:
7057
meta-python:
7158
meta-networking:
72-
meta-raspberrypi:
73-
url: "https://git.yoctoproject.org/meta-raspberrypi"
74-
refspec: kirkstone
7559
meta-spdxscanner:
7660
url: https://git.yoctoproject.org/meta-spdxscanner
7761
refspec: kirkstone

kas/leda-honister.yaml

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)