Applying Patches
Software Development Kits > Guide to Linux Porting
Before compiling the Linux kernel, a small number of patches are required to enable various S1G features. These patches can be found in the 'kernel patches' archive compiled with every Morse Micro Linux driver production release.
To apply these patches, run the following commands:
unzip morsemicro_kernel_patches_rel_1_11_3_2024_Mar_28.zip
cat morsemicro_kernel_patches_rel_1_11_3_2024_Mar_28/*.patch |
patch -g0 -p1 -E -d linux-5.15/
Please note, because these patches are developed around the Raspberry Pi kernels. A developer may experience some patch hunks failing. If this occurs, inspect the generated .rej output for the failed hunk, and manually apply the changes to the kernel.
For 5.15.137, the following files required additional attention:
- include/linux/mmc/card.h
- net/mac80211/agg-rx.c
Also note that users may replace the release version with the latest Morse Micro Linux production number.