Here is a final (notes) tutorial/howto (will publish more… soon !)
# makeinfo
wget https://raw.githubusercontent.com/openwrt/openwrt/master/tools/missing-macros/src/bin/makeinfo
chmod a+x makeinfo
cp makeinfo /usr/bin/
opkg install perlbase-config perlbase-getopt
# bison >> https://www.gnu.org/software/bison/
root@ultra:~#
wget http://ftp.gnu.org/gnu/bison/bison-3.7.6.tar.gz
tar -zxvf bison-3.7.6.tar.gz
cd bison-3.7.6/
./configure --prefix=/usr/
make
make install
# autom4te >> https://www.gnu.org/software/m4/
wget http://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.gz
tar -zxvf m4-1.4.19.tar.gz
cd m4-1.4.19
./configure --prefix=/usr/
make
make install
# binutils >> https://www.gnu.org/software/binutils/
# ld.gold >> http://llvm.org/docs/GoldPlugin.html >> git clone --depth 1 git://sourceware.org/git/binutils-gdb.git binutils
wget https://ftp.gnu.org/gnu/binutils/binutils-2.36.tar.gz
tar -zxvf binutils-2.36.tar.gz
cd binutils-2.36
./configure --enable-gold --enable-plugins --disable-werror --prefix=/usr/
make all-gold
cp gold/ld-new /usr/bin/ld.gold
root@ultra:~/binutils-2.36# ldd.gold --version
GNU gold (GNU Binutils 2.36) 1.16
Copyright (C) 2021 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
opkg install yq
cd crowdsec
CGO_ENABLED=1 GOOS=linux GOARCH=arm64 make release --debug
cp crowdsec-v1.1.1/cmd/crowdsec-cli/cscli /usr/bin/cscli
cp crowdsec-v1.1.1/cmd/crowdsec/crowdsec /usr/bin/crowdsec
root@ultra:~/crowdsec# cscli version
2021/07/18 16:16:19 version: v1.1.1-1610255cbdbb901435d399f8fd533d7267a24adf
2021/07/18 16:16:19 Codename: alphaga
2021/07/18 16:16:19 BuildDate: 2021-07-18_18:14:25
2021/07/18 16:16:19 GoVersion: 1.16.5
2021/07/18 16:16:19 Constraint_parser: >= 1.0, <= 2.0
2021/07/18 16:16:19 Constraint_scenario: >= 1.0, < 3.0
2021/07/18 16:16:19 Constraint_api: v1
2021/07/18 16:16:19 Constraint_acquis: >= 1.0, < 2.0
root@ultra:~/crowdsec# crowdsec --version
2021/07/18 16:16:43 version: v1.1.1-1610255cbdbb901435d399f8fd533d7267a24adf
2021/07/18 16:16:43 Codename: alphaga
2021/07/18 16:16:43 BuildDate: 2021-07-18_18:14:06
2021/07/18 16:16:43 GoVersion: 1.16.5
2021/07/18 16:16:43 Constraint_parser: >= 1.0, <= 2.0
2021/07/18 16:16:43 Constraint_scenario: >= 1.0, < 3.0
2021/07/18 16:16:43 Constraint_api: v1
2021/07/18 16:16:43 Constraint_acquis: >= 1.0, < 2.0
root@ultra:~/crowdsec# cscli -c /etc/crowdsec/config.yaml hub update
INFO[18-07-2021 04:17:25 PM] Wrote new 125878 bytes index to /etc/crowdsec/hub/.index.json
root@ultra:~/crowdsec# mkdir -p /var/lib/crowdsec/data
root@ultra:~/crowdsec# cscli -c /etc/crowdsec/config.yaml machines add --auto
INFO[18-07-2021 04:18:20 PM] Machine 'fca1436b56b347be82c8dd64cbfc2ebaqKlnhEJxIJL285eG' successfully added to the local API
INFO[18-07-2021 04:18:20 PM] API credentials dumped to '/etc/crowdsec/local_api_credentials.yaml'
root@ultra:~/crowdsec# cscli -c /etc/crowdsec/config.yaml machines list
-----------------------------------------------------------------------------------------------------
NAME IP ADDRESS LAST UPDATE STATUS VERSION
-----------------------------------------------------------------------------------------------------
fca1436b56b347be82c8dd64cbfc2ebaqKlnhEJxIJL285eG 2021-07-18T16:18:20Z ✔️
-----------------------------------------------------------------------------------------------------
root@ultra:~/crowdsec# cscli -c /etc/crowdsec/config.yaml capi register
INFO[18-07-2021 04:19:18 PM] Successfully registered to Central API (CAPI)
INFO[18-07-2021 04:19:18 PM] Central API credentials dumped to '/etc/crowdsec/online_api_credentials.yaml'
WARN[18-07-2021 04:19:18 PM] Run 'sudo systemctl reload crowdsec' for the new configuration to be effective.
root@ultra:~/crowdsec# crowdsec -c /etc/crowdsec/config.yaml &
root@ultra:~/crowdsec# ps |grep crowdsec
9908 root 718m S crowdsec -c /etc/crowdsec/config.yaml
9973 root 1228 S grep crowdsec
root@ultra:~/crowdsec# cscli -c /etc/crowdsec/config.yaml hub list
INFO[18-07-2021 04:28:08 PM] Loaded 20 collecs, 25 parsers, 28 scenarios, 3 post-overflow parsers
INFO[18-07-2021 04:28:08 PM] PARSERS:
--------------------------------------
NAME 📦 STATUS VERSION LOCAL PATH
--------------------------------------
--------------------------------------
INFO[18-07-2021 04:28:08 PM] SCENARIOS:
--------------------------------------
NAME 📦 STATUS VERSION LOCAL PATH
--------------------------------------
--------------------------------------
INFO[18-07-2021 04:28:08 PM] COLLECTIONS:
--------------------------------------
NAME 📦 STATUS VERSION LOCAL PATH
--------------------------------------
--------------------------------------
INFO[18-07-2021 04:28:08 PM] POSTOVERFLOWS:
--------------------------------------
NAME 📦 STATUS VERSION LOCAL PATH
--------------------------------------
--------------------------------------