GithubHelp home page GithubHelp logo

ashang / openwrt-xiaomi-mini Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rssnsj/openwrt-xiaomi-mini

0.0 1.0 0.0 462 KB

OpenWrt Patch for Xiaomi MiWiFi Mini

Home Page: http://www.miwifi.com/

Makefile 4.83% C 72.08% C++ 0.81% Lua 18.89% Shell 3.39%

openwrt-xiaomi-mini's Introduction

openwrt-xiaomi-mini

OpenWrt Patch for Xiaomi Router Mini


OpenWrt补丁及ImageBuilder说明

  • 包含了小米路由mini机型的OpenWrt补丁;
  • 可以Checkout下来代码直接make,会自动打补丁、自动载入menuconfig配置,并自动编译;
  • 也可以直接利用ImageBuilder,将机型支持代码(dts描述文件),与OpenWrt官方二进制程序合并成相应机型的固件。

固件包含的功能

  • 基于 OpenWrt Barrier Breaker - r43770 版本;
  • 自带5G Wi-Fi驱动;
  • 内置基于IP地址、域名列表的透明代理服务(SS),及其LuCi配置界面;
  • 内置基于IP地址、域名列表的非标准VPN服务(minivtun),及其LuCI配置界面;
  • 内置“文件中转站”功能,自动挂载USB存储以及自动配置Samba服务。

编译好的固件下载

前提工作

# 安装必需的软件包(仅限Ubuntu/Debian)
sudo apt-get install build-essential git subversion wget flex gettext libncurses5-dev unzip gawk liblzma-dev zlib1g-dev ccache u-boot-tools
  
# Checkout项目代码
git clone https://github.com/rssnsj/openwrt-xiaomi-mini.git

固件生成方法1 - 编译

cd openwrt-xiaomi-mini
make
# 编译成功后,固件文件位于: openwrt-ramips/bin/openwrt-ramips-mt7620a-xiaomi-miwifi-mini-squashfs-sysupgrade.bin

固件生成方法2 - 利用ImageBuilder将机型支持代码与OpenWrt官方二进制程序合并生成固件

cd openwrt-xiaomi-mini/ImageBuilder
  
# 解压ImageBuilder和SDK(事先从downloads.openwrt.org下载好)
tar jxvf xxx/OpenWrt-ImageBuilder-ramips_mt7620a-for-linux-x86_64.tar.bz2
tar jxvf xxx/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2
  
# 生成固件:
make FEEDS=1 RALINK=1
# FEEDS=1 表示包含项目 rssnsj/network-feeds 的功能在内
# RALINK=1 表示包含5G驱动在固件中

刷机方法

  • 首次刷机,开启小米路由的SSH权限( https://d.miwifi.com/rom/ssh ),并登录,使用命令:

    mtd -r write openwrt-ramips-mt7620a-xiaomi-miwifi-mini-squashfs-sysupgrade.bin OS1

    旧版小米固件使用:

    mtd -r write openwrt-ramips-mt7620a-xiaomi-miwifi-mini-squashfs-sysupgrade.bin firmware

  • 以后每次刷机使用:

    sysupgrade openwrt-ramips-mt7620a-xiaomi-miwifi-mini-squashfs-sysupgrade.bin

说明

  • 编译时若碰到代码包下载失败,或下载过于缓慢,请先 Ctrl + C 暂停,手动下载同名的文件放到 openwrt-ramips/dl 下面,再执行“make”继续编译。

openwrt-xiaomi-mini's People

Contributors

rssnsj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.