Debian GNU/Linux 11 BeagleBone ttyS2
BeagleBoard.org Debian Bullseye Xfce Image 2022-09-02
Support: https://bbb.io/debian
default username:password is [debian:temppwd]
BeagleBone login: root
Password:
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Sep 23 09:47:49 UTC 2022 on ttyS2
root@BeagleBone:~#
root@BeagleBone:~#
root@BeagleBone:~# free -m
total used free shared buff/cache available
Mem: 2178 494 1204 2 478 1648
Swap: 2047 0 2047
root@BeagleBone:~#
root@BeagleBone:~# grep MemTotal /proc/meminfo
MemTotal: 2230440 kB
root@BeagleBone:~#
The factory boot image of BBAI-64 was showing correct RAM size i.e. 4GB.
Any idea what changed in image for getting lower RAM?
debian@BeagleBone:~$ free -h
total used free shared buff/cache available
Mem: 2.1Gi 253Mi 1.4Gi 1.0Mi 465Mi 1.8Gi
Swap: 1.0Gi 0B 1.0Gi
Do you know which of the peripherals the memory is mapped to? And why the default image doesn’t do this but the latest EdgeAI one does? Is it that the EdgeAI image expects the DSP units to be using more RAM?
Once I get things more set up I’ll decompile the dtb and see if I can figure it out, but I figure I’d post and ask in the meantime. And, more importantly, I’d like to try to understand whether this mapping is something I want!
I did (running minimal version, but should be using the same device tree files)
After booting
cd /boot/firmware
mv k3-j721e-beagleboneai64.dtb k3-j721e-beagleboneai64-shared-mem.dtb
cp k3-j721e-beagleboneai64-no-shared-mem.dtb k3-j721e-beagleboneai64.dtb
reboot
I had to move/copy the files as although uboot has a default_device_tree env variable set to k3-j721e-beagleboneai64.dtb, changing this to k3-j721e-beagleboneai64-no-shared-mem.dtb still loaded the old dtb file.
root@BeagleBone:~# free -h
total used free shared buff/cache available
Mem: 3.6Gi 91Mi 3.4Gi 1.0Mi 82Mi 3.5Gi
Swap: 0B 0B 0B
I suspect the remaining memory is being allocated for video ram.
If you want to adjust the memory allocation you will need to modify the dts file.
If you have the kernel source it is