[U-Boot] [5/5] arm: ti: boot: Implement Android boot using DT image format

Sam Protsenko semen.protsenko at linaro.org
Fri Mar 29 15:20:33 UTC 2019


Hi Eugeniu,

On Mon, Mar 18, 2019 at 9:42 PM Eugeniu Rosca <erosca at de.adit-jv.com> wrote:
>
> On Thu, Mar 14, 2019 at 04:19:31PM +0100, Eugeniu Rosca wrote:
> [..]
> >
> > Both 'mkdtimg' tool and the 'mkdtboimg.py' script seem to lack the
> > capability of extracting the original dtb/dtbo blobs from the
> > dtb{o}.img file.
> [..]
>
> jFTR, below 'dd' workaround comes to the rescue.
>
> $ dd skip="dt_table_entry[i]->dt_offset" \
>     count="dt_table_entry[i]->dt_size"   \
>     if=dtb.img of=i.dtb bs=1
>

Just checked in AOSP/master, seems like the feature is there, it's
called "dump".

    $ mkdtimg dump dtbo.img --dtb filename

For details see:

    $ mkdtimg help dump

    mkdtimg dump <image_file> (<option>...)

    options:
      -o, --output <filename>  Output file name.
                               Default is output to stdout.
      -b, --dtb <filename>     Dump dtb/dtbo files from image.
                               Will output to <filename>.0, <filename>.1, etc.

You can convert dtb to dts further, using "dtc" tool.

> > Many thanks,
> > Eugeniu.


More information about the U-Boot mailing list