Jump to content

box x96 with 2gb memory


eric971

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.

Link to comment
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

Link to comment
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.

Link to comment
Share on other sites

I converted the .dtb file to .tds and saw that the 2G ram information is correct. I did everything I can never use more than 720Mb of RAM, after that, use the zram. As the free command shows.

 

my box is S905x 2GB and kernel 5.1.0-aml-s905 #5.90 SMP PREEMPT Mon Jul 1 15:40:37 MSK 2019 aarch64 GNU/Linux

 

 

oot@fenix:/boot/dtb# free
              total        used        free      shared  buff/cache   available
Mem:        1849584      713516      883136       41232      252932     1019832
Swap:       2774372      381696     2392676

It appears that in 2GB of RAM but only uses 720Mb what to do?

 

Link to comment
Share on other sites

Have you checked dmesg output? I have s905w and dmesg says "... failed to allocate memory for node 'linux,cma' ..."

[    0.000000] Machine model: Amlogic Meson GXL (S905W) P281 Development Board
[    0.000000] efi: UEFI not found.
[    0.000000] OF: reserved mem: failed to allocate memory for node 'linux,cma'
[    0.000000] cma: Reserved 256 MiB at 0x0000000023000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000001000000-0x0000000037ffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x37e31100-0x37e32fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000001000000-0x0000000037ffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000001000000-0x0000000004ffffff]
[    0.000000]   node   0: [mem 0x0000000007300000-0x000000000fffffff]
[    0.000000]   node   0: [mem 0x0000000010200000-0x0000000037ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000001000000-0x0000000037ffffff]
[    0.000000] On node 0 totalpages: 215808
[    0.000000]   DMA zone: 3520 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 215808 pages, LIFO batch:63

 ... and then " Faking a node at [mem 0x0000000001000000-0x0000000037ffffff] " like it tries to fallback

Edited by required
appending, clarifying
Link to comment
Share on other sites

On 10/27/2019 at 4:11 AM, eric971 said:

armbian 5.98 aml debian buster desktop

same hw here (android 9) but can't boot with current

Armbian_20.02.0-rc1.038_Aml-s9xxx_eoan_current_5.5.0-rc6_desktop_20200205.img.xz

can you provide link and dtb used to boot,

thanks

Link to comment
Share on other sites

3 hours ago, rforcen said:

can't boot with current

Armbian_20.02.0-rc1.038_Aml-s9xxx_eoan_current_5.5.0-rc6_desktop_20200205.img.xz

This is not the current build.  The s9xxx builds are no longer maintained.  The current development builds are found in this thread:  

 

Link to comment
Share on other sites

  • Werner locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines