Code Monkey home page Code Monkey logo

meta-hello's Introduction

#This README file contains information on the contents of the meta-hello layer.

Dependencies
============

  URI: <Yocto image with dunfell branch>
    branch: <Dunfell>
  URI: <Linux headers version>
    version: 5.15.0-52-generic
  
Table of Contents
=================

  I. Conf directory:
    This folder contain the layer configuration and the recipes path and the layer priority etc.
    
 II. Recipes-exemple:
    The reciepces example folder contain a simple recipe as an example that is created by bitbake,
    to show the overall reciepe structure.
   
 III. Hello:
    The "Helo" folder is the main recipe of the driver itself: it contain a folder within the driver source code and its makefle in it,
    and also it contains the recipe of this driver that must include the source code and the makefile as "SRC_URI" fields,
    and other fields like package provided and the LICENCE ...
    
Adding the meta-hello layer to your build:
==========================================

Run 'bitbake-layers add-layer meta-hello' and thats it!

To execute run:
===============
   1. To load the driver into the kernel :
        $ sudo insmode /lib/modules/(your-kernel-version)/extra/hello.ko
   2. To see the output in logs:
        $ dmesg | tail 2
   3. To unload the driver from the kernel:
        $ sudo rmmode hello.ko
   
! Important:
============

  To prevent errors !!! First you should :
      1. Take in consideration you kernel version and the linux hearders headers version used in the driver, they should be compatible!!!
      2. Make sure about the poky distro you workd with, it may cause some sythanxes error in reciepes if it is not compatible!
      3. Add "IMAGE_INSTALL_APPEND = hello" to your local.conf file, otherwise this module will compile but never shows in your linux image!
      


* You can find explanation about the driver here : https://medium.com/@TheLittleNaruto/writing-hello-world-driver-for-the-linux-kernel-d591a2fa214b

meta-hello's People

Contributors

benali-samar avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.