Skip to content

Commit 14870b1

Browse files
committed
Update recipes / fix issues after upgrade.
1 parent ef3c66c commit 14870b1

File tree

13 files changed

+47
-57
lines changed

13 files changed

+47
-57
lines changed

meta/conf/distro/chirpstack-gateway-os.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ DISTRO = "chirpstack-gateway-os"
22
DISTRO_NAME = "ChirpStack Gateway OS"
33
DISTRO_VERSION = "3.4.0"
44

5-
EXTRA_IMAGE_FEATURES += "ssh-server-dropbear"
5+
DISTRO_FEATURES_append = " wifi"
6+
EXTRA_IMAGE_FEATURES_append = " ssh-server-dropbear"

meta/conf/layer.conf

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
88
BBFILE_COLLECTIONS += "chirpstack-gateway-os"
99

1010
BBFILE_PATTERN_chirpstack-gateway-os = "^${LAYERDIR}/"
11-
LAYERSERIES_COMPAT_chirpstack-gateway-os = "dunfell"
11+
LAYERSERIES_COMPAT_chirpstack-gateway-os = "hardknott"
1212

1313
# Remove alsa
1414
MACHINE_FEATURES_remove = "alsa"
@@ -23,8 +23,13 @@ IMAGE_INSTALL_append = " kernel-image"
2323
IMAGE_BOOT_FILES_remove = "uImage"
2424

2525
# Configuration for the rootfs overlay.
26-
INITRAMFS_IMAGE_NAME = "rootfs-overlay-initramfs-${MACHINE}"
27-
INITRAMFS_TASK = "rootfs-overlay-initramfs:do_image_complete"
26+
# This is different than the documented way of embedding an initramfs. The
27+
# problem with the documented way is that it creates an additional kernel
28+
# image, the one installed in the rootfs is the kernel without initramfs.
29+
INITRAMFS_IMAGE = "rootfs-overlay-initramfs"
30+
INITRAMFS_IMAGE_BUNDLE="1"
31+
#INITRAMFS_IMAGE_NAME = "rootfs-overlay-initramfs-${MACHINE}"
32+
#INITRAMFS_TASK = "rootfs-overlay-initramfs:do_image_complete"
2833

2934
# This config option is not set for the raspberrypi machine:
3035
# https://github.com/agherzan/meta-raspberrypi/blob/329b50f252ed9abda98841266d126f77f3cc56a0/conf/machine/raspberrypi.conf

meta/recipes-chirpstack/chirpstack-application-server/chirpstack-application-server_3.14.0.bb renamed to meta/recipes-chirpstack/chirpstack-application-server/chirpstack-application-server_3.16.0.bb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ LICENSE = "MIT"
55
LIC_FILES_CHKSUM = "file://LICENSE;md5=5301050fd7cd58850085239d559297be"
66
SRC_URI = " \
77
git://git@github.com/brocaar/chirpstack-application-server.git;protocol=https;tag=v${PV}; \
8+
file://chirpstack-application-server.toml \
89
file://chirpstack-application-server.init \
910
file://chirpstack-application-server.monit \
10-
file://chirpstack-application-server.toml \
1111
"
12-
PR = "r2"
12+
PR = "r3"
1313

1414
inherit update-rc.d goarch
1515

@@ -18,7 +18,7 @@ INITSCRIPT_PARAMS = "defaults"
1818

1919
S = "${WORKDIR}/git"
2020

21-
DEPENDS = "go-native go-bindata-native nodejs-native"
21+
DEPENDS = "go-native nodejs-native"
2222

2323
# Make sure that make runs one job at a time.
2424
PARALLEL_MAKE = ""
@@ -56,3 +56,6 @@ do_install() {
5656
}
5757

5858
CONFFILES_${PN} += "${sysconfdir}/chirpstack-application-server/chirpstack-application-server.toml"
59+
60+
# fix already stripped error
61+
INSANE_SKIP_${PN}_append = "already-stripped"

meta/recipes-chirpstack/chirpstack-gateway-bridge/chirpstack-gateway-bridge_3.10.0.bb renamed to meta/recipes-chirpstack/chirpstack-gateway-bridge/chirpstack-gateway-bridge_3.12.0.bb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SRC_URI = " \
99
file://chirpstack-gateway-bridge.init \
1010
file://chirpstack-gateway-bridge.monit \
1111
"
12-
PR = "r2"
12+
PR = "r3"
1313

1414
inherit update-rc.d goarch
1515

@@ -54,3 +54,6 @@ do_install() {
5454
}
5555

5656
CONFFILES_${PN} += "${sysconfdir}/chirpstack-gateway-bridge/chirpstack-gateway-bridge.toml"
57+
58+
# fix already stripped error
59+
INSANE_SKIP_${PN}_append = "already-stripped"

meta/recipes-chirpstack/chirpstack-network-server/chirpstack-network-server_3.12.3.bb renamed to meta/recipes-chirpstack/chirpstack-network-server/chirpstack-network-server_3.14.0.bb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ INITSCRIPT_PARAMS = "defaults"
3838

3939
S = "${WORKDIR}/git"
4040

41-
DEPENDS = "go-native go-bindata-native"
41+
DEPENDS = "go-native"
4242

4343
# Make sure that make runs one job at a time.
4444
PARALLEL_MAKE = ""
@@ -72,3 +72,6 @@ do_install() {
7272
install -d ${D}${sysconfdir}/monit.d
7373
install -m 0644 ${WORKDIR}/chirpstack-network-server.monit ${D}${sysconfdir}/monit.d/chirpstack-network-server
7474
}
75+
76+
# fix already stripped error
77+
INSANE_SKIP_${PN}_append = "already-stripped"

meta/recipes-core/images/chirpstack-gateway-os-base.bb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ require recipes-core/images/core-image-minimal.bb
44

55
IMAGE_FSTYPES = "ext4.gz wic.gz"
66
WKS_FILES = "chirpstack-gateway-os.wks"
7-
DISTRO_FEATURES += "wifi"
87

98
# rng-tools is used to speed up /dev/random. This is used by Monit to generate a
109
# random id. Without it, it can in some cases (Pi 4) take minutes to start up!
@@ -44,8 +43,13 @@ inherit extrausers
4443

4544
EXTRA_USERS_PARAMS = "useradd -P admin admin;"
4645

47-
ROOTFS_POSTPROCESS_COMMAND += "add_releaseinfo; "
46+
ROOTFS_POSTPROCESS_COMMAND += "add_releaseinfo; initramfs_image; "
4847

4948
add_releaseinfo () {
5049
echo "${DISTRO_VERSION}" > ${IMAGE_ROOTFS}${sysconfdir}/version
5150
}
51+
52+
initramfs_image() {
53+
rm ${IMAGE_ROOTFS}/boot/uImage*
54+
cp ${DEPLOY_DIR_IMAGE}/uImage-initramfs-${MACHINE}.bin ${IMAGE_ROOTFS}/boot/uImage
55+
}

meta/recipes-core/images/rootfs-overlay-initramfs.bb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
DESCRIPTION = "Small image capable of mounting an overlayfs on top of a ready-only root-filesystem."
22
LICENSE = "MIT"
33

4-
do_image_mender[noexec] = "1"
5-
do_image_sdimg[noexec] = "1"
6-
74
PACKAGE_INSTALL = "initramfs-readonly-rootfs-overlay ${VIRTUAL-RUNTIME_base-utils} udev base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}"
85

96
# Do not pollute the initrd image with rootfs features
107
IMAGE_FEATURES = ""
118
IMAGE_INSTALL = ""
129
IMAGE_LINGUAS = ""
1310

14-
# Avoid dependency loops
15-
EXTRA_IMAGEDEPENDS = ""
16-
KERNELDEPMODDEPEND = ""
17-
1811
IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
1912
IMAGE_ROOTFS_SIZE = "8192"
2013
IMAGE_ROOTFS_EXTRA_SPACE = "0"

meta/recipes-filesystem/initramfs-readonly-rootfs-overlay/initramfs-readonly-rootfs-overlay_1.1.0.bb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ SUMMARY = "Read only rootfs with overlay init script"
22
LICENSE = "MIT"
33
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
44
SRC_URI = "file://init-readonly-rootfs-overlay-boot.sh"
5-
PR = "r3"
5+
PR = "r5"
66

77
S = "${WORKDIR}"
88

@@ -15,9 +15,5 @@ do_install() {
1515
mknod -m 622 ${D}/dev/console c 5 1
1616
}
1717

18-
19-
# Due to kernel dependency
20-
PACKAGE_ARCH = "${MACHINE_ARCH}"
21-
2218
FILES_${PN} += " /init /mnt/root /data /dev"
2319
FILES_${PN} += "/dev"

meta/recipes-go/go-bindata/go-bindata_git.bb

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CONFIG_OVERLAY_FS=y
2+
CONFIG_NET_UDP_TUNNEL=y
3+
CONFIG_NET_FOU=y
4+
CONFIG_WIREGUARD=y
5+
CONFIG_CRYPTO_ALGAPI=y
6+
7+
# source: https://meta-raspberrypi.readthedocs.io/en/latest/extra-build-config.html#image-with-initramfs
8+
CONFIG_BLK_DEV_INITRD=y
9+
CONFIG_INITRAMFS_SOURCE=""
10+
CONFIG_RD_GZIP=y
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2+
13
# This will be automatically appended in u-boot based on the active partition.
24
CMDLINE_remove = "root=/dev/mmcblk0p2"
35

46
# Needed for the SX1302.
57
KERNEL_MODULE_AUTOLOAD += "i2c-dev"
68

7-
do_configure_prepend() {
8-
kernel_configure_variable OVERLAY_FS y
9-
kernel_configure_variable CONFIG_NET_UDP_TUNNEL y
10-
kernel_configure_variable NET_FOU y
11-
}
9+
SRC_URI += " \
10+
file://modules.cfg \
11+
"

meta/recipes-networking/wireguard-client-config/wireguard-client-config_1.0.1.bb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
66
# procps is needed to work around the following wireguard error:
77
# sysctl: invalid option -- 'r'
88
# iproute2 is needed as busybox ip command does not implement all needed features.
9-
RDEPENDS_${PN} = "wireguard-tools wireguard-module procps iproute2"
9+
RDEPENDS_${PN} = "wireguard-tools procps iproute2"
1010

1111
SRC_URI = " \
1212
file://wireguard.init \

meta/recipes-networking/wireguard-module/wireguard-module_%.bbappend

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

0 commit comments

Comments
 (0)