Kernel hangs after modifiying dram size in u-boot

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

Kernel hangs after modifiying dram size in u-boot

935 Views
sujay1
Contributor V

I was using a 1GB Som with my imx6slevk board but had to move on to a 512 Mb som

I configured the u-boot using the values from the ddr callibation test.

The u-boot seems to have accepted the change as I get a print while flashing as so

U-Boot 2017.03-imx_v2017.03_4.9.88_2.0.0_ga+gb76bb1b (Sep 26 2019 - 17:50:25 +0530)

CPU:   Freescale i.MX6SL rev1.2 996 MHz (running at 792 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 47C
Reset cause: POR
Model: Freescale i.MX6 SoloLite EVK Board
Board: MX6SLEVK
DRAM:  512 MiB

However the rootfs doesn't flash all I see is this

*************************************************************

Hit any key to stop autoboot:  0
Kernel image @ 0x80800000 [ 0x000000 - 0x702718 ]
## Loading init Ramdisk from Legacy Image at 83800000 ...
   Image Name:   fsl-image-mfgtool-initramfs-imx6
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    9054538 Bytes = 8.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Using Device Tree in place at 83000000, end 8300c2b7
switch to ldo_bypass mode!

Starting kernel ...

************************************************************************

Do I need to modify the dts? or change load address?

Here are my env variables of u-boot

**********************************************************************

baudrate=115200
boot_fdt=try
bootcmd=run findfdt;mmc dev ${mmcdev};mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; theni
bootcmd_mfg=run mfgtool_args;if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; el;
bootdelay=3
bootscript=echo Running bootscript from mmc ...; source
console=ttymxc0
epdc_waveform=epdc_splash.bin
ethprime=eth0
fdt_addr=0x83000000
fdt_file=undefined
fdt_high=0xffffffff
findfdt=if test $fdt_file = undefined; then setenv fdt_file imx6sl-evk.dtb; fi;
image=zImage
initrd_addr=0x83800000
initrd_high=0xffffffff
ip_dyn=yes
loadaddr=0x80800000
loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}
loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
loadtee=fatload mmc ${mmcdev}:${mmcpart} ${tee_addr} ${tee_file}
mfgtool_args=setenv bootargs console=${console},${baudrate} rdinit=/linuxrc g_mass_storage.stall=0 g_mas
mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot}
mmcautodetect=yes
mmcboot=echo Booting from mmc ...; run mmcargs; if test ${tee} = yes; then run loadfdt; run loadtee; boo;
mmcdev=1
mmcpart=1
mmcroot=/dev/mmcblk1p2 rootwait rw
netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsrop
netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else ;
script=boot.scr
tee=no
tee_addr=0x84000000
tee_file=undefined

************************************************************************************

0 Kudos
1 Reply

827 Views
igorpadykov
NXP Employee
NXP Employee

Hi Sujay

one can try to reduce cma according to available memory

imx6sl.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

as for example on below dts

imx6ul-9x9-evk.dts\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

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

0 Kudos