-
Notifications
You must be signed in to change notification settings - Fork 62
Add documentation for STM32MP2 #325
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
Open
bruelc
wants to merge
1
commit into
seL4:master
Choose a base branch
from
bruelc:master-stm32mp2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+56
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| --- | ||
| arm_hardware: true | ||
| cmake_plat: stm32mp2 | ||
| xcompiler_arg: -DAARCH64=1 | ||
| platform: STM32MP25 EV1 | ||
| arch: ARMv8A, AArch64 | ||
| virtualization: true | ||
| iommu: false | ||
| soc: STM32MP25 | ||
| cpu: Cortex-A35 | ||
| verification: [AARCH64] | ||
| Contrib: STMicroelectronics | ||
| Maintained: STMicroelectronics | ||
| parent: /Hardware/ | ||
| SPDX-License-Identifier: CC-BY-SA-4.0 | ||
| SPDX-FileCopyrightText: 2026 seL4 Project a Series of LF Projects, LLC. | ||
| --- | ||
|
|
||
| # STM32MP25 EV1 | ||
|
|
||
| [STM32MP25 evaluation board](https://www.st.com/en/evaluation-tools/stm32mp257f-ev1.html) | ||
|
|
||
| {% include hw-info.html %} | ||
|
|
||
| ## Installation | ||
|
|
||
| Instructions to boot the board are available on the [Starter package wiki](https://wiki.st.com/stm32mpu/wiki/STM32MP25_Evaluation_boards_-_Starter_Package#Downloading_the_image_and_flashing_it_on_the_board). These notes describe how to create a raw image to flash a Linux boot on a MicroSD card. | ||
| The flash layout uses ext2 partitions, for seL4 only the `bootfs` partition is used. | ||
|
|
||
| ### ARM Trusted Firmware (TF-A) | ||
|
|
||
| seL4 uses TF-A to start the AT35-TD BL2 U-boot and a secure monitor to serve RIF accesses. The default configuration enables a system watchdog that causes a reset if not rearmed, which might not be long enough for seL4 components. | ||
|
|
||
| If necessary, disable the watchdog in `fdts/stm32mp257f-ev1.dts`. Build details are available on the [How to configure TF-A wiki](https://wiki.st.com/stm32mpu/wiki/How_to_configure_TF-A_BL2) | ||
|
|
||
| ``` | ||
| &iwdg1 { | ||
| timeout-sec = <32>; | ||
| - status = "okay"; | ||
| + status = "disabled"; | ||
| }; | ||
| ``` | ||
|
|
||
| ## Booting | ||
|
|
||
| Identify the partition number and verify the seL4 boot binary you just placed on your microSD card. | ||
| Load and boot the image at `0x88000000`. | ||
|
|
||
| ``` | ||
| STM32MP> mmc part | ||
| ... | ||
| STM32MP> ext2ls mmc 0:8 | ||
| ... | ||
| STM32MP> ext2load mmc 0:8 0x88000000 loader.img | ||
| STM32MP> go 0x88000000 | ||
| ``` | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be a good place to mention how to re-arm the watchdog timer. Is it done with an SMC call or via memory mapped registers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is refreshed with the memory mapped iwdg_kr register, described in the refman. On a seL4 boot with a Linux VM running, just using the watchdog daemon and API works