Giter Club home page Giter Club logo

u-dma-buf-kmod-dpkg's Introduction

u-dma-buf kernel module debian package

Overview

Introduction

This is a repository for making udmabuf kernel module debian package.

Udmabuf is a Linux device driver that allocates contiguous memory blocks in the kernel space as DMA buffers and makes them available from the user space.

For details of udmabuf, please refer to following URL.

Build Debian Package

Download repository

shell$ git clone --recursive --depth=1 -b v4.5.2 https://github.com/ikwzm/u-dma-buf-kmod-dpkg
shell$ cd u-dma-buf-kmod-dpkg

Cross Compile

Parameters

Parameter Name Description Default Value
kernel_release Kernel Release Name $(shell uname -r)
arch Architecture Name $(shell uname -m | sed -e s/arm.*/arm/ -e s/aarch64.*/arm64/)
deb_arch Debian Architecture Name $(shell dpkg --print-architecture)
kernel_src_dir Kernel Source Directory /lib/modules/$(kernel_release)/build
kernel_package Kernel Image Debian Package linux-image-$(kernel_release)
shell$ sudo debian/rules arch=arm deb_arch=armhf kernel_release=6.1.33-armv7-fpga kernel_src_dir=/usr/src/linux-6.1.33-armv7-fpga binary
    :
    :
    :
shell$ file ../u-dma-buf-6.1.33-armv7-fpga_4.5.2-0_armhf.deb 
../u-dma-buf-6.1.33-armv7-fpga_4.5.2-0_armhf.deb: Debian binary package (format 2.0), with control.tar.xz, data compression xz

Self Compile

shell$ sudo debian/rules binary
    :
    :
    :
shell$ file ../u-dma-buf-6.1.33-armv7-fpga_4.5.2-0_armhf.deb 
../u-dma-buf-6.1.33-armv7-fpga_4.5.2-0_armhf.deb: Debian binary package (format 2.0), with control.tar.xz, data compression xz

Self Compile on Raspberry Pi

shell$ sudo apt install raspberrypi-kernel-headers
shell$ sudo debian/rules kernel_package=raspberrypi-kernel binary
    :
    :
    :
shell$ file ../u-dma-buf-6.1.21-v8+_4.5.2-0_arm64.deb
../u-dma-buf-6.1.21-v8+_4.5.2-0_arm64.deb: Debian binary package (format 2.0), with control.tar.xz, data compression xz

u-dma-buf-kmod-dpkg's People

Contributors

ikwzm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

rrcoco mertdaver

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.