
Banana Pi BPI-RV2 open source gateway is a device based on Siflower SF21H8898 SoC, 1 × 2.5G WAN network interface, 5 Gigabit LAN network interface, onboard 512MB DDR3 memory, 128 MiB NAND, 16 MiB NOR, M.2 interface, MINI PCIE and USB 2.0 interface, etc.
Before you start using the development board, please have the following items ready:
Prepare 8G/above TF card, USB-Serial cable.
12V/2A power adapter
Connect the USB TypeC Console interface using the TypeC (cable.Baud=115200)Connect to debug console on BPI-RV2.
5G module: RM520N-GL
NVMe: Intel NVMe
4G module:EC25-E
Ready to burn, the board is connected to the serial port, and the computer network cable is connected to the network port on the board.
Open the serial port tool, restart the uboot, press enter Key to enter the command mode, enter the http://192.168.1.5 command (or other ip address in the same network segment as the PC), press enter, the interface is as follows:
Open the browser and enter different urls as required. The following table uses 192.168.1.5 as an example:
IP address | Function |
---|---|
192.168.1.5 |
Burn firmware |
192.168.1.5/uboot.html |
Burn uboot |
The normal burning interface is as follows:
It restarts automatically after burning
Q: How to deal with uboot burning failure A:If the uboot fails to be burned, the image cannot be updated through the uboot. You can download the image through the irom usb, or remove the flash and re-burn the image in mode of the burner. |
Using Siflower NPU, the development board software supports IPV4/IPV6 dual stack data processing offload, including hardware switching, hardware routing, hardware NAT, hardware 50 ACL, traffic statistics, hardware QoS. Performance up to 64 byte small packet, full bandwidth forwarding.
NPU supports six physical ports and internally maps all physical ports to virtual ports. And it supports 7 virtual ports.port0~port3 is qsgmii port,port4 is xsgmii port, port5 is rgmii port and port 6 is host interface.
dpns supports packet acceleration of layer 2, layer 3, multicast packet acceleration, pppoe packet acceleration and other functions.
support nat.
support vlan and double layer vlan replacement.
support flow-based rate limiting.
Support acl, including traffic mirroring, filtering, overlay sending, packet rate limit and other common functions.
M2 interface and Mini Pcie interface, both PCIe gen 2 x1, PCIE debugging reference:
In this interface, you can use either 5G module or NVMe.
Connect RM520N to the interface
Use the command to query:
root@OpenWrt:/# lsusb
Bus 001 Device 003: ID 2c7c:0801 Quectel RM520N-GL
Bus 001 Device 002: ID 1a40:0101 USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux 5.10.104 dwc2_hsotg DWC OTG Controller
Connect NVMe to the interface
Use the command to query:
root@OpenWrt:/# lspci
0001:00:00.0 PCI bridge: Device 1a0a:7878 (rev 01)
0001:01:00.0 Non-Volatile memory controller: Intel Corporation NVMe Optane Memory Series
Connect the 4G EC25 to the interface
Use the command to query:
root@OpenWrt:/# lsusb
Bus 001 Device 003: ID 2c7c:0125 Android Android
Bus 001 Device 002: ID 1a40:0101 USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux 5.10.104 dwc2_hsotg DWC OTG Controller
Connect the Mini Pcie to USB board to the interface
Use the command to query:
root@OpenWrt:/# lspci
00:00.0 PCI bridge: Device 1a0a:abcd (rev 01)
01:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller (rev 03)
BPI-RV2 can be PoE powered through a 2.5GbE port.
You’ll need a BPI-RV2 board, a POE switch, and a network cable.
Connect the WAN port of BPI-RV2 and the POE power supply port of the switch with the network cable.The network cable is then ready to power the BPI-RV2.
The default start flash was selected by jumping the cap, and the SPI0 CS was connected as the default start flash.
The encryption and decryption module supports AES/RSA/MD5/SHA, which has been connected to the linux crypto subsystem.
Linux Kerne provides an efficient cryptographic framework that allows user space and kernel space access to a variety of cryptographic algorithms such as symmetric encryption, asymmetric encryption, and hash. Cryptographic operations in the kernel are mainly implemented through the crypto API, which supports common cryptographic standards such as AESAEAD, SHA, etc.
The main components of the framework include:
Crypto API: Provides an interface for encryption/decryption.
Transformations: Cryptographic operations are abstracted as transformations, allowing different cryptographic operations (e.g., block encryption, stream encryption) to share a consistent interface.
Encryption module: the module that actually implements the encryption algorithm.
BPI-RV2 supports usb2.0 functions, and three usb ports are expanded through the usb hub chip, including M2 interface, mini pcie interface, and USB TYPE-A host port. usb debugging reference:
BPI-RV2 reserves some pins for GPIO, PWM and other interface control. For details, please refer to the documentation: