From: Tom Rini Date: Thu, 18 Jul 2019 19:58:11 -0400 Subject: [U-Boot] [PATCH v2 2/2] arm: qemu: fix failure in flash initialization if booting from TF-A In-Reply-To: <20190703014440.25449-3-takahiro.akashi@linaro.org> References: <20190703014440.25449-1-takahiro.akashi@linaro.org> <20190703014440.25449-3-takahiro.akashi@linaro.org> Message-ID: <20190718235811.GG20116@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Tested-by: Heinrich Schuchardt 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: