EmbeddedPkg Fdt

Jordan Justen edited this page Sep 4, 2014 · 1 revision

Device Tree (DT) is a format used to describe the hardware resources of a specific platform. Lbfdt library (dual license - BSD/GPL) is often used to read or modify the information of the FDT (Flat Device Tree).

The current version of EDK2 used libdft from Wednesday 16th January 2014.

    Tag Version 1.4.0
    Signed-off-by: Jon Loeliger <jdl@jdl.com>
  • Here are the instructions to update the version of libfdt:
1. Clone the dtc into a temporary directory:
cd $(EDK2_ROOT)/EmbeddedPkg/Library
git clone git://git.jdl.com/software/dtc.git

2. Copy the content of 'libfdt' into EmbeddedPkg/Library/FdtLib/

cd dtc
cp -a libfdt/* ../FdtLib/

3. Copy the libfdt headers:

mv ../FdtLib/libfdt.h ../../Include/
mv ../FdtLib/fdt.h ../../Include/
rm ../FdtLib/libfdt_env.h
  • To add libfdt support to your EDK2 firmware, add the following line to your platform DSC file (required by BdsLib):
Clone this wiki locally
You can’t perform that action at this time.
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.
Press h to open a hovercard with more details.