Giter VIP home page Giter VIP logo

lora-modules's Introduction

LoRa modules for Linux

This repository used to contain source code of Linux kernel modules for a PF_LORA socket implementation and multiple chipset drivers.

Today it contains a Makefile for building those modules from an external Linux repository.

It also contains a userspace example program for sending a packet.

Usage

To build the kernel modules for a distro kernel (e.g., openSUSE Tumbleweed):

$ git clone https://github.com/afaerber/lora-modules.git
$ cd lora-modules
$ git clone https://git.kernel.org/pub/scm/linux/kernel/git/afaerber/linux-lora.git -b lora-next

Review the lora-modules.git file include/linux/lora.h, which reuses some existing number for AF_LORA lower than AF_MAX, as well as two free-at-the-time ARPHRD and ETH_P numbers. You may need to change these numbers to avoid conflicts.

$ make

Before you attempt to load any of the modules, always review what they are currently doing! They might have a frequency hardcoded not suited for your region, or might do other unexpected things for testing purposes.

To go ahead and load the modules locally, tainting your kernel:

# ./load.sh

That will insmod the set of drivers, but the chipset drivers won't probe unless you're using a Device Tree Overlay for your board and chipset.

Device Tree Overlays

Examples of DT Overlays can be found here: https://github.com/afaerber/dt-overlays

To apply a DT Overlay on the Raspberry Pi, use dtoverlay=foo in config.txt (extraconfig.txt on openSUSE and SUSE Linux Enterprise Server 15).

To apply a DT Overlay on boards using U-Boot, use the fdt apply command.

On other boards you may have to resort to replacing the whole Device Tree.

Browse the openSUSE HCL Wiki for specific expansion board instructions.

Have a lot of fun!

lora-modules's People

Contributors

afaerber 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  avatar

Watchers

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

lora-modules's Issues

Error from make

Dear Andreas, I followed your instructions but after make, I have the following error:
/lora-modules/linux/net/fsk/netlink.c:80:4: error: ‘const struct genl_ops’ has no member named ‘policy’
.policy = nlfsk_policy,
^~~~~~
/lora-modules/linux/net/fsk/netlink.c:80:13: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.policy = nlfsk_policy,
My set up is Ubuntu 18.04.4 LTS
GCC 7.5.0
GNU Make 4.1

I'm a newbie in Linux and I don't know if I am doing something wrong. Thank you for your patience
Eduardo (from Argentina)

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.