GL-iNet AX1800 new router - OpenWrt support?

Right as the gl-intra repo has kernel 5.4 on it I will try to build one more Kernel 4.4 build before heading over to 5.4, At the same time i have streamlined the scripting a bit better too.
If you want to use Kernel 5.4 uncomment them lines and comment the lines above it and save before executing it.

#!/bin/bash
## Update and install required packages for Gl-Inet Intra Cross Compile ##

sudo apt update && sudo apt dist-upgrade -y 
sudo apt install -y build-essential ccache ecj fastjar file g++ gawk subversion swig time \
gettext git java-propose-classpath libelf-dev libncurses5-dev \
libncursesw5-dev libssl-dev unzip wget binutils bzip2 diffutils flex perl clang \
python3 python2.7-dev python3 python3-distutils python3-setuptools \
xsltproc zlib1g-dev sshpass dos2unix zip patch curl \
make diffutils gcc grep libc-dev libz-dev rsync docbook2x util-linux \
perl subversion gcc-multilib g++-multilib git-core ocaml sharutils re2c qemu-guest-agent \

## Unsetting SED ##
unset SED

## Clone Intra ##
git clone https://github.com/solidus1983/gl-infra-builder.git
cd ~/gl-infra-builder
#python3 setup.py -c config-wlan-ap.yml
python3 setup.py -c config-wlan-ap-5.4.yml  ## For Kernel 5.4

## Complete Intra Setup ##
cd ~/gl-infra-builder/wlan-ap/openwrt
#./scripts/gen_config.py target_wlan_ap-gl-ax1800 solidus1983
./scripts/gen_config.py target_wlan_ap-gl-ax1800-5-4 solidus1983
git pull

## Update packages ##
cd ~/gl-infra-builder/wlan-ap/openwrt
sed -i '/is not set/d' .config
./scripts/feeds update -a
./scripts/feeds install -a
make defconfig

### Run Menuconfig to adjust things ##
./scripts/getver.sh > ~/gl-infra-builder/wlan-ap/openwrt/version.info
cat ~/gl-infra-builder/wlan-ap/openwrt/version.info
read -p "Edit the .config file and then press any key to continue... " -n1 -s
make menuconfig


## Compile ##
make -j$(($(nproc)+1)) V=sc download
make -j$(($(nproc)+1)) V=sc tools
make -j$(($(nproc)+1)) V=sc toolchain
make -i -j$(($(nproc)+1)) V=sc
#IGNORE_ERRORS=1 make -j$(($(nproc)+1)) V=sc  ## Force compile even with errors
#make -j1 V=sc ## Diaganostics

Due to the constant failure to compile since the last git repo push from gl-inet i have decided to give compiling a rest. Spent way to much time trying and its cause way little sleep. So for the sake of my health i will be giving it a rest till what ever broke the compile gets fixed.

Solidus I want to thank you for your efforts, I just recently got a GLI FLINT router and was surprised to find it running the old openwrt software.

I used the last build that you shared and it is working well. Only issues I'm having so far is hidden wifi networks no longer work (ie: devices won't connect to the network when they are hidden), Wireguard is missing and won't work with this kernel version, and lastly BANIP is loading IP subsets but loading 0 IPs (I checked and have all the prereq software for BANIP) I'm also getting some kind of SH error with banip being out of range.

Overall though I'm not complaining, its running well! No performance issues or slow wifi speeds. Thanks again!

Thanks for letting me know, OpenWRT on the flint is really really on the edge, they do have a Version 4 firmware on their forum's which works well enough however although its based on OpenWRT 21.02 its still on kernel 4.4 and not everything is compiled this is what i was trying to fill.

However will give it another shot after doing the Linksys WRTxxxxx builds i do.
I really need to sort the config for the Flint as man GL-iNet really does things strange.

On the linksys builds i just use patches and a diffconfig from the last build and make a slight change to the build number and thats it, on the Flint its completely different.

Sounds good I'll be here to test!

Just another heads up...

It seems using custom DNS forwardings does not work on this firmware. I've put in the DNS IPs under interfaces (LAN/WAN and unchecked allow peers to use their DNS servers) and also tried adding it under Network>DHCP & DNS.

1 Like

You able to DM me your config, as DNS was working for me when i was running that firmware.
Did you stop dnscrypt and removed it as that might have overrode the setting.

For some reason I don't see the ability to PM you directly...not sure if it's because my account is new on here or what not. I uploaded my configs here for you:

Thanks

You can remove the link bud, i have downloaed an checked in sandbox the file. Also i have DM'd you too.

Edit: I have tried to recompile again still getting stuck on the same place so guess i am waiting on GL-iNet to solve the issue as i can compile any other router firmware on the same VM. Ah well sorry guys/girls.

hello
how to list wireless clients?
iw station dump does not work

Ok everyone i have some good news.

I have managed to compile Kernel 5.4 with everything like Wireless working. However will need testers.

This has the following Apps Pre-installed:

Adblock
Wifi Schedule
banIP
Watchcat
Wake on LAN
Terminal
uHTTPd
UPnP
Network Shares (KSMBD)
VPN Bypass
OpenVPN
VPN Policy Routing
WireGuard
Statistics
Argon Theme (Also Config)
OpenWRT 2020 Theme
DNSCrypt-Proxy v2
SQM (With Cake)
QoS

{REMOVED DUE TO BRICKING}

If you have used my other build R16273 please use the factory image and start with a clean setup.

Known Bugs:

During boot kmod complains about dependencies

dependency not loaded nf_flow_table
dependency not loaded nf_conntrack_tftp
dependency not loaded nf_conntrack_snmp
dependency not loaded nf_conntrack_sip
dependency not loaded nf_conntrack_pptp
dependency not loaded nf_conntrack_irc
dependency not loaded nf_conntrack_h323
dependency not loaded nf_conntrack_ftp
dependency not loaded nf_conntrack_amanda
dependency not loaded nf_conntrack_broadcast
dependency not loaded nf_flow_table
dependency not loaded nf_nat
missing dependency nf_conntrack
missing dependency nf_defrag_ipv4
missing dependency nf_defrag_ipv6

If you encounter a Bug please let me know in this thread.

Updated Script:

#!/bin/bash

## Update and install required packages for Gl-Inet Intra Cross Compile ##

sudo apt update && sudo apt dist-upgrade -y 
sudo apt install -y build-essential gawk gcc-multilib flex git gettext libncurses5-dev \
libssl-dev python3-distutils zlib1g-dev neofetch qemu-guest-agent python3-yaml rsync sshpass \


## Clone Intra ##
git clone https://github.com/solidus1983/gl-infra-builder.git
cd ~/gl-infra-builder
python3 setup.py -c config-wlan-ap-5.4.yml
#python3 setup.py -c config-wlan-ap.yml

## Add Themes ##
cd ~/gl-infra-builder/wlan-ap/openwrt/package
git clone https://github.com/jerrykuku/luci-theme-argon.git 
git clone https://github.com/jerrykuku/luci-app-argon-config.git
cd ~/gl-infra-builder/wlan-ap/openwrt/

## Complete Intra Setup ##
cd ~/gl-infra-builder/wlan-ap/openwrt
#./scripts/gen_config.py target_wlan_ap-gl-ax1800-5-4 luci
./scripts/gen_config.py target_wlan_ap-gl-ax1800-5-4 solidus1983


### Run Menuconfig to adjust things ##
./scripts/getver.sh > ~/gl-infra-builder/wlan-ap/openwrt/version.info
cat ~/gl-infra-builder/wlan-ap/openwrt/version.info
read -p "Edit the .config file and then press any key to continue... " -n1 -s
make menuconfig


## Compile ##
cd ~/gl-infra-builder/wlan-ap/openwrt/
make -j$(($(nproc)+1)) V=sc download
make -j$(($(nproc)+1)) V=sc tools
make -j$(($(nproc)+1)) V=sc toolchain
make -i -j$(($(nproc)+1)) V=sc
#IGNORE_ERRORS=1 make -j$(($(nproc)+1)) V=sc  ## Force compile even with errors
#make -j1 V=sc ## Diaganostics

Thanks for all your efforts with this, it's greatly appreciated! Please let me know where I can send the beer tokens :slight_smile:

I've only just had a chance to run through, and it did create an image file (R16399+137), but alas it was only 5MB in size. I'll play with it more tomorrow to see what I did wrong, but excited to have already gotten this far :slight_smile:

Thanks again!

1 Like

I am more of a coffee person, gave up booze in 2004. Still having issues with creating images though but will figure it out

1 Like

Ah, in that case, can I get you a bag of your beans / grounds of choice? :slight_smile:

I'd be happy to test or debug but I am quite new to building OpenWRT. Happy to put in the hours though if I can be useful and you're willing to point me in the right direction :slight_smile:

1 Like

The more the merrier, i think its to do with how gl-inet does its compiling with yaml thats causing me the issues. As on the same box i can compile LinksysWRT firmware using the same scripts without issues every build has been perfect on that.

See if i use gl-infra-builder/solidus1983.yml at main · solidus1983/gl-infra-builder (github.com) then i am having issues however if i use gl-infra-builder/luci.yml at main · solidus1983/gl-infra-builder (github.com) she will compile.

Also most if not all of the setup is done via the script i made in this thread.

#!/bin/bash

## Update and install required packages for Gl-Inet Intra Cross Compile ##

sudo apt update && sudo apt dist-upgrade -y 
sudo apt install -y build-essential gawk gcc-multilib flex git gettext libncurses5-dev \
libssl-dev python3-distutils zlib1g-dev neofetch qemu-guest-agent python3-yaml rsync sshpass \
binutils bzip2 diffutils flex grep libc-dev libz-dev perl rsync subversion unzip libncurses5-dev \
zlib1g-dev g++-multilib flex git-core gettext libssl-dev ocaml sharutils re2c \
libusb-dev bin86 bcc sharutils openjdk-*-jdk libxml-parser-perl libboost-dev curl

## Clone Intra ##
git clone https://github.com/solidus1983/gl-infra-builder.git
cd ~/gl-infra-builder
python3 setup.py -c config-wlan-ap-5.4.yml
#python3 setup.py -c config-wlan-ap.yml

## Add Themes ##
cd ~/gl-infra-builder/wlan-ap/openwrt/package
git clone https://github.com/jerrykuku/luci-theme-argon.git 
git clone https://github.com/jerrykuku/luci-app-argon-config.git
cd ~/gl-infra-builder/wlan-ap/openwrt/
sed -i '$ a src-git opentomato https://github.com/solidus1983/luci-theme-opentomato.git' feeds.conf


## Complete Intra Setup ##
cd ~/gl-infra-builder/wlan-ap/openwrt
#./scripts/gen_config.py target_wlan_ap-gl-ax1800-5-4 luci
./scripts/gen_config.py target_wlan_ap-gl-ax1800-5-4 solidus1983



## Update packages ##
cd ~/gl-infra-builder/wlan-ap/openwrt/
sed -i '/is not set/d' .config
./scripts/feeds update -a
./scripts/feeds install -a


### Run Menuconfig to adjust things ##
cd ~/gl-infra-builder/wlan-ap/openwrt/
./scripts/getver.sh > ~/gl-infra-builder/wlan-ap/openwrt/version.info
make defconfig
cat ~/gl-infra-builder/wlan-ap/openwrt/version.info
read -p "Edit the .config file and then press any key to continue... " -n1 -s
make menuconfig


## Compile ##
cd ~/gl-infra-builder/wlan-ap/openwrt/
BUILD_LOG=1 IGNORE_ERRORS=1 make -i -j$(($(nproc)+1)) V=sc defconfig download tools toolchain clean world
#make -j1 V=sc ## Diaganostics

simple save that as an .sh file then run chmod a+x <filename>.sh then execute it with ./<filename>.sh it will then set everything up on Debian 11 or Ubuntu 22.04

I just had another quick run through, and it seems to fail building the kernel, specifically:

make[3]: [modules/netfilter.mk:109: /ax1800/gl-infra-builder/wlan-ap/openwrt/bin/targets/ipq807x/ipq60xx/packages/kmod-nf-conntrack_5.4.1645-1_arm_cortex_7.ipk] Error 1
make[2]: [package/Makefile:116: package/kernel/linux/compile] Error `
make[1]: [package/Makefile:110: /ax1800/gl-infra-builder/wlan-ap/openwrt/stging_dir/target-arm_cortex-a7_musl_eabi/stamp/.package_compile] Error 2
make: [/ax1800/gl-infra-builder/wlan-ap/openwrt/include/toplevel.mk:230: world] Error 2

Had to type those out so typos are likely just due to me :slight_smile:

It does seem related to your original post about how the conntrack stuff was missing though.

I'm currently running the build as an Earthfile (https://earthly.dev), which I'd be happy to share even though it's not ready yet :slight_smile:

open make menuconfig in there will be an option to enable logging.

This can be found in Advanced configuration options (for developers) then check Enable log files during build process

Save and then run make -j1 V=sc the log files will the be in ~/gl-infra-builder/wlan-ap/openwrt/logs

Failing that use this script:

#!/bin/bash

## Update and install required packages for Gl-Inet Intra Cross Compile ##

sudo apt update && sudo apt dist-upgrade -y 
sudo apt install -y build-essential gawk gcc-multilib flex git gettext libncurses5-dev \
libssl-dev python3-distutils zlib1g-dev neofetch qemu-guest-agent python3-yaml rsync sshpass \
binutils bzip2 diffutils flex grep libc-dev libz-dev perl rsync subversion unzip libncurses5-dev \
zlib1g-dev g++-multilib flex git-core gettext libssl-dev ocaml sharutils re2c \
libusb-dev bin86 bcc sharutils openjdk-*-jdk libxml-parser-perl libboost-dev curl

## Clone Intra ##
git clone https://github.com/solidus1983/gl-infra-builder.git
cd ~/gl-infra-builder
python3 setup.py -c config-wlan-ap-5.4.yml
#python3 setup.py -c config-wlan-ap.yml

## Add Themes ##
cd ~/gl-infra-builder/wlan-ap/openwrt/package
git clone https://github.com/jerrykuku/luci-theme-argon.git 
git clone https://github.com/jerrykuku/luci-app-argon-config.git
cd ~/gl-infra-builder/wlan-ap/openwrt/
sed -i '$ a src-git opentomato https://github.com/solidus1983/luci-theme-opentomato.git' feeds.conf


## Complete Intra Setup ##
cd ~/gl-infra-builder/wlan-ap/openwrt
#./scripts/gen_config.py target_wlan_ap-gl-ax1800-5-4 luci
./scripts/gen_config.py target_wlan_ap-gl-ax1800-5-4 solidus1983



## Update packages ##
cd ~/gl-infra-builder/wlan-ap/openwrt/
sed -i '/is not set/d' .config
./scripts/feeds update -a
./scripts/feeds install -a


### Run Menuconfig to adjust things ##
cd ~/gl-infra-builder/wlan-ap/openwrt/
./scripts/getver.sh > ~/gl-infra-builder/wlan-ap/openwrt/version.info
make defconfig
cat ~/gl-infra-builder/wlan-ap/openwrt/version.info
read -p "Edit the .config file and then press any key to continue... " -n1 -s
make menuconfig


## Compile ##
cd ~/gl-infra-builder/wlan-ap/openwrt/
BUILD_LOG=1 IGNORE_ERRORS=1 make -i -j$(($(nproc)+1)) V=sc defconfig download tools toolchain clean world
#make -j1 V=sc ## Diaganostics
1 Like

Still working on it :slight_smile:

Do you by any chance ever see a bc process maxing out a core and basically causing the whole build process to hang? For example, I often see this a couple of times in the build process:

bc -q kernel/time/timeconst.bc

It doesn't happen every time, but when it does, there's no way to move forward unless you kill it which is probably going to break something else :slight_smile:

For this line though:

sed -i '$ a src-git opentomato https://github.com/solidus1983/luci-theme-opentomato.git' feeds.conf

Should feeds.conf be feeds.conf.default ? At that stage of the process I don't have a feeds.conf...

I normally setup fire and forget on my builds till it's completed.

As for the theme feeds.conf yes it's a typo thanks for pointing this out.

1 Like