Dies ist eine alte Version des Dokuments!


flink Linux Kernel Modules

This is the user documentation for the flink kernel modules. They offer drivers capabilities to communicate with various hardware interfaces. For more information about the inner workings and the driver API see flink Linux Kernel Modules on Github

Overview

Requirements

  • Linux based operating system
  • GCC 4.6 or newer
  • GNU make

Building

  • Clone git repository:
     git clone https://github.com/flink-project/flinkkmod.git
  • Choose the target plattform and find its appropriate kernel configuration together with the kernel headers. Find more help about this in Compiling a New Kernel

  • Build for the host plattform with:
    make
  • Build for a plattform different from the host with:
    make ARCH=arch CROSS_COMPILE=comp KERNELDIR=path

    with the following settings

    • arch: target plattform such as powerpc or arm
    • comp: cross compiler such as powerpc-linux-gnu- or arm-linux-gnueabi-
    • path: path to kernel headers

  • The makefile will switch to the kernel directory, read the current configuration and compile all necessary flink kernel modules for the choosen target plattform.
  • Use depmod to create suitable dependency files for the new modules. This step is not necessary if modules are loaded with insmod.

Installation

  • Move new kernel modules into the default location to /lib/modules/version of the target plattform.
  • Load each module with insmod, e.g.
    insmod flink.ko
  • If dependency files were created beforehand its better to use
    modprobe flink.ko
  • Some kernel module must be loaded with the appropriate arguments according to the target board specifications (see below)

Module Parameters