StartEvery page

Installing on a NanoPi R5S

The NanoPi R5S is a small router board with three network ports. They're marked WAN, LAN1 and LAN2 on its case. You start panel from an SD card first. Then panel installs itself onto the board's built-in storage (its eMMC), so you can take the card out.

Write the card

  1. Download panel-<version>-nanopi-r5s-trixie.img.xz from the download page. Check it against its .sha256 file.
  2. Write it to an SD card. You can use Raspberry Pi Imager (choose Use custom) or balenaEtcher. On Linux, xzcat … | sudo dd of=/dev/sdX bs=4M works too.

The first start

Plug your internet cable into the port marked WAN. Put the card in its slot, and switch the board on. On the first start, panel:

  • Names the ports wan0, lan1 and lan2, matching the labels on the case.
  • Gives each port a hardware address of its own and keeps it from then on. The board doesn't come with any.
  • Names the machine panel- followed by the end of wan0's address.
  • Grows the system to fill the card.

Look for panel-… in your current router's list of devices to find the board's address. Open it and sign in as admin with the password panel. See The first sign-in.

Onto the eMMC

Log in over SSH as an administrator (see Accounts). Then:

sudo panelctl install              # lists the disks; the card is marked
sudo panelctl install /dev/mmcblk1 # the eMMC: type its name to confirm

The card is mmcblk0 and the eMMC is mmcblk1. An 8 GB eMMC shows up as 7 GB. The install copies the running system onto the eMMC, including the accounts, the settings and the ports' addresses. When it's done, switch off, take the card out, and switch on again.

panel won't install the system onto an NVMe disk, because the board can only start from the eMMC or a card. Use an NVMe disk for the NAS instead.

If there's a card in the slot, the board always starts from the card instead of the eMMC. That's also how you install again later.

If something else is on the eMMC already

If the board has FriendlyWrt or another system on its eMMC, it starts that system and never looks at the card. If you can still sign in to that system, clear the start of its eMMC from there:

sudo dd if=/dev/zero of=/dev/mmcblkN bs=1M count=16

If you can't, clear it from a Linux computer over USB, with the board in maskrom mode. You'll need a USB-A to USB-A cable that carries data. Plug it into the USB port that FriendlyElec's wiki shows for this.

sudo apt install rkdeveloptool
git clone --depth 1 https://github.com/rockchip-linux/rkbin.git
(cd rkbin && tools/boot_merger RKBOOT/RK3568MINIALL.ini)   # the loader
# card out; cable in; hold MASK, power on, let go 4 s after the LED lights
sudo rkdeveloptool ld                     # Mode=Maskrom
sudo rkdeveloptool db rkbin/rk356x_spl_loader_*.bin
dd if=/dev/zero of=zero.img bs=1M count=16
sudo rkdeveloptool wl 0 zero.img
sudo rkdeveloptool rd

Then put the card in and switch the board on. With nothing to start on the eMMC, the board starts from the card.

Good to know

  • You can't log in on a console. The serial console (the debug header, at 1,500,000 baud) shows the board starting up and each port's address.