Skip to content

Commit 0401fa0

Browse files
committed
added building-openwrt
1 parent e5dee11 commit 0401fa0

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed

en/astro.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default defineConfig({
1919
{ label: 'Other systems', slug: 'guides/other-systems' },
2020
{ label: 'Building openFyde', slug: 'guides/building-openfyde' },
2121
{ label: 'Building custom Linux', slug: 'guides/building-yocto' },
22+
{ label: 'Building OpenWrt', slug: 'guides/building-openwrt' },
2223
{ label: 'Unbrick the XpressReal T3', slug: 'guides/unbrick' },
2324
],
2425
},
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
title: Building OpenWrt
3+
description: How to set up OpenWrt building environment for XpressReal T3 SBC.
4+
---
5+
## Introduction
6+
The OpenWrt is a Linux operating system targeting embedded devices. This guide describes how to set up OpenWrt building environment for XpressReal T3 SBC.
7+
## System requirement
8+
### Operating system
9+
* Ubuntu 24.04/22.04/20.04 LTS
10+
* Fedora 39/40/41
11+
* Debian GNU/Linux 11/12
12+
### Minimum Free Disk Space
13+
To build an image for the XpressReal T3, you need a system with at least 20 GB of free disk space.
14+
### Minimum System RAM
15+
You will manage to build an image for the XpressReal T3 with as little as 8 GB of RAM on an old system with 4 CPU cores, but your builds will
16+
be much faster on a system with as much RAM and as many CPU cores as possible.
17+
## System preparation
18+
### Ubuntu/Debian Packages
19+
Here are the packages needed to build an image on a headless system with a supported Ubuntu or Debian Linux distribution:
20+
```bash
21+
sudo apt update
22+
sudo apt install build-essential clang flex bison g++ gawk \
23+
gcc-multilib g++-multilib gettext git libncurses-dev libssl-dev \
24+
python3-distutils python3-setuptools rsync swig unzip zlib1g-dev file wget
25+
```
26+
### Fedora Packages
27+
Here are the packages needed to build an image on a headless system with a supported Fedora Linux distribution:
28+
```bash
29+
sudo dnf --setopt install_weak_deps=False --skip-broken install \
30+
bash-completion bzip2 file gcc gcc-c++ git-core make ncurses-devel patch \
31+
rsync tar unzip wget which diffutils python3 python3-setuptools perl-base \
32+
perl-Data-Dumper perl-File-Compare perl-File-Copy perl-FindBin \
33+
perl-IPC-Cmd perl-JSON-PP perl-lib perl-Thread-Queue perl-Time-Piece
34+
```
35+
### Shell
36+
You need to ensure you are using `bash` as your default `$SHELL`.
37+
## Fetch OpenWrt source
38+
Fetch OpenWrt source code from GitHub repository:
39+
```bash
40+
git clone https://github.com/XpressReal/openwrt.git
41+
cd openwrt
42+
```
43+
## Update and install feeds
44+
Update and install the package feeds:
45+
```bash
46+
./scripts/feeds update -a
47+
./scripts/feeds install -a
48+
```
49+
## Configure the build system
50+
You can start with the default configuration for XpressReal T3:
51+
```bash
52+
cp defconfigs/xpressreal_t3_rtd1619b_defconfig .config
53+
```
54+
Then run `make menuconfig` to customise the configuration as needed:
55+
```bash
56+
make menuconfig
57+
```
58+
Make sure to select the correct Target System, Subtarget, and Target Profile for XpressReal T3 if not already set:
59+
- Target System (RealTek DHC)
60+
- Subtarget (RealTek RTD1619B boards)
61+
- Target Profile (XpressReal T3)
62+
You can also customise other options such as additional packages and features according to your requirements.
63+
## Build the image
64+
Once you have configured the build system, you can start the build process by running:
65+
```bash
66+
make -j$(nproc)
67+
```
68+
This will compile the OpenWrt firmware image for the XpressReal T3 based on your configuration.
69+
The build process may take some time depending on your system's performance and the selected configuration.
70+
After the build is complete, you can find the generated firmware image in the `bin/targets/rtd/rtd1619b/` directory within the OpenWrt source tree.
71+
The firmware image file will be named something like `openwrt-rtd-rtd1619b-rtd_xpressreal-t3-<fs_type>-sdcard.img.gz`.

0 commit comments

Comments
 (0)