Linux device driver development cookbook

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Example code from the book «Linux Device Driver Development Cookbook» by Rodolfo Giometti — Packt Publishing

License

giometti/linux_device_driver_development_cookbook

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Linux Device Driver Development Cookbook

Here the code from the book «Linux Device Driver Development Cookbook» written by Rodolfo Giometti and published by Packt Publishing (ISBN 978-1-83855-880-2).

These code examples are presented into the book in order to explain to the reader how to implements the several projects presented into the book.

When not specified into each file header, all the code is published with the GNU General Public License Version 2 as reported into file LICENSE in the root directory of this repository.

Downloading/updating the code

To get the latest version of this example codes just use the command:

$ git clone https://github.com/giometti/linux_device_driver_development_cookbook.git 

Or, if you have an older version or you are using the Packt Publishing’s code bundle and you think it’s not updated, you can get the latest version by using the command:

Читайте также:  Yum install linux headers

About

Example code from the book «Linux Device Driver Development Cookbook» by Rodolfo Giometti — Packt Publishing

Источник

Linux Device Driver Development Cookbook

Linux is a unified kernel that is widely used to develop embedded systems. As Linux has turned out to be one of the most popular operating systems used, the interest in developing proprietary device drivers has also increased. Device drivers play a critical role in how the system performs and ensures that the device works in the manner intended.

By offering several examples on the development of character devices and how to use other kernel internals, such as interrupts, kernel timers, and wait queue, as well as how to manage a device tree, you will be able to add proper management for custom peripherals to your embedded system. You will begin by installing the Linux kernel and then configuring it. Once you have installed the system, you will learn to use the different kernel features and the character drivers. You will also cover interrupts in-depth and how you can manage them. Later, you will get into the kernel internals required for developing applications. Next, you will implement advanced character drivers and also become an expert in writing important Linux device drivers.

By the end of the book, you will be able to easily write a custom character driver and kernel code as per your requirements.

What you will learn

  • Become familiar with the latest kernel releases (4.19+/5.x) running on the ESPRESSObin devkit, an ARM 64-bit machine
  • Download, configure, modify, and build kernel sources
  • Add and remove a device driver or a module from the kernel
  • Master kernel programming
  • Understand how to implement character drivers to manage different kinds of computer peripherals
  • Become well versed with kernel helper functions and objects that can be used to build kernel applications
  • Acquire a knowledge of in-depth concepts to manage custom hardware with Linux from both the kernel and user space

Who this book is for

This book will help anyone who wants to develop their own Linux device drivers for embedded systems. Having basic hand-on with Linux operating system and embedded concepts is necessary.

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Читайте также:  Text editor linux command line

Linux Device Driver Development Cookbook, published by Packt

License

PacktPublishing/Linux-Device-Driver-Development-Cookbook

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Linux Device Driver Development Cookbook

Linux Device Driver Development Cookbook

This is the code repository for Linux Device Driver Development Cookbook, published by Packt.

Develop custom drivers for your embedded Linux applications

Device drivers play a critical role in how the system performs and ensures that the device works in the intended way. With a recipe based approach this book gives you practical recipes on character drivers and related kernel internals. It shows you how to start writing Linux device drivers and tools to understand, debug or modify them.

This book covers the following exciting features:

  • Become familiar with the latest kernel releases (4.19+/5.x) running on the ESPRESSObin devkit, an ARM 64-bit machine
  • Download, configure, modify, and build kernel sources
  • Add and remove a device driver or a module from the kernel
  • Master kernel programming
  • Understand how to implement character drivers to manage different kinds of computer peripheral
  • Become well versed with kernel helper functions and objects that can be used to build kernel applications
  • Acquire a knowledge of in-depth concepts to manage custom hardware with Linux from both the kernel and user space

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

[ 3.421397] mvneta d0030000.ethernet eth0: Using random mac address 3e:a1:6b: f5:c3:2f 

Following is what you need for this book: This book will help anyone who wants to develop their own Linux device drivers for embedded systems. Having basic hand-on with Linux operating system and embedded concepts is necessary.

With the following software and hardware list you can run all code files present in the book (Chapter 1-9).

Читайте также:  Linux mint установить драйвер wifi

Software and Hardware List

Chapter Software required OS required
1-7 Text editor such as vi , emacs, or nano Ubuntu 18.04.1 LTS Linux, Windows, macOS

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

  • Mastering Embedded Linux Programming — Second Edition [Packt][Amazon]
  • Embedded Linux Development Using Yocto Project Cookbook — Second Edition [Packt][Amazon]

Rodolfo Giometti is an engineer, IT specialist, GNU/Linux expert and software libre evangelist. He is the author of the books BeagleBone Essentials, BeagleBone Home Automation Blueprints and GNU/Linux Rapid Embedded Programming by Packt Publishing and maintainer of the LinuxPPS projects. He still actively contributes to the Linux source code with several patches and new device drivers for industrial applications devices.

During his 20+ years of experience, he has worked on the x86, ARM, MIPS, and PowerPC-based platforms.

Now, he is the co-chief at HCE Engineering S.r.l., where he designs new hardware and software systems for the quick prototyping in industry environment, control automation, and remote monitoring.

Click here if you have any feedback or suggestions.

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

About

Linux Device Driver Development Cookbook, published by Packt

Источник

Разработка драйвера устройств Linux

Все права защищены. Никакая часть этой книги не может быть воспроизведена, сохранена в поисковой системе или передана в любой форме или любыми средствами без предварительного письменного разрешения издателя, за исключением случаев кратких цитат, встроенных в критические статьи и обзоры.

При подготовке этой книги были предприняты все усилия чтобы гарантировать точность представленной информации. Тем не менее, информация, содержащаяся в этой книге, продаётся без гарантии в явном или неявном виде. Ни авторы, ни Packt Publishing, ни их дилеры и дистрибьюторы не будут нести ответственность за любые убытки, вызванные или предположительно вызванные прямо или косвенно этой книгой.

Packt Publishing пыталась предоставить информацию о товарных знаках обо всех компаниях и продуктов, упомянутых в данной книге для надлежащего использования капиталов. Тем не менее, Packt Publishing не может гарантировать точность этой информации.

Опубликовано Packt Publishing Ltd.

Состав исполнителей

Автор Джон Мадьё Рецензент Редактор выпуска Мита Раджани Редактор разработки содержания Абхишек Джадхав Технический редактор Маниш Д. Шанбханг Литературный редактор Safis Editing Джулиана Нейр Координатор проекта Джуди Хосе Корректор Safis Editing Составитель указателя Теджал Сони Дарувала Координатор производства Апарна Бхагат Графика Кирк Д’Пенья Вайбхав Бхембре Энтони Д’Атри Сьюзан Д’Атри

Об авторе

Источник

Оцените статью
Adblock
detector