Hi expert:
U-boot boot linux kernel failed by command "boot", error info as below picture;
as picture, S32G274 boot by SD card; and u-boot boot m7 core0 by command "startm7"
M7 is running normally,after "startm7", enter command "boot", the kernel report error;
But, when i not startm7, u-boot can boot linux kernel normal;
so i think it's some conflict,
M7 code is below pictrue, I am already disabled the Clock init and port init
M7 address range is 0x34000000-0x3453FFFF
Pls help
Hi,
Which BSP version are you using? Was it modified?
The bootflow that you are using is not recommended by NXP (there is no documentation for it). Still, there is an example that uses this same bootflow (IPCF example). We can recommend verifying that you are able to load the IPCF example and run it properly then start looking into modifications.
Please, let us know.
Hi, Daniel:
Thanks for you reply,
The BSP Version is "BSP 39.0" ,i git clone from https://github.com/nxp-auto-linux/auto_yocto_bsp/tree/release/bsp39.0
could you tell me the path of IPCF example, i found Ipcf_Example_S32G274A_M7 that path :D:\NXP\SW32G_IPCF_4.8.0_D2212\eclipse\plugins\Ipcf_TS_T40D11M40I0R0\examples\EBT\S32G2\Ipcf_Example_S32G274A_M7
could you upload a ipcf example, and what modifications are needed for BSP, which doc describe the modification
Hi,
That is one option, which is using EB Tresos. More detailed description is provided under the "description.txt" file available under the example.
We can recommend using the S32DS example, since we see it as a more straightforward option due to no additional configuration required (just having the pre-requisites for the package).
Still, both options should work.
As for uploading examples, we don't commonly provide examples through the community, we do apologize.
On regards of changes to the BSP, no changes are required, aside from the commands shown under the "description.txt" file.
Please, let us know.
Hi,Daniel:
I'm sorry for the late reply,I'm fix the issue by remake the sd card; now M7_Core 0 can boot normal;
and the linux kernel boot normal;
but when i enable port_init in m7 core project. as line 59 code in the blow picture
the u-boot uart will be failure, u-boot use uart0;
and i'm configed the uart0 port in mcal;
maybe some config confict in mcal or u-boot
how do i solved the gpio config confict in mcal and u-boot/linux
Pls Help
Hi,
Thanks for your feedback. For the behavior you are mentioning, it seems that you are re-initializing the pin configuration, hence it is creating problems with your application.
When working with multicore applications, the shared resources should only be initialized once (i.e. clocks, pins), if not then non-defined behavior may happen (as you are seeing).
The following document provides a reference on regard of the shared resources management under S32G2:
S32G Bootloader Customzition - NXP Community
Again, this only provides a reference. We understand that it does not cover all shared resources available under the S32G.
Please, let us know.