Hi All,
I see the following node in sabresd and other freescale based boards device tree.
memory {
reg = <0x10000000 0x40000000>;
};
What is the exact use case of this?
Even if I change or remove it my kernel works fine.
已解决! 转到解答。
In case you want to overwirte the memory usage passed from u-boot, you can use "linux,usable-memory", such as below case, we reserve some ddr space:
12 memory {
13 linux,usable-memory = <0x80000000 0x1ff00000>,
14 <0xa0000000 0x1ff00000>;
15 };
Hi Fabio,
I have a question regarding this topic.
I have some boards with same CPU but different memory size. It would be perfect if I have only one device tree for them.
Does the Barebox pass the RAM size to the kernel automatically?I removed memory node from Linux and also Barebox device tree and system is still working. I am not sure this is a correct way? or maybe would I face a problem later?
P.S: We modified Barebox in a way that reads the memory size from GPIO just at the first step.
Regards,
Reyhaneh Yazdani
In case you want to overwirte the memory usage passed from u-boot, you can use "linux,usable-memory", such as below case, we reserve some ddr space:
12 memory {
13 linux,usable-memory = <0x80000000 0x1ff00000>,
14 <0xa0000000 0x1ff00000>;
15 };