Go to file
2022-12-27 15:02:50 +08:00
.github/workflows path change to absolute path 2022-12-20 10:54:52 +08:00
configs mt798x: remove unused code 2022-11-09 09:54:27 +08:00
feeds improve .gitignore 2021-06-07 10:45:18 +08:00
files-wlan-ap-5.4/openwrt/package ax1800/axt1800: add kernel 5.4 support 2022-05-24 16:39:22 +08:00
patches-18.x first commit 2021-05-27 17:58:57 +08:00
patches-19.07.8 normalize some directories 2022-09-19 11:32:55 +08:00
patches-19.x gl-b1300th: fix partition 2022-08-11 10:59:38 +08:00
patches-21.02.0 patches: dts: use new format for gl-hwinfo 2022-01-10 16:58:35 +08:00
patches-21.02.2 fix switch link failure connected with 100M cable 2022-11-16 19:03:43 +08:00
patches-21.x fix file mode 2021-06-09 09:53:05 +08:00
patches-22.03.0 ramips: delete patch that do not keep config 2022-11-07 10:36:16 +08:00
patches-22.03.2 add xe300 flash_size 2022-12-21 18:59:51 -08:00
patches-mt798x-7.6.6.1 x3000/xe3000 :adjust dts 2022-12-27 11:14:53 +08:00
patches-qsdk11 qsdk11: remove repeated patch 2022-01-15 17:46:09 +08:00
patches-qsdk53 improve QSDK target 2021-06-08 09:16:55 +08:00
patches-siflower-18.x siflower: wireguard support hotplug 2022-12-27 15:02:50 +08:00
patches-trunk first commit 2021-05-27 17:58:57 +08:00
patches-wlan-ap mac80211: indicate scanning state via debugfs 2022-12-15 10:04:48 +08:00
patches-wlan-ap-5.4 gl-fan: improveed for general 2022-07-28 11:13:07 +08:00
profiles mt3000: update profile 2022-12-27 11:56:38 +08:00
scripts move wlan-ap script 2022-12-14 10:48:33 +08:00
.env Create .env 2021-10-26 15:27:13 +08:00
.gitignore move wlan-ap script 2022-12-14 10:48:33 +08:00
README.md Add SFT1200 and AXT1800 in the README.md 2022-11-23 11:41:42 +08:00
requirements.txt first commit 2021-05-27 17:58:57 +08:00
setup.py move wlan-ap script 2022-12-14 10:48:33 +08:00

Under development, please do not use

Requirements

You need the following tools to compile OpenWrt, the package names vary between distributions. A complete list with distribution specific packages is found in the Build System Setup documentation.

$ sudo apt install binutils bzip2 diff find flex gawk gcc-6+ getopt grep install libc-dev libz-dev make4.1+ perl python3.6+ rsync subversion unzip which libncurses5-dev zlib1g-dev gawk gcc-multilib g++-multilib flex git-core gettext libssl-dev ocaml sharutils re2c -y

And This development tools requires Python 3.6 or higher! Please use the following command to check,

$ python3 --version
Python 3.6.13

$ ls -l /usr/bin/python3*
 /usr/bin/python3 -> python3.6
 /usr/bin/python3.5
 /usr/bin/python3.5-config -> x86_64-linux-gnu-python3.5-config
 /usr/bin/python3.5m
 /usr/bin/python3.5m-config -> x86_64-linux-gnu-python3.5m-config
 /usr/bin/python3.6
 /usr/bin/python3.6-config -> x86_64-linux-gnu-python3.6-config
 /usr/bin/python3.6m
 /usr/bin/python3.6m-config -> x86_64-linux-gnu-python3.6m-config
 /usr/bin/python3.9
 /usr/bin/python3.9-config -> x86_64-linux-gnu-python3.9-config
 /usr/bin/python3-config -> python3.5-config
 /usr/bin/python3m -> python3.5m
 /usr/bin/python3m-config -> python3.5m-config

Quickstart

  1. Run git clone https://github.com/gl-inet/gl-infra-builder.git && cd gl-infra-builder to clone repository

  2. Run ls configs -hl to list the openwrt verizon

  3. Chose your want version, for example, if you want to use openwrt-19.07.8, Run python3 setup.py -c configs/config-19.07.8.yml to download openwrt-19.07.8 source code

  4. Run cd openwrt-19.07/openwrt-19.07.8/ to enter openwrt-19.07.8 directory

  5. Run ./scripts/gen_config.py list to get target_xxx and glinet_xxx files. target_xxx is you want to compile products, don't modify. glinet_xxx is you want to add/delete packages, you can modify. Those files in the profiles directory.

  6. Run ./scripts/gen_config.py <target_profile> <function_profile> to chose the product target and add some packages. <target_profile> is you want to compile products. <function_profile> is you want to add/delete packages.

  7. For example, If you want to compile GL-AR150 product and add luci, you can run ./scripts/gen_config.py target_ath79_gl-ar150 luci. You can run make menuconfig to chose other packages

  8. Run make to build your firmware.

Example

  1. Compile MT2500(2022.11.22)
 git clone https://github.com/gl-inet/gl-infra-builder.git
 cd gl-infra-builder
 python3 setup.py -c  configs/config-mt798x-7.6.6.1.yml
 cd mt7981
 ./scripts/gen_config.py target_mt7981_gl-mt2500 luci
 make -j5
  1. Compile AXT1800(2022.11.23)
 git clone https://github.com/gl-inet/gl-infra-builder.git
 cd gl-infra-builder
 python3 setup.py -c configs/config-wlan-ap.yml
 cd wlan-ap/openwrt
 ./scripts/gen_config.py target_wlan_ap-gl-axt1800 luci
 make -j5
  1. Compile SFT1200(2022.11.23)
 git clone https://github.com/gl-inet/gl-infra-builder.git
 cd gl-infra-builder
 python3 setup.py -c config-siflower-18.x.yml
 cd openwrt-18.06/siflower/openwrt-18.06
 ./scripts/gen_config.py target_siflower_gl-sft1200
 make -j5

Note

  1. If you gcc version is 10, you will encounter some error, like this:
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
collect2: errorld returned 1 exit status.

You should execute the following command to reduce the gcc version:

$ update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100
$ update-alternatives --config gcc