System memory size definition

For some reason, I would like Linux to detect and use 30GB memory not 32GB.
2GB would be allocated for some other way.
Kernel command ‘mem=30gb’ is not effective to me.

Where should I touch?

Thanks,

You mean primary (DRAM) or secondary(EMMC) memory?

DRAM it is!

Thanks,

you can add memory to reserved memory which linux kernel will not touch anymore
https://www.kernel.org/doc/Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt

there are already reserved memory examples in dts file. you can add yours.

1 Like

Thanks, @Bibek

I would try that.