nyrocron / dw1000

GNU General Public License v2.0
19 stars 9 forks source link

dw1000 .dts and driver for compute module #3

Closed yidingalan closed 7 years ago

yidingalan commented 7 years ago

hi @nyrocron Just wondering if this driver/overlay file will work for RPI compute module

nyrocron commented 7 years ago

Don't have one to test, sorry.

yidingalan commented 7 years ago

Did you write the overlay file for dw1000 (rpi2) from scratch or is there a good template to follow? I want to get it working on compute module. It will be using the same interface SPI0

nyrocron commented 7 years ago

You can decompile an existing device tree using dtc and base it on that.

yidingalan commented 7 years ago

So I was testing this on PI2 and I followed your compiling instructions. When I run RHOST=pi2-a RANR=1 make rstart, it gave me this error

scp dw1000.ko pi2-a:
ssh: Could not resolve hostname pi2-a: Name or service not known
lost connection
Makefile:27: recipe for target 'rload' failed
make: *** [rload] Error 1

Do I need to change the hostname to my own one? I tried that and still got an error:

Cannot find device "dw0"
Makefile:36: recipe for target 'rstart' failed
make: *** [rstart] Error 1

The only thing I changed in the MAKEFILE is the KERNELDIR

pelwell commented 7 years ago

@nyrocron You might want to try a real dw1000 overlay - see here. I've not tested it, but it should work. If not, feel free to report back.

In return, can you help @yidingalan to use your build script?