OpenWrt

Update history
Date Version Author Update content
2023-09-17 v1.1 ztd
  • Update docs
2023-05-12 v1.0 wonder
  • Release docs

OpenWrt

Project address

Build

There are some issues with building on Ubuntu currently, using Debian can build smoothly. The repository provides the corresponding Dockerfile for Debian.

First you need to clone the project source code:

git clone https://github.com/ruyisdk/openwrt.git

If your machine has not been configured with Docker environment before, refer to the steps in Docker:

Uninstall possible versions of Docker:

sudo apt-get remove docker docker-engine docker.io containerd runc

Install basic software that Docker depends on:

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common

Add official sources:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

Install Docker:

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io

Then enter the docker-build directory to configure the corresponding environment and start compiling.

cd openwrt/docker-build
# Build docker image
sudo docker build -t ruyisdk-openwrt-builder .
# Build openwrt using docker
sudo docker run --rm -v "$(cd .. && pwd)":/workspace ruyisdk-openwrt-builder

After the build is complete, flash the built image to the development board.

Then you can refer to Openwrt Docs to develop.

Reference

Openwrt
Docker-Build
Openwrt Docs