From 94ec62821c295de33fd74136875093b843eb4c72 Mon Sep 17 00:00:00 2001 From: ElonH Date: Sun, 2 May 2021 17:18:04 +0800 Subject: [PATCH] Opde: doc for Windows environment (#378) * opde: OpenWRT Development Environment * Update README.md --- README.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 36fa61f630..67e84f5bbc 100644 --- a/README.md +++ b/README.md @@ -50,8 +50,24 @@ git clone -b master --single-branch https://github.com/immortalwrt/immortalwrt & immortalwrt/opde:base zsh ./scripts/feeds update -a && ./scripts/feeds install -a ``` + + 2. For Windows User: - 2. For Windows User: no test + openwrt source code can not be cloned into NTFS filesystem(symbol link problem during compilation), + but docker volume is fine. + + Create a volume 'immortalwrt' and clone immortalwrt source into volume. + + ```bash + docker run --rm -it -v immortalwrt:/openwrt immortalwrt/opde:base git clone -b master --single-branch https://github.com/immortalwrt/immortalwrt . + ``` + + Enter docker container and update feeds + + ```bash + docker run --rm -it -v immortalwrt:/openwrt immortalwrt/opde:base + ./scripts/feeds update -a ​&&​ ./scripts/feeds install -a + ``` Proxy Support: @@ -84,6 +100,17 @@ make menuconfig make -j$(nproc) V=s ``` +
+ opde + For Windows User, binary is still in volume. It can be copied to outside via followed command + + ```bash + docker run --rm -v :/dst -v openwrt:/openwrt -w /dst immortalwrt:base cp /openwrt/bin /dst + ``` + > make sure `D:\path]to\dir` has been appended in [File Sharing](https://docs.docker.com/docker-for-windows/#file-sharing) + +
+ ## Tips You'd better not use **root** to make it, or you may be not able to use.
Default login address: 192.168.1.1, username is **root** and password is **password**.