Hi all,
I'm working on an i.MX8MM-based board (custom hardware with a Phytec IMX8mm SOM) running Linux. After updating the kernel from version 5.15.71 to 6.6.52 (Kirkstone to Scarthgap), I noticed that significantly less working memory (RAM) is available to the system.
Here’s what I’ve gathered so far:
Memory layout before the update:
- CMA was reserved from: 0x6a000000
- Size: 320 MiB
- MemTotal: 971764 kB
After the kernel update:
- CMA is reserved from: 0x6ac00000
- Same size (320 MiB)
- MemTotal: 900136 kB
dmesg also shows different amount of reserved RAM:
Kirkstone (5.15.71):
[ 0.000000] Memory: 640372K/1015808K available (16064K kernel code, 1558K rwdata, 5196K rodata, 3712K init, 533K bss, 47756K reserved, 327680K cma-reserved)
Scarthgap (6.6.52)
[ 0.000000] Memory: 567912K/1015808K available (19136K kernel code, 1632K rwdata, 7208K rodata, 4544K init, 614K bss, 120216K reserved, 327680K cma-reserved)
Due to the fact that the SoM only has 1Gb we need that 70Mb to support loading media and update files.
How do I approche this to get my 70Mb back, I have checked some configurations in the yocto build but unsure what affect they will have.