Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Embedded Linux Development Using Yocto Project Cookbook. - Second Edition

You're reading from  Embedded Linux Development Using Yocto Project Cookbook. - Second Edition

Product type Book
Published in Jan 2018
Publisher
ISBN-13 9781788399210
Pages 456 pages
Edition 2nd Edition
Languages
Author (1):
Alex Gonzalez Alex Gonzalez
Profile icon Alex Gonzalez

Table of Contents (13) Chapters

Title Page
Dedication
Packt Upsell
Foreword
Contributors
Preface
The Build System The BSP Layer The Software Layer Application Development Debugging, Tracing, and Profiling Other Books You May Enjoy Index

Debugging device tree issues


This recipe will show some techniques to debug common problems with the device tree.

How to do it...

As mentioned before, problems with the syntax of device tree files usually result in the kernel crashing early in the boot process. Other types of problems are more subtle and usually appear once a driver is making use of the information provided by the device tree. For both types of problems, it is helpful to be able to look not only at the device tree syntax file, but also at the device tree blob, as it is read by both U-Boot and the Linux kernel. It may also be helpful to modify the device tree on the fly using the tools that U-Boot offers.

How it works...

Let's see how to access the device tree at runtime, both from a running U-Boot and Linux.

Looking at the device tree from U-Boot

The U-Boot bootloader offers the fdt command to interact with a device tree blob. In the Wandboard's default environment, there are two variables related to the device tree:

  • fdtfile: This...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}