[U-Boot] FIT: how to store MACs in a DTB

Yegor Yefremov yegorslists at googlemail.com
Thu Jun 19 13:21:27 CEST 2014


On Thu, Jun 12, 2014 at 10:58 PM, Wolfgang Denk <wd at denx.de> wrote:
> Dear Yegor Yefremov,
>
> In message <CAGm1_kucufez-F3+1YnaeofQq1QcE+yi2r=hDMNGSTpxYBmbsw at mail.gmail.com> you wrote:
>> AFAIK one can store MACs in a DTB from u-boot via loading DTB in RAM
>> and changing nodes values. How should this work with a FIT image? Is
>> there any howto?
>
> DTB handling and image format are indepenent from each other, so this
> has nothing to do with FIT (or any other) image types.
>
> You can either hard code the MAC address(es) in your DT, or you can
> have U-Boot insert / update these.  This gets done after loading the
> DT from the image (no matter what image format is being used) and
> before passing it to the Linux kernel.

I just had to define CONFIG_OF_BOARD_SETUP and implement ft_board_setup().

Thanks.

Yegor


More information about the U-Boot mailing list