From reading the docs and this forum, I understand that the source code running on the RTOS core is located in the buildroot SDK ( freertos/cvitek/task/comm/src/riscv64/comm_main.c) and that the binary file must be copied to boot/fip.bin on the SD card to run it on the RTOS code.
However, I was wondering what “magic” allows this binary file to be loaded and run on the RTOS code? Is there a flashing tool similar to 8051_up for the 8051 core? Can we manually “flash” a new firmware and reset the RTOS code without rebooting the Linux one?
Yes, it’s probably done while the board is booting. But I was wondering when exactly? Is it done by U-Boot, a kernel module, a script that is run when linux is loading,…? Are the source for this step available?
So the actual problem was i wasn’t correctly setting up the firmware in /lib/firmware directory. Error -2 means it couldn’t find the file. After that I did get in fact the error -22 because of the missing .resource_table section.
Thks !!