- See HiKey960 Prerequisite if building uwb-core module for HiKey960 development platform.
- See Raspberry Pi Prerequisite if building uwb-core module for Raspberry Pi.
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
make -f Makefile.cmake kernel-prereq
- 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.
- From repository root:
make KERNEL_SRC=<kernel-src> O=<out-dir> modules modules_install
-
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
toEXT_MODULES
in build.config.echo EXT_MODULES="modules/uwbcore" >> build.config
-
Build as usual.