> For the complete documentation index, see [llms.txt](https://mmensee.gitbook.io/r2s-r4s/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mmensee.gitbook.io/r2s-r4s/gu-jian-xia-zai-shua-ji-fang-fa/zai-xian-sheng-ji-fang-fa.md).

# 在线升级方法

在软路由后台，【系统】→【备份升级】→上传固件，即可在线升级。注意：不要保留老固件的配置。

注意：可在线升级的格式为 systemupgrade格式的固件，不需要解压，直接上传。比如下面这个文件，

[openwrt-rockchip-armv8-friendlyarm\_nanopi-r2s-squashfs-sysupgrade.img.gz](https://github.com/DHDAXCW/NanoPi-R2S/releases/download/2022.01.03-Lean2/openwrt-rockchip-armv8-friendlyarm_nanopi-r2s-squashfs-sysupgrade.img.gz)这个文件名最后这些字母

[r2s-squashfs-sysupgrade.img.gz](https://github.com/DHDAXCW/NanoPi-R2S/releases/download/2022.01.03-Lean2/openwrt-rockchip-armv8-friendlyarm_nanopi-r2s-squashfs-sysupgrade.img.gz)  即r2s 的squafshfs的在线升级包格式。

此方法不一定100%成功，若失败，则用读卡器卡刷

个别固件支持putty 通过ssh命令行升级，需要根据固件作者通过的升级代码操作

##


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mmensee.gitbook.io/r2s-r4s/gu-jian-xia-zai-shua-ji-fang-fa/zai-xian-sheng-ji-fang-fa.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
