FriendlyARM NanoPC-T4
The NanoPC T4 (as “T4”) is an open source platform developed by FriendlyElec. The T4 has the Rockchip RK3399 CPU, single Gigabit Ethernet ports, 4GB LPDDR3 RAM, and 16GB eMMC flash. It has one microSD, one M.2 NVME, HDMI ports, 3.5mm audio jack, two USB 2.0, one USB 3.0, and 12V via barrel connector.
Supported Versions
Hardware Highlights
Installation
Installation - microSD:
- Uncompress the OpenWrt
...ext4-sysupgrade.img.gz
image. - Use
dd
or Balena Etcher and write...ext4-sysupgrade.img
to microSD - Insert microSD and boot the NanoPC-T4
Installation - eMMC:
- Install to microSD and boot first
- Send image file to
/tmp
folder. - Run these command:
gunzip /tmp/<change to file you use>_ext4-sysupgrade.img.gz dd if=/tmp/<change to file you use>_ext4-sysupgrade.img of=/dev/mmcblk0 bs=4M conv=fsync sync
- If
sync
command doesn't work or getting an error, you can issue with thispoweroff
command instead. - Remove microSD and reboot.
For installation see install OpenWrt (generic explanation).
Debricking
It's easy to debrick this device, the system is stored on a Micro-SD card
Failsafe mode
You can enter Failsafe mode through serial console
Basic configuration
How to connect via Ethernet
It might be tricky to connect via Ethernet for the first time. By default the DHCP client is enabled and the IP address is configured as static 192.168.1.1
After flashing OpenWrt as described above, you can reach the OpenWrt via Ethernet by using the SSH to set your password or browse to http://192.168.1.1
if LuCI is installed.
Alternatively, in order to set it up with a fixed IP different from the default 192.168.1.1 do the following:
uci set network.lan.ipaddr=172.16.0.1 uci commit network /etc/init.d/network restart
In order to get online with a serial directly on the NanoPC-T4, set the single port to 'wan' edit the network file, create the wan and change the lan to eth0 (vi /etc/config/network
):
config interface 'loopback' option device 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' #option ifname 'eth0' option proto 'static' option ipaddr '192.168.1.1' option netmask '255.255.255.0' option ip6assign '60' config interface 'wan' option ifname 'eth0' option _orig_ifname 'eth0' option _orig_bridge 'false' option proto 'dhcp' config interface 'wan6' option ifname 'eth0' option _orig_ifname 'eth0' option _orig_bridge 'false' option proto 'dhcpv6' option reqaddress 'try' option reqprefix 'auto'
Alternatively, in order to configure onboard ethernet to eth0 for LAN and USB adapter to eth1 for WAN (vi /etc/config/network
):
config device option name 'br-lan' option type 'bridge' option ports 'eth0' config interface 'lan' option device 'br-lan' option proto 'static' option ipaddr '172.16.0.1' option netmask '255.255.255.0' option ip6assign '60' config interface 'wan' option device 'eth1' option proto 'dhcp' config interface 'wan6' option device 'eth1' option proto 'dhcpv6' option reqaddress 'try' option reqprefix 'auto'
Reboot.
Be sure to change these back once your USB LAN adapter is installed
Adding a USB to Ethernet Adapter
It is common to use a USB 3.0 to Gigabit Ethernet adapter to connect your WAN/Internet device (e.g. cable modem or fiber optic modem), thus freeing up the built-in Ethernet port for a switch and/or wireless access point.
Install the kernel module associated with your adapter. It is suggested to use Firmware Selector, click Customize, and add your adapter kmod so it is ready use. Some common examples:
- RTL8153: kmod-usb-net-rtl8152
- AX8817: kmod-usb-net-asix-ax88179
Alternatively, you can compile your own rockchip image with these included, for example (on menuconfig):
Kernel modules -> USB Support -> kmod-usb-net kmod-usb-net-asix asix-ax88179
Then proceed with the connecting instructions on the previous chapter.
Specific Configuration
Network interfaces
The default network configuration is:
Interface Name | Description | Default configuration |
---|---|---|
br-lan | LAN & WiFi (initial configuration) | 192.168.1.1/24 |
Switch Ports (for VLANs)
No VLAN for this device
Buttons
→ hardware.button on howto use and configure the hardware button(s). Here, we merely name the buttons, so we can use them in the above Howto.
The FriendlyARM NanoPC-T4 has the following buttons:
BUTTON | Event |
---|---|
Power key | Power on/off the device |
Hardware
Info
Photos
Opening the case
Work in progress
Serial
→ port.serial general information about the serial port, serial port cable, etc.
How to connect to the Serial Port of this specific device:
Insert photo of PCB with markings for serial port
Serial connection parameters for FriendlyARM NanoPC-T4 | 1500000, 8N1, 3.3V |
---|
Bootlogs
OEM bootlog
COPY HERE THE BOOTLOG WITH THE ORIGINAL FIRMWARE
OpenWrt bootlog
COPY HERE THE BOOTLOG ONCE OPENWRT IS INSTALLED AND RUNNING
Notes
Space for additional notes, links to forum threads or other resources.
- ...