Made even more (once) reserved memory available to Linux on Phicomm N1

The corresponding memory region was shrinked in DTB for 3.1x by this patch, and I changed the dtb I’m using accordingly.

--- a.dts   2018-01-01 00:00:00.000000000 +0000
+++ b.dts   2018-01-01 00:00:00.000000000 +0000
@@ -167,7 +167,7 @@

        hwrom@0 {
            no-map;
-           reg = < 0x00 0x00 0x00 0x1000000 >;
+           reg = < 0x00 0x00 0x00 0x100000 >;
        };

        linux,cma {

This change frees up 15M of memory.

stress-ng --vm 16 --vm-bytes 128M --timeout 10s does not show anything wrong:

stress-ng: info:  [12345] dispatching hogs: 16 vm
stress-ng: info:  [12345] cache allocate: using built-in defaults as unable to determine cache details
stress-ng: info:  [12345] successful run completed in 10.04s

Now the box looks like this:

 ____  ___
/ ___|/ _ \__  ____  ____  __
\___ \ (_) \ \/ /\ \/ /\ \/ /
 ___) \__, |>  <  >  <  >  <
|____/  /_//_/\_\/_/\_\/_/\_\


Welcome to ARMBIAN 5.67 user-built Ubuntu 18.10 4.19.6-aml-s9xxx
System load:   0.46 0.47 0.20   Up time:       1 min
Memory usage:  7 % of 1986MB    IP:            127.0.0.1
CPU temp:      10°C
Usage of /:    24% of 6.9G

The compiled one is also available: meson-gxl-s905d-phicomm-n1-usbfix-ethfix-memfix2. (Note that this dtb reclaims memory for framebuffer (GPU), and thus only suitable for headless use.)

Leave a Reply

Your email address will not be published. Required fields are marked *