Star64: 4GB on 8GB boards
#1
I have 8 GB of physical memory and I get that on Fishwaldo's image.

When using his kernel, modules and device tree from https://github.com/Fishwaldo/Star64_linux on Armbian https://www.armbian.com/star64/, I get only 4 GB of physical memory.


Code:
root@star64:/usr/src/linux# dmesg | grep Memory
[    0.000000] Memory: 2970040K/4192256K available (10967K kernel code, 7217K rwdata, 4096K rodata, 2189K init, 405K bss, 435784K reserved, 786432K cma-reserved)


Note, in these early days, Fishwaldo's kernel is a must-have way superior over other kernels.

I have not familiarized myself with the ins and outs of the boot process and don't understand where it fails on Armbian and perhaps other distributions.

The easiest workaround is setting the memory requirements to 8GB in the device tree


Code:
root@star64:/usr/src/linux# git diff
diff --git a/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dtsi b/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dtsi
index a6517cb4178a..d39e1377db73 100755
--- a/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dtsi
+++ b/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dtsi
@@ -47,7 +47,7 @@ cpus {

        memory@40000000 {
                device_type = "memory";
-              reg = <0x0 0x40000000 0x1 0x0>;
+              reg = <0x0 0x40000000 0x2 0x0>;
        };

        reserved-memory {


After applying above patch, rebuild the device tree as usual:


Code:
root@star64:/usr/src/linux# make starfive/jh7110-pine64-star64.dtb
root@star64:/usr/src/linux# cp arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dtb /boot/dtb/starfive/jh7110-star64-pine64.dtb
root@star64:/usr/src/linux# reboot


This patch against Fishwaldo's kernel gives me 8 GB of memory on Armbian:


Code:
root@star64:/usr/src/linux# dmesg | grep Memory
[    0.000000] Memory: 7100836K/8386560K available (10967K kernel code, 7217K rwdata, 4096K rodata, 2189K init, 405K bss, 499292K reserved, 786432K cma-reserved)
  Reply


Messages In This Thread
Star64: 4GB on 8GB boards - by Der Geist der Maschine - 05-25-2023, 10:40 PM
RE: Star64: 4GB on 8GB boards - by Fishwaldo - 06-06-2023, 12:19 AM
RE: Star64: 4GB on 8GB boards - by balbes150 - 07-12-2023, 11:57 PM
RE: Star64: 4GB on 8GB boards - by Gladox114 - 07-26-2023, 12:33 PM
RE: Star64: 4GB on 8GB boards - by balbes150 - 07-27-2023, 12:32 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Star64 JH7110 (slarm64, riscv64) mara 2 1,088 10-09-2023, 03:43 AM
Last Post: mara
  Star64: GPU firmware loading on Armbian Der Geist der Maschine 13 4,463 09-29-2023, 05:46 PM
Last Post: mara
  Star64: jtag debugging? bluepill 1 958 09-20-2023, 08:26 AM
Last Post: bwooster0
  Star64: SATA Der Geist der Maschine 1 1,011 07-26-2023, 12:35 PM
Last Post: Gladox114
Information Star64: Armbian Installation Der Geist der Maschine 5 4,368 06-03-2023, 01:26 PM
Last Post: Der Geist der Maschine
  Star64: a first benchmark Der Geist der Maschine 0 1,016 05-29-2023, 01:00 PM
Last Post: Der Geist der Maschine
  Star64 first boot (and success) bortzmeyer 1 1,594 05-24-2023, 02:45 AM
Last Post: draintroup
  Need help in selecting boards ripcord 1 3,376 03-06-2019, 01:37 PM
Last Post: tllim
  Linking the boards to make a server? Ramlatus 3 6,818 01-27-2018, 01:02 PM
Last Post: 11b2p508
  No HDMI output (don't think the boards are dead) thegooddoctor 15 26,166 07-17-2016, 12:00 PM
Last Post: thegooddoctor

Forum Jump:


Users browsing this thread: 1 Guest(s)