benali-samar / meta-hello Goto Github PK
View Code? Open in Web Editor NEWA yocto layer for a hello world linux driver
License: MIT License
A yocto layer for a hello world linux driver
License: MIT License
#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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.