Skip to content

u-dma-buf(User space mappable DMA Buffer) kernel module debian package

Notifications You must be signed in to change notification settings

ikwzm/u-dma-buf-kmod-dpkg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 v5.0.0 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_5.0.0-0_armhf.deb 
../u-dma-buf-6.1.33-armv7-fpga_5.0.0-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_5.0.0-0_armhf.deb 
../u-dma-buf-6.1.33-armv7-fpga_5.0.0-0_armhf.deb: Debian binary package (format 2.0), with control.tar.zs, data compression zst

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+_5.0.0-0_arm64.deb
../u-dma-buf-6.1.21-v8+_5.0.0-0_arm64.deb: Debian binary package (format 2.0), with control.tar.zs, data compression zst

About

u-dma-buf(User space mappable DMA Buffer) kernel module debian package

Resources

Stars

Watchers

Forks

Packages

No packages published