<div dir="ltr">I couldn't find any prior examples.  I'll ask upstream what they think.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 16, 2017 at 4:33 PM, Joel Stanley <span dir="ltr"><<a href="mailto:joel@jms.id.au" target="_blank">joel@jms.id.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Jan 12, 2017 at 1:13 PM, Rick Altherr <<a href="mailto:raltherr@google.com">raltherr@google.com</a>> wrote:<br>
> If the kernel FIT specifies a ramdisk, use it.  Otherwise, expect a<br>
> ramdisk at 0x20300000.<br>
><br>
> Signed-off-by: Rick Altherr <<a href="mailto:raltherr@google.com">raltherr@google.com</a>><br>
> ---<br>
><br>
>  include/configs/ast-common.h | 6 +++++-<br>
>  1 file changed, 5 insertions(+), 1 deletion(-)<br>
><br>
> diff --git a/include/configs/ast-common.h b/include/configs/ast-common.h<br>
> index b39ea33ce7..110c780070 100644<br>
> --- a/include/configs/ast-common.h<br>
> +++ b/include/configs/ast-common.h<br>
> @@ -96,7 +96,11 @@<br>
>  #define CONFIG_ENV_OFFSET              0x60000 /* environment starts here  */<br>
>  #define CONFIG_ENV_SIZE                        0x20000 /* Total Size of Environment Sector */<br>
><br>
> -#define CONFIG_BOOTCOMMAND     "bootm 20080000 20300000"<br>
> +#define CONFIG_BOOTCOMMAND     \<br>
> +       "fdt addr 20080000; " \<br>
> +       "if fdt get value ramdisk_conf /configurations/conf@1 ramdisk; then " \<br>
> +       "    bootm 20080000; else bootm 20080000 20300000; " \<br>
> +       "fi"<br>
<br>
</span>This feels a little clunky. Is this the method upstream suggests to<br>
solve this problem?<br>
<br>
Cheers,<br>
<br>
Joel<br>
</blockquote></div><br></div>