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

When using his kernel, modules and device tree from on Armbian, I get only 4 GB of physical memory.

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

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:

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:

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)

Possibly Related Threads…
Thread Author Replies Views Last Post
  Star64 first boot (and success) bortzmeyer 1 324 05-24-2023, 02:45 AM
Last Post: draintroup
  Need help in selecting boards ripcord 1 2,839 03-06-2019, 01:37 PM
Last Post: tllim
  Linking the boards to make a server? Ramlatus 3 5,901 01-27-2018, 01:02 PM
Last Post: 11b2p508
  No HDMI output (don't think the boards are dead) thegooddoctor 15 22,961 07-17-2016, 12:00 PM
Last Post: thegooddoctor
Bug ETA for solution for DMA problem for Arch Linux image & A64+ 2 GB boards? faddah 16 17,653 04-19-2016, 09:09 PM
Last Post: patrickhwood

Forum Jump:

Users browsing this thread: 1 Guest(s)