GithubHelp home page GithubHelp logo

readysteadygo2006 / rpi-kmod-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wendlers/rpi-kmod-samples

0.0 2.0 0.0 134 KB

Set of example kernel-modules for the Raspberry Pi (includes basic module sample as well as samples for GPIOs, GPIO-interrupts)

License: GNU General Public License v3.0

rpi-kmod-samples's Introduction

rpi-kmod-samples

Set of example kernel-modules for the Raspberry Pi (includes basic module sample as well as samples for GPIOs, GPIO-interrupts)

Prerequisites

To compile the module examples, a cross-compiler for the PI is need. For more details on how to install a suitable cross-compiler for the Pi, see this [description] (http://elinux.org/RPi_Kernel_Compilation).

Also make sure, to adjust the path to your cross-compiler in setenv.sh.

Compilation

In the top-level directory first make sure your cross-compile environment is set propperly in setenv.sh. Then source it by issuing:

source ./setenv.sh

Now, build everything with

make

This may take some time, since it downloads the Pi kernel sources, and also compiles them (otherwise you will not be able to produce any modules).

The resulting modules (the examples and the default modules) could then be found under sysroot. For easier transfer to the Pi, also an archive rpi-modtest-sysroot.tar.bz2 is provided. For transfering the modules to the Pi, again see this [page] (http://elinux.org/RPi_Kernel_Compilation).

Usage

TODO

rpi-kmod-samples's People

Contributors

wendlers avatar

Watchers

 avatar  avatar

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.