Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
WaterLemons2k committed Mar 3, 2024
0 parents commit 02c9d70
Show file tree
Hide file tree
Showing 15 changed files with 110 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
28 changes: 28 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: GitHub Pages

on:
# Runs on pushes targeting the default branch
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build
run: npm run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
exclude_assets: ".github,scripts,LICENSE,package.json"
enable_jekyll: true
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 WaterLemons2k

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# [miwifi_cr880x](https://github.com/WaterLemons2k/miwifi_cr880x)

MiWiFi firmware for CR880x (CR8806, CR8808 and CR8809).

## Download

| Model | URL |
| ------ | ------------------------------------------------ |
| CR8806 | [6.2.14]<br>[6.2.33] |
| CR8808 | [6.2.11]<br>[6.2.147]<br>[6.2.220] |
| CR8809 | [6.2.102]<br>[6.2.136]<br>[6.2.182]<br>[6.2.239] |

[6.2.14]: https://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/cr8806/miwifi_cr8806_firmware_fe70b_6.2.14.bin
[6.2.33]: https://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/cr8806/miwifi_cr8806_firmware_4622b_6.2.33.bin
[6.2.11]: https://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/cr8808/miwifi_cr8808_firmware_9d216_6.2.11.bin
[6.2.147]: https://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/cr8808/miwifi_cr8808_firmware_0fbd7_6.2.147.bin
[6.2.220]: https://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/cr8808/miwifi_cr8808_firmware_a3144_6.2.220.bin
[6.2.102]: https://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/cr8809/miwifi_cr8809_firmware_b814a_6.2.102.bin
[6.2.136]: https://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/cr8809/miwifi_cr8809_firmware_46dab_6.2.136.bin
[6.2.182]: https://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/cr8809/miwifi_cr8809_firmware_6f067_6.2.182_ispver-6.0.10.bin
[6.2.239]: rom/cr8809/miwifi_cr8809_firmware_6.2.239_ispver.bin

## References

- [CR880x (AX3000 , IPQ50xx , RA8x) 官方固件及刷机工具,宇宙最全汇总-小米无线路由器以及小米无线相关的设备-恩山无线论坛](https://www.right.com.cn/forum/thread-8292516-1-1.html)
- [hzyitc/openwrt-redmi-ax3000: Openwrt for Redmi AX3000 / Xiaomi CR8806 / Xiaomi CR8808 / Xiaomi CR8809](https://github.com/hzyitc/openwrt-redmi-ax3000#get-uart-access)
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"type": "module",
"scripts": {
"build": "node scripts/build.js"
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
23 changes: 23 additions & 0 deletions scripts/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// @ts-check

import { readFileSync, writeFileSync } from "fs";

const README_FILE = "README.md";
const FIRMWARE_URL_PREFIX = "https://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/";

// Remove all firmware URL prefixes from the README file because
// we want all firmware to be downloadable from the current site.
removeAll(README_FILE, FIRMWARE_URL_PREFIX);

/**
* Removes all occurrences of `content` from the file.
*
* @param {string} file - The path to the file.
* @param {string} content - The content to remove.
*/
function removeAll(file, content) {
const fileContent = readFileSync(file, { encoding: "utf8" });
const newContent = fileContent.replace(new RegExp(content, "g"), "");

writeFileSync(file, newContent, { encoding: "utf8" });
}

0 comments on commit 02c9d70

Please sign in to comment.