Tool/software:
backport of pru-icss to 5.9.0 for am62x support.
Are there any dos & don'ts of this? Anything that would preclude 5.9.0 & am62x working together?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
backport of pru-icss to 5.9.0 for am62x support.
Are there any dos & don'ts of this? Anything that would preclude 5.9.0 & am62x working together?
Hello there,
Apologies for the delayed responses. I am back from vacation.
What version of Linux kernel are you using?
Each tag of the PRU Software Support Package (PSSP) includes details about backwards compatibility breakages.
PSSP 5.9 was intended for use with Linux kernel 5.4
https://git.ti.com/cgit/pru-software-support-package/pru-software-support-package/tag/?h=v5.9.0
I did not add support for AM62x until PSSP v6.1 (for Linux kernel 5.10). The example firmware in PSSP v6.1 will not work with Linux kernel 5.4
https://git.ti.com/cgit/pru-software-support-package/pru-software-support-package/tag/?h=v6.0.0
https://git.ti.com/cgit/pru-software-support-package/pru-software-support-package/tag/?h=v6.1.0
If you are using a later kernel version, you should use a later version of the PSSP instead of trying to backport stuff. In general, I would NOT suggest using AM62x with Linux kernel 5.4. Our very earliest AM62x SDK was on Linux kernel 5.10: https://www.ti.com/tool/download/PROCESSOR-SDK-LINUX-AM62X/08.03.00.19 So anything you did with AM62x & Linux 5.4 would be completely unsupported by TI.
Regards,
Nick
Thanks Nick!
To recap I'm working with Variscite's AM62x & their latest stable build.
root@am62x-var-som:~# uname -a
Linux am62x-var-som 6.1.83-rt28-ti-g055ead3d5359 #1 SMP PREEMPT_RT Mon Oct 28 14:56:49 UTC 2024 aarch64 GNU/Linux
But I think the remoteproc_core header is from an earlier version?
https://github.com/varigit/ti-linux-kernel/commits/ti-linux-6.1.y_09.02.01.10_var01/drivers/remoteproc/remoteproc_core.c
This looks like the last commit that variscite's & TI's kernel have in common?
https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/commit/?id=11c7f9e3131ad14b27a957496088fa488b153a48
I'd be happy to be corrected on this but does that suggest the remoteproc within this kernel is of the kernel 4.9 era?
Hello,
Just to set support expectations, I can support TI code, but I cannot support Variscite's version of our code.
The driver that is used to initialize the PRU cores is this one:
https://github.com/varigit/ti-linux-kernel/blob/ti-linux-6.1.y_09.02.01.10_var01/drivers/remoteproc/pru_rproc.c
Based on the name of the Variscite branch, I would expect that they built on top of the ti-linux-kernel branch ti-linux-6.1.y, after the 09.02.01.10 release:
https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/refs/?h=ti-linux-6.1.y
Assuming they did work on top of that branch, then you should use PSSP v6.2 to v6.4. Note backwards compatibility breakage here:
https://git.ti.com/cgit/pru-software-support-package/pru-software-support-package/tag/?h=v6.2.0
Regards,
Nick
100% understand the support boundary.
Having taken a closer look at Variscite's kernel it seems to me like my best next step is to patch their kernel to work with PSSP 6.3 & that seems to get the standard am62x examples working.
Thanks for the guidance!
No problem, glad to hear you were able to get things working!
If you have any future questions, feel free to create a new e2e thread and we will chat with you there.
Regards,
Nick