Convert Figma logo to code with AI

stupidloud logonanopi-openwrt

Openwrt for Nanopi R1S R2S R4S R5S 香橙派 R1 Plus 固件编译 纯净版与大杂烩

5,531
2,722
5,531
814

Top Related Projects

30,604

Lean's LEDE source

An opensource OpenWrt variant for mainland China users.

4,522

Armbian Linux build framework generates custom Debian or Ubuntu image for x86, aarch64, riscv64 & armhf

Quick Overview

The stupidloud/nanopi-openwrt repository is a project that provides OpenWrt firmware builds for NanoPi R2S and R4S single-board computers. It includes automated builds using GitHub Actions and offers various pre-configured packages and optimizations for these specific devices.

Pros

  • Regular automated builds ensure up-to-date firmware
  • Tailored specifically for NanoPi R2S and R4S devices
  • Includes a wide range of pre-configured packages
  • Optimized for performance on these single-board computers

Cons

  • Limited to specific NanoPi models (R2S and R4S)
  • May not be suitable for users who prefer vanilla OpenWrt builds
  • Potential for introduced bugs or incompatibilities due to customizations
  • Requires some technical knowledge to flash and set up

Getting Started

  1. Visit the repository's releases page: https://github.com/stupidloud/nanopi-openwrt/releases
  2. Download the appropriate firmware for your NanoPi device (R2S or R4S)
  3. Flash the firmware to your device using the recommended method for your NanoPi model
  4. Boot your device and access the OpenWrt web interface at 192.168.1.1
  5. Configure your network settings and install additional packages as needed

Note: Always refer to the repository's README and documentation for the most up-to-date instructions and any specific requirements or considerations for your device.

Competitor Comparisons

30,604

Lean's LEDE source

Pros of lede

  • More comprehensive and feature-rich, with a wider range of supported devices
  • Larger community and more frequent updates
  • Better documentation and user guides

Cons of lede

  • Potentially more complex for beginners due to its extensive features
  • May require more system resources due to its broader scope

Code comparison

lede:

./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
make -j$(nproc) V=s

nanopi-openwrt:

./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
make -j$(($(nproc) + 1)) V=s

The code snippets show similar build processes, with lede using $(nproc) for parallel compilation, while nanopi-openwrt uses $(($(nproc) + 1)), potentially utilizing one additional thread.

nanopi-openwrt is specifically tailored for NanoPi devices, offering a more focused and potentially optimized experience for these boards. It may be easier to set up and use for NanoPi owners due to its specialized nature.

lede, on the other hand, provides a more versatile platform supporting a wide range of devices and use cases. It offers more customization options and features, making it suitable for advanced users and diverse hardware configurations.

An opensource OpenWrt variant for mainland China users.

Pros of ImmortalWrt

  • More comprehensive support for a wider range of devices and architectures
  • Larger community and more frequent updates
  • Enhanced security features and optimizations

Cons of ImmortalWrt

  • Higher complexity and steeper learning curve for beginners
  • Potentially more resource-intensive due to additional features

Code Comparison

NanoPi-OpenWrt:

./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
make -j1 V=s

ImmortalWrt:

./scripts/feeds update -a
./scripts/feeds install -a
make defconfig
make menuconfig
make -j$(nproc) V=s

The main difference in the build process is that ImmortalWrt includes an additional make defconfig step, which sets up a default configuration before customization. ImmortalWrt also utilizes all available CPU cores for compilation with $(nproc), potentially speeding up the build process on multi-core systems.

Both projects are based on OpenWrt, but ImmortalWrt offers a more feature-rich and actively maintained distribution. NanoPi-OpenWrt focuses specifically on NanoPi devices, while ImmortalWrt supports a broader range of hardware. Users should consider their specific needs and hardware compatibility when choosing between the two projects.

4,522

Armbian Linux build framework generates custom Debian or Ubuntu image for x86, aarch64, riscv64 & armhf

Pros of build

  • Supports a wider range of ARM-based single-board computers and devices
  • More active development with frequent updates and contributions
  • Comprehensive documentation and community support

Cons of build

  • Larger codebase and potentially more complex setup process
  • May require more system resources due to its broader scope

Code Comparison

build:

./compile.sh \
    BOARD=nanopi-r2s \
    BRANCH=current \
    RELEASE=bullseye \
    BUILD_MINIMAL=yes \
    BUILD_DESKTOP=no

nanopi-openwrt:

./scripts/build.sh \
    -d nanopi-r2s \
    -o openwrt \
    -v snapshot

Summary

While build offers broader device support and more active development, nanopi-openwrt provides a more focused solution specifically for NanoPi devices running OpenWrt. The build project may require more resources and have a steeper learning curve, but it offers greater flexibility and community support. nanopi-openwrt, on the other hand, presents a simpler, more streamlined approach for users specifically interested in running OpenWrt on NanoPi hardware.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

Nanopi R1S R2S R2C R4S X86 Openwrt 固件

刷机工具
下载地址
更新说明
使用提示
固件特性
在线升级
1分钟生成自己所需固件

下载地址:

https://github.com/stupidloud/nanopi-openwrt/tags
(img.gz档不需要解压,可以直接使用刷机工具刷入)

使用提示:

默认用户名是root, 密码是password,局域网IP为192.168.2.1
烧制完固件插入tf卡并启动完成,电脑端显示“网络(已连接)”之后,在浏览器输入 http://immortalwrt/ 可以直接打开路由器后台,无需修改本地连接设置或者查看IP地址。
如果网络状态一直是未识别(上电超过5分钟),请直接插拔一次电源重启试试。

终端内在线升级方法:

wget -qO- https://github.com/stupidloud/nanopi-openwrt/raw/master/scripts/autoupdate-bash.sh | bash

slim版

wget -qO- https://github.com/stupidloud/nanopi-openwrt/raw/master/scripts/autoupdate-bash.sh | ver=-slim bash

x86安装盘不是sda的情况下使用

wget -qO- https://github.com/klever1988/nanopi-openwrt/raw/master/scripts/autoupdate-bash.sh | disk=sdb bash

(脚本由gary lau提供,非常感谢!)

固件特性:

  • slim版固件只有OpenWrt本体,但内置了“本地软件源”,包含大部分常用插件,不喜欢固件预装繁杂插件的人可以选择这个版本,进入后台软件包选装所需插件
  • 采用ext4文件系统,刷卡之后可自行使用分区工具对sd卡扩容根分区至最大
  • 支持usb无线网卡(RTL8821CU芯片,例如COMFAST 811AC),可以驱动无线网卡运行在5G频段
  • 使用在线升级时,根分区会自动扩容,方便折腾

1分钟生成自己所需固件

因为本项目预编译了Image builder,生成固件仅需1-3分钟,如果有兴趣自定义固件可以Fork本项目,编辑设备对应的config.seed文件,例如r2s.config.seed, 去掉(整行删除)不需要的luci app软件包配置行,添加自己所需的软件,可用软件的列表可以在github actions构件输出处获取,例如


完成之后进入Actions,点击左侧Build,点击右侧Run workflow输入设备名(r2s/r2c/r4s/r1s/r1s-h3/r1p/r1p-lts)

再点击Run即可获取自己所需的固件

更新说明:

https://github.com/stupidloud/nanopi-openwrt/blob/master/CHANGELOG.md

本固件NAT基准性能测试:

固件源码:

https://github.com/coolsnowwolf/lede

https://github.com/immortalwrt/immortalwrt