I'm trying to build the configuration utilities for the WL1837MOD for a ZynqMP. Since the driver is now in mainline Linux, there is no need to build the drivers or patch the kernel from Wilink8. As is, WiFi is partially working on this board, however I still need to run the Wilink8 wlconf tool to configure the radio and generate the wl18xx-conf.bin file.
First of all, the kernel used for Wilink8 is very old, 4.19. Current LTS is 5.15, so there will be build issues if TI has not updated anything since Wilink8 R8.8.
After setting up the build tools to use Petalinux SDK there are several issues. The SDK sets environment variables that conflict with ones set in setup-env. Namely CROSS_COMPILE, CC, AR, LD are all preset. Openssl and libnl also each use the siteconfig script from the SDK to setup the config environment ahead of time, leading to such things as `aarch64-xilinx-linux-aarch64-xilinx-linux-gcc: no such file or directory'. Unsetting these variables allows Openssl and libnl to compile. Next is crda, which because the CROSS_COMPILE variable is unset uses the host CC which is wrong. Setting this in the build_wl18xx.sh script manually to aarch64-xilinx-linux-gcc/ar/ld yeilds the next biggest issue.
How does one compile Wilink8 for aarch64?
Compiling nvs.o (from git://git.ti.com/wilink8-wlan/18xx-ti-utils.git) fails with:
<redacted>/sysroots/cortexa72-cortexa53-xilinx-linux/usr/include/bits/long-double.h:23:10: fatal error: bits/long-double-32.h: No such file or directory
because there is no 32bit long-double.
Has anyone been able to compile the Wilink8 binaries for aarch64?
Where can I get wlconf pre-built for aarch64?
Does TI have any updates for this chip? Fixes for the repo? It's still being sold for new designs...