Build U-Boot and Linux Kernel from Source Code

Hi,
Here I am trying to do Build U-Boot and Linux Kernel from Source Code.
At the stage of building the Device Tree Compiler (DTC) Tool.
after executing the make command.
I was getting error.
The error message is
yamltree.c:9:10: fatal error: yaml.h: No such file or directory
** #include <yaml.h>**
^~~~~~~~
please some one help me to sortout this problem.

note :I was opend the dtc folder there is no (yaml.h) such file.

Greeting @TRINU

Could you provide the steps that you have followed? and also attach the full error log.
Hope you have followed devicetree-building(linux) article.

@ashok.tx
Hi,
I was not followed the devicetree-building(linux) article.

I was followed the Other Tools and Dependencies article.
Because i want to install first dependncies files.
In this article Other Tools and Dependencies.
I was run the some steps.
step1: ```

$ sudo apt-get install bc build-essential git libncurses5-dev lzop perl libssl-dev bison flex

step2:

$ git clone git://git.kernel.org/pub/scm/utils/dtc/dtc.git -b v1.6.0 ~/dtc

step3:

$ cd ~/dtc

step4:

$ make

after running the $ make command i was getting errors.
erreor logs:

please let me know i am in right way or not.

Hi @TRINU

Looks like you have not installed pkg-config in your development PC.install pkg-config and try again
sudo apt-get install -y pkg-config

after installing “ sudo apt-get install -y pkg-config
some other errors are getting.
error msg

@ashok.tx
Ashok we will close this topic why becouse.
with out installing the Other Tools and Dependencies.
I am able to build the following.

  1. Building U-Boot.
  2. Building Linux Kernel.
  3. Building the Device Tree Overlays.

Thanks for your help

Hi @TRINU

You have to clean and then run the make command.

1. make clean
2. make

Hi @TRINU

Thanks, for the update.