Skip to content

Commit bbd4f2b

Browse files
committed
bump Golioth SDK to 0.21.0
This comes with Zephyr 4.2.1 and NCS 3.1.1. Add a workaround that creates edt.pickle file based on empty dts source, which is now expected by sysbuild trying to import it. Pass '-a' flag to 'west blobs fetch ...' command, so that blobs licence is auto-accepted. Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
1 parent 4c15c26 commit bbd4f2b

21 files changed

Lines changed: 56 additions & 2077 deletions

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
9292
- name: Fetch Binary Blobs
9393
if: ${{ matrix.blobs }}
94-
run: west blobs fetch ${{ matrix.blobs }}
94+
run: west blobs fetch -a ${{ matrix.blobs }}
9595

9696
- name: Build
9797
id: build

bsim_bin/CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ find_package(Zephyr REQUIRED
1414
zephyr_module
1515
boards
1616
hwm_v2
17-
soc_v2
17+
soc
1818
)
1919
project(bsim_bin LANGUAGES)
2020

@@ -27,3 +27,13 @@ foreach(dir ${BOARD_DIRECTORIES})
2727
endforeach()
2828

2929
add_subdirectory(${ZEPHYR_BASE}/cmake/flash flash)
30+
31+
set(gen_dts_edt ${ZEPHYR_BASE}/scripts/dts/gen_edt.py)
32+
execute_process(
33+
COMMAND ${PYTHON_EXECUTABLE} ${gen_dts_edt}
34+
--dts ${CMAKE_CURRENT_SOURCE_DIR}/empty.dts
35+
--dtc-flags ""
36+
--bindings-dirs ${CMAKE_CURRENT_SOURCE_DIR}
37+
--dts-out ${CMAKE_CURRENT_BINARY_DIR}/zephyr/zephyr.dts
38+
--edt-pickle-out ${CMAKE_CURRENT_BINARY_DIR}/zephyr/edt.pickle
39+
)

bsim_bin/empty.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/dts-v1/;
2+
3+
/ {
4+
};

gateway/socs/nrf9151_ns.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ CONFIG_GOLIOTH_SAMPLE_NRF91_LTE_MONITOR=y
3131
# Disable options y-selected by NCS for no good reason
3232
CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED=n
3333
CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED=n
34+
CONFIG_MBEDTLS_PK_PARSE_EC_EXTENDED=n
3435

3536
# MbedTLS configuration to support p-384 curve. These options
3637
# enable using the MbedTLS built-in support for operations not

gateway/socs/nrf9160_ns.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ CONFIG_GOLIOTH_SAMPLE_NRF91_LTE_MONITOR=y
3131
# Disable options y-selected by NCS for no good reason
3232
CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED=n
3333
CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED=n
34+
CONFIG_MBEDTLS_PK_PARSE_EC_EXTENDED=n
3435

3536
# MbedTLS configuration to support p-384 curve. These options
3637
# enable using the MbedTLS built-in support for operations not

west-ncs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ manifest:
44
projects:
55
- name: golioth
66
path: modules/lib/golioth-firmware-sdk
7-
revision: v0.20.0
7+
revision: v0.21.0
88
url: https://github.com/golioth/golioth-firmware-sdk.git
99
import:
1010
file: west-ncs.yml
1111
name-allowlist:
12-
- cmsis
12+
- cmsis_6
1313
- hal_nordic
1414
- littlefs
1515
- mbedtls

west-zephyr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ manifest:
44
projects:
55
- name: golioth
66
path: modules/lib/golioth-firmware-sdk
7-
revision: v0.20.0
7+
revision: v0.21.0
88
url: https://github.com/golioth/golioth-firmware-sdk.git
99
import:
1010
file: west-zephyr.yml
1111
name-allowlist:
12-
- cmsis
12+
- cmsis_6
1313
- hal_nordic
1414
- hal_nxp
1515
- littlefs

zephyr/patches.yml

Lines changed: 10 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,46 @@
11
patches:
22
- path: zephyr/zephyr/0001-drivers-net-nsos-support-nrf_bsim.patch
3-
sha256sum: a3238fc52d954c6b133807d19e5f6d7c280aec43bea2260f6a99426ce9be3d00
3+
sha256sum: 25ce052740bb44d2d575a7f3187817cf1f22aa41c6328982f0f1b3c4f8ad7593
44
module: zephyr
55
author: Marcin Niestroj
66
email: m.niestroj@emb.dev
77
date: 2025-01-14
88
apply-command: >-
99
bash -c 'if [ $(west config manifest.file) = "west-zephyr.yml" ]; then git am $@; fi' --
1010
- path: zephyr/zephyr/0002-boards-nrf_bsim-define-NSOS_IRQ-for-offloaded-socket.patch
11-
sha256sum: 91b8c959d6b784878ea6b86a59ce034212f5829887990b08d522d0e728942069
11+
sha256sum: 13916913dc7f11cd4d5d3ef875da739818e90fac8847f2ce244f3f6705c03149
1212
module: zephyr
1313
author: Marcin Niestroj
1414
email: m.niestroj@emb.dev
1515
date: 2025-01-14
1616
apply-command: >-
1717
bash -c 'if [ $(west config manifest.file) = "west-zephyr.yml" ]; then git am $@; fi' --
18-
- path: zephyr/zephyr/0003-native_simulator-Get-latest-from-upstream.patch
19-
sha256sum: 35a68f88aeaf5243e43265ab9e030f5638c5e1a1f9d7991ee81019930a36823b
20-
module: zephyr
21-
author: Alberto Escolar Piedras
22-
email: alberto.escolar.piedras@nordicsemi.no
23-
date: 2025-02-18
24-
apply-command: >-
25-
bash -c 'if [ $(west config manifest.file) = "west-zephyr.yml" ]; then git am $@; fi' --
26-
- path: zephyr/zephyr/0004-native_simulator-Get-latest-from-upstream.patch
27-
sha256sum: 202abed48a60c80abc9b6be6688fbf93d519c8ee14675a60551e248040e39fe4
28-
module: zephyr
29-
author: Alberto Escolar Piedras
30-
email: alberto.escolar.piedras@nordicsemi.no
31-
date: 2025-02-24
32-
apply-command: >-
33-
bash -c 'if [ $(west config manifest.file) = "west-zephyr.yml" ]; then git am $@; fi' --
34-
- path: zephyr/zephyr/0005-native-posix-arch-Add-option-to-enable-building-of-n.patch
35-
sha256sum: 8fcbec6fecf97778aa0571b347b2e488182057975823d5ae4743739c542e5554
36-
module: zephyr
37-
author: Alberto Escolar Piedras
38-
email: alberto.escolar.piedras@nordicsemi.no
39-
date: 2025-02-24
40-
apply-command: >-
41-
bash -c 'if [ $(west config manifest.file) = "west-zephyr.yml" ]; then git am $@; fi' --
42-
- path: zephyr/zephyr/0006-native_simulator-Get-latest-from-upstream.patch
43-
sha256sum: e366d91d21a89db3e0021b81e5852b7b13ba2e61c3db5a0451d254b65867f754
44-
module: zephyr
45-
author: Alberto Escolar Piedras
46-
email: alberto.escolar.piedras@nordicsemi.no
47-
date: 2025-02-26
48-
apply-command: >-
49-
bash -c 'if [ $(west config manifest.file) = "west-zephyr.yml" ]; then git am $@; fi' --
50-
- path: zephyr/zephyr/0007-Bluetooth-userchan-Support-other-libCs.patch
51-
sha256sum: ce7c0f0c92a4d5e6ff77c1cb83c6351b083e36c2b15c524362fa7053769b985a
52-
module: zephyr
53-
author: Alberto Escolar Piedras
54-
email: alberto.escolar.piedras@nordicsemi.no
55-
date: 2025-02-26
56-
apply-command: >-
57-
bash -c 'if [ $(west config manifest.file) = "west-zephyr.yml" ]; then git am $@; fi' --
58-
- path: zephyr/zephyr/0008-board-native_sim-BT-userchan-now-supports-picolibc.patch
59-
sha256sum: 4b3afebc6a97cbb1908f3672168f5ed659285add32db831f2f1c6e92c316c3ee
60-
module: zephyr
61-
author: Alberto Escolar Piedras
62-
email: alberto.escolar.piedras@nordicsemi.no
63-
date: 2025-02-26
64-
apply-command: >-
65-
bash -c 'if [ $(west config manifest.file) = "west-zephyr.yml" ]; then git am $@; fi' --
66-
- path: zephyr/zephyr/0009-drivers-nsos-Use-native-simulator-errno-conversion.patch
67-
sha256sum: a4bd24f61846f0c4b9848e1a6cb0233720d867c47ffb1abdc99c9eaf262dd11b
68-
module: zephyr
69-
author: Alberto Escolar Piedras
70-
email: alberto.escolar.piedras@nordicsemi.no
71-
date: 2025-02-24
72-
apply-command: >-
73-
bash -c 'if [ $(west config manifest.file) = "west-zephyr.yml" ]; then git am $@; fi' --
74-
- path: zephyr/zephyr/0010-nsi-move-nsos_fcntl-to-more-generic-nsi_fcntl.patch
75-
sha256sum: 01a73074a3e673ee5618a10edb366f6bead53ff06b552fecd86c9e8323884fdc
18+
- path: zephyr/zephyr/0003-nsi-move-nsos_fcntl-to-more-generic-nsi_fcntl.patch
19+
sha256sum: 0830899d226a3b7cd1f7b002b8cd746857a41f2a19ee899bfc5cf15773f296c5
7620
module: zephyr
7721
author: Marcin Niestroj
7822
email: m.niestroj@emb.dev
7923
date: 2025-08-05
8024
apply-command: >-
8125
bash -c 'if [ $(west config manifest.file) = "west-zephyr.yml" ]; then git am $@; fi' --
82-
- path: zephyr/zephyr/0011-nsi-fcntl-add-O_CREAT-and-O_TRUNC.patch
83-
sha256sum: e1d77d84f84fb7904559b083270875c73e2d38f6567503eb5a7ca580c5397682
26+
- path: zephyr/zephyr/0004-nsi-fcntl-add-O_CREAT-and-O_TRUNC.patch
27+
sha256sum: dd53fd69065fa432a38a53176778a529ec7cf89b5823c42fd7fa1fcedfb1fd23
8428
module: zephyr
8529
author: Marcin Niestroj
8630
email: m.niestroj@emb.dev
8731
date: 2025-08-14
8832
apply-command: >-
8933
bash -c 'if [ $(west config manifest.file) = "west-zephyr.yml" ]; then git am $@; fi' --
90-
- path: zephyr/zephyr/0012-subsys-fs-nsim_mount-new-FS-for-mounting-host-filesy.patch
91-
sha256sum: ddad24efe17347947fe86d0e5b000e343c907b2e8dcfe526a0d36c7d0d99983e
34+
- path: zephyr/zephyr/0005-subsys-fs-nsim_mount-new-FS-for-mounting-host-filesy.patch
35+
sha256sum: 7380f056216807ca15d220233e38b3b407c0b1fb825e5b4794ae6c926b13e4f0
9236
module: zephyr
9337
author: Marcin Niestroj
9438
email: m.niestroj@emb.dev
9539
date: 2025-08-14
9640
apply-command: >-
9741
bash -c 'if [ $(west config manifest.file) = "west-zephyr.yml" ]; then git am $@; fi' --
98-
- path: zephyr/zephyr/0013-tests-fs-nsim_mount-add-basic-tests-for-implemented-.patch
99-
sha256sum: 17d5c28831de1b2218aea89cb343f0e36822cc2419f5b60b94d6f57a428b67e7
42+
- path: zephyr/zephyr/0006-tests-fs-nsim_mount-add-basic-tests-for-implemented-.patch
43+
sha256sum: 5117af152443b7d703e7c8b0fafa76a1d3cf34e5077b1587fbe09583129bbaad
10044
module: zephyr
10145
author: Marcin Niestroj
10246
email: m.niestroj@emb.dev

zephyr/patches/zephyr/zephyr/0001-drivers-net-nsos-support-nrf_bsim.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 51b9444d0c08601efd996e854f22367564801cfe Mon Sep 17 00:00:00 2001
1+
From 073a10f50ff7275970471af29f27b6ba5c4b17b5 Mon Sep 17 00:00:00 2001
22
From: Marcin Niestroj <m.niestroj@emb.dev>
33
Date: Tue, 14 Jan 2025 16:53:03 +0100
44
Subject: [PATCH] drivers: net: nsos: support nrf_bsim
@@ -14,10 +14,10 @@ Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
1414
1 file changed, 4 insertions(+)
1515

1616
diff --git a/drivers/net/nsos_adapt.c b/drivers/net/nsos_adapt.c
17-
index af98caaa4c1..7909a1655e6 100644
17+
index d1631efc651..9e908982e38 100644
1818
--- a/drivers/net/nsos_adapt.c
1919
+++ b/drivers/net/nsos_adapt.c
20-
@@ -1078,7 +1078,11 @@ static void nsos_adapt_poll_triggered(void)
20+
@@ -1164,7 +1164,11 @@ static void nsos_adapt_poll_triggered(void)
2121
}
2222

2323
if (ret > 0) {
@@ -30,5 +30,5 @@ index af98caaa4c1..7909a1655e6 100644
3030
} else {
3131
nsos_adapt_poll_time = nsi_hws_get_time() + NSOS_EPOLL_WAIT_INTERVAL;
3232
--
33-
2.48.1
33+
2.51.0
3434

zephyr/patches/zephyr/zephyr/0002-boards-nrf_bsim-define-NSOS_IRQ-for-offloaded-socket.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 2c56ec7effb568b9963826d25e7b3c91dd7a415d Mon Sep 17 00:00:00 2001
1+
From dacb35a6427d1f177bada3e10cea8162af5c0757 Mon Sep 17 00:00:00 2001
22
From: Marcin Niestroj <m.niestroj@emb.dev>
33
Date: Tue, 14 Jan 2025 17:02:25 +0100
44
Subject: [PATCH] boards: nrf_bsim: define NSOS_IRQ for offloaded sockets
@@ -52,5 +52,5 @@ index e0b1cb60a59..a99916ec2cf 100644
5252
#define FLASH_PAGE_MAX_CNT 256UL
5353

5454
--
55-
2.48.1
55+
2.51.0
5656

0 commit comments

Comments
 (0)