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

2019-03-29 Thread Eugeniu Rosca
Hi Sam,

On Fri, Mar 29, 2019 at 05:20:33PM +0200, Sam Protsenko wrote:
> Hi Eugeniu,
[..]
> 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  (...)
> 
> options:
>   -o, --output   Output file name.
>Default is output to stdout.
>   -b, --dtb  Dump dtb/dtbo files from image.
>Will output to .0, .1, etc.

The feature works as expected. Thanks!

> 
> > > Many thanks,
> > > Eugeniu.
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


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

2019-03-29 Thread Sam Protsenko
Hi Eugeniu,

On Mon, Mar 18, 2019 at 9:42 PM Eugeniu Rosca  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  (...)

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

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

> > Many thanks,
> > Eugeniu.
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


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

2019-03-18 Thread Eugeniu Rosca
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

> Many thanks,
> Eugeniu.
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


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

2019-03-14 Thread Eugeniu Rosca
Hi Sam,

On April 16, 2018, 8:32 p.m., Sam Protsenko wrote:
[..]
> 1. Prepare dtb.img and dtbo.img images, generated with mkdtimg tool (can
>be found in Android sources, see prebuilts/misc/linux-x86/libufdt).
>Example:
>
>   $ ./mkdtimg create dtb.img\
>  am57xx-beagle-x15.dtb  --id=0  \
>  am57xx-beagle-x15-revc.dtb --id=1
[..]

Thanks for the verbose and helpful descriptions above, which now serve
as source of inspiration for how to implement Android booting on other
platforms.

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. It seems doable on the target via the 'dtimg' U-Boot
command. Is there any off-the-shelf tooling to achieve this on the host?

Many thanks,
Eugeniu.
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot