imx6sx RAM 512 stuck while flashing

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

imx6sx RAM 512 stuck while flashing

1,176 Views
rakesh_patel
Senior Contributor I

imx6sx based custom board stuck in uboot while flashing using mfgtool. 

Configurations:

Memory type:DDR3
Manufacturer:Micron
Memory part number:MT41K128M16JT-107 IT:K TR
Density per chip select (Gb):4
Number of Chip Selects per channel used21
Total DRAM density (Gb)4
Number of ROW Addresses214
Number of COLUMN Addresses210
Number of BANKS28
Bus Width (input 16, 32, or 64 bits)232
Clock Cycle Freq (MHz)3400

DCD table is attached.

uboot folder in fsl build = u-boot-imx-mfgtool/2016.03-r0/

Stuck logs:

===================

U-Boot 2016.03-nxp/imx_v2016.03_4.1.15_2.0.0_ga+ga57b13b (Jun 24 2020 - 18:37:49 +0530)

CPU: Freescale i.MX6SX rev1.4 at 792MHz
CPU: Automotive temperature grade (-40C to 125C) at 47C
Reset cause: POR
Board: MX6SX SABRE SDB
I2C: ready
DRAM:

Labels (1)
0 Kudos
Reply
5 Replies

1,089 Views
igorpadykov
NXP Employee
NXP Employee

Hi Rakesh

for usage mfg tool with new board one can follow recommendations provided on:

Imx6ull buildroot flash with mfgtool 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,089 Views
rakesh_patel
Senior Contributor I

igorpadykov‌:

Thanks for your reply.

I also added DCD values for Calibration values. and in last I found that, I missed out to change PHYS_SDRAM_SIZE . 

/*#define PHYS_SDRAM_SIZE SZ_1G*/
#define PHYS_SDRAM_SIZE SZ_512M

So. now it is not hanging uboot boot.

But again, it hang while transferring call from uboot to kernel. 

Same like this.

https://community.nxp.com/message/1034222?commentID=1034222#comment-1034222 

Can you please let me know, how to solve this ? 

0 Kudos
Reply

1,089 Views
rakesh_patel
Senior Contributor I

What changes required in  kernel dts file for changing 1GB ram to 512RAM?

0 Kudos
Reply

1,089 Views
rakesh_patel
Senior Contributor I

I enabled early printk and found that kernel actually stuck here..

Normal Boot
Hit any key to stop autoboot: 0
reading m4_pzt_application.bin
29628 bytes read in 18 ms (1.6 MiB/s)
## Starting auxiliary core at 0x007F8000 ...
switch to partitions #0, OK
mmc2(part 0) is current device
switch to partitions #0, OK
mmc2(part 0) is current device
reading boot.scr
** Unable to read file boot.scr **
reading zImage
5582152 bytes read in 158 ms (33.7 MiB/s)
Booting from mmc ...
reading imx6sx-sdb-m4.dtb
38359 bytes read in 18 ms (2 MiB/s)
Kernel image @ 0x80800000 [ 0x000000 - 0x552d48 ]
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Using Device Tree in place at 83000000, end 8300c5d6
switch to ldo_bypass mode!
## else Transferring control to Linux (at address 80800000)...

DEBUG: =====Starting kernel ...

DEBUG: Before bootstage_mark_name
DEBUG: after bootstage_mark_name
DEBUG: Before cleanup_before_linux
DEBUG: After cleanup_before_linux
==DEBUG: Before kernel_entry
Uncompressing Linux... done, booting the kernel.

0 Kudos
Reply

1,089 Views
rakesh_patel
Senior Contributor I

Do i need to change this in dts file?

mmdc: mmdc@021b0000 {
compatible = "fsl,imx6sx-mmdc", "fsl,imx6q-mmdc";
reg = <0x021b0000 0x4000>;
};

0 Kudos
Reply