Add USB dongle rtl8188eu support for RTEMS-libbsd on BBB BSP

After add the USB support for RTEMS-libbsd on Beaglebone Black BSP. The next step is to add the USB dongle driver support, i choose the rtl8188eu chip as my USB WiFi dongle.

So how to add rtl8188eu driver support for RTEMS-libbsd?


1. Add rtl8188eu driver firmware

This step is described in another blog post:

RTEMS-libbsd generates drive device firmware 

2. Add module support in nexus-devices.h


Tell rtems which module support  we need for USB dongle.


 a. Add rtwn on uhub

SYSINIT_DRIVER_REFERENCE(rtwn_usb, uhub);

b. Add rtl8188eu firmware on RTEMS

SYSINIT_REFERENCE(rtwn_rtl8188eufw);


So, in summary, we need add these code in nexus-devices.h


diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h
index 09a4cc3..c3e5336 100644
--- a/rtemsbsd/include/bsp/nexus-devices.h
+++ b/rtemsbsd/include/bsp/nexus-devices.h
@@ -56,6 +56,11 @@ SYSINIT_DRIVER_REFERENCE(ti_scm, simplebus);
SYSINIT_DRIVER_REFERENCE(am335x_prcm, simplebus);
SYSINIT_DRIVER_REFERENCE(usbss, simplebus);
SYSINIT_DRIVER_REFERENCE(musbotg, usbss);
+SYSINIT_DRIVER_REFERENCE(rtwn_usb, uhub);
+SYSINIT_MODULE_REFERENCE(wlan_ratectl_none);
+SYSINIT_REFERENCE(rtwn_rtl8188eufw);
RTEMS_BSD_DRIVER_USB;


That's all.

评论

此博客中的热门博文

How to generate image file and dd to SD card

Developed the I2C driver for Beaglebone Black BSP

Compiling RTEMS for Beaglebone Black BSP