Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 1.83 KB

README_kernel.md

File metadata and controls

54 lines (44 loc) · 1.83 KB

uwb-core for Linux Kernel driver

The uwb-core support both the DW1000 and DW3X00 devices and detect the device at runtime. The uwb-core comprises of two modules

  • ./uwbcore.ko
  • ./porting/dpl/kernel/uwb_hal/uwb-hal.ko

How To Build

Preparing

make -f Makefile.cmake kernel-prereq

As An In-Kernel Driver:

  • Place contents in /driver/misc/uwbcore
  • Also include the specific drivers needed from separate repos (decawave-uwb-dw1000, decawave-uwb-dw3000-c0,...)
  • Add CONFIG_UWB_DW1000=y to config.
  • Add CONFIG_UWB_DW3000=y to config.
  • Add CONFIG_UWB_CORE=y (or m) to config.
  • Add CONFIG_UWB_HAL=y (or m) to config.
  • Build as usual.

As An Out-of-Tree Module:

  • From repository root: make KERNEL_SRC=<kernel-src> O=<out-dir> modules modules_install

In Android Kernel Project:

  • Add to local manifest (i.e. .repo/local_manifests/uwbcore.xml):

    <?xml version="1.0" encoding="UTF-8"?>
    <manifest>
      <remote name="uwb-core" fetch="ssh://[email protected]" />
      <project path="modules/uwbcore" name="Decawave/uwb-core" remote="uwb-core" revision="master" />
    </manifest>
    
    • Add to local manifest (i.e. .repo/local_manifests/uwbcore-syscfg.xml):
    <?xml version="1.0" encoding="UTF-8"?>
    <manifest>
      <remote name="uwb-core-syscfg" fetch="ssh://[email protected]" />
      <project path="modules/uwbcore/bin" name="Decawave/uwb-core-syscfg" remote="uwb-core-syscfg" revision="master" />
    </manifest>
    
  • Perform repo sync.

  • Add modules/uwbcore to EXT_MODULES in build.config.

    echo EXT_MODULES="modules/uwbcore" >> build.config
    
  • Build as usual.