Hi,
I just bought a VIM3 Pro board, for start up, inserted the SD that flashed with the image “VIM3_Ubuntu-xfce-bionic_Linux-4.9_arm64_SD-USB_V20190813”, and went to the “Keys Mode”, the Ubuntu system was boot up successfully, while I met some issues when try to check the hardware info of the board:
khadas@Khadas:/dev$ free -m
total used free shared buff/cache available
Mem: 3370 382 2548 10 439 2942
Swap: 1023 0 1023
installed the lshw, and the result of running it:
…
*-memory
description: System memory
physical id: 8
size: 3370MiB
So why it is only about 3GB system memory on the VIM3 Pro board? While the specification
(https://www.khadas.com/product-page/vim3) shows 4GB.
FYI, after installed dmidecode for further check it:
khadas@Khadas:/dev$ dmidecode
# dmidecode 3.1
Scanning /dev/mem for entry point.
/dev/mem: No such file or directory
So is there anything wrong with the Linux Kernel of the VIM3's Ubuntu image?
The said “5.0 TOPS NPU” maps to what device under /dev?
You use the SD image and use Keys mode to bootup, so the u-boot is from Android. And there is a patch to fix the memory issue, but not applied for Android yet, we will fix this issue in next release.
By the way, this issue in ubuntu u-boot has been fixed. So you can try to erase the Android in eMMC and boot from SD card directly, so that you can get the correct memory size in ubuntu.
In u-boot command line, erase the eMMC:
kvim3# store init 3
kvim3# reset
Or you can try the Ubuntu eMMC image, the memory size is also correct.
Another issue that I found is that it always that “Failed to fetch https://dl.khadas.com/repos/vim3/dists/bionic/InRelease Could not connect to dl.khadas.com:443 (54.197.197.165), connection timed out”
while trying “apt update”, please check you server on 54.197.197.165 does work or not?
I can confirm that the issue is not fixed as I’ve 3451MB of available RAM using VIM3_Ubuntu-server-bionic_Linux-4.9_arm64_EMMC_V20190813, however, with CoreELEC and their’s custom bootloader, I get 3696MB of available RAM.
That makes sense. balbes reports that the newest kernel is using the missing RAM for video, but I’m not sure if it reserves as much as almost 350MB of RAM…
Update:
Updating Android to VIM3_Pie_V190809 increased available RAM to 3696MB