On Fri, Jun 14, 2019 at 05:01:26PM +0300, Igor Opaniuk wrote:

> From: Ruslan Trofymenko <ruslan.trofyme...@linaro.org>
> 
> This sub-command serves for getting the partition index from
> partition name. Also it can be used to test the existence of specified
> partition.
> 
> Use case:
> For example, in most CI environments this U-Boot command for automatic
> testing of Linux rootfs is used:
> 
>     => setenv bootpart 1:f
> 
> where 0xf is "userdata" partition. But the number of "userdata"
> partition can be changed any time, when partition table is changed.
> 
> So it would be nice to get rid of that 0xf magic number and use
> partition name instead, like this:
> 
>     => part number mmc 1 userdata part_num
>     => setenv bootpart 1:${part_num}
> 
> Signed-off-by: Ruslan Trofymenko <ruslan.trofyme...@linaro.org>
> Signed-off-by: Igor Opaniuk <igor.opan...@gmail.com>
> Reviewed-by: Alistair Strachan <astrac...@google.com>
> Reviewed-by: Sam Protsenko <semen.protse...@linaro.org>
> Reviewed-by: Simon Glass <s...@chromium.org>
> Reviewed-by: Sam Protsenko <semen.protse...@linaro.org>

Applied to u-boot/master, thanks!

-- 
Tom

Attachment: signature.asc
Description: PGP signature

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

Reply via email to