友善之臂NanoPi R2S入门笔记(附clash安装)

友善之臂NanoPi R2S入门笔记(附clash安装)_第1张图片

 

老了,记性不好,写下备用

官方文档链接:https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R2S/zh

官方文档挺全的,可以作为参考

配置

  • CPU: Rockchip RK3328, Quad-core Cortex-A53
  • DDR4 RAM: 1GB
  • Network:
    • 10/100/1000M以太网口 x 1
    • USB3.0转10/100/1000M以太网口 x 1
  • USB2.0 Host: Type-A x1
  • MicroSD Slot x 1
  • MicroUSB: 供电和Slave功能
  • Debug Serial Port: 3.3V TTL电平,3Pin 2.54mm间距排针
  • LED: LED x 3
  • KEY: KEY x 1 用户自定义功能
  • PC Size: 55.6 x 52mm
  • Power Supply: DC 5V/2A
  • Temperature measuring range: 0℃ to 80℃
  • OS/Software: U-boot,Ubuntu-Core,OpenWrt

 友善之臂NanoPi R2S入门笔记(附clash安装)_第2张图片

 

刷机包:

1.官方固件:FriendlyElec Downloads

友善之臂NanoPi R2S入门笔记(附clash安装)_第3张图片友善之臂NanoPi R2S入门笔记(附clash安装)_第4张图片由于R2S没有emmc,直接选择SD卡固件即可

用win32diskimager可以直接刷入TF卡,插入使用

FriendlyWrt管理页面:

http://friendlywrt/

http://192.168.2.1/

http://[fd00:ab:cd::1]

安装OpenClash插件

官方下载地址:https://github.com/vernesong/OpenClash/releases

选取最新版本,下载对应软件包就可以

luci-app-openclash_0.45.87-beta_all.ipk  以此为例

进入控制台,安装依赖

opkg update

opkg install luci

opkg install luci-base

opkg install iptables

opkg install dnsmasq-full

opkg install coreutils

opkg install coreutils-nohup

opkg install bash

opkg install curl

opkg install jsonfilter

opkg install ca-certificates

opkg install ipset

opkg install ip-full

opkg install iptables-mod-tproxy

opkg install kmod-tun #TUN模式

opkg install luci-compat

 

换第三方软件源:

进入菜单”系统“-》”软件包“, 在界面上点击”okpg配置“按钮, 在新弹出的界面上, 更改/etc/opkg/distfeeds.conf的文件内容即可,
比如要切换至国内腾讯源, 可以替换成如下内容, 然后点击 “保存” 按钮:

src/gz openwrt_base https://mirrors.cloud.tencent.com/openwrt/releases/22.03.2/packages/aarch64_cortex-a53/base
src/gz openwrt_luci https://mirrors.cloud.tencent.com/openwrt/releases/22.03.2/packages/aarch64_cortex-a53/luci
src/gz openwrt_packages https://mirrors.cloud.tencent.com/openwrt/releases/22.03.2/packages/aarch64_cortex-a53/packages
src/gz openwrt_routing https://mirrors.cloud.tencent.com/openwrt/releases/22.03.2/packages/aarch64_cortex-a53/routing
src/gz openwrt_telephony https://mirrors.cloud.tencent.com/openwrt/releases/22.03.2/packages/aarch64_cortex-a53/telephony
src/gz friendlywrt_packages file://opt/packages

        注意, friendlywrt_packages需要保留, 否则会缺少一些系统依赖;
        如果你使用的是 friendlywrt 21.02 的固件, 则将上面的 22.03.2 替换成 21.02.5;
        CPU架构可选择 aarch64_cortex-a53和aarch64_generic这两种;
通过命令行切换国内源:

sed -i -e 's/downloads.openwrt.org/mirrors.cloud.tencent.com/g' /etc/opkg/distfeeds.conf
opkg update

官方固件支持的无线网卡:

友善之臂NanoPi R2S入门笔记(附clash安装)_第5张图片 实测十几块钱的rtl88cu网卡可以官方固件免驱使用,无线AP正常使用,附图

友善之臂NanoPi R2S入门笔记(附clash安装)_第6张图片

 

2.第三方固件: 

DietPi 是一个高度优化和最小的基于 Debian 的 Linux 发行版。DietPi的核心非常轻巧,并且非常易于安装和使用。https://dietpi.com/downloads/images/DietPi_NanoPiR2S-ARMv8-Bullseye.7z

1988固件
https://github.com/stupidloud/nanopi-openwrt/releases

QiuSimons GC404编译固件:lan wan口互换,适合1000M网速
​https://github.com/QiuSimons/R2S-OpenWrt/releases/

恩山 sirpdboy编译固件:

https://www.right.com.cn/forum/thread-4387071-1-1.html

骷髅头编译固件:

https://github.com/thomaswcy

klever 1988编译固件:

https://github.com/QiuSimons/R2S-OpenWrt/releases/

3.主要事项

①网卡默认顺序:WAN口为eth0,与其他路由器默认的eth1不一样。LAN口可配置为br-lan网桥,LAN口与AP共享。

②整个开发板用普通type-c接口5V/2A数据线可以正常使用

③发热较为严重,考虑散热条件

 

 

 

你可能感兴趣的:(软路由,linux,运维,服务器)