Modify mcmemsize to increase RAM size based on LX2160 and Ls2080 with lsdk2004

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Modify mcmemsize to increase RAM size based on LX2160 and Ls2080 with lsdk2004

2,446件の閲覧回数
jackho
Contributor III

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

0 件の賞賛
返信
7 返答(返信)

2,388件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信

2,391件の閲覧回数
jackho
Contributor III

Hi kenli,

Do you have any update about this issue?

Jack

 

0 件の賞賛
返信

2,437件の閲覧回数
jackho
Contributor III

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 

 

0 件の賞賛
返信

2,442件の閲覧回数
kenli
NXP Employee
NXP Employee

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

Best regards
0 件の賞賛
返信

2,421件の閲覧回数
jackho
Contributor III

 

 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

uboot-mcmemsize.png

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

free-size.png

Please help us to check this issue. thanks

Jack

 

0 件の賞賛
返信

1,933件の閲覧回数
jesq31
Contributor II

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?

 

0 件の賞賛
返信

1,921件の閲覧回数
kenli
NXP Employee
NXP Employee

You need to read the DPAA2UM reference manual, the answer is in it

Best regards
0 件の賞賛
返信