Hi,

i wan't to add rockchip nand boot image support to u-boot. Format:

* 512b rc4 encrypted boot header with size aligned to nand page size,

* first 2048b rc4 encrypted tpl data aligned to nand page size

* empty page

* second 2048b rc4 encrypted tpl data aligned to nand page size

* empty page

* n 2048b rc4 encrypted tpl data aligned to nand page size
...

* empty page

* n 2048b rc4 encrypted spl data aligned to nand page size

...

All must fit in one nand block/erase size.


I can do it in two ways:

1. support it in mkimage, but to do that i need to pass some extra parameters to mkimage: nand page size, nand block size, number of empty pages in iteration, tpl and spl file name.

2. write an external tool.


What is the best way to do that? (1 or 2)

If 1 then what is the best way to pass this extra parameters (add a new arg option to mkimage ... -X mabe for extra params, or use external configuration file)?


Regards

Paweł


_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to