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.

FriendlyARM NanoPC-T4

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 this poweroff command instead.
  • Remove microSD and reboot.

For installation see install OpenWrt (generic explanation).

generic.debrick

It's easy to debrick this device, the system is stored on a Micro-SD card

failsafe_and_factory_reset

You can enter Failsafe mode through serial console

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

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.

The default network configuration is:

Interface Name Description Default configuration
br-lan LAN & WiFi (initial configuration) 192.168.1.1/24

No VLAN for this device

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

Top view of NanoPC T4
Bottom view of NanoPC T4
nanopc-t4-1902-if-01.jpg

Work in progress

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

COPY HERE THE BOOTLOG WITH THE ORIGINAL FIRMWARE


COPY HERE THE BOOTLOG ONCE OPENWRT IS INSTALLED AND RUNNING


Space for additional notes, links to forum threads or other resources.

  • ...
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2025/05/07 13:17
  • by ph_ybarro