mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00
README: add llvm as build dependency
This commit is contained in:
parent
4d0b9caf5f
commit
a87916d4c1
12
README.md
12
README.md
@ -15,7 +15,7 @@ I18N: [English](README_EN.md) | [简体中文](README.md) | [日本語](README_J
|
|||||||
|
|
||||||
ArmSoM-Sige 系列:软路由、单板计算机、小型服务器与智能家居的全能之选。
|
ArmSoM-Sige 系列:软路由、单板计算机、小型服务器与智能家居的全能之选。
|
||||||
|
|
||||||
[商品介绍页面 - ArmSom 品牌店 ](https://shop518100695.taobao.com/)
|
[商品介绍页面 - ArmSom 品牌店](https://shop518100695.taobao.com/)
|
||||||
|
|
||||||
购买链接:
|
购买链接:
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ ArmSoM-Sige 系列:软路由、单板计算机、小型服务器与智能家
|
|||||||
|
|
||||||
## 编译命令
|
## 编译命令
|
||||||
|
|
||||||
1. 首先装好 Linux 系统,推荐 Debian 11 或 Ubuntu LTS
|
1. 首先装好 Linux 系统,推荐 Debian 或 Ubuntu LTS
|
||||||
|
|
||||||
2. 安装编译依赖
|
2. 安装编译依赖
|
||||||
|
|
||||||
@ -37,10 +37,10 @@ ArmSoM-Sige 系列:软路由、单板计算机、小型服务器与智能家
|
|||||||
sudo apt update -y
|
sudo apt update -y
|
||||||
sudo apt full-upgrade -y
|
sudo apt full-upgrade -y
|
||||||
sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
|
sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
|
||||||
bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \
|
bzip2 ccache clang cmake cpio curl device-tree-compiler flex gawk gettext gcc-multilib g++-multilib \
|
||||||
git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libfuse-dev libglib2.0-dev libgmp3-dev \
|
git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libfuse-dev libglib2.0-dev libgmp3-dev \
|
||||||
libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libpython3-dev libreadline-dev \
|
libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libpython3-dev libreadline-dev \
|
||||||
libssl-dev libtool lrzsz mkisofs msmtp ninja-build p7zip p7zip-full patch pkgconf python3 \
|
libssl-dev libtool llvm lrzsz mkisofs msmtp ninja-build p7zip p7zip-full patch pkgconf python3 \
|
||||||
python3-pyelftools python3-setuptools qemu-utils rsync scons squashfs-tools subversion swig texinfo \
|
python3-pyelftools python3-setuptools qemu-utils rsync scons squashfs-tools subversion swig texinfo \
|
||||||
uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
|
uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
|
||||||
```
|
```
|
||||||
@ -109,7 +109,7 @@ Build dependency: OpenWrt can only be built on a case-sensitive filesystem
|
|||||||
# 以管理员身份打开终端
|
# 以管理员身份打开终端
|
||||||
PS > fsutil.exe file setCaseSensitiveInfo <your_local_lede_path> enable
|
PS > fsutil.exe file setCaseSensitiveInfo <your_local_lede_path> enable
|
||||||
# 将本项目 git clone 到开启了大小写敏感的目录 <your_local_lede_path> 中
|
# 将本项目 git clone 到开启了大小写敏感的目录 <your_local_lede_path> 中
|
||||||
PS > git clone git@github.com:coolsnowwolf/lede.git <your_local_lede_path>
|
PS > git clone https://github.com/coolsnowwolf/lede <your_local_lede_path>
|
||||||
```
|
```
|
||||||
|
|
||||||
> 对已经 `git clone` 完成的项目目录执行 `fsutil.exe` 命令无法生效,大小写敏感只对新增的文件变更有效。
|
> 对已经 `git clone` 完成的项目目录执行 `fsutil.exe` 命令无法生效,大小写敏感只对新增的文件变更有效。
|
||||||
@ -162,7 +162,7 @@ PS > git clone git@github.com:coolsnowwolf/lede.git <your_local_lede_path>
|
|||||||
|
|
||||||
## 特别提示
|
## 特别提示
|
||||||
|
|
||||||
1. 源代码中绝不含任何后门和可以监控或者劫持你的 HTTPS 的闭源软件, SSL 安全是互联网最后的壁垒。安全干净才是固件应该做到的;
|
1. 源代码中绝不含任何后门和可以监控或者劫持你的 HTTPS 的闭源软件, SSL 安全是互联网最后的壁垒,安全干净才是固件应该做到的。
|
||||||
|
|
||||||
2. 想学习 OpenWrt 开发,但是摸不着门道?自学没毅力?基础太差?怕太难学不会?跟着佐大学 OpenWrt 开发入门培训班助你能学有所成
|
2. 想学习 OpenWrt 开发,但是摸不着门道?自学没毅力?基础太差?怕太难学不会?跟着佐大学 OpenWrt 开发入门培训班助你能学有所成
|
||||||
报名地址:[点击报名](http://forgotfun.org/2018/04/openwrt-training-2018.html "报名")
|
报名地址:[点击报名](http://forgotfun.org/2018/04/openwrt-training-2018.html "报名")
|
||||||
|
548
README_EN.md
548
README_EN.md
@ -1,342 +1,206 @@
|
|||||||
# Welcome to Lean's git source of OpenWrt and packages
|
# Welcome to Lean's git source of OpenWrt and packages
|
||||||
|
|
||||||
I18N: [English](README_EN.md) | [简体中文](README.md) | [日本語](README_JA.md)
|
I18N: [English](README_EN.md) | [简体中文](README.md) | [日本語](README_JA.md)
|
||||||
|
|
||||||
## Official Channels
|
## Official Channels
|
||||||
<!--
|
|
||||||
如有技术问题需要讨论或者交流,欢迎加入以下群:
|
If you have technical questions for discussion or sharing, feel free to join the following channels:
|
||||||
1. QQ 讨论群: Op固件技术研究群 ,号码 891659613 ,加群链接:[点击加入](https://jq.qq.com/?_wv=1027&k=XL8SK5aC "Op固件技术研究群")
|
|
||||||
2. TG 讨论群: OP 编译官方大群 ,加群链接:[点击加入](https://t.me/JhKgAA6Hx1 "OP 编译官方大群")
|
1. QQ Group: *OpenWRT Firmware Technical Research Group*, Group Number is `891659613`.
|
||||||
3. Rockchip RK3568 预编译固件发布 Release 下载更新地址 (包括 H68K ):<https://github.com/coolsnowwolf/lede/releases/tag/20220716>
|
Join the group: [Link](https://jq.qq.com/?_wv=1027&k=XL8SK5aC "Op固件技术研究群").
|
||||||
-->
|
- [Click to download QQ client](https://im.qq.com/pcqq).
|
||||||
|
|
||||||
If you have technical questions for discussion or sharing, feel free to join the following channels:
|
2. Telegram Group: *OpenWRT Firmware Technical Research Group*.
|
||||||
1. QQ Group: *OpenWRT Firmware Technical Research Group*, Group Number is `891659613`. Join the group: [Link](https://jq.qq.com/?_wv=1027&k=XL8SK5aC "Op固件技术研究群").
|
Join the group: [Link](https://t.me/JhKgAA6Hx1 "OP 编译官方大群").
|
||||||
- [Click to download QQ client](https://im.qq.com/pcqq).
|
|
||||||
2. Telegram Group: *OpenWRT Firmware Technical Research Group*. Join the group: [Link](https://t.me/JhKgAA6Hx1 "OP 编译官方大群").
|
## ArmSoM Sige Board Series Introduction
|
||||||
|
|
||||||
## ArmSoM Sige Board Series Introduction
|
ArmSoM-Sige Series: Your All-in-One Powerhouse for Soft Routing, SBCs, Mini Servers, and Home Automation.
|
||||||
|
|
||||||
ArmSoM-Sige Series: Your All-in-One Powerhouse for Soft Routing, SBCs, Mini Servers, and Home Automation.
|
[ArmSoM Store](https://www.aliexpress.com/store/1102800175)
|
||||||
|
|
||||||
[ ArmSoM Store ](https://www.aliexpress.com/store/1102800175)
|
Buy Link :
|
||||||
|
[](https://aliexpress.com/item/3256807356692995.html)
|
||||||
Buy Link :
|
|
||||||
[](https://aliexpress.com/item/3256807356692995.html)
|
## Notice
|
||||||
|
|
||||||
## Notice
|
1. **Never compile OpenWRT as `root`**
|
||||||
<!--
|
2. If you are living in mainland China, please make sure you could visit the **REAL** Internet.
|
||||||
1. **不要用 root 用户进行编译**
|
3. Default login IP is `192.168.1.1`, password is `password`.
|
||||||
2. 国内用户编译前最好准备好梯子
|
|
||||||
3. 默认登陆IP 192.168.1.1 密码 password
|
## How to Compile
|
||||||
-->
|
|
||||||
1. **Never compile OpenWRT as `root`**
|
1. Install a Linux distribution, Debian or Ubuntu LTS is recommended.
|
||||||
2. If you are living in mainland China, please make sure you could visit the **REAL** Internet.
|
|
||||||
3. Default login IP is `192.168.1.1`, password is `password`.
|
2. Install dependencies:
|
||||||
|
|
||||||
## How to Compile
|
```bash
|
||||||
<!--
|
sudo apt update -y
|
||||||
1. 首先装好 Linux 系统,推荐 Debian 11 或 Ubuntu LTS
|
sudo apt full-upgrade -y
|
||||||
2. 安装编译依赖
|
sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
|
||||||
|
bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \
|
||||||
```bash
|
git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libglib2.0-dev libgmp3-dev libltdl-dev \
|
||||||
sudo apt update -y
|
libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libreadline-dev libssl-dev libtool lrzsz \
|
||||||
sudo apt full-upgrade -y
|
mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 python3-pyelftools \
|
||||||
sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
|
libpython3-dev qemu-utils rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip \
|
||||||
bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \
|
vim wget xmlto xxd zlib1g-dev python3-setuptools
|
||||||
git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libglib2.0-dev libgmp3-dev libltdl-dev \
|
```
|
||||||
libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libreadline-dev libssl-dev libtool lrzsz \
|
|
||||||
mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python3 python3-pyelftools \
|
3. Clone the source code, update `feeds` and configure:
|
||||||
libpython3-dev qemu-utils rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip \
|
|
||||||
vim wget xmlto xxd zlib1g-dev python3-setuptools
|
```bash
|
||||||
```
|
git clone https://github.com/coolsnowwolf/lede
|
||||||
-->
|
cd lede
|
||||||
|
./scripts/feeds update -a
|
||||||
1. Install a Linux distribution, Debian 11 or Ubuntu LTS is recommended.
|
./scripts/feeds install -a
|
||||||
2. Install dependencies:
|
make menuconfig
|
||||||
|
```
|
||||||
```bash
|
|
||||||
sudo apt update -y
|
4. Download libraries and compile firmware
|
||||||
sudo apt full-upgrade -y
|
> (`-j` is the thread count, single-thread is recommended for the first build):
|
||||||
sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
|
|
||||||
bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \
|
```bash
|
||||||
git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libglib2.0-dev libgmp3-dev libltdl-dev \
|
make download -j8
|
||||||
libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libreadline-dev libssl-dev libtool lrzsz \
|
make V=s -j1
|
||||||
mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 python3-pyelftools \
|
```
|
||||||
libpython3-dev qemu-utils rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip \
|
|
||||||
vim wget xmlto xxd zlib1g-dev python3-setuptools
|
These commands are supposed to compile the source code successfully.
|
||||||
```
|
All source code of R23 is included, including IPK.
|
||||||
|
|
||||||
<!--
|
You can use this source code freely, but please link this GitHub repository when redistributing.
|
||||||
3. 下载源代码,更新 feeds 并选择配置
|
Thank you for your cooperation!
|
||||||
|
|
||||||
```bash
|
Rebuild:
|
||||||
git clone https://github.com/coolsnowwolf/lede
|
|
||||||
cd lede
|
```bash
|
||||||
./scripts/feeds update -a
|
cd lede
|
||||||
./scripts/feeds install -a
|
git pull
|
||||||
make menuconfig
|
./scripts/feeds update -a
|
||||||
```
|
./scripts/feeds install -a
|
||||||
|
make defconfig
|
||||||
4. 下载 dl 库,编译固件
|
make download -j8
|
||||||
(-j 后面是线程数,第一次编译推荐用单线程)
|
make V=s -j$(nproc)
|
||||||
|
```
|
||||||
```bash
|
|
||||||
make download -j8
|
If reconfiguration is need:
|
||||||
make V=s -j1
|
|
||||||
```
|
```bash
|
||||||
-->
|
rm -rf ./tmp && rm -rf .config
|
||||||
|
make menuconfig
|
||||||
3. Clone the source code, update `feeds` and configure:
|
make V=s -j$(nproc)
|
||||||
|
```
|
||||||
```bash
|
|
||||||
git clone https://github.com/coolsnowwolf/lede
|
Build artifacts will be outputted to `bin/targets` directory.
|
||||||
cd lede
|
|
||||||
./scripts/feeds update -a
|
### If you are using WSL/WSL2 as your build environment
|
||||||
./scripts/feeds install -a
|
|
||||||
make menuconfig
|
WSL's `PATH` potentially contain Windows paths with spaces, which may cause compilation failure.
|
||||||
```
|
Please add the following lines to your local environment profiles before compiling:
|
||||||
|
|
||||||
4. Download libraries and compile firmware
|
```bash
|
||||||
> (`-j` is the thread count, single-thread is recommended for the first build):
|
# Update and reload your profile, ~/.bashrc for example.
|
||||||
|
cat << EOF >> ~/.bashrc
|
||||||
```bash
|
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH"
|
||||||
make -j8 download V=s
|
EOF
|
||||||
make -j1 V=s
|
source ~/.bashrc
|
||||||
```
|
```
|
||||||
|
|
||||||
<!--
|
NTFS-formatted drives mounted to a WSL distribution will be case-insensitive by default.
|
||||||
本套代码保证肯定可以编译成功。里面包括了 R23 所有源代码,包括 IPK 的。
|
This will cause the following error when compiling in WSL/WSL2:
|
||||||
|
|
||||||
你可以自由使用,但源码编译二次发布请注明我的 GitHub 仓库链接。谢谢合作!
|
```txt
|
||||||
-->
|
Build dependency: OpenWrt can only be built on a case-sensitive filesystem
|
||||||
|
```
|
||||||
These commands are supposed to compile the source code successfully.
|
|
||||||
All source code of R23 is included, including IPK.
|
A simple solution is to create a case-sensitive directory for the repository before `git clone`:
|
||||||
|
|
||||||
You can use this source code freely, but please link this GitHub repository when redistributing.
|
```powershell
|
||||||
Thank you for your cooperation!
|
# Open a terminal as administrator
|
||||||
|
PS > fsutil.exe file setCaseSensitiveInfo <your_local_lede_path> enable
|
||||||
<!--
|
# Clone this repository to the case-sensitive directory <your_local_lede_path>
|
||||||
二次编译:
|
PS > git clone git@github.com:coolsnowwolf/lede.git <your_local_lede_path>
|
||||||
|
```
|
||||||
```bash
|
|
||||||
cd lede
|
> For directories that have already been `git clone`, `fsutil.exe` will not take effect.
|
||||||
git pull
|
> Case sensitivity will only be enabled for new changes in the directory.
|
||||||
./scripts/feeds update -a
|
|
||||||
./scripts/feeds install -a
|
### macOS Compilation
|
||||||
make defconfig
|
|
||||||
make download -j8
|
1. Install Xcode from AppStore
|
||||||
make V=s -j$(nproc)
|
|
||||||
```
|
2. Install Homebrew:
|
||||||
|
|
||||||
如果需要重新配置:
|
```bash
|
||||||
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
```bash
|
```
|
||||||
rm -rf ./tmp && rm -rf .config
|
|
||||||
make menuconfig
|
3. Install toolchain, dependencies and packages with Homebrew:
|
||||||
make V=s -j$(nproc)
|
|
||||||
```
|
```bash
|
||||||
|
brew unlink awk
|
||||||
编译完成后输出路径:bin/targets
|
brew install coreutils diffutils findutils gawk gnu-getopt gnu-tar grep make ncurses pkg-config wget quilt xz
|
||||||
-->
|
brew install gcc@11
|
||||||
|
```
|
||||||
Rebuild:
|
|
||||||
|
4. Update your system environment:
|
||||||
```bash
|
|
||||||
cd lede
|
- mac with intel chip
|
||||||
git pull
|
|
||||||
./scripts/feeds update -a
|
```bash
|
||||||
./scripts/feeds install -a
|
echo 'export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
make defconfig
|
echo 'export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
make download -j8
|
echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc
|
||||||
make V=s -j$(nproc)
|
echo 'export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
```
|
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
|
echo 'export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
If reconfiguration is need:
|
echo 'export PATH="/usr/local/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
|
```
|
||||||
```bash
|
|
||||||
rm -rf ./tmp && rm -rf .config
|
- mac with apple chip
|
||||||
make menuconfig
|
|
||||||
make V=s -j$(nproc)
|
```zsh
|
||||||
```
|
echo 'export PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
|
echo 'export PATH="/opt/homebrew/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
Build artifacts will be outputted to `bin/targets` directory.
|
echo 'export PATH="/opt/homebrew/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc
|
||||||
|
echo 'export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
### If you are using WSL/WSL2 as your build environment
|
echo 'export PATH="/opt/homebrew/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
|
echo 'export PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
<!--
|
echo 'export PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
由于 WSL 的 PATH 中包含带有空格的 Windows 路径,有可能会导致编译失败,请在 `make` 前面加上:
|
```
|
||||||
|
|
||||||
```bash
|
5. Reload your shell profile `source ~/.bashrc && bash`, then you can compile normally like Linux.
|
||||||
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
||||||
```
|
## Declaration
|
||||||
-->
|
|
||||||
WSL's `PATH` potentially contain Windows paths with spaces, which may cause compilation failure. Please add the following lines to your local environment profiles before compiling:
|
1. This source code doesn't contain any backdoors or closed source applications that can monitor/capture your HTTPS traffic. SSL security is the final castle of cyber security. Safety is what a firmware should do.
|
||||||
|
2. Want to learn OpenWRT development but don't know how to start? Can't motivate yourself for self-learning? Do not have enough fundamental knowledge? Learn OpenWRT development with Mr. Zuo through his Beginner OpenWRT Training Course. Click [here](http://forgotfun.org/2018/04/openwrt-training-2018.html) to register.
|
||||||
```bash
|
3. QCA IPQ60xx open source repository: <https://github.com/coolsnowwolf/openwrt-gl-ax1800>
|
||||||
# Update and reload your profile, ~/.bashrc for example.
|
4. OpenWRT Archive repository: <https://github.com/coolsnowwolf/openwrt>
|
||||||
cat << EOF >> ~/.bashrc
|
|
||||||
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH"
|
## Introduction to Software Routers
|
||||||
EOF
|
|
||||||
source ~/.bashrc
|
Yingku R2 - N95/N300 Mini Four-Network HomeLab Server
|
||||||
```
|
|
||||||
|
(Introduction page - Yingku Technology (support AliPay Huabei)):
|
||||||
<!--
|
|
||||||
由于默认情况下,装载到 WSL 发行版的 NTFS 格式的驱动器将不区分大小写,因此大概率在 WSL/WSL2 的编译检查中会返回以下错误:
|
[Pre-sale link](https://item.taobao.com/item.htm?ft=t&id=719159813003)
|
||||||
|
<div align="left">
|
||||||
```txt
|
<a href="https://item.taobao.com/item.htm?ft=t&id=719159813003">
|
||||||
Build dependency: OpenWrt can only be built on a case-sensitive filesystem
|
<img src="doc/r1.jpg" width = "600" alt="" align=center />
|
||||||
```
|
</a>
|
||||||
|
</div>
|
||||||
一个比较简洁的解决方法是,在 `git clone` 前先创建 Repository 目录,并为其启用大小写敏感:
|
<br>
|
||||||
|
|
||||||
```powershell
|
## Donation
|
||||||
# 以管理员身份打开终端
|
|
||||||
PS > fsutil.exe file setCaseSensitiveInfo <your_local_lede_path> enable
|
<!--
|
||||||
# 将本项目 git clone 到开启了大小写敏感的目录 <your_local_lede_path> 中
|
如果你觉得此项目对你有帮助,可以捐助我们,以鼓励项目能持续发展,更加完善
|
||||||
PS > git clone git@github.com:coolsnowwolf/lede.git <your_local_lede_path>
|
|
||||||
```
|

|
||||||
|
-->
|
||||||
> 对已经 `git clone` 完成的项目目录执行 `fsutil.exe` 命令无法生效,大小写敏感只对新增的文件变更有效。
|
If this project did helped you, please consider donating to support the development of this project.
|
||||||
-->
|
|
||||||
|
<div align="left">
|
||||||
NTFS-formatted drives mounted to a WSL distribution will be case-insensitive by default. This will cause the following error when compiling in WSL/WSL2:
|
<img src="./doc/star.png" width = "400" alt="" align=center />
|
||||||
|
</div>
|
||||||
```txt
|
<br>
|
||||||
Build dependency: OpenWrt can only be built on a case-sensitive filesystem
|
|
||||||
```
|
|
||||||
|
|
||||||
A simple solution is to create a case-sensitive directory for the repository before `git clone`:
|
|
||||||
|
|
||||||
```powershell
|
|
||||||
# Open a terminal as administrator
|
|
||||||
PS > fsutil.exe file setCaseSensitiveInfo <your_local_lede_path> enable
|
|
||||||
# Clone this repository to the case-sensitive directory <your_local_lede_path>
|
|
||||||
PS > git clone git@github.com:coolsnowwolf/lede.git <your_local_lede_path>
|
|
||||||
```
|
|
||||||
|
|
||||||
> For directories that have already been `git clone`d, `fsutil.exe` will not take effect. Case sensitivity will only be enabled for new changes in the directory.
|
|
||||||
|
|
||||||
### macOS Compilation
|
|
||||||
<!--
|
|
||||||
1. 在 AppStore 中安装 Xcode
|
|
||||||
|
|
||||||
2. 安装 Homebrew:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
||||||
```
|
|
||||||
|
|
||||||
3. 使用 Homebrew 安装工具链、依赖与基础软件包:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
brew unlink awk
|
|
||||||
brew install coreutils diffutils findutils gawk gnu-getopt gnu-tar grep make ncurses pkg-config wget quilt xz
|
|
||||||
brew install gcc@11
|
|
||||||
```
|
|
||||||
|
|
||||||
4. 然后输入以下命令,添加到系统环境变量中:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
echo 'export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
```
|
|
||||||
|
|
||||||
5. 重新加载一下 shell 启动文件 `source ~/.bashrc`,然后输入 `bash` 进入 bash shell,就可以和 Linux 一样正常编译了
|
|
||||||
-->
|
|
||||||
|
|
||||||
1. Install Xcode from AppStore
|
|
||||||
2. Install Homebrew:
|
|
||||||
```bash
|
|
||||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
|
||||||
```
|
|
||||||
3. Install toolchain, dependencies and packages with Homebrew:
|
|
||||||
```bash
|
|
||||||
brew unlink awk
|
|
||||||
brew install coreutils diffutils findutils gawk gnu-getopt gnu-tar grep make ncurses pkg-config wget quilt xz
|
|
||||||
brew install gcc@11
|
|
||||||
```
|
|
||||||
4. Update your system environment:
|
|
||||||
|
|
||||||
- mac with intel chip
|
|
||||||
|
|
||||||
```bash
|
|
||||||
echo 'export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
```
|
|
||||||
|
|
||||||
- mac with apple chip
|
|
||||||
|
|
||||||
```zsh
|
|
||||||
echo 'export PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/opt/homebrew/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/opt/homebrew/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/opt/homebrew/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
```
|
|
||||||
5. Reload your shell profile `source ~/.bashrc && bash`, then you can compile normally like Linux.
|
|
||||||
|
|
||||||
## Declaration
|
|
||||||
<!--
|
|
||||||
1. 源代码中绝不含任何后门和可以监控或者劫持你的 HTTPS 的闭源软件, SSL 安全是互联网最后的壁垒。安全干净才是固件应该做到的;
|
|
||||||
|
|
||||||
2. 想学习 OpenWrt 开发,但是摸不着门道?自学没毅力?基础太差?怕太难学不会?跟着佐大学 OpenWrt 开发入门培训班助你能学有所成
|
|
||||||
报名地址:[点击报名](http://forgotfun.org/2018/04/openwrt-training-2018.html "报名")
|
|
||||||
|
|
||||||
3. QCA IPQ60xx 开源仓库地址:<https://github.com/coolsnowwolf/openwrt-gl-ax1800>
|
|
||||||
|
|
||||||
4. 存档版本仓库地址:<https://github.com/coolsnowwolf/openwrt>
|
|
||||||
-->
|
|
||||||
1. This source code doesn't contain any backdoors or closed source applications that can monitor/capture your HTTPS traffic. SSL security is the final castle of cyber security. Safety is what a firmware should do.
|
|
||||||
2. Want to learn OpenWRT development but don't know how to start? Can't motivate yourself for self-learning? Do not have enough fundamental knowledge? Learn OpenWRT development with Mr. Zuo through his Beginner OpenWRT Training Course. Click [here](http://forgotfun.org/2018/04/openwrt-training-2018.html) to register.
|
|
||||||
3. QCA IPQ60xx open source repository: <https://github.com/coolsnowwolf/openwrt-gl-ax1800>
|
|
||||||
4. OpenWRT Archive repository: <https://github.com/coolsnowwolf/openwrt>
|
|
||||||
|
|
||||||
## Introduction to Software Routers
|
|
||||||
<!--
|
|
||||||
硬酷R2 - N95/N300迷你四网HomeLab服务器
|
|
||||||
|
|
||||||
(商品介绍页面 - 硬酷科技(支持花呗)):
|
|
||||||
|
|
||||||
[预售链接](https://item.taobao.com/item.htm?ft=t&id=719159813003)
|
|
||||||
|
|
||||||
[](https://item.taobao.com/item.htm?ft=t&id=719159813003)
|
|
||||||
-->
|
|
||||||
Yingku R2 - N95/N300 Mini Four-Network HomeLab Server
|
|
||||||
|
|
||||||
(Introduction page - Yingku Technology (support AliPay Huabei)):
|
|
||||||
|
|
||||||
[Pre-sale link](https://item.taobao.com/item.htm?ft=t&id=719159813003)
|
|
||||||
<div align="left">
|
|
||||||
<a href="https://item.taobao.com/item.htm?ft=t&id=719159813003">
|
|
||||||
<img src="doc/r1.jpg" width = "600" alt="" align=center />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
|
|
||||||
## Donation
|
|
||||||
|
|
||||||
<!--
|
|
||||||
如果你觉得此项目对你有帮助,可以捐助我们,以鼓励项目能持续发展,更加完善
|
|
||||||
|
|
||||||

|
|
||||||
-->
|
|
||||||
If this project did helped you, please consider donating to support the development of this project.
|
|
||||||
|
|
||||||
<div align="left">
|
|
||||||
<img src="./doc/star.png" width = "400" alt="" align=center />
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
|
534
README_JA.md
534
README_JA.md
@ -1,343 +1,191 @@
|
|||||||
# OpenWrt とパッケージの Lean の git ソースへようこそ
|
# OpenWrt とパッケージの Lean の git ソースへようこそ
|
||||||
|
|
||||||
I18N: [English](README_EN.md) | [简体中文](README.md) | [日本語](README_JA.md)
|
I18N: [English](README_EN.md) | [简体中文](README.md) | [日本語](README_JA.md)
|
||||||
|
|
||||||
## 公式チャンネル
|
## 公式チャンネル
|
||||||
<!--
|
|
||||||
如有技术问题需要讨论或者交流,欢迎加入以下群:
|
ディスカッションや共有したい技術的な質問がある場合は、以下のチャンネルにお気軽にご参加ください:
|
||||||
1. QQ 讨论群: Op固件技术研究群 ,号码 891659613 ,加群链接:[点击加入](https://jq.qq.com/?_wv=1027&k=XL8SK5aC "Op固件技术研究群")
|
|
||||||
2. TG 讨论群: OP 编译官方大群 ,加群链接:[点击加入](https://t.me/JhKgAA6Hx1 "OP 编译官方大群")
|
1. QQ グループ: *OpenWRT ファームウェア技術研究グループ*、グループ番号は `891659613` です。
|
||||||
3. Rockchip RK3568 预编译固件发布 Release 下载更新地址 (包括 H68K ):<https://github.com/coolsnowwolf/lede/releases/tag/20220716>
|
グループに参加する: [リンク](https://jq.qq.com/?_wv=1027&k=XL8SK5aC "Op固件技术研究群")。
|
||||||
-->
|
- [クリックして QQ クライアントをダウンロードする](https://im.qq.com/pcqq)。
|
||||||
|
|
||||||
ディスカッションや共有したい技術的な質問がある場合は、以下のチャンネルにお気軽にご参加ください:
|
2. Telegram グループ: *OpenWRT ファームウェア技術研究グループ*。グループに参加する: [リンク](https://t.me/JhKgAA6Hx1 "OP 编译官方大群")。
|
||||||
1. QQ グループ: *OpenWRT ファームウェア技術研究グループ*、グループ番号は `891659613` です。グループに参加する: [リンク](https://jq.qq.com/?_wv=1027&k=XL8SK5aC "Op固件技术研究群")。
|
|
||||||
- [クリックして QQ クライアントをダウンロードする](https://im.qq.com/pcqq)。
|
## 注意
|
||||||
2. Telegram グループ: *OpenWRT ファームウェア技術研究グループ*。グループに参加する: [リンク](https://t.me/JhKgAA6Hx1 "OP 编译官方大群")。
|
|
||||||
3. Rockchip **RK3568** コンパイル済みファームウェアリリース (H68K を含む): [クリックしてダウンロード](https://github.com/coolsnowwolf/lede/releases/tag/20220716)。
|
1. **OpenWRT を決して `root` としてコンパイルしないこと**
|
||||||
|
2. 中国本土にお住まいの方は、ぜひ **REAL** インターネットをご覧ください。
|
||||||
<div align="left">
|
3. デフォルトのログイン IP は `192.168.1.1` で、パスワードは `password` です。
|
||||||
<a href="https://item.taobao.com/item.htm?spm=a230r.1.14.11.4bb55247rdHEAP&id=702787603594&ns=1&abbucket=17#detail
|
|
||||||
">
|
## コンパイル方法
|
||||||
<img style="margin: 0px 0px 0px 40px;" src="https://github.com/coolsnowwolf/lede/blob/master/doc/h68k.jpg?raw=true" width=600 />
|
|
||||||
</a>
|
1. Linuxディストリビューションをインストールし、Debian または Ubuntu LTS を推奨します。
|
||||||
</div>
|
|
||||||
|
2. 依存関係をインストールする:
|
||||||
4. Rockchip **RK3588**コンパイル済みファームウェアリリース(H68K を含む): [クリックしてダウンロード](https://github.com/coolsnowwolf/lede/releases/tag/20230609)。
|
|
||||||
|
```bash
|
||||||
|
sudo apt update -y
|
||||||
## 注意
|
sudo apt full-upgrade -y
|
||||||
<!--
|
sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
|
||||||
1. **不要用 root 用户进行编译**
|
bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \
|
||||||
2. 国内用户编译前最好准备好梯子
|
git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libglib2.0-dev libgmp3-dev libltdl-dev \
|
||||||
3. 默认登陆IP 192.168.1.1 密码 password
|
libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libreadline-dev libssl-dev libtool lrzsz \
|
||||||
-->
|
mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 python3-pyelftools \
|
||||||
1. **OpenWRT を決して `root` としてコンパイルしないこと**
|
libpython3-dev qemu-utils rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip \
|
||||||
2. 中国本土にお住まいの方は、ぜひ **REAL** インターネットをご覧ください。
|
vim wget xmlto xxd zlib1g-dev python3-setuptools
|
||||||
3. デフォルトのログイン IP は `192.168.1.1` で、パスワードは `password` です。
|
```
|
||||||
|
|
||||||
## コンパイル方法
|
3. ソースコードをクローンし、`feeds` を更新し、設定する:
|
||||||
<!--
|
|
||||||
1. 首先装好 Linux 系统,推荐 Debian 11 或 Ubuntu LTS
|
```bash
|
||||||
2. 安装编译依赖
|
git clone https://github.com/coolsnowwolf/lede
|
||||||
|
cd lede
|
||||||
```bash
|
./scripts/feeds update -a
|
||||||
sudo apt update -y
|
./scripts/feeds install -a
|
||||||
sudo apt full-upgrade -y
|
make menuconfig
|
||||||
sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
|
```
|
||||||
bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \
|
|
||||||
git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libglib2.0-dev libgmp3-dev libltdl-dev \
|
4. ライブラリのダウンロードとファームウェアのコンパイル
|
||||||
libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libreadline-dev libssl-dev libtool lrzsz \
|
> (`-j` はスレッドカウント、最初のビルドはシングルスレッドを推奨):
|
||||||
mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python3 python3-pyelftools \
|
|
||||||
libpython3-dev qemu-utils rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip \
|
```bash
|
||||||
vim wget xmlto xxd zlib1g-dev python3-setuptools
|
make download -j8
|
||||||
```
|
make V=s -j1
|
||||||
-->
|
```
|
||||||
|
|
||||||
1. Linuxディストリビューションをインストールし、Debian 11 または Ubuntu LTS を推奨します。
|
これらのコマンドは、ソースコードを正常にコンパイルするためのものです。
|
||||||
2. 依存関係をインストールする:
|
R23 のソースコードは IPK を含めてすべて含まれています。
|
||||||
|
|
||||||
```bash
|
このソースコードはご自由にお使いいただけますが、再配布の際はこの GitHub リポジトリをリンクしてください。
|
||||||
sudo apt update -y
|
ご協力ありがとうございました!
|
||||||
sudo apt full-upgrade -y
|
|
||||||
sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
|
リビルド:
|
||||||
bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \
|
|
||||||
git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libglib2.0-dev libgmp3-dev libltdl-dev \
|
```bash
|
||||||
libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libreadline-dev libssl-dev libtool lrzsz \
|
cd lede
|
||||||
mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 python3-pyelftools \
|
git pull
|
||||||
libpython3-dev qemu-utils rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip \
|
./scripts/feeds update -a
|
||||||
vim wget xmlto xxd zlib1g-dev python3-setuptools
|
./scripts/feeds install -a
|
||||||
```
|
make defconfig
|
||||||
|
make download -j8
|
||||||
<!--
|
make V=s -j$(nproc)
|
||||||
3. 下载源代码,更新 feeds 并选择配置
|
```
|
||||||
|
|
||||||
```bash
|
再設定が必要な場合:
|
||||||
git clone https://github.com/coolsnowwolf/lede
|
|
||||||
cd lede
|
```bash
|
||||||
./scripts/feeds update -a
|
rm -rf ./tmp && rm -rf .config
|
||||||
./scripts/feeds install -a
|
make menuconfig
|
||||||
make menuconfig
|
make V=s -j$(nproc)
|
||||||
```
|
```
|
||||||
|
|
||||||
4. 下载 dl 库,编译固件
|
ビルドの成果物は `bin/targets` ディレクトリに出力されます。
|
||||||
(-j 后面是线程数,第一次编译推荐用单线程)
|
|
||||||
|
### WSL/WSL2 をビルド環境として使用している場合
|
||||||
```bash
|
|
||||||
make download -j8
|
WSL の `PATH` には、Windows のパスが空白で含まれている可能性があり、コンパイルに失敗することがあります。
|
||||||
make V=s -j1
|
コンパイルする前に、ローカルの環境プロファイルに以下の行を追加してください:
|
||||||
```
|
|
||||||
-->
|
```bash
|
||||||
|
# 例えば、~/.bashrc などのプロファイルを更新した後、再読み込みを行う。
|
||||||
3. ソースコードをクローンし、`feeds` を更新し、設定する:
|
cat << EOF >> ~/.bashrc
|
||||||
|
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH"
|
||||||
```bash
|
EOF
|
||||||
git clone https://github.com/coolsnowwolf/lede
|
source ~/.bashrc
|
||||||
cd lede
|
```
|
||||||
./scripts/feeds update -a
|
|
||||||
./scripts/feeds install -a
|
WSL ディストリビューションにマウントされた NTFS フォーマットのドライブは、デフォルトで大文字と小文字が区別されません。
|
||||||
make menuconfig
|
このため、WSL/WSL2 でコンパイルすると、次のようなエラーが発生します:
|
||||||
```
|
|
||||||
|
```txt
|
||||||
4. ライブラリのダウンロードとファームウェアのコンパイル
|
Build dependency: OpenWrt can only be built on a case-sensitive filesystem
|
||||||
> (`-j` はスレッドカウント、最初のビルドはシングルスレッドを推奨):
|
```
|
||||||
|
|
||||||
```bash
|
単純な解決策は、`git clone` の前に大文字小文字を区別してリポジトリ用のディレクトリを作成することです:
|
||||||
make -j8 download V=s
|
|
||||||
make -j1 V=s
|
```powershell
|
||||||
```
|
# 管理者としてターミナルを開く
|
||||||
|
PS > fsutil.exe file setCaseSensitiveInfo <your_local_lede_path> enable
|
||||||
<!--
|
# 大文字と小文字を区別して、このリポジトリを <your_local_lede_path> ディレクトリにクローンする
|
||||||
本套代码保证肯定可以编译成功。里面包括了 R23 所有源代码,包括 IPK 的。
|
PS > git clone git@github.com:coolsnowwolf/lede.git <your_local_lede_path>
|
||||||
|
```
|
||||||
你可以自由使用,但源码编译二次发布请注明我的 GitHub 仓库链接。谢谢合作!
|
|
||||||
-->
|
> すでに `git clone` されたディレクトリでは、`fsutil.exe` は有効になりません。
|
||||||
|
> 大文字小文字の区別はディレクトリの新しい変更に対してのみ有効になります。
|
||||||
これらのコマンドは、ソースコードを正常にコンパイルするためのものです。
|
|
||||||
R23 のソースコードは IPK を含めてすべて含まれています。
|
### macOS コンパイル
|
||||||
|
|
||||||
このソースコードはご自由にお使いいただけますが、再配布の際はこの GitHub リポジトリをリンクしてください。
|
1. AppStore から Xcode をインストールする
|
||||||
ご協力ありがとうございました!
|
|
||||||
|
2. Homebrew をインストールする:
|
||||||
<!--
|
|
||||||
二次编译:
|
```bash
|
||||||
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
```bash
|
```
|
||||||
cd lede
|
|
||||||
git pull
|
3. Homebrew でツールチェーン、依存関係、パッケージをインストールする:
|
||||||
./scripts/feeds update -a
|
|
||||||
./scripts/feeds install -a
|
```bash
|
||||||
make defconfig
|
brew unlink awk
|
||||||
make download -j8
|
brew install coreutils diffutils findutils gawk gnu-getopt gnu-tar grep make ncurses pkg-config wget quilt xz
|
||||||
make V=s -j$(nproc)
|
brew install gcc@11
|
||||||
```
|
```
|
||||||
|
|
||||||
如果需要重新配置:
|
4. システム環境のアップデート:
|
||||||
|
|
||||||
```bash
|
- MacのIntelシリコンバージョン
|
||||||
rm -rf ./tmp && rm -rf .config
|
|
||||||
make menuconfig
|
```bash
|
||||||
make V=s -j$(nproc)
|
echo 'export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
```
|
echo 'export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
|
echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc
|
||||||
编译完成后输出路径:bin/targets
|
echo 'export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
-->
|
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
|
echo 'export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
リビルド:
|
echo 'export PATH="/usr/local/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
|
```
|
||||||
```bash
|
|
||||||
cd lede
|
- MacのAppleシリコンバージョン
|
||||||
git pull
|
|
||||||
./scripts/feeds update -a
|
```zsh
|
||||||
./scripts/feeds install -a
|
echo 'export PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
make defconfig
|
echo 'export PATH="/opt/homebrew/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
make download -j8
|
echo 'export PATH="/opt/homebrew/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc
|
||||||
make V=s -j$(nproc)
|
echo 'export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
```
|
echo 'export PATH="/opt/homebrew/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
|
echo 'export PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
再設定が必要な場合:
|
echo 'export PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc
|
||||||
|
```
|
||||||
```bash
|
|
||||||
rm -rf ./tmp && rm -rf .config
|
5. シェルプロファイル `source ~/.bashrc && bash` を再読み込みすれば、Linux のように普通にコンパイルできます。
|
||||||
make menuconfig
|
|
||||||
make V=s -j$(nproc)
|
## 宣言
|
||||||
```
|
|
||||||
|
1. このソースコードには、HTTPS トラフィックを監視/キャプチャできるバックドアやクローズドソースアプリケーションは含まれていません。SSL セキュリティはサイバーセキュリティの最後の城です。安全性はファームウェアがすべきことです。
|
||||||
ビルドの成果物は `bin/targets` ディレクトリに出力されます。
|
2. OpenWRT の開発を学びたいが、何から始めたらいいかわからないですか?自己学習のモチベーションが上がらない?基礎知識が足りない?ズオ氏の初心者 OpenWRT トレーニングコースで一緒に OpenWRT 開発を学びましょう。お申し込みは[こちら](http://forgotfun.org/2018/04/openwrt-training-2018.html)をクリックしてください。
|
||||||
|
3. QCA IPQ60xx オープンソースリポジトリ: <https://github.com/coolsnowwolf/openwrt-gl-ax1800>
|
||||||
### WSL/WSL2 をビルド環境として使用している場合
|
4. OpenWRT アーカイブリポジトリ: <https://github.com/coolsnowwolf/openwrt>
|
||||||
|
|
||||||
<!--
|
## ソフトウェアルーター入門
|
||||||
由于 WSL 的 PATH 中包含带有空格的 Windows 路径,有可能会导致编译失败,请在 `make` 前面加上:
|
|
||||||
|
Yingku R2 - N95/N300 Mini Four-Network HomeLab Server
|
||||||
```bash
|
|
||||||
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
(紹介ページ - Yingku Technology (support AliPay Huabei)):
|
||||||
```
|
|
||||||
-->
|
[先行販売リンク](https://item.taobao.com/item.htm?ft=t&id=719159813003)
|
||||||
WSL の `PATH` には、Windows のパスが空白で含まれている可能性があり、コンパイルに失敗することがあります。コンパイルする前に、ローカルの環境プロファイルに以下の行を追加してください:
|
<div align="left">
|
||||||
|
<a href="https://item.taobao.com/item.htm?ft=t&id=719159813003">
|
||||||
```bash
|
<img src="doc/r1.jpg" width = "600" alt="" align=center />
|
||||||
# 例えば、~/.bashrc などのプロファイルを更新した後、再読み込みを行う。
|
</a>
|
||||||
cat << EOF >> ~/.bashrc
|
</div>
|
||||||
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH"
|
<br>
|
||||||
EOF
|
|
||||||
source ~/.bashrc
|
## 寄付
|
||||||
```
|
|
||||||
|
このプロジェクトがあなたのお役に立てたのであれば、このプロジェクトの発展を支援するための寄付をご検討ください。
|
||||||
<!--
|
|
||||||
由于默认情况下,装载到 WSL 发行版的 NTFS 格式的驱动器将不区分大小写,因此大概率在 WSL/WSL2 的编译检查中会返回以下错误:
|
<div align="left">
|
||||||
|
<img src="./doc/star.png" width = "400" alt="" align=center />
|
||||||
```txt
|
</div>
|
||||||
Build dependency: OpenWrt can only be built on a case-sensitive filesystem
|
<br>
|
||||||
```
|
|
||||||
|
|
||||||
一个比较简洁的解决方法是,在 `git clone` 前先创建 Repository 目录,并为其启用大小写敏感:
|
|
||||||
|
|
||||||
```powershell
|
|
||||||
# 以管理员身份打开终端
|
|
||||||
PS > fsutil.exe file setCaseSensitiveInfo <your_local_lede_path> enable
|
|
||||||
# 将本项目 git clone 到开启了大小写敏感的目录 <your_local_lede_path> 中
|
|
||||||
PS > git clone git@github.com:coolsnowwolf/lede.git <your_local_lede_path>
|
|
||||||
```
|
|
||||||
|
|
||||||
> 对已经 `git clone` 完成的项目目录执行 `fsutil.exe` 命令无法生效,大小写敏感只对新增的文件变更有效。
|
|
||||||
-->
|
|
||||||
|
|
||||||
WSL ディストリビューションにマウントされた NTFS フォーマットのドライブは、デフォルトで大文字と小文字が区別されません。このため、WSL/WSL2 でコンパイルすると、次のようなエラーが発生します:
|
|
||||||
|
|
||||||
```txt
|
|
||||||
Build dependency: OpenWrt can only be built on a case-sensitive filesystem
|
|
||||||
```
|
|
||||||
|
|
||||||
単純な解決策は、`git clone` の前に大文字小文字を区別してリポジトリ用のディレクトリを作成することです:
|
|
||||||
|
|
||||||
```powershell
|
|
||||||
# 管理者としてターミナルを開く
|
|
||||||
PS > fsutil.exe file setCaseSensitiveInfo <your_local_lede_path> enable
|
|
||||||
# 大文字と小文字を区別して、このリポジトリを <your_local_lede_path> ディレクトリにクローンする
|
|
||||||
PS > git clone git@github.com:coolsnowwolf/lede.git <your_local_lede_path>
|
|
||||||
```
|
|
||||||
|
|
||||||
> すでに `git clone` されたディレクトリでは、`fsutil.exe` は有効になりません。大文字小文字の区別はディレクトリの新しい変更に対してのみ有効になります。
|
|
||||||
|
|
||||||
### macOS コンパイル
|
|
||||||
<!--
|
|
||||||
1. 在 AppStore 中安装 Xcode
|
|
||||||
|
|
||||||
2. 安装 Homebrew:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
|
||||||
```
|
|
||||||
|
|
||||||
3. 使用 Homebrew 安装工具链、依赖与基础软件包:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
brew unlink awk
|
|
||||||
brew install coreutils diffutils findutils gawk gnu-getopt gnu-tar grep make ncurses pkg-config wget quilt xz
|
|
||||||
brew install gcc@11
|
|
||||||
```
|
|
||||||
|
|
||||||
4. 然后输入以下命令,添加到系统环境变量中:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
echo 'export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
```
|
|
||||||
|
|
||||||
5. 重新加载一下 shell 启动文件 `source ~/.bashrc`,然后输入 `bash` 进入 bash shell,就可以和 Linux 一样正常编译了
|
|
||||||
-->
|
|
||||||
|
|
||||||
1. AppStore から Xcode をインストールする
|
|
||||||
2. Homebrew をインストールする:
|
|
||||||
```bash
|
|
||||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
|
||||||
```
|
|
||||||
3. Homebrew でツールチェーン、依存関係、パッケージをインストールする:
|
|
||||||
```bash
|
|
||||||
brew unlink awk
|
|
||||||
brew install coreutils diffutils findutils gawk gnu-getopt gnu-tar grep make ncurses pkg-config wget quilt xz
|
|
||||||
brew install gcc@11
|
|
||||||
```
|
|
||||||
4. システム環境のアップデート:
|
|
||||||
|
|
||||||
- MacのIntelシリコンバージョン
|
|
||||||
```bash
|
|
||||||
echo 'export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/usr/local/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
```
|
|
||||||
|
|
||||||
- MacのAppleシリコンバージョン
|
|
||||||
|
|
||||||
```zsh
|
|
||||||
echo 'export PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/opt/homebrew/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/opt/homebrew/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/opt/homebrew/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
echo 'export PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc
|
|
||||||
```
|
|
||||||
5. シェルプロファイル `source ~/.bashrc && bash` を再読み込みすれば、Linux のように普通にコンパイルできます。
|
|
||||||
|
|
||||||
## 宣言
|
|
||||||
<!--
|
|
||||||
1. 源代码中绝不含任何后门和可以监控或者劫持你的 HTTPS 的闭源软件, SSL 安全是互联网最后的壁垒。安全干净才是固件应该做到的;
|
|
||||||
|
|
||||||
2. 想学习 OpenWrt 开发,但是摸不着门道?自学没毅力?基础太差?怕太难学不会?跟着佐大学 OpenWrt 开发入门培训班助你能学有所成
|
|
||||||
报名地址:[点击报名](http://forgotfun.org/2018/04/openwrt-training-2018.html "报名")
|
|
||||||
|
|
||||||
3. QCA IPQ60xx 开源仓库地址:<https://github.com/coolsnowwolf/openwrt-gl-ax1800>
|
|
||||||
|
|
||||||
4. 存档版本仓库地址:<https://github.com/coolsnowwolf/openwrt>
|
|
||||||
-->
|
|
||||||
1. このソースコードには、HTTPS トラフィックを監視/キャプチャできるバックドアやクローズドソースアプリケーションは含まれていません。SSL セキュリティはサイバーセキュリティの最後の城です。安全性はファームウェアがすべきことです。
|
|
||||||
2. OpenWRT の開発を学びたいが、何から始めたらいいかわからないですか?自己学習のモチベーションが上がらない?基礎知識が足りない?ズオ氏の初心者 OpenWRT トレーニングコースで一緒に OpenWRT 開発を学びましょう。お申し込みは[こちら](http://forgotfun.org/2018/04/openwrt-training-2018.html)をクリックしてください。
|
|
||||||
3. QCA IPQ60xx オープンソースリポジトリ: <https://github.com/coolsnowwolf/openwrt-gl-ax1800>
|
|
||||||
4. OpenWRT アーカイブリポジトリ: <https://github.com/coolsnowwolf/openwrt>
|
|
||||||
|
|
||||||
## ソフトウェアルーター入門
|
|
||||||
<!--
|
|
||||||
硬酷R2 - N95/N300迷你四网HomeLab服务器
|
|
||||||
|
|
||||||
(商品介绍页面 - 硬酷科技(支持花呗)):
|
|
||||||
|
|
||||||
[预售链接](https://item.taobao.com/item.htm?ft=t&id=719159813003)
|
|
||||||
|
|
||||||
[](https://item.taobao.com/item.htm?ft=t&id=719159813003)
|
|
||||||
-->
|
|
||||||
Yingku R2 - N95/N300 Mini Four-Network HomeLab Server
|
|
||||||
|
|
||||||
(紹介ページ - Yingku Technology (support AliPay Huabei)):
|
|
||||||
|
|
||||||
[先行販売リンク](https://item.taobao.com/item.htm?ft=t&id=719159813003)
|
|
||||||
<div align="left">
|
|
||||||
<a href="https://item.taobao.com/item.htm?ft=t&id=719159813003">
|
|
||||||
<img src="doc/r1.jpg" width = "600" alt="" align=center />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
|
|
||||||
## 寄付
|
|
||||||
|
|
||||||
<!--
|
|
||||||
如果你觉得此项目对你有帮助,可以捐助我们,以鼓励项目能持续发展,更加完善
|
|
||||||
|
|
||||||

|
|
||||||
-->
|
|
||||||
このプロジェクトがあなたのお役に立てたのであれば、このプロジェクトの発展を支援するための寄付をご検討ください。
|
|
||||||
|
|
||||||
<div align="left">
|
|
||||||
<img src="./doc/star.png" width = "400" alt="" align=center />
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user