Skip to content

NanoPi R4S - Ubuntu 20.04 LTS - Mainline Kernel 5.13.1

Compare
Choose a tag to compare
@avafinger avafinger released this 14 Jul 02:01
· 11 commits to main since this release
4db3dee

NanoPi R4S - Ubuntu 20.04 LTS - Minimal

SD card Image for NanoPi R4S with Kernel 5.13.1 based on Kernel.org
This is the minimal Image with the following:

  • eth0 (WAN)
  • eth1 (enp1s0) (LAN)
  • USB
  • 4 GB dram mem.
  • Leds
  • server like with the minimum size, suitable for mini router / testing / fun
  • CPU Freq Gov CONSERVATIVE (1.4 / 1.8 GHz) , with a new DTB you can run 1.5 / 2.0 GHz
  • ARM Cortex-R/M processors build tools installed
  • latest gcc compiler/tools (stable)

Credentials

ubuntu / ubuntu

Network

Initial setup:

  • eth0 as DHCP (WAN)
  • eth1 as static but disabled in /etc/network/interfaces (LAN)
    eth1 is renamed to enp1s0

Install

The installation process requires a Linux box (or a VM) and is not necessary to resize the SD card (any size).
The minimum sd card size possible to be flashed is 8 GB. 16 GB is recommended if you will install dev tools.
Download the files, make the install script with exec permissions and run with sudo
Find the device name when you insert the sd card, careful not to pass your current HDD device, it will be erased.

  • if you have a USB card reader it will be like /dev/sdX where X is a letter (b,c,d...),
  • if you have an embedded sd card reader like those in the notebooks it will be something like /dev/mmcblkY where Y is a number (1,2,3...)

Finding device name

use dmesg|tail after inserting the SD CARD:

    [358836.445747] sd 6:0:0:0: [sdd] 31116288 512-byte logical blocks: (15.9 GB/14.8 GiB)
    [358836.478751]  sdd: sdd1 sdd2
    [358841.257810] EXT4-fs (sdd1): mounted filesystem with ordered data mode. Opts: (null)
    [358841.532920] EXT4-fs (sdd2): mounted filesystem without journal. Opts: (null)

Flashing

    sudo chmod +x ./flash_mainline_sdcard.sh
    sudo ./flash_mainline_sdcard.sh /dev/sdX (where X is the letter found above as an example)

Before you boot

Network configuration is done by the /etc/network/interfaces, edit the file and uncomment the ### for the enp1s0 interface.
Update with your IP, gateway, etc...
This is not required, you can log in the first time with ssh and use mcedit to change the /etc/network/interfaces file content and reboot

First login

Use the WAN interface on the first time to ssh to the board. user and password: ubuntu / ubuntu

Obs: mcedit is a nice file editor