Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump Zephyr to tip of main (post 4.0.0-rc3) #667

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion .github/workflows/hil_test_zephyr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:

for test in $(ls modules/lib/golioth-firmware-sdk/tests/hil/tests)
do
west build -p -b ${{ inputs.west_board }} \
west build --no-sysbuild -p -b ${{ inputs.west_board }} \
modules/lib/golioth-firmware-sdk/tests/hil/platform/zephyr \
-- $EXTRA_BUILD_ARGS -DGOLIOTH_HIL_TEST=$test
mv build/zephyr/${{ inputs.binary_name }} \
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ jobs:
manifest: .ci-west-zephyr.yml
extra_twister_args: >-
--west-flash="--dev-id=${!SNR_VAR}"
--west-runner jlink
run_tests: true

- hil_board: nrf52840dk
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ each of the samples is also continously verified on target.
| ESP32-S3-DevKitC-1 | ESP-IDF (v5.3.0) |
| ESP32-C3-DevKitM-1 | ESP-IDF (v5.3.0) |
| ESP32-DevKitC-WROVER | ESP-IDF (v5.3.0) |
| ESP32-DevKitC-WROVER | Zephyr (v3.7.0) |
| nRF52840 DK + ESP32 | Zephyr (v3.7.0) |
| MIMXRT1024-EVK | Zephyr (v3.7.0) |
| RAK5010 | Zephyr (v3.7.0) |
| nRF9160 DK | nRF Connect SDK (v2.7.0) |
| ESP32-DevKitC-WROVER | Zephyr (v3.8.0) |
| nRF52840 DK + ESP32 | Zephyr (v3.8.0) |
| MIMXRT1024-EVK | Zephyr (v3.8.0) |
| RAK5010 | Zephyr (v3.8.0) |
| nRF9160 DK | nRF Connect SDK (v2.8.0) |
| CY8CPROTO-062-4343W | ModusToolbox (3.0.0) |
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
CONFIG_WIFI=y
CONFIG_WIFI_ESP_AT=y
CONFIG_WIFI_ESP_AT_MDM_RX_BUF_COUNT=40
CONFIG_WIFI_ESP_AT_PASSIVE_MODE=y
CONFIG_WIFI_ESP_AT_CIPDINFO_USE=y
CONFIG_WIFI_ESP_AT_DNS_USE=y

Expand All @@ -19,3 +18,6 @@ CONFIG_REBOOT=y

CONFIG_NET_BUF_DATA_SIZE=256
CONFIG_NET_PKT_TX_COUNT=10

# DTLS handshake timeout
CONFIG_NET_SOCKETS_CONNECT_TIMEOUT=30000
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ CONFIG_NET_UDP=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_CONTEXT_RCVTIMEO=y

# DTLS handshake timeout
CONFIG_NET_SOCKETS_CONNECT_TIMEOUT=30000

# Modem driver
CONFIG_MODEM=y
CONFIG_MODEM_CELLULAR=y
Expand Down
19 changes: 9 additions & 10 deletions examples/zephyr/common/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@

if GOLIOTH_SAMPLE_COMMON

if SOC_ESP32

# Force ESP32 WiFi to use system heap
config ESP_HEAP_RUNTIME
bool
default n

endif # SOC_ESP32

if DNS_RESOLVER

config DNS_SERVER_IP_ADDRESSES
Expand All @@ -21,11 +30,6 @@ configdefault ZVFS_EVENTFD_MAX
default 14 if GOLIOTH_OTA
default 7

configdefault EVENTFD_MAX
int
default 14 if GOLIOTH_OTA
default 7

if LOG_BACKEND_GOLIOTH

config LOG_PROCESS_THREAD_STACK_SIZE
Expand Down Expand Up @@ -115,11 +119,6 @@ configdefault ZVFS_OPEN_MAX
default 23 if GOLIOTH_OTA
default 16

configdefault POSIX_MAX_FDS
int
default 23 if GOLIOTH_OTA
default 16

config REBOOT
default y

Expand Down
3 changes: 2 additions & 1 deletion examples/zephyr/common/wifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ static void wifi_disconnect(struct wifi_manager_data *wifi_mgmt)

static void wifi_check_lower_up(struct wifi_manager_data *wifi_mgmt)
{
if (net_if_flag_is_set(wifi_mgmt->iface, NET_IF_LOWER_UP))
if (IS_ENABLED(CONFIG_WIFI_ESP32) ||
net_if_flag_is_set(wifi_mgmt->iface, NET_IF_LOWER_UP))
{
wifi_event_notify(wifi_mgmt, WIFI_EVENT_LOWER_UP);
}
Expand Down
1 change: 0 additions & 1 deletion examples/zephyr/fw_update/boards/nrf52840dk_nrf52840.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
CONFIG_WIFI=y
CONFIG_WIFI_ESP_AT=y
CONFIG_WIFI_ESP_AT_MDM_RX_BUF_COUNT=40
CONFIG_WIFI_ESP_AT_PASSIVE_MODE=y
CONFIG_WIFI_ESP_AT_CIPDINFO_USE=y
CONFIG_WIFI_ESP_AT_DNS_USE=y

Expand Down
1 change: 0 additions & 1 deletion examples/zephyr/hello/boards/nrf52840dk_nrf52840.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
CONFIG_WIFI=y
CONFIG_WIFI_ESP_AT=y
CONFIG_WIFI_ESP_AT_MDM_RX_BUF_COUNT=40
CONFIG_WIFI_ESP_AT_PASSIVE_MODE=y
CONFIG_WIFI_ESP_AT_CIPDINFO_USE=y
CONFIG_WIFI_ESP_AT_DNS_USE=y

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
CONFIG_WIFI=y
CONFIG_WIFI_ESP_AT=y
CONFIG_WIFI_ESP_AT_MDM_RX_BUF_COUNT=40
CONFIG_WIFI_ESP_AT_PASSIVE_MODE=y
CONFIG_WIFI_ESP_AT_CIPDINFO_USE=y
CONFIG_WIFI_ESP_AT_DNS_USE=y

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
CONFIG_WIFI=y
CONFIG_WIFI_ESP_AT=y
CONFIG_WIFI_ESP_AT_MDM_RX_BUF_COUNT=40
CONFIG_WIFI_ESP_AT_PASSIVE_MODE=y
CONFIG_WIFI_ESP_AT_CIPDINFO_USE=y
CONFIG_WIFI_ESP_AT_DNS_USE=y

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
CONFIG_WIFI=y
CONFIG_WIFI_ESP_AT=y
CONFIG_WIFI_ESP_AT_MDM_RX_BUF_COUNT=40
CONFIG_WIFI_ESP_AT_PASSIVE_MODE=y
CONFIG_WIFI_ESP_AT_CIPDINFO_USE=y
CONFIG_WIFI_ESP_AT_DNS_USE=y

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
CONFIG_WIFI=y
CONFIG_WIFI_ESP_AT=y
CONFIG_WIFI_ESP_AT_MDM_RX_BUF_COUNT=40
CONFIG_WIFI_ESP_AT_PASSIVE_MODE=y
CONFIG_WIFI_ESP_AT_CIPDINFO_USE=y
CONFIG_WIFI_ESP_AT_DNS_USE=y

Expand Down
1 change: 0 additions & 1 deletion examples/zephyr/logging/boards/nrf52840dk_nrf52840.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
CONFIG_WIFI=y
CONFIG_WIFI_ESP_AT=y
CONFIG_WIFI_ESP_AT_MDM_RX_BUF_COUNT=40
CONFIG_WIFI_ESP_AT_PASSIVE_MODE=y
CONFIG_WIFI_ESP_AT_CIPDINFO_USE=y
CONFIG_WIFI_ESP_AT_DNS_USE=y

Expand Down
1 change: 0 additions & 1 deletion examples/zephyr/rpc/boards/nrf52840dk_nrf52840.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
CONFIG_WIFI=y
CONFIG_WIFI_ESP_AT=y
CONFIG_WIFI_ESP_AT_MDM_RX_BUF_COUNT=40
CONFIG_WIFI_ESP_AT_PASSIVE_MODE=y
CONFIG_WIFI_ESP_AT_CIPDINFO_USE=y
CONFIG_WIFI_ESP_AT_DNS_USE=y

Expand Down
1 change: 0 additions & 1 deletion examples/zephyr/settings/boards/nrf52840dk_nrf52840.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
CONFIG_WIFI=y
CONFIG_WIFI_ESP_AT=y
CONFIG_WIFI_ESP_AT_MDM_RX_BUF_COUNT=40
CONFIG_WIFI_ESP_AT_PASSIVE_MODE=y
CONFIG_WIFI_ESP_AT_CIPDINFO_USE=y
CONFIG_WIFI_ESP_AT_DNS_USE=y

Expand Down
1 change: 0 additions & 1 deletion examples/zephyr/stream/boards/nrf52840dk_nrf52840.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
CONFIG_WIFI=y
CONFIG_WIFI_ESP_AT=y
CONFIG_WIFI_ESP_AT_MDM_RX_BUF_COUNT=40
CONFIG_WIFI_ESP_AT_PASSIVE_MODE=y
CONFIG_WIFI_ESP_AT_CIPDINFO_USE=y
CONFIG_WIFI_ESP_AT_DNS_USE=y

Expand Down
3 changes: 1 addition & 2 deletions port/zephyr/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ module-str = Golioth
menuconfig GOLIOTH_FIRMWARE_SDK
bool "Golioth Firmware SDK"
select COAP
select ZVFS_EVENTFD if !ZEPHYR_NRF_MODULE
select EVENTFD if ZEPHYR_NRF_MODULE
select ZVFS_EVENTFD
select REBOOT if BOOTLOADER_MCUBOOT
select REQUIRES_FULL_LIBC
select MBEDTLS
Expand Down
2 changes: 2 additions & 0 deletions tests/hil/platform/zephyr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(test)

zephyr_get(GOLIOTH_HIL_TEST)

target_sources(app PRIVATE src/main.c ../../tests/${GOLIOTH_HIL_TEST}/test.c)
1 change: 0 additions & 1 deletion tests/hil/platform/zephyr/boards/nrf52840dk_nrf52840.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
CONFIG_WIFI=y
CONFIG_WIFI_ESP_AT=y
CONFIG_WIFI_ESP_AT_MDM_RX_BUF_COUNT=40
CONFIG_WIFI_ESP_AT_PASSIVE_MODE=y
CONFIG_WIFI_ESP_AT_CIPDINFO_USE=y
CONFIG_WIFI_ESP_AT_DNS_USE=y

Expand Down
6 changes: 6 additions & 0 deletions tests/hil/platform/zephyr/boards/nrf9160dk_nrf9160_ns.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED=n
CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED=n

# MbedTLS configuration to support p-384 curve. These options
# enable using the MbedTLS built-in support for operations not
# supported by the default nRF Oberon crypto backend
CONFIG_NORDIC_SECURITY_BACKEND=n
CONFIG_MBEDTLS_LEGACY_CRYPTO_C=y

# Generate MCUboot compatible images
CONFIG_BOOTLOADER_MCUBOOT=y

Expand Down
2 changes: 1 addition & 1 deletion west-ncs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
manifest:
projects:
- name: nrf
revision: v2.7.0
revision: v2.8.0-rc2
url: http://github.com/nrfconnect/sdk-nrf
import: true

Expand Down
2 changes: 1 addition & 1 deletion west-zephyr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
manifest:
projects:
- name: zephyr
revision: v3.7.0
revision: v4.0.0-rc3
url: https://github.com/zephyrproject-rtos/zephyr
west-commands: scripts/west-commands.yml
import: true
Expand Down
Loading