The OpenWRT project is supporting for the device Xiaomi Router Gen 3G. However, its snapshot build is a very minimal version without the WebUI mamangment (LUCI) and some common components like SAMBA, DLNA, OpenVPN, torrent,... To be updated to the latest build, it takes time to do some of the most boring tasks: flash the update, install my needed components. That's the reason for me to build this repository and make all thing be automated.
Read this if you are interesting:
- The cheap but very powerful device: Xiaomi Router Gen 3G
- Minimal OpenWRT Firmware download page
- Padavan is providing support for this device also, take a look at prometheus if you are looking for another kind of firmware.
- Change the docker base image to openwrtorg/imagebuilder instead of centos 7 as current
- Support build for both release/stable and snapshot version
- Support build for other devices
Name: trinhpham/xiaomi-r3g-openwrt-builder
- This is a build-automated docker image that has all needed build tools and libraries installed.
- This also includes github-release tool for the script
build_mir3g.sh
to automatic deploy new release files to Github
You can view my automated build at travis-ci.org.
This build calls the build script build_mir3g.sh
inside a Docker container of Docker image above.
Note: Travis-CI.org doesn't support Docker volume mounting (except its Enterprise plan, ref), so you cannot transfer neither source nor ouput files to/from the container. I chose to run all build task inside the Docker container, tell me if you have any better idea :).
There are some notes if you'd like to fork my build:
- You must pass the environment variable GITHUB_TOKEN for the github-release
- Update your preferred modules in
modules.txt
- Build the docker image by command
docker build -t testbuild:latest docker/
- Run the build image with command
docker run -it --rm -e GIT_REPO=trinh/test -v $(pwd):/src/test testbuild:latest