博文

目前显示的是 六月, 2017的博文

RTEMS-libbsd generates drive device firmware

图片
Recently, I am working on add a wireless network card driver to rtems-libbsd.
And it requires the firmware file to add the network card.
The network card chip i used is rtl8188eu, and then i show you how to generate firmware files in rtems-libbsd.

First, the firmware file generation is done by using make-build system(The rtems-libbsd contains the WAF Python Script Compilation and part of the make script, it can not bear to look, but RTEMS said it would be the only way in the future as compiled using WAF, even RTEMS core code is using Python script).

In the root directory of the source code, there are Makefile.todo files, modify this file to get the firmware file, Makefile.todo source code is as follows:

LOCAL_INC = rtemsbsd/include/rtems/bsd/local  LOCAL_SRC = rtemsbsd/local  FREEBSD_SRC = freebsd-org  TOOLS = freebsd-org/sys/tools  GENERATED =  GENERATED += $(LOCAL_INC)/usb_if.h  GENERATED += $(LOCAL_SRC)/usb_if.c  GENERATED += $(LOCAL_INC)/bus_if.h  GENERATED += $(LOCAL_SRC)/bus_if.c…