Lightweight linux os to run on Nand flash

Hi!
I just got a Rock Pi S and wondering which lightweight OS I can run?
I got the one with 512mb ram and 8 GB NAND flash. I’ve been trying to install Debian buster, but I guess it taking too much space…

I’m going to build a terminal application which will run all the time and collect data from a sensor.
The programming language I will use is C++ so I need to install g++.

Thanks in advance!

/Jofen

8 GB is more than enough to install your OS of choice.

Personally, I’ve installed the official Ubuntu Minimal image and this is the result (after adding a few packages, compilers included):

root@rockpis:~# df -k
Filesystem     1K-blocks    Used Available Use% Mounted on
udev              117564       0    117564   0% /dev
tmpfs              24184     296     23888   2% /run
/dev/mmcblk0p2  61369544 1022820  57837844   2% /
tmpfs             120920       0    120920   0% /dev/shm
tmpfs               5120       4      5116   1% /run/lock
tmpfs             120920       0    120920   0% /sys/fs/cgroup
tmpfs              24184       0     24184   0% /run/user/1000

As you can see, only 1 GB used by the root filesystem (which holds everything).

https://www.armbian.com/rockpi-s/
Minimal Bionic?
Probably half the size of stock with pro grade dev tools and support.

Thanks for response.

I’ve tried both Minimal Bionic and minimal buster from radxa download site and followed the installation for SD nand, https://wiki.radxa.com/RockpiS/dev/sdnand-install

But I can’t use all the storage I should have… below is the table and I haven’t installed anything yet…
Could it be something I’m doing wrong when I’m flashing the img? Do I have to something before with rkdeveloptool?

root@rockpis:/# df -k
Filesystem     1K-blocks   Used Available Use% Mounted on
udev              214660      0    214660   0% /dev
tmpfs              43564    320     43244   1% /run
/dev/mmcblk1p2    826156 439312    331080  58% /
tmpfs             217812      0    217812   0% /dev/shm
tmpfs               5120      0      5120   0% /run/lock
tmpfs             217812      0    217812   0% /sys/fs/cgroup
tmpfs              43560      0     43560   0% /run/user/1000
/dev/mmcblk1p1    114446  26342     88104  24% /boot

Thanks for all help!

The Rock Pi S has up to 8Gbit of NAND (1GByte), not 8GBytes.
see SD NAND: https://wiki.radxa.com/RockpiS/hardware/SDNAND
see SKU models: https://wiki.radxa.com/RockpiS/hardware/models

2 Likes