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

H20 Random support #2161

Draft
wants to merge 1,820 commits into
base: main
Choose a base branch
from
Draft

H20 Random support #2161

wants to merge 1,820 commits into from

Conversation

frkv
Copy link
Contributor

@frkv frkv commented Oct 24, 2024

Updated with the latest SDFW

tmon-nordic and others added 30 commits October 4, 2024 14:12
According to USB 2.0 Specification the remote wakeup device must hold
the resume signaling for at least 1 ms but for no more than 15 ms. The
DWC2 otg controller requires the software to drive the remote wakeup
signalling for appropriate duration (when LPM is disabled, which is
currently always the case in udc_dwc2). Arbitrarily choose to drive the
resume signalling for 2 ms to have sufficient margin in both directions.

Signed-off-by: Tomasz Moń <[email protected]>
(cherry picked from commit ac7d55b)
-base64 API belongs to the Mbed TLS deliverable. This avoids taking in
 the duplicated APIs from hostap

Signed-off-by: Frank Audun Kvamtrø <[email protected]>
Add the necessary entries but keep the usbhs disabled by default on
radio core (it is enabled by default on app core).

Signed-off-by: Tomasz Moń <[email protected]>
(cherry picked from commit 9815f43)
Make it possible to have vendor quirks after hibernation entry sequence
and before hibernation exit sequence.

Signed-off-by: Tomasz Moń <[email protected]>
(cherry picked from commit f8df6b4)
Use the quirk to keep only the necessary clocks running when the core is
hibernated. The quirk is necessary to bring the USB suspend current
below the USB 2.0 suspend current limit.

Signed-off-by: Tomasz Moń <[email protected]>
(cherry picked from commit e2f2e44)
OCT-3045
This fix is related to nrfconnect#2006
this adds the bt-ll-sw-split snippet for more bluetooth samples

Signed-off-by: Kristoffer Rist Skøien <[email protected]>
Adds a depends on that requires the underlying driver support
explicit erase

Upstream PR: zephyrproject-rtos/zephyr#79090

Signed-off-by: Jamie McCrae <[email protected]>
Adds missing SPI definition and settings for usage of FEM on
this platform

Upstream PR: zephyrproject-rtos/zephyr#78657

Signed-off-by: Jamie McCrae <[email protected]>
Allows forwarding GPIO pins to network core automatically if the
devicetree node exists.

Upstream PR: zephyrproject-rtos/zephyr#78657

Signed-off-by: Jamie McCrae <[email protected]>
…config

Removes forcing the Kconfig to be enabled as this is now determined
automatically

Upstream PR: zephyrproject-rtos/zephyr#78657

Signed-off-by: Jamie McCrae <[email protected]>
…on-flash mem

Added support for devices don't require explicit pager erase.
For these device flattening of mcuboot image status is relevant.

Upstream PR: zephyrproject-rtos/zephyr#79152

Signed-off-by: Andrzej Puzdrowski <[email protected]>
The http_client_req() function's timeout parameter is allowed
to be SYS_FOREVER_MS. However, K_MSEC() does not convert this
to a proper k_timeout_t, so sys_timepoint_calc() ends up
returning 0, which is causes immediate timeouts.

Check for this case specifically and force value passed to
sys_timepoint_calc() to be correct.

(cherry picked from commit 09fab7e)

Signed-off-by: Pete Skeggs <[email protected]>
Not all offloaded network stacks support this socket option.

Go back to previous behavior that it is not used, but allow it
to be enabled using CONFIG_COAP_CLIENT_TRUNCATE_MSGS.

Signed-off-by: Pete Skeggs <[email protected]>
Fix the following compilation warning given when using newlibc:
warning: 'response_truncated' may be used
uninitialized [-Wmaybe-uninitialized]

Issue is not seen with picolibc.

The variable was introduced as part of PR #76257

Upstream PR: zephyrproject-rtos/zephyr#79186

Signed-off-by: Tommi Rantanen <[email protected]>
… default

The external flash (mx25r64) was accidentally disabled during
testing. The node should be enabled by default like its spi.

This commit removes the status = "disabled";

Upstream PR: zephyrproject-rtos/zephyr#79191

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
In case WPA supplicant disabled DPP, we need to compile out the
corresponding DPP code in Wi-Fi shell too.

Upstream PR: zephyrproject-rtos/zephyr#79224

Signed-off-by: Chaitanya Tata <[email protected]>
When an event is sent the receiver gets is asynchronously and hence is
responsible for free the event, the sender should only free in case of
error conditions i.e., unable to send.

Else, this causes a tough to debug double-free.

Upstream PR: zephyrproject-rtos/zephyr#79231

Signed-off-by: Chaitanya Tata <[email protected]>
…itions

In case of error conditions post successfully sending the message, the
event is already freed but we attempt to free it again.

Rejig the labels to easily reflect thier purpose.

Upstream PR: zephyrproject-rtos/zephyr#79231

Signed-off-by: Chaitanya Tata <[email protected]>
The module name is not modified in remove.

Upstream PR: zephyrproject-rtos/zephyr#79231

Signed-off-by: Chaitanya Tata <[email protected]>
Using a separate workqueue causes issues without any special locking to
synchronize with networking threads e.g., interface being removed while
the workqueue is trying to synchronize with WPA supplicant.

It's easier to use the net_mgmt thread which is in better sync with
networking.

Upstream PR: zephyrproject-rtos/zephyr#79231

Signed-off-by: Chaitanya Tata <[email protected]>
Since UDC buffers are allocated with `UDC_BUF_GRANULARITY` granularity,
the `net_buf_tailroom` may no longer be equal to the HID report size.
Use `setup->wLength` instead to ensure that proper HID report size is
passed to the application's callback.

(cherry picked from commit 88231b5)

Signed-off-by: Marek Pieta <[email protected]>
fixup! [nrf noup] samples/tests: Disable PM for some sysbuild builds

Disables partition manager when building some samples and tests
which use sysbuild to prevent build issues

Signed-off-by: Jamie McCrae <[email protected]>
…y code

Pull in changes to pass country code as string to firmware.

Upstream PR: zephyrproject-rtos/zephyr#79262

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
* Wait for update when new object is created

  Sometimes our blockwise transfer starts before server have
  received an LwM2M Update. This causes Leshan to reject the SEND
  because is was not aware of object /19/0

* Wait "registered" message already in conftest.py.
  Sometimes Qemu boots faster, and the testcase don't see the
  log.

Upstream PR: zephyrproject-rtos/zephyr#79261

Signed-off-by: Seppo Takalo <[email protected]>
This board just don't have enough RAM for all tests
so it is just a maintenance headache without any
benefits.

Upstream PR: zephyrproject-rtos/zephyr#79261

Signed-off-by: Seppo Takalo <[email protected]>
The dispatcher table needs to be large enough to have support
for all file descriptor values.

Fixes #79042

(cherry picked from commit 077dd8f)

Signed-off-by: Jukka Rissanen <[email protected]>
Add CHECKIF() checks that verify that dispatcher table is
not overflowing.

(cherry picked from commit 2ff2667)

Signed-off-by: Jukka Rissanen <[email protected]>
…tors

Make sure that CONFIG_ZVFS_OPEN_MAX in the tests and samples is at
least the same value as CONFIG_NET_SOCKETS_POLL_MAX so that we
cannot have more polled sockets than there are available file
descriptors.

(cherry picked from commit 759f3a0)

Signed-off-by: Jukka Rissanen <[email protected]>
mbed TLS MD operations, used by IPv6 Privacy Extensions, require access
to heap. This may vary depending on platform/mbed TLS variant used,
hence enable CONFIG_MBEDTLS_ENABLE_HEAP in tests to ensure mbed TLS has
always access to some heap memory.

Upstream PR: zephyrproject-rtos/zephyr#79303

Signed-off-by: Robert Lubos <[email protected]>
This manifest update points open-amp to include a fix for unsafe use
of strncpy by by replacing it with internal strlcpy.

Upstream PR: zephyrproject-rtos/zephyr#79212

Signed-off-by: Torsten Rasmussen <[email protected]>
LingaoM and others added 24 commits October 23, 2024 17:32
…to send messages

When Proxy advertising or PB-GATT Advertising Enabled and use a same
advertising sets.

As adv\_start will call multi HCI Command will cause syswork_q yield.
At same time, if another thread(BT RX) all schedule\_send will cause
unable send mesh message, because ADV\_FLAG\_ACTIVE was be set, but
ADV\_FLAG\_PROXY not set currentlly.

Add ADV\_FLAG\_SCHEDULE\_PENDING indicate mesh buf has been pendings
but not scheduled, so when proxy advertising enable, let's take again,
as we can't break or terminated adv\_start, so we must waiting proxy
advertising enabled.

But after zephyrproject-rtos/zephyr#68558

The `k_work_is_pending` always true in `send_pending_adv`, which cause
unable to send more mesh message until more mesh message comming

Signed-off-by: Lingao Meng <[email protected]>
(cherry picked from commit 537d215)
Signed-off-by: Håvard Reierstad <[email protected]>
…f54l15pdk

Rename the config files according to nrf54l15dk.

Signed-off-by: alperen sener <[email protected]>
(cherry picked from commit a501050)
Signed-off-by: Håvard Reierstad <[email protected]>
… image ID

fixup! [nrf noup] mgmt/mcumgr: Bootutil hooks to handle image-1

Adds support for sysbuild assigned image IDs

Signed-off-by: Jamie McCrae <[email protected]>
C++ file compilation is actually missing the warning-as-error handling,
causing warnings in build files to be unnoticed in CI. Add a flag to
handle them as well.

Signed-off-by: Fabio Baltieri <[email protected]>
(cherry picked from commit 56dcafe)
Other toolchains uses <toolchain>_TOOLCHAIN_PATH, align Zephyr SDK
by setting ZEPHYR_TOOLCHAIN_PATH to be identical to the
ZEPHYR_SDK_INSTALL_DIR.

Signed-off-by: Torsten Rasmussen <[email protected]>
(cherry picked from commit 6c3a55a)
…o extensions.cmake

Move Zephyr CMake script mode handling from package_helper.cmake into
extensions.cmake.

This ensures that all Zephyr CMake script which includes
extensions.cmake will have the same functions stubbed or mocked and thus
does not need to replicate this behavior.

Signed-off-by: Torsten Rasmussen <[email protected]>
(cherry picked from commit daac2d5)
The build_info function provides a generic and stable way of dumping
build information to the <build>/build_info.yml file.

The build info file is in YAML format and the keys in the file are
intended to be stable, as to allow external tools to retrieve
information regarding the build.

The main differences to the CMakeCache.txt are:
- Settings in the CMakeCache.txt are user controlled, whereas the
  information in the build info file is intended to be those values
  which are used by the build system regardless if those are specified
  by the developer or picked up automatically.
- Internal build system variables are not present in the CMake cache
  and should not be, because their values are calculated when CMake
  runs.

This also has the benefits of decoupling CMake variable names from
build info keys. Several CMake variables has internal build system
names, and the build system is free to rename those at its own
discretion.

Having dedicated key names ensures a stable API that external tools can
rely upon.

Signed-off-by: Torsten Rasmussen <[email protected]>
(cherry picked from commit 5d5c2d4)
For pristine builds 'west build' will now create a build_info.yml file
containing the west build command including arguments.

This is done to help users and external tools to recreate builds.

Signed-off-by: Torsten Rasmussen <[email protected]>
(cherry picked from commit 24ee391)
Store informations regarding the current Zephyr build.
The following informations are stored during CMake configure:
- Board information
- Application source directory
- Application configuration directory
- Toolchain information
- Devicetree files
- Kconfig config files
- Zephyr version

Signed-off-by: Torsten Rasmussen <[email protected]>
(cherry picked from commit 09faf53)
…le used.

Save information regarding SVD file in use in vendor-specific section
of the build info file.

Information is stored under Nordic section.

Signed-off-by: Torsten Rasmussen <[email protected]>
(cherry picked from commit 46a3e61)
… EngB

Upstream PR: zephyrproject-rtos/zephyr#80226

Just like on nRF54H20 EngC.

Signed-off-by: Grzegorz Swiderski <[email protected]>
(cherry picked from commit 5fa74ca600023c50b443bc4608641a45e7c3288a)
…RF54H20 EngB

Upstream PR: zephyrproject-rtos/zephyr#80226

Just like on nRF54H20 EngC.

Signed-off-by: Grzegorz Swiderski <[email protected]>
(cherry picked from commit ed23400bd6708aa0c960abc288b691f0d803b326)
…4H20 EngB

Upstream PR: zephyrproject-rtos/zephyr#80226

Just like on nRF54H20 EngC.

Signed-off-by: Grzegorz Swiderski <[email protected]>
(cherry picked from commit d323ced0ad967177a8344289a2d1f61fc68341f2)
…B VPRs

Upstream PR: zephyrproject-rtos/zephyr#80226

Just like on nRF54H20 EngC.

Signed-off-by: Grzegorz Swiderski <[email protected]>
(cherry picked from commit b7c7900f7e80fb18e4df7ad3a335a4c0d89e2fce)
Applied as noup due to conflicts.

Signed-off-by: Grzegorz Swiderski <[email protected]>
dcache-alignement needs to be defined for ipc to have
consistent memory organization on both endpoints, when
shared memory is cacheable. nrf54h20 and nrf9280 are
using cacheable shared memory.
This is applied for ipc with icmsg backend.

Signed-off-by: Lukasz Stepnicki <[email protected]>
(cherry picked from commit 022122d)
Service for powering peripherals that use GPIO pins
in the global power domains:
- Active Fast
- Active Slow
- Main Slow

Upstream PR: zephyrproject-rtos/zephyr#79264

Signed-off-by: Rafal Dyla <[email protected]>

(cherry picked from commit ec77fc3)
Upstream PR: zephyrproject-rtos/zephyr#79507

Extended UICR will not be used as its configurations will be merged
with the UICR registers in NVR.

Memory maps changes are needed to align with pre compiled
firmware.

Signed-off-by: Håkon Amundsen <[email protected]>
Signed-off-by: Jonathan Nilsen <[email protected]>
… v8.0.0

SDFW v8.0.0 introduces certain changes that require matching changes
in nrfutil device to ensure that west flash works properly on
nrf54h20dk and nrf9280pdk.

This commit adds a few temporary workarounds to ensure that west flash
works with an older nrfutil device version as well:

1. Don't erase UICR, as this tries to erase the extended UICR regions
   as well, and those regions no longer exist (resulting in an error).

2. Reset after erasing domains with west flash --erase. This is needed
   for the memory owned by the different domains to be freely
   accessible and able to be allocated to different domains.

2. Unless doing a west flash --erase, do a RESET_VIA_SECDOM reset before
   programming firmware. This ensures that all the cores are stopped
   before writing firmware. Removing the UICR erase step seemed to cause
   some instability when programming, which is suspected to be caused by
   the firmware running while programming.

Signed-off-by: Jonathan Nilsen <[email protected]>
Noup since secdom is not available upstream.
This enables the PSA RNG as the default Zephyr entropy provider
for the following secdom enabled targets:
nrf54h20_cpuapp and cpurad
nrf9280_cpuapp

Signed-off-by: Georgios Vasilakis <[email protected]>
Signed-off-by: Frank Audun Kvamtrø <[email protected]>
-Disabling some configurations for OSDP (mgmt subsys):
 -CRYPTO
 -CRYPTO_MBEDTLS_SHIM
-Filter enablement of MBEDTLS_CIPHER_AES_ENABLED on MBEDTLS_BUILTIN
-Filter enablement of MBEDTLS_CIPHER_CCM_ENABLED on MBEDTLS_BUILTIN

Signed-off-by: Frank Audun Kvamtrø <[email protected]>
Noup since secdom is not available upstream and it is required
for PSA RNG.

Enable the cpusec ipc and the bellboard nodes
for the nrf54h20dk cpuapp and cpurad targets.

These are required for the PSA crypto service to work.

Signed-off-by: Georgios Vasilakis <[email protected]>
Noup since secdom is not available upstream and it is required
for PSA RNG.

This adds the Kconfig requirements for the PSA RNG service.

This affects the nrf54h20dk cpuapp and cpurad targets.

Signed-off-by: Georgios Vasilakis <[email protected]>
When the secure domain services are enabled.

Noup since the symbol SDFW_SERVICES_ENABLED
is not available upstream.

This is required specifically for the PSA crypto
secure service but I cannot use SSF_PSA_CRYPTO_SERVICE_ENABLED
here so I used the SDFW_SERVICES_ENABLED option.

This is temporary since we expect to add support for
data cache later.

This affects the nrf54h20dk cpuapp and cpurad targets.

Signed-off-by: Georgios Vasilakis <[email protected]>
@NordicBuilder
Copy link
Contributor

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
hal_nordic zephyrproject-rtos/hal_nordic@bc25c09 zephyrproject-rtos/hal_nordic@4a3ba8e zephyrproject-rtos/[email protected]

Note: This message is automatically posted and updated by the Manifest GitHub Action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.