[U-Boot] [PATCH v4 9/9] sandbox: add config_distro_defaults and config_distro_bootcmd

Simon Glass sjg at chromium.org
Tue Apr 14 00:34:27 CEST 2015


Hi Joe,

On 13 April 2015 at 16:28, Joe Hershberger <joe.hershberger at gmail.com> wrote:
> Hi Sjoerd,
>
>
> On Mon, Apr 13, 2015 at 5:07 PM, Simon Glass <sjg at chromium.org> wrote:
>>
>> Hi Sjoerd,
>>
>> On 13 April 2015 at 14:54, Sjoerd Simons <sjoerd.simons at collabora.co.uk>
>> wrote:
>> > Make the sandbox setup more generic/examplary by including
>> > config_distro_defaults.h and config_distro_bootcmd.h.
>> >
>> > Among other things this makes it easy to test whether images will boot
>> > though with the standard distro bootcmds by running e.g:
>> >   u-boot -c 'host bind 0 myimage.img ; boot'
>> >
>> > By default there are 2 target host devices to emulate device with
>> > multiple storage devices (e.g. internal ("host 0") and external
>> > ("host 1") and verify that the prioritization and fallbacks do work
>> > correctly.
>> >
>> > Signed-off-by: Sjoerd Simons <sjoerd.simons at collabora.co.uk>
>> > Reviewed by: Simon Glass <sjg at chromium.org>
>> > Acked-by: Simon Glass <sjg at chromium.org>
>>
>> Thanks for the updated patch. Please see my question below.
>>
>> >
>> > ---
>> >
>> > Changes in v4:
>> > - Adapt to sandbox networking support
>> >
>> > Changes in v3: None
>> > Changes in v2: None
>> >
>> >  include/configs/sandbox.h | 31 +++++++++++++++++++++++--------
>> >  1 file changed, 23 insertions(+), 8 deletions(-)
>> >
>> > diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
>> > index 0a36719..3bf45a2 100644
>> > --- a/include/configs/sandbox.h
>> > +++ b/include/configs/sandbox.h
>> > @@ -73,7 +73,6 @@
>> >  #define CONFIG_CMDLINE_EDITING
>> >  #define CONFIG_COMMAND_HISTORY
>> >  #define CONFIG_AUTO_COMPLETE
>> > -#define CONFIG_BOOTDELAY       3
>> >
>> >  #define CONFIG_ENV_SIZE                8192
>> >  #define CONFIG_ENV_IS_NOWHERE
>> > @@ -120,26 +119,31 @@
>> >
>> >  /* include default commands */
>> >  #include <config_cmd_default.h>
>> > +#include <config_distro_defaults.h>
>
> This include already has some of the commands removed below.
>
>> > +
>> > +#define BOOT_TARGET_DEVICES(func) \
>> > +       func(HOST, host, 1) \
>> > +       func(HOST, host, 0)
>> > +
>> > +#include <config_distro_bootcmd.h>
>> >
>> >  #define CONFIG_KEEP_SERVERADDR
>> >  #define CONFIG_UDP_CHECKSUM
>> >  #define CONFIG_CMD_LINK_LOCAL
>> >  #define CONFIG_CMD_CDP
>> >  #define CONFIG_CMD_DNS
>> > -#define CONFIG_CMD_NFS
>
> It looks like this one is already defined in config_cmd_default.h.
>
>> >  #define CONFIG_CMD_SNTP
>> >  #define CONFIG_TIMESTAMP
>> >  #define CONFIG_CMD_RARP
>> > -#define CONFIG_CMD_PING
>> > -#define CONFIG_CMD_DHCP
>> >  #define CONFIG_BOOTP_DNS
>> >  #define CONFIG_BOOTP_DNS2
>> > -#define CONFIG_BOOTP_GATEWAY
>> >  #define CONFIG_BOOTP_SEND_HOSTNAME
>> >  #define CONFIG_BOOTP_SERVERIP
>> > -#define CONFIG_BOOTP_SUBNETMASK
>>
>> Why are you removing these commands?
>
> I had the same reaction initially... These are being defined already in the
> new include above.
>

Ah, OK thanks.

- Simon


More information about the U-Boot mailing list