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

snippets: nordic-*: support custom boards #80522

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

masz-nordic
Copy link
Collaborator

Apply overlays for custom boards, based on already supported SoCs.

Fixes #77639.

@@ -3,9 +3,9 @@ append:
EXTRA_DTC_OVERLAY_FILE: nordic-flpr-xip.overlay

boards:
nrf54l15dk/nrf54l15/cpuapp:
/.*/nrf54l15/cpuapp/:
append:
EXTRA_DTC_OVERLAY_FILE: boards/nrf54l15dk_nrf54l15_cpuapp.overlay
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would prefer if these were moved to a socs directory and the nrf54l15dk part was dropped, it has no relation to the board anymore

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Apply overlays for custom boards, based on already supported SoCs.

Fixes zephyrproject-rtos#77639.

Signed-off-by: Marcin Szymczyk <[email protected]>
Copy link
Member

@gmarull gmarull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overlay seems fairly tied to boards, so I'm not sure if this will actually work with any oot board, see eg https://github.com/zephyrproject-rtos/zephyr/blob/642ee9f2c342aabd5473f2cb526fc68053193631/snippets/nordic-flpr/soc/nrf54l15_cpuapp.overlay

@dkalowsk
Copy link
Contributor

overlay seems fairly tied to boards, so I'm not sure if this will actually work with any oot board, see eg 642ee9f/snippets/nordic-flpr/soc/nrf54l15_cpuapp.overlay

@masz-nordic can you verify @gmarull concern? Was looking to bring this into 4.0 but want to ensure it's not going to break OOT boards.

@masz-nordic
Copy link
Collaborator Author

This works on an assumption that board is generated using genboard, since it generates board dts based on DK layout:
https://github.com/nrfconnect/sdk-nrf/blob/main/scripts/west_commands/genboard/templates/nrf54l/board.dts.jinja2

If the custom board changes the memory layout, then similar changes have to be applied to a new overlay added to this snippet (perhaps this should be documented?).
I do not see how custom boards changing the memory layout can be handled without reworking nRF54L DT files.
That rework is planned, but not in the near future.

@carlescufi
Copy link
Member

@anangl please take a look

@nashif nashif merged commit 26973bd into zephyrproject-rtos:main Nov 16, 2024
23 checks passed
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.

cpuflpr/cpuppr target broken on custom nRF54L15/H20 boards using sysbuild
10 participants