Raspian kernel PREEMPT building with Atheros hambands 2.3Ghz patch

Raspberry PI2 or PI3 kernel PREEMPT building with Atheros hambands 2.3Ghz patch and update wireless-regdb debian package

This solution allows to limit interference with the 2.4GHz TARANIS radio  when Wifibroadcast for video is activated.

git clone https://github.com/emlid/linux-rt-rpi/tree/rpi-4.4.y-rpi-3-emlid-v7+
cd linux-rt-rpi-rpi-4.4.y-rpi-3-emlid-v7-
emlid repo


  1. htc_drv_init.c.patch
  2. regd.c.patch
  3. util.c.patch

(the fourth patch is for hostapd : not used here)

More information here : http://blog.f1src.org/page/hamnet_tplink_tl_wn722.htm  or YO3IIU : http://yo3iiu.ro/blog/?p=1301 or F4GDL / F5KAV : http://www.f5kav.org/index.php?option=com_content&view=article&id=175&Itemid=129

cd linux-rt-rpi-rpi-4.4.y-rpi-3-emlid-v7-
make -j4 zImage modules dtbs
make modules_install
cp arch/arm/boot/dts/*.dtb /boot/
cp arch/arm/boot/dts/overlays/*.dtb* /boot/overlays/
cp arch/arm/boot/dts/overlays/README /boot/overlays/
scripts/mkknlimg arch/arm/boot/zImage /boot/$KERNEL.img
kernel compilation
  • For NAVIO2 you must install the rcio driver with DKMS whose source is here /usr/src/rcio-0.2 if you installed the raspian  emlid img   :  dkms install rcio/0.2 -k $(uname -r) 
  • You must update the debian package wireless-regdb by following the procedure here : http://blog.f1src.org/page/hamnet_tplink_tl_wn722.htm

Result iw list : 2.312 Ghz 30 bBm


TP-LINK TL-WN722N Atheros (<10Euros) :



2 réflexions sur « Raspian kernel PREEMPT building with Atheros hambands 2.3Ghz patch »

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *