Giter VIP home page Giter VIP logo

module_build's Introduction

Module_build

on Sparky (ubuntu 12.04 image) compile driver modules , steps explained below.

login as root

Download latest updates.

apt-get update

#***************************** note: if the sd card not fully configured use parted (version 3.2) tool to resize the partition. check df -h ,on 8GB sd card size should show above 7GB.

parted /dev/mmcblk0

(parted)resizepart 2

warning:partition /dev/mmcblk0p2 is being used. Are you sure you want to continue?

yes/No?yes

End? [7xGB]? -1

(parted)q

reboot the board and on terminal enter the command

root@sparky#resize2fs /dev/mmcblk0p2/ .. The filesystem on /dev/mmcblk0p2 is now xxxxxx blocks long

root@sparky#df -h

#*********************************************** Refer Module-build-sparky.pdf

Download linux kernel source, this is needed to compile the driver module.

cd /usr/src

git clone https://github.com/sparkysbc/Linux.git

sudo rm /lib/modules/uname -r/build

sudo rmi /lib/modules/uname -r/source

sudo ln -s /usr/src/Linux /lib/modules/uname -r/build

cd Linux

Prepare the kernel with the current kernel config from the running system

make mrproper

or download the same from below links

wget https://raw.githubusercontent.com/sparkysbc/Module_build/master/.config

(current config available on /boot/)

Download the module symbols of the current kernel.

wget https://raw.githubusercontent.com/sparkysbc/Module_build/master/Module.symvers

make modules_prepare

#*******************************

module_build's People

Contributors

alloboss2 avatar sparkysbc avatar

Watchers

 avatar

Forkers

acidburn0zzz

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.