Template:MCUXPRESSO Yocto Scripts Demo: Difference between revisions
From Variscite Wiki
(Created page with "<includeonly> == Running a Demo using Yocto Scripts == In Yocto Dunfell and newer, Variscite provides scripts to simplify loading firmware via U-Boot or Linux: {| class="wik...") |
(Add Zephyr Yocto Scripts instructions) |
||
Line 15: | Line 15: | ||
'''Examples''' | '''Examples''' | ||
{{#ifeq: {{#urlget:title}} | "MCUXpresso" | | |||
variscite-rproc-u-boot example on imx8mm-var-dart: | variscite-rproc-u-boot example on imx8mm-var-dart: | ||
root@imx8mm-var-dart:~# /etc/remoteproc/variscite-rproc-u-boot -f /boot/cm_hello_world.bin.ddr_debug | root@imx8mm-var-dart:~# /etc/remoteproc/variscite-rproc-u-boot -f /boot/cm_hello_world.bin.ddr_debug | ||
Line 40: | Line 40: | ||
Cortex-M: Starting | Cortex-M: Starting | ||
[ 359.318074] remoteproc remoteproc0: remote processor imx-rproc is now up | [ 359.318074] remoteproc remoteproc0: remote processor imx-rproc is now up | ||
}} | |||
{{#ifeq: {{#urlget:title}} | "Zephyr" | | |||
variscite-rproc-u-boot example on imx8mp-var-dart: | |||
root@imx8mp-var-dart:~# /etc/remoteproc/variscite-rproc-u-boot -f /boot/zephyr.bin | |||
Configuring for TCM memory | |||
+ fw_setenv m7_addr 0x7E0000 | |||
+ fw_setenv fdt_file imx8mp-var-dart-dt8mcustomboard-m7.dtb | |||
+ fw_setenv use_m7 yes | |||
+ fw_setenv m7_bin zephyr.bin | |||
Finished: Please reboot, the m7 firmware will run during U-Boot | |||
variscite-rproc-linux example on imx8mp-var-dart: | |||
root@imx8mp-var-dart:~# /etc/remoteproc/variscite-rproc-linux -f /lib/firmware/zephyr.elf | |||
[ 212.888118] remoteproc remoteproc0: powering up imx-rproc | |||
[ 212.899215] remoteproc remoteproc0: Booting fw image zephyr.elf, size 515836 | |||
[ 212.912070] remoteproc remoteproc0: No resource table in elf | |||
[ 213.444675] remoteproc remoteproc0: remote processor imx-rproc is now up | |||
If the device tree dedicated to be used with Cortex-M7 applications is not being currently used, the script will give instructions on how to do so: | |||
Error: /sys/class/remoteproc/remoteproc0 not found. | |||
Please enable remoteproc driver. | |||
Most likely you need to use the correct device tree, for example: | |||
fw_setenv fdt_file imx8mp-var-dart-dt8mcustomboard-m7.dtb && reboot | |||
}} | |||
</includeonly> | </includeonly> |