[U-Boot] [RFC PATCH 1/7] Allow checking in multiple partitions for scan_dev_for_boot.

Stephen Warren swarren at nvidia.com
Tue Oct 7 05:48:07 CEST 2014


On 10/03/2014 03:08 PM, Vagrant Cascadian wrote:

Some standalone description of this change, and justification for it,
should really be present in the commit message. Patch 0/7 doesn't get
applied anywhere.

> diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h

> -	"bootpart=1\0" \
> +	"boot_partitions=1\0" \

Instead of searching a hard-coded list of partitions, I think it'd be
better to have the script automatically determine which partition to
boot from based on the partition tables' bootable flag or partition
type. I had always intended these scripts to do that, but never got
around to doing it. I think the $dev:$part syntax already chooses the
first partition marked bootable if you don't specify a partition. Would
that work?


More information about the U-Boot mailing list