mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-04-09 02:24:25 +00:00
.devcontainer
.github
.vscode
LICENSES
config
include
package
scripts
target
imagebuilder
linux
airoha
apm821xx
archs38
armsr
at91
ath79
bcm27xx
bcm47xx
bcm4908
bcm53xx
bmips
d1
gemini
generic
backport-6.6
files
Documentation
arch
drivers
bcma
mtd
net
platform
mikrotik
Kconfig
Makefile
rb_hardconfig.c
rb_hardconfig.h
rb_lz77.c
rb_lz77.h
rb_nvmem.c
rb_softconfig.c
routerboot.c
routerboot.h
ssb
include
hack-6.6
image
other-files
pending-6.6
PATCHES
config-6.6
config-filter
imx
ipq40xx
ipq806x
ixp4xx
kirkwood
lantiq
layerscape
loongarch64
malta
mediatek
mpc85xx
mvebu
mxs
octeon
omap
pistachio
qoriq
qualcommax
qualcommbe
ramips
realtek
rockchip
sifiveu
siflower
starfive
stm32
sunxi
tegra
uml
x86
zynq
Makefile
llvm-bpf
sdk
toolchain
Config.in
Makefile
toolchain
tools
.gitattributes
.gitignore
BSDmakefile
COPYING
Config.in
Makefile
README.md
feeds.conf.default
rules.mk
A number of new (or with recently updated caldata) Mikrotik devices are using LZ77 magic for wlan tag hard_config data. New devices include the Chateau LTE12 [1], and ax devices [2] Newly factory flashed devices may include the hap ac3 [3] This can be seen in decoded OEM supout [4] dmesg: "radio data lz77 decompressed from"… Investigating an arm RouterOS flash.ko module, and supplied example hard_config dumps, the format was guessed via decompilation and live debugging [5]. This decoder was then built from the guessed format specification. debug prints can be enabled in a DYNAMIC_DEBUG kernel build via the kernel cmdline: chosen { - bootargs = "console=ttyS0,115200"; + bootargs = "console=ttyS0,115200 dyndbg=\"file drivers/platform/mikrotik/* +p\""; }; [1]: https://forum.openwrt.org/t/no-wireless-mikrotik-rbd53ig-5hacd2hnd/157763/4 [2]: https://forum.openwrt.org/t/mikrotik-routeros-v7-x-and-openwrt-sysupgrade/148072/17 [3]: https://forum.openwrt.org/t/adding-support-for-mikrotik-hap-ax2/133715/47 [4]: https://github.com/farseeker/go-mikrotik-rif [5]: https://github.com/john-tho/routeros-wlan-lz77-decode Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au> Link: https://github.com/openwrt/openwrt/pull/15774 Signed-off-by: Robert Marko <robimarko@gmail.com>