Open AmateurECE opened 2 weeks ago
Thanks for reporting your issue. We have not validated running the M4 examples from U-Boot as part of this Buildroot integration. Of course, there is no reason for it not to work, but we have simply not tested this. I'll assign my colleague @kmaincent to this issue, but he will not be able to answer before the week of Sep 9.
Not a problem! Do you accept community pull requests to this repository? I'll likely be digging into this over the next few days anyways.
Yes, we do accept community pull requests, sure!
Sorry for the noise! I think this is actually not a bug. I didn't read enough of the docs to realize that coprocessor support is only built into the demo
configurations.
However, I think I did discover a true, actual bug. The coprocessor firmware itself seems to be missing from both of the demo images linked in the README. Compare this output from the st_stm32mp157d_dk1_demo
image on the st/2024.02.3
branch:
[amateurece@gentoo ~]$ find /mnt/sdcard/lib/firmware/
/mnt/sdcard/lib/firmware/
/mnt/sdcard/lib/firmware/brcm
/mnt/sdcard/lib/firmware/brcm/brcmfmac43430-sdio.txt
Versus the same command for one of the st_stm32mp157f_dk2_demo
images:
[amateurece@gentoo ~]$ find /mnt/sdcard/lib/firmware/
/mnt/sdcard/lib/firmware/
/mnt/sdcard/lib/firmware/ADC_SingleConversion_TriggerTimer_DMA.elf
/mnt/sdcard/lib/firmware/AI_Character_Recognition.elf
/mnt/sdcard/lib/firmware/CORTEXM_MPU.elf
/mnt/sdcard/lib/firmware/CRC_UserDefinedPolynomial.elf
/mnt/sdcard/lib/firmware/CRYP_AES_DMA.elf
/mnt/sdcard/lib/firmware/CoproSync_ShutDown.elf
/mnt/sdcard/lib/firmware/DMA_FIFOMode.elf
/mnt/sdcard/lib/firmware/FreeRTOS_ThreadCreation.elf
/mnt/sdcard/lib/firmware/GPIO_EXTI.elf
# ...
Here's a quick summary of the images I tested:
st/2024.02.3 | openstlinux-6.1-buildroot-2024.02.3-mpu-v24.06.26 | |
---|---|---|
st_stm32mp157d_dk1_demo | Missing | Missing |
st_stm32mp157f_dk2_demo | Missing | Present |
Hi there! I'm trying to load one of the M4 example projects from U-boot following this procedure in the ST documentation and this documentation in this repository. I download the firmware over YMODEM using the
loady
command in U-boot, and when I try to load the firmware, I get a non-specific error from the rproc command:Loading the same
GPIO_EXTI.elf
image from the Linux side works as expected:(Note: It seems to have worked, even though that
cp
command fails. I'm not sure why that is, however, I did notice that I had to explicitly copy the .elf file over using lrzsz, because it wasn't populated in/lib/firmware
even after I enabled the M4 projects package in my config. I think this might be an unrelated issue with the M4 projects makefile).I'm using the
st/2024.02.3
branches of the bootlin buildroot tree and this repository (with no modifications to thest_stm32mp157d_dk1_defconfig
config except to add the lrzsz and M4 projects packages), and this is on an STM32MP157D-DK1 development kit. Thanks for your help!