IMX7D bring up of second core
bartvanderlaan
Hi,
I have recently started working on a project that is based on linux-fslc. The target board is a Technexion pico imx7d. Hopefully I have come to the right place to ask this question and this post provides enough information to paint a complete picture. I have trouble bringing up the 2nd core of the SoC and have tried to narrow this down. I'm comparing behaviour to a rescue image from Technexion (I have two pico-pi boards) which boots both processors in SVC. Board with project image:
Board with rescue image:
Things I have tried:
- 5.0.7-fslc and 5.4.20-fslc. - Remove CONFIG_ARMV7_BOOT_SEC_DEFAULT in u-boot-fslc, which does boot both processors in HYP mode resulting in some other issues. I don't know much about the differences between secure, non-secure and hypervisor mode and could not find a defenitive answer online which and if a certain mode is mandatory for the 2nd core. - Debug the boot process in secure mode with pr_info: SMP is actually trying to get cpu1 up but is failing when invoking callbacks. Looking at the call below to cpu_up for cpu 1, it returns an error code -38 although the return value is not used in with an error handler. This traces all the way back to the moment the callback is invoked for CPUHP_BRINGUP_CPU (cpuhp_state #85) where ret = cb(cpu) get’s the value -38, which if I’m not mistaken means ENOSYS. The callback invocations for this list below did pass without this error just before that for cpu1: 1; CPUHP_CREATE_THREADS Hopefully someone will see my post and share some experience in the matter, or point me to a place where this question might best be answered.
|
|
Otavio Salvador
Hello,
toggle quoted messageShow quoted text
Please check dunfell branch to check if it works. Em qua., 30 de set. de 2020 às 03:14, bartvanderlaan <bartvanderlaan@...> escreveu:
--
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750
|
|