r5s openwrt Tutorial and Testing Guide

Author

Reads 669

A sleek WiFi 6 router with antennas and cable on a wooden desk, perfect for modern home networks.
Credit: pexels.com, A sleek WiFi 6 router with antennas and cable on a wooden desk, perfect for modern home networks.

The r5s openwrt Tutorial and Testing Guide is a comprehensive resource for anyone looking to flash their r5s device with OpenWrt.

The r5s device has a high-performance quad-core CPU, making it an ideal candidate for OpenWrt.

To start the tutorial, you'll need to download the OpenWrt firmware for your r5s device from the official OpenWrt website.

The OpenWrt firmware is available in various versions, including the latest stable and development branches.

See what others are reading: Openwrt Firmware

Hardware and Unboxing

The NanoPi R5S comes fully assembled, which is a nice touch. The 3M sheet with 6 rubber feet that comes with it, however, is not really necessary.

The router has a microSD card socket on one of its sides, which is convenient for expanding storage. A USB-C port for power is located on the rear panel, along with a WiFi antenna hole that can also be used for GPIO, UART console, and more.

The rear panel also features two 2.5GbE RJ45 LAN ports, a Gigabit Ethernet WAN port, and an HDMI video output. This is a well-rounded set of ports for a router.

Discover more: Openwrt Travel Router

Hardware Spec

living room interior with electronic office devices.
Credit: pexels.com, living room interior with electronic office devices.

The hardware spec of this device is quite impressive. The SoC is a Rockchip RK3568B2, which is a powerful and efficient processor.

It comes with either 2GB or 4GB of LPDDR4X RAM, which should be more than enough for most users. This RAM is also LPDDR4X, which means it's energy-efficient and suitable for low-power devices.

The device also features a generous 8GB or 16GB of eMMC flash storage, which is perfect for storing your operating system, apps, and data. This amount of storage should be sufficient for most users, but you can always expand it using microSD cards.

One of the standout features of this device is its networking capabilities. It has one native Gigabit Ethernet port, which provides fast and reliable internet connectivity. Additionally, it has two PCIe 2.5Gbps Ethernet ports, which can be used for even faster networking.

The USB ports are also quite impressive, with two USB 3.2 Gen 1 Type-A ports that can be used for connecting peripherals and transferring data.

Ethernet Cables Plugged in Network Switch
Credit: pexels.com, Ethernet Cables Plugged in Network Switch

Here's a summary of the key hardware specs:

  • SoC: Rockchip RK3568B2
  • RAM: 2GB/4GB LPDDR4X
  • Flash: 8GB/16GB eMMC
  • Ethernet: one Native Gigabit Ethernet, and two PCIe 2.5Gbps Ethernet
  • USB: two USB 3.2 Gen 1 Type-A ports
  • Power supply: USB-C, support PD, 5V/9V/12V input

The device also features a range of other ports and connectors, including HDMI, PCIe, and microSD. The PCB is an 8-layer design, which should provide good heat dissipation and signal integrity.

Nano Pi Unboxing

The Nano Pi unboxing experience is quite straightforward. The device comes fully assembled, which is a nice touch.

A 3M sheet with 6 rubber feet is included, but they're not really necessary.

The router has a microSD card socket on one of its sides, making it easy to expand the storage.

The rear panel is where you'll find the USB-C port for power, a WiFi antenna hole, two 2.5GbE RJ45 LAN ports, a Gigabit Ethernet WAN port, and HDMI video output.

A Mask button for firmware flashing is located on the other side, which is a convenient feature for developers.

The front panel features four LEDs for "System" and Ethernet ports, as well as two USB 3.0 ports.

Installation and Setup

Credit: youtube.com, OpenWRT - NanoPi R5S Overview & Initial Setup

The NanoPi R5S is a great device, but it comes with a default firmware that has some security flaws. Fortunately, you can easily upgrade to a more secure version.

To start, you'll need to connect your laptop to one of the two LAN ports on the device. Then, open a browser and navigate to http://192.168.2.1/. The default login credentials are 'root' as the username and 'password' as the password.

Next, you'll need to select 'System/eMMC Tools' from the menu. From there, you can download the Agilicus-supplied OpenWRT image, which is available on the FriendlyWRT website. The specific file you'll need to download is openwrt-rockchip-armv8-friendlyarm_nanopi-r5s-squashfs-sysupgrade.img.gz (previous release).

Here are the steps to upload and write the image to the device:

  1. Choose the file you downloaded
  2. Upload and write it to the device
  3. Wait approximately 90 seconds for the process to complete
  4. Power off the device, then power it back on

That's it! Once you've completed these steps, you'll be running the Agilicus-supplied OpenWRT image on your NanoPi R5S.

Security and Firewall

Firewall settings are crucial for securing your r5s OpenWRT device. You can check which ports are listening by running netstat -nlpt, which shows you what's available from outside the device.

Credit: youtube.com, Your network needs rules! // A Beginners Guide to Firewall Rules in OpenWrt, GL.iNet Slate

The admin web interface, SSH, and web terminal are the only services listening by default. This is a good starting point for your security configuration.

To allow remote access, you'll need to open specific ports on your router, especially if the Agilicus Connector is providing Service Forwarder services. This includes the ports used by the admin web interface, SSH, and web terminal.

You can check the current firewall and NAT settings by looking at the device's interfaces. From there, you can configure the settings to suit your needs.

You might like: Openwrt Ssh 修改dns

Recovery and Troubleshooting

If you're unsure about the state of your Nanopi R5S, you can recover it using a micro-sdcard.

To start the recovery process, download the image from the provided link, uncompress it, and image it to a micro-sdcard. Then, insert the micro-sdcard into the slot on the side of the nano pi and plug an Ethernet cable into the port-1.

Set the IP address of your PC to 192.168.2.2 and turn the system on. The system should now be accessible via the web interface at http://192.168.2.1/.

Additional reading: Openwrt Build System Setup

Credit: youtube.com, Setting Up USB Recovery for Dynalink OpenWrt Router

To copy the sysupgrade image to the emmc, use either the web terminal or the ssh interface and run the command 'dd' to copy from the sdcard (/dev/mmcblk0) to the emmc (/dev/mmcblk1) in blocks of 64K size, 33000 blocks (about 2G).

The 'dd' command will copy the image in blocks of 64K size, which is about 2G, and will take a significant amount of time to complete.

After the command is executed, power down the system, remove the micro-sdcard, and reboot the system.

Expand your knowledge: Upgrade Openwrt from Command Line

Performance and Benchmarking

The r5s OpenWRT is a solid performer, capable of handling a wide range of tasks with ease. Its CPU, a 64-bit quad-core ARM Cortex-A53, provides a boost in processing power.

In terms of memory, the r5s OpenWRT comes with 2GB of RAM and 16GB of storage, making it a great option for those who need a balance between performance and affordability. The r5s OpenWRT is a great option for those who need a balance between performance and affordability.

Credit: youtube.com, OpenWRT - NanoPi R5S Performance Test (NAT, OpenVPN & Wireguard VPN)

The r5s OpenWRT's performance is further enhanced by its support for multiple network protocols, including IPv6 and OpenVPN, which can be enabled with just a few clicks. With a simple configuration, you can have your device up and running in no time.

In terms of benchmarking, the r5s OpenWRT has been shown to perform well in various tests, including the iperf3 benchmark, which measures network throughput. The r5s OpenWRT has been shown to perform well in various tests.

Testing and Tutorial

To test the potential of the NanoPi R5S, I set up a 2.5 Gb network connection. This connection is made possible by the FastRhino R68s LAN ports, which connect the NanoPi R5S to a test server.

The goal of this setup is to evaluate the performance of the NanoPi R5S in a real-world scenario. This involves pushing the device to its limits and observing how it handles demanding tasks.

In this configuration, the NanoPi R5S and the test server are connected through the FastRhino R68s LAN ports, providing a stable and high-speed connection.

Intriguing read: Wake on Lan Openwrt

Testing Network Diagram

White Dry-erase Board With Red Diagram
Credit: pexels.com, White Dry-erase Board With Red Diagram

To test the potential of the NanoPi R5S, I set up a 2.5 Gb network connection.

The NanoPi R5S was connected to the FastRhino R68s LAN ports, along with the test server.

This setup allowed me to thoroughly test the capabilities of the NanoPi R5S.

NanoPi R5S/R5C eMMC Tutorial

The NanoPi R5S/R5C eMMC tutorial has been a hot topic in the community. It has 30 comments, with users sharing their experiences and troubleshooting tips.

One user, syfl2022, reported that the USB wireless network card was not working. This is not an isolated issue, as other users have also encountered similar problems.

To overcome the issue of the LAN1 port not working on the R5S, duojie986 suggested downloading the K big provided download tool, which is already configured and can be used to flash the device directly.

However, not all users have been able to get the USB wireless network card working. scegg reported that the device would not recognize the USB wireless network card, even after trying different methods.

Curious to learn more? Check out: Wireless Access Point

Credit: youtube.com, Tutorial Flash Openwrt Ke EMMC untuk device Nanopi R5s

The issue of the USB wireless network card not working may be due to the fact that the mainline kernel is not yet fully supported for the NanoPi R5S. As road pointed out, the mainline kernel does not yet support the NanoPi R5S, and this may be the cause of the issue.

If you're experiencing issues with the USB wireless network card, you may want to try using a different device or a different kernel.

Here are some common issues that users have encountered when flashing the NanoPi R5S/R5C:

  • USB wireless network card not working
  • LAN1 port not working on R5S
  • Unable to use both NVME and eth1 at the same time
  • Unable to use the WAN port after flashing

These issues may be due to a variety of factors, including the kernel version, the flashing method, and the device itself.

Margaret Schoen

Writer

Margaret Schoen is a skilled writer with a passion for exploring the intersection of technology and everyday life. Her articles have been featured in various publications, covering topics such as cloud storage issues and their impact on modern productivity. With a keen eye for detail and a knack for breaking down complex concepts, Margaret's writing has resonated with readers seeking practical advice and insight.

Love What You Read? Stay Updated!

Join our community for insights, tips, and more.