1 1
eric971

box x96 with 2gb memory

Recommended Posts

Hi,

i have installed armbian 5.98 aml debian buster desktop on a x96 mini smartbox tv with the meson gxl s905w p281 dtb file. The desktop run but only 1 gb memory is available.

how do i do to have 2 gb memory available ?

Best regards.

Share this post


Link to post
Share on other sites
5 hours ago, eric971 said:

Hi,

i have installed armbian 5.98 aml debian buster desktop on a x96 mini smartbox tv with the meson gxl s905w p281 dtb file. The desktop run but only 1 gb memory is available.

how do i do to have 2 gb memory available ?

Best regards.

Modifying the memory node in the device tree should suffice to match your hardware configuration

Share this post


Link to post
Share on other sites
On 10/27/2019 at 4:41 AM, jock said:

Modifying the memory node in the device tree should suffice to match your hardware configuration

Hi, thank you for your answer.

I have decompiled the dtb file with dtc command. I have modified memory size 0x80000000 (before 0x40000000).

I  have compiled the modified dts file with dtc and it is always the same. I have only 822 Mb of ram.

After I try to modify the reserved  memory linux cma "shared-dma-pool" to 0x2000000. Without success, always the same amount of ram.

 

This is the begining of the original dts :

/dts-v1/;

/ {
	interrupt-parent = <0x1>;
	#address-cells = <0x2>;
	#size-cells = <0x2>;
	compatible = "amlogic,p281", "amlogic,s905w", "amlogic,meson-gxl";
	model = "Amlogic Meson GXL (S905W) P281 Development Board";

	reserved-memory {
		#address-cells = <0x2>;
		#size-cells = <0x2>;
		ranges;

		hwrom@0 {
			reg = <0x0 0x0 0x0 0x1000000>;
			no-map;
		};

		secmon@10000000 {
			reg = <0x0 0x10000000 0x0 0x200000>;
			no-map;
		};

		secmon@5000000 {
			reg = <0x0 0x5000000 0x0 0x300000>;
			no-map;
		};

		secmon@5300000 {
			reg = <0x0 0x5300000 0x0 0x2000000>;
			no-map;
		};

		linux,cma {
			compatible = "shared-dma-pool";
			reusable;
			size = <0x0 0x38000000>;
			alignment = <0x0 0x400000>;
			linux,cma-default;
		};
	};

here is the cma size -----------------------------------------^

 

and somewhere else :

 

	memory@0 {
		device_type = "memory";
		reg = <0x0 0x0 0x0 0x40000000>;
	};

here is the memory size ------------------------------------------^

 

Can somebody help me ?

Thanks.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
1 1