public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] arm: vf610: move device tree after kernel image
Date: Wed, 14 Oct 2015 08:39:24 -0400	[thread overview]
Message-ID: <20151014123924.GU23893@bill-the-cat> (raw)
In-Reply-To: <1444803105-3312-1-git-send-email-stefan@agner.ch>

On Tue, Oct 13, 2015 at 11:11:45PM -0700, Stefan Agner wrote:

> Since the device tree relocation is disabled (fdt_high set to
> 0xffffffff), U-Boot keeps the device tree at its load address
> 0x81000000. The kernel uncompresses itself to 0x80008000 by
> default, hence this limits the maximum (uncompressed) kernel
> size to somewhat below 16MiB, otherwise the device tree gets
> overwritten by the kernel data...
> 
> Move the device tree load address to 0x84000000 to avoid that
> the device tree being overwritten by the kernel.
> 
> Signed-off-by: Stefan Agner <stefan@agner.ch>
> ---
>  include/configs/vf610twr.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/configs/vf610twr.h b/include/configs/vf610twr.h
> index 324ba8f..1d15f35 100644
> --- a/include/configs/vf610twr.h
> +++ b/include/configs/vf610twr.h
> @@ -129,7 +129,7 @@
>  	"fdt_high=0xffffffff\0" \
>  	"initrd_high=0xffffffff\0" \
>  	"fdt_file=vf610-twr.dtb\0" \
> -	"fdt_addr=0x81000000\0" \
> +	"fdt_addr=0x84000000\0" \
>  	"boot_fdt=try\0" \
>  	"ip_dyn=yes\0" \
>  	"mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \

OK, this is all wrong :(  Please take a look at
include/configs/ti_armv7_common.h and DEFAULT_LINUX_BOOT_ENV (and the
giant comment block explaining the values).

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151014/22d3c53f/attachment.sig>

  parent reply	other threads:[~2015-10-14 12:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-14  6:11 [U-Boot] [PATCH] arm: vf610: move device tree after kernel image Stefan Agner
2015-10-14  8:36 ` Albert ARIBAUD
2015-10-14  9:08   ` Albert ARIBAUD
2015-10-14 17:45   ` Stefan Agner
2015-10-14 18:41     ` Albert ARIBAUD
2015-10-14 12:39 ` Tom Rini [this message]
2015-10-14 16:05   ` Stefan Agner
2015-10-14 16:36     ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151014123924.GU23893@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox