title: How to use an own device tree and modified kernel config in Yocto?
body: <p>I am working to build an own "embeeded linux" with yocto. It is based on the SAMA5D3x-MB + SAMA5D3x-CM(RONETIX) with the SAMA5D35. I have two questions:</p>
  
  <p>1.) changing the device tree</p>
  
  <p>I build an image based on: MACHINE ??= "sama5d3xek" </p>
  
  <p>After the generating process I found two device tree files for the 5D35 in the deploy dir:</p>
  
  <ul>
  <li>zImage--4.1+git0+19291d7be4-r0-sama5d35ek-.dtb</li>
  <li>zImage--4.1+git0+19291d7be4-r0-sama5d35ek-revc-.dtb</li>
  </ul>
  
  <p>Because the mainboard is revD I am using zImage--4.1+git0+19291d7be4-r0-sama5d35ek-.dtb.</p>
  
  <p>In this file only can0 and i2c1 are defined.</p>
  
  <p>I like to use can1 and i2c0 as well. For that I think I need to create a own dts file and include it into the kernel build process.</p>
  
  <p>So far I put the dts file at my meta-test recipe. Ideas how to copy/patch it into the kernel?</p>
  
  <p>2.) changing the kernel config</p>
  
  <p>I checked the kernel with
  bitbake virtual/kernel -c menuconfig</p>
  
  <p>because I am not using the SAMA5D2 etc. and only the console I deactivated these kernel configs. I saved the new ".config" to "my.config" into the my-recipe dir. I have a similar question like in 1 - How to patch/copy it into the kernel?</p>
  
  <p>I am new to yocto and to kernel hacking. Any idea how to do it?</p>