Compiling the Driver
Software Development Kits > Guide to Linux Porting
Before compiling the driver, please ensure you’ve compiled your kernel as normal with appropriate ARCH and CROSS_COMPILE environment variables configured as required.
The Morse Micro driver produces two modules.
- morse.ko is the core driver for both SPI and SDIO attached devices. It provides core bus communication logic and network device registration.
- dot11ah.ko the shim layer, responsible for translating 802.11ah channel and rate information into 802.11ac, including 802.11ah specific frames such as S1G probe requests.
If the Morse Micro driveris recompiled, it is strongly recommended to update both modules in the system. Failure to do so can result in signicantly reduced throughput or, possibly, a complete communication failure.
To compile the driver, execute the following commands
unzip morsemicro_driver_rel_1_11_3_2024_Mar_28.zip cd
morsemicro_driver_rel_1_11_3_2024_Mar_28
make KERNEL_SRC=../linux-5.15 \
CONFIG_WLAN_VENDOR_MORSE=m CONFIG_MORSE_SDIO=y \
CONFIG_MORSE_USER_ACCESS=y CONFIG_MORSE_VENDOR_COMMAND=y
This will compile morse.ko and dot11ah.ko which can be installed into /lib/modules/<kernel_version>/ of the target rootfs.
Additional compile time configuration options are available. For an up-to-date list, and detailed descriptions of the fields, inspect the Kconfig file in the source. Notably, to compile the driver for a SPI attached device, one would need to use CONFIG_MORSE_SPI=y. To enable test modes set CONFIG_MORSE_ENABLE_TEST_MODES=y.