Template:M4 LINUX DEMO: Difference between revisions
From Variscite Wiki
(Create M4_LINUX_DEMO Template) |
(Add conditional to Zephyr wiki page) |
||
Line 1: | Line 1: | ||
{{#ifeq: {{#urlget:title}} | Zephyr | | |||
== Running a demo from Linux == | === Running a demo from Linux === | ||
---- | | |||
== Running a demo from Linux == | |||
}} | |||
The Linux remoteproc framework can be used to load the Cortex {{#var:CORTEX_M_TYPE}} firmware from Linux userspace. | The Linux remoteproc framework can be used to load the Cortex {{#var:CORTEX_M_TYPE}} firmware from Linux userspace. | ||
Line 62: | Line 65: | ||
}} | }} | ||
{{#ifeq: {{#urlget:title}} | MCUXpresso | | |||
{{note|For Yocto Dunfell and newer, this process can be simplified using /etc/remoteproc/variscite-rproc-linux<br> | {{note|For Yocto Dunfell and newer, this process can be simplified using /etc/remoteproc/variscite-rproc-linux<br> | ||
Please refer to the Yocto Scripts section below for more information}} | Please refer to the Yocto Scripts section below for more information}} | ||
{{MCUXPRESSO_Yocto_Scripts_Demo}} | {{MCUXPRESSO_Yocto_Scripts_Demo}} | ||
}} |
Revision as of 17:32, 14 February 2025
Running a demo from Linux
The Linux remoteproc framework can be used to load the Cortex firmware from Linux userspace.
Note: The Linux remoteproc framework is not supported by all Yocto/B2Qt/Debian/Android releases.
Follow these steps to verify the Linux remoteproc framework is supported for your release:
- Select the software release from the [1] software overview page.
- Click on Release Notes.
- Look for the Cortex Linux remoteproc support row in the release notes to see which version is supported. If Cortex Linux remoteproc support is not in the release notes table, the Linux remoteproc framework is not supported.
After confirming Linux remoteproc support, follow these steps to use the framework:
Boot Linux after following the steps in #Running a demo from U-Boot
Increase kernel loglevel while debugging:
# sysctl kernel.printk=7;
Check the state of the , it should be running already by U-Boot
# cat /sys/class/remoteproc/remoteproc0/state
If the state is 'running', stop the
# echo stop > /sys/class/remoteproc/remoteproc0/state
Load new firmware (.elf file must already exist in /lib/firmware directory)
# echo hello_world.elf > /sys/class/remoteproc/remoteproc0/firmware
Run the new firmware
# echo start > /sys/class/remoteproc/remoteproc0/state