Kernel is getting stuck in custom board based on imx8qxp

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Kernel is getting stuck in custom board based on imx8qxp

812 Views
tejas-volansys
Contributor II
Hi NXP,
 
We have a custom board based on imx8qxp and using 1GB RAM instead on 3GB used on MEK.
 
We are able to flash and load U-boot.  While loading the kernel it is getting stuck. We have done some changes for RAM in u-boot and attached the patch for the same. We have also attached the boot log, kernel defconfig, boot partition info from u-boot.
 
We have also disabled some peripherals in kernel which are not used on custom board.
 
Can you please help us to understand the issue? Is it a RAM related issue?
 
Thank you. 
0 Kudos
2 Replies

795 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Tejas-volansys,

You have to reduce the cma settings in device tree and the RAM size setting in U-Boot. U-Boot will patch the RAM size into devicetree before starting linux.

one can try to rebuild images from scratch using guidelines in

Chapter 4 How to bring up a new MX8M board MSCALE_DDR_Tool_User_Guide.pdf

included in ddr test package

i.MX8 MSCALE SERIES DDR Tool Release (V2.10) 

Also cma size may be reduced.

 

Regards

 

0 Kudos

777 Views
tejas-volansys
Contributor II

Hi,

Thanks for the quick reply.

Will MSCALE_DDR_Tool_User_Guide.pdf work for imx8qxp?

We have successfully run DDR stress test using https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8-8X-Family-DDR-Tools-Release/ta-p/...

We have already changed the CMA to below values

linux,cma {
compatible = "shared-dma-pool";
reusable;
   size = <0 0x0FA00000>;
   alloc-ranges = <0 0x96000000 0 0x0FA00000>;
linux,cma-default;
};

We have also changed the memory values as below

memory@80000000 {
device_type = "memory";
  reg = <0x00000000 0x40000000 0 0x00000000>;
};

0 Kudos