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 v2 2/2] arm: qemu: fix failure in flash initialization if booting from TF-A
Date: Thu, 18 Jul 2019 19:58:11 -0400	[thread overview]
Message-ID: <20190718235811.GG20116@bill-the-cat> (raw)
In-Reply-To: <20190703014440.25449-3-takahiro.akashi@linaro.org>

On Wed, Jul 03, 2019 at 10:44:40AM +0900, AKASHI Takahiro wrote:

> If U-Boot is loaded and started from TF-A (you need to change
> SYS_TEXT_BASE to 0x60000000), it will hang up at flash initialization.
> 
> If secure mode is off (default, or -machine virt,secure=off) at qemu,
> it will provide dtb with two flash memory banks:
> 	flash at 0 {
> 		bank-width = <0x4>;
> 		reg = <0x0 0x0 0x0 0x4000000 0x0 0x4000000 0x0 0x4000000>;
> 		compatible = "cfi-flash";
> 	};
> If secure mode is on, on the other hand, qemu provides dtb with 1 bank:
> 	flash at 0 {
> 		bank-width = <0x4>;
> 		reg = <0x0 0x4000000 0x0 0x4000000>;
> 		compatible = "cfi-flash";
> 	};
> 
> As a result, flash_init()/flash_get_size() will eventually fail.
> With this patch applied, relevant CONFIG values are modified.
> 
> Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
> Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190718/4a70447f/attachment.sig>

  reply	other threads:[~2019-07-18 23:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-03  1:44 [U-Boot] [PATCH v2 0/2] arm: qemu: fix failure if booting from TF-A AKASHI Takahiro
2019-07-03  1:44 ` [U-Boot] [PATCH v2 1/2] arm: move CONFIG_TFABOOT to generic Kconfig AKASHI Takahiro
2019-07-18 23:57   ` Tom Rini
2019-07-03  1:44 ` [U-Boot] [PATCH v2 2/2] arm: qemu: fix failure in flash initialization if booting from TF-A AKASHI Takahiro
2019-07-18 23:58   ` Tom Rini [this message]
2019-07-16  2:50 ` [U-Boot] [PATCH v2 0/2] arm: qemu: fix failure " AKASHI Takahiro

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=20190718235811.GG20116@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