Giter Site home page Giter Site logo

rf-bitbanger's People

Contributors

tandersson avatar tinco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rf-bitbanger's Issues

Error writing to RFBB device: Invalid argument

I can write to /dev/null and rfbb_cmd runs without problems, but writing to the rfbb device exits with an error. I don't know how to get more debug info from a kernel module, I'm running 3.2.27+ on Debian Wheezy.

pi@raspberrypi ~/rf-bitbanger/rfbb $ rfbb_cmd -d /dev/rfbb -i RFBB -p SARTANO -c 1111110000 -l 1 -v
SARTANO protocol selected
Channel: 1111110000, on_off: 1
Selected RFBB interface (RF Bitbanger)
Writing 200 pulse_space_items, (800 bytes) to /dev/rfbb
Error writing to RFBB device: Invalid argument

pi@raspberrypi ~/rf-bitbanger/rfbb $ uname -a
Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l GNU/Linux
pi@raspberrypi ~/rf-bitbanger/rfbb $

"make KERNELDIR=~/linux" gives error

Hi, the make command gives this error:

$ make KERNELDIR=~/linux
make -C /home/pi/linux M=/home/pi/AanUit/rfbb/rf-bitbanger/rfbb modules
make: *** /home/pi/linux: No such file or directory. Stop.
make: *** [default] Error 2

Should I have/create a full kernel source in ~/linux?

As a test, I unpacked a full kernel source in ~/linux-source/linux-source-3.2/ and tried that:

pi@raspberrypi /AanUit/rfbb/rf-bitbanger/rfbb $ make KERNELDIR=/linux-source/linux-source-3.2/
make -C /home/pi/linux-source/linux-source-3.2/ M=/home/pi/AanUit/rfbb/rf-bitbanger/rfbb modules
make[1]: Entering directory `/home/pi/linux-source/linux-source-3.2'

WARNING: Symbol version dump /home/pi/linux-source/linux-source-3.2/Module.symvers
is missing; modules will have no dependencies and modversions.

Building modules, stage 2.
MODPOST 1 modules
CC /home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.o
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:8:1: error: variable ‘__this_module’ has initializer but incomplete type
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:9:2: error: unknown field ‘name’ specified in initializer
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:9:2: warning: excess elements in struct initializer [enabled by default]
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:9:2: warning: (near initialization for ‘__this_module’) [enabled by default]
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:10:2: error: unknown field ‘init’ specified in initializer
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:10:2: warning: excess elements in struct initializer [enabled by default]
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:10:2: warning: (near initialization for ‘__this_module’) [enabled by default]
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:14:2: error: unknown field ‘arch’ specified in initializer
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:14:10: error: ‘MODULE_ARCH_INIT’ undeclared here (not in a function)
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:14:2: warning: excess elements in struct initializer [enabled by default]
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:14:2: warning: (near initialization for ‘__this_module’) [enabled by default]
make[2]: *** [/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.o] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/pi/linux-source/linux-source-3.2'
make: *** [default] Error 2
pi@raspberrypi ~/AanUit/rfbb/rf-bitbanger/rfbb $

Any tips how to get rfbb on my Raspi? Would a ready-to-install rfbb.o / rfbb.ko work, or does it need hooks in the kernel? Or even recompiling the whole kernel?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.