[U-Boot] [RFC PATCH 7/7] Switch am335x_evm.h to use config_distro_defaults and config_distro_bootcmd. Add scriptaddr to DEFAULT_LINUX_BOOT_ENV, as scriptaddr is used for boot scripts in config_distro_bootcmd.

Rob Herring robherring2 at gmail.com
Mon Oct 27 06:33:33 CET 2014


On Sat, Oct 25, 2014 at 12:22 AM, Dennis Gilmore <dennis at ausil.us> wrote:
> On Fri,  3 Oct 2014 15:08:43 -0700
> Vagrant Cascadian <vagrant at debian.org> wrote:
>
>> Signed-off-by: Vagrant Cascadian <vagrant at debian.org>
>> ---
>>
>>  include/configs/am335x_evm.h      | 26 +++++++++++++++++---------
>>  include/configs/ti_armv7_common.h |  1 +
>>  2 files changed, 18 insertions(+), 9 deletions(-)
>>
>> diff --git a/include/configs/am335x_evm.h
>> b/include/configs/am335x_evm.h index e2f7ead..b25d990 100644
>> --- a/include/configs/am335x_evm.h
>> +++ b/include/configs/am335x_evm.h
>> @@ -18,6 +18,21 @@
>>
>>  #include <configs/ti_am335x_common.h>
>>
>> +#include <config_distro_defaults.h>
>> +
>> +#define BOOTENV_BOOT_PARTITIONS "2"
>
> On Fedora we use partition 1 everywhere for /boot so this should be "1
> 2" though partition 2 is swap in out standard images. we really need to
> read the partition table and find the bootable partition.

u-boot already supports looking for the (1st) bootable partition.
Giving "<dev>:-" for commands will do that. I think that only works
for DOS partititons, so we need to do something different for GPT
partitions like looking for a certain UUID.

> We are defaulting to telling people to put u-boot and the MLO in raw
> disk space.

Really? I'd think we'd want this to be a raw partition at least to be
discoverable in some way. What the SOC ROM codes require is probably
all over the map, so we can really only define what we would like to
see.

Rob


More information about the U-Boot mailing list