• Update on setting up Ubuntu in order to build kernel modules

    by  • February 22, 2010 • kernel module, linux • 2 Comments

    As an update to my “hello world” kernel module article, there is a much easier way to set up your Debian-based Linux (including Ubuntu) to build kernel modules, without manually getting the relevant kernel headers using apt-get.

    I’ve tested this process with Ubuntu 8.04, 9.04 and 9.10 and it works great. Do the following to set up your Debian-based Linux environment for building kernel modules.

    1. sudo su
    2. apt-get install module-assistant
    3. m-a prepare

    m-a (module assistant), will set up the appropriate build environment for you (including correct linux-headers and build-essential)
    You can now skip to code part of the original article :)

    Reference: http://wiki.debian.org/ModuleAssistant

    About

    .NET developer at thetrainline.com, previously web developer at MRM Meteorite. Awarded a PhD in misbehaviour detection in wireless ad-hoc networks.A keen C# ASP.net developer bridging the gap with APIs and JavaScript frameworks, one web app at a time.

    http://www.paulkiddie.com

    2 Responses to Update on setting up Ubuntu in order to build kernel modules

    1. Pingback: Paul Kiddie’s Blog : Creating a “hello world” kernel module in linux

    2. Pingback: Linux kernel programming(I) | BaremaNet

    Leave a Reply

    Your email address will not be published. Required fields are marked *