Hi,
Our product need more ram size, our DDR is 8G and when it boot into kernel, the free size is only 5.2G, I know dpaa2 default will set this value mcmemsize=0x70000000, but for our product request, it need more ram size, so we need to modify uboot env mcmemsize value to increase ram size
We want increase 1G size, so we modify it as below:
mcmemsize=0x40000000
After modify the value, we save it and reboot again, but the free size is still 5.2G
ir seems not workable.We also try this on LX2160RDB EVB board with official LSDK2004,
The RAM size is 16G and free size is 13G, we modify mcmemsize=0x40000000
the result is the same. free ram size is not increase.
Could you help us for this issue?
Thank you.
Jack
I just downloaded LSDK20.04 pre-built images, verified this issue on LX2160ARDB.
wget https://www.nxp.com/lgfiles/sdk/lsdk2004/firmware_lx2160ardb_rev2_uboot_xspiboot.img
wget https://www.nxp.com/lgfiles/sdk/lsdk2004/lsdk2004_yocto_tiny_LS_arm64.itb
Before Modifying mcmemsize
root@TinyLinux:~# cat /proc/meminfo
MemTotal: 14229144 kB
MemFree: 12003476 kB
After Modifying mcmemsize in u-boot as the following.
=> pri mcmemsize
mcmemsize=0x70000000
=> setenv mcmemsize 0x40000000
=> saveenv
=> reset
root@TinyLinux:~# cat /proc/meminfo
MemTotal: 15259284 kB
MemFree: 13033500 kB
Hi kenli,
Do you have any update about this issue?
Jack
Hi Kenli,
I cannot upload the attached log correctly, I just set the command you told me, the result is the same,
Ram size not increase and I print the value mcmemsize=0x40000000 is correct
Could you test on your EVB board see it can work or not?
Thank you.
Jack
Please upload a detailed log, such as uboot's environment variables. dump the “pri" information under uboot console.
Or you can try the following command first.
setenv mcmemsize 0x40000000; saveenv; reset
Hi Kenli,
Information updated as below:
In Ls2080 with 8G RAM:
1.Set mcmemsize to 0x40000000, saveenv and print it verify the value be modified success, then reset
2.Boot into system and use free command to check total memory size, total memory should be increase to 6.2G, but it is still 5.2G
Please help us to check this issue. thanks
Jack
I'm facing the same issue. It seems the function mc_get_dram_addr() that get the mc reserved size is called BEFORE the env are load from save env.
A quick workaround is to edit uboot/include/configs/lx2160a_common.h file, rebuild and you will see your memory RAM increase.
I take this opportunity to ask a question, do you know why the mcmemsize is 0x7000000 by default? Does it require more than the 512MB from the manual?
You need to read the DPAA2UM reference manual, the answer is in it