From 9a158f7627b2739ae4916d1410a038f40e1cfbf4 Mon Sep 17 00:00:00 2001 From: Giacomo Dematteis Date: Thu, 3 Oct 2024 12:22:24 +0200 Subject: [PATCH] workflow: on_target: patch nrfutil 1Mbaud Apply config patch for nrfutil device 1Mbaud. Signed-off-by: Giacomo Dematteis --- .github/workflows/on_target.yml | 23 +++++++++++++++++++++++ tests/on_target/Dockerfile | 2 ++ 2 files changed, 25 insertions(+) diff --git a/.github/workflows/on_target.yml b/.github/workflows/on_target.yml index 81f4bc23..a5721305 100644 --- a/.github/workflows/on_target.yml +++ b/.github/workflows/on_target.yml @@ -100,6 +100,29 @@ jobs: --software-version ${{ inputs.artifact_fw_version }} \ hello.nrfcloud.com-${{ inputs.artifact_fw_version }}-thingy91x-nrf91.elf + - name: Patch nrfutil for dfu (temporary) + run: | + echo ${NRFUTIL_HOME} + cat > ${NRFUTIL_HOME}/lib/nrfutil-device/14-nrfdl-mcuboot-plugin_config.json << EOF + { + "description": "Thingy:91 X", + "key": { + "product_id": "0x910A", + "vendor_id": "0x1915" + }, + "traits": ["mcuBoot"], + "mcuboot_baudrate": 1000000 + } + EOF + + - name: Verify nrfutil configuration + env: + NRFUTIL_HOME: /usr/local/share/nrfutil + shell: bash + run: | + cat "${NRFUTIL_HOME}/lib/nrfutil-device/14-nrfdl-mcuboot-plugin_config.json" + + - name: Run UART tests working-directory: thingy91x-oob/tests/on_target run: | diff --git a/tests/on_target/Dockerfile b/tests/on_target/Dockerfile index 388350d6..6aeb9616 100644 --- a/tests/on_target/Dockerfile +++ b/tests/on_target/Dockerfile @@ -37,6 +37,8 @@ RUN <