[linux-yocto] Modify the device trees for sama5d35-xplained

Morgan Guillou mguillou at pixelsurmer.com
Fri Jan 15 11:00:46 PST 2016

Thanks Bruce  for the answer,
So I did:
#bitbake -f -c compile core-image-minimal
#bitbake core-image-minimal
It repackaging rootfs.ubi and ubi files, but no dtb files !
What's wrong ?

-----Message d'origine-----
De : Bruce Ashfield [mailto:bruce.ashfield at windriver.com] 
Envoyé : vendredi 15 janvier 2016 19:43
À : Morgan Guillou; linux-yocto at yoctoproject.org
Objet : Re: [linux-yocto] Modify the device trees for sama5d35-xplained

On 16-01-15 01:24 PM, Morgan Guillou wrote:
> I've been working with hardware sama5d35-xplained.
> I used the at91 tutorial to compile and install yocto distribution on 
> the target, that's fine.
> My next step is to redefine one interface that is custom to my board, 
> I want to enable the USART2.
> I modify the dts file:
> "/poky/build-atmel/tmp/work-shared/sama5d3-xplained/kernel-source/arch/arm/boot/dts/at91-sama5d3_xplained.dts"
> to add :
> usart2: serial at f8020000{
> Pinctrl-0 = <&pinctrl_usart2>;
> Status = "okay":
> };
> Maybe I'm just tired, or maybe this is just hard... but the dtb file 
> is not updated when I run bitbake.

bitbake won't know that you've updated the source. So you'll need to force a re-compile of the kernel, and then rebuild your image.

bitbake -f -c compile <your kernel recipe>

And then you should see things repackaging next time you build the image.


> So do I have to manually compile the dts file or is there some way to 
> do it via "bitbake core-image-minimal" ?
> Thanks,
> Morgan.

More information about the linux-yocto mailing list