Setup for the Radxa Rock Pi S
How I setup the Radxa Pock Pi S v1.3 I received a few days ago.
First, I grabbed a 32GB SDCard I had lying around, this is where the Linux-based OS will run as my Radxa Rock Pi S is not configured with on-board eMMC. Using my Linux tower PC running Linux Mint, I used the GParted program to format the card to exFAT. Next, I open Terminal, and navigated to the Downloads folder in my home directory. In the Downloads folder, I had already download the Armbian 25.8.1 (Trixie) image from the Armbian Rock Pi S support page (2). Using the ‘dd’ command line utility, I wrote the image onto the SDCard:
sudo dd if=./Armbian_25.8.1_Rockpi-s_trixie_current_6.12.41_minimal.img of=/dev/sdc bs=1M
Once ‘dd’ was finished, I removed the SDCard and inserted it into the card slot on the Rock Pi S. I plugged in an Ethernet cable into the RJ45 jack, then used a USB-A to USB-C cable to provide 900mA at 5V power to the board from the Linux tower PC. It should be noted that documentation specifies that the Rock Pi S needs 1A at 5V, but a USB 3.0 port is spec’d at 900mA (max) at 5V, and I saw no issues with the board with respect to the 100mA of mission current.
Once the board networking is up, I used SSH to login into the board using the Armbian default user name and password for the root account; ‘root’ and ‘1234’, respectively. Upon first boot up and login one is immediately prompted to set a password for the root account. Next, a standard user account is created using the given name and password. Make sure the password for root and user accounts are different! I then transitioned through the remaining prompts and setups until done.
The image is so minimal, even the software components for the Bluetooth hardware (bluez) is not installed by default. There was just one more thing I wanted and that was the PREEMPT_RT kernel. Since Linux 6.12, using the PREEMPT_RT kernel is as easy as configuring the right options in the kernel config. The image offered on the Armbian Rock Pi S page does not use the PREEMPT_RT kernel. Luckily, the Armbian build repository is on GitHub and one can build a custom image for the PREEMPT_RT kernel.
I created a virtual machine using Virt Manager with Ubuntu 24.04.x ISO as suggested by the Armbian documentation. This VM is configured with 16GB of RAM and 6 CPU cores. For reference, the host Linux PC has 6 CPU cores (12 logic cores because of hyper-threading, so the ‘nproc’ command returns 12 instead of 6), 32GB of RAM, and 1TB of main storage.
I cloned the Armbian source code inside the VM from the official repository on GitHub (3). After much trial and effort trying to build an image that used the PREEMPT_RT kernel, I found the best modern instructions for building the Armbian source on “Armbian – using kernel-config” from the Zuckerbude blog. This discovery saved me from giving up after multiple attempts to get an image built with PREEMPT_RT appearing in the ‘uname -a’ output had failed. In the root directory of the repository, I performed the following command for build configuration:
./compile.sh BOARD=rockpi-s BRANCH=current KERNEL_GIT=shallow kernel-config
When the kernel config menu appeared two key changes were made:
- Selected the option for a fully preempt-able kernel
- Disabled kernel support for virtualization, which interferes with PREEMPT_RT
I exited the kernel config menu and allowed the rest of the configuration process to complete. I then built the image using the following command:
./compile.sh build BOARD=rockpi-s BRANCH=current BUILD_DESKTOP=no BUILD_MINIMAL=yes RELEASE=trixie
The image build did take a while given the use of a VM and its configuration, under 30 minutes for sure. Once finished, I copied the image into the VM-host shared folder for access from the host side. I cleared the previous image from the SDCard using GParted to reformat the card to exFAT. In the Terminal window, I wrote the new image to the SDCard with the ‘dd’ command:
sudo dd if=./Armbian-unofficial_25.11.0-trunk_Rockpi-s_trixie_current_6.12.58_minimal.img of=/dev/sdc bs=1M
Inserted the SDCard into the board and powered-on the board. I re-navigated the previously completed steps for Armbian setup on initial boot up and login. When I login now and execute the ‘uname -a’ command I get the following (login output shown for coolness sake)

The ‘PREEMPT_RT’ is clearly visible in the output, thus the custom Armbian build was a success in providing the desired Linux image. Also to note, the ‘unofficial’ in the login output was done for custom image automatically by the build process, and makes sense.
For an aarch64 toolchain, I grabbed one from the Bootlin site built with Glibc 2.41, as that version matches the one built into the custom Linux image. I built libfmt and Boost 1.86.0 for aarch64 and installed both in the toolchain path. I will test out the toolchain with a small example binary soon in the future.
I also installed the ‘bluez’ package for the Bluetooth daemon and utilities.
There may be some mistakes here, I will try my best to fix as they are found.