From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Wed, 13 Sep 2017 21:24:26 +0000 Subject: [U-Boot] [PATCH 04/15] spl: fit: simplify logic for FDT loading for non-OS boots References: <1505330989-25602-1-git-send-email-philipp.tomsich@theobroma-systems.com> <1505330989-25602-5-git-send-email-philipp.tomsich@theobroma-systems.com> <9880A2CA-9FFF-425E-A581-120F3BF5CAFA@theobroma-systems.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de On 09/13/2017 02:21 PM, Dr. Philipp Tomsich wrote: > York, >=20 >> On 13 Sep 2017, at 23:16, York Sun wrote: >> >> On 09/13/2017 12:30 PM, Philipp Tomsich wrote: >>> To better support bootin through an ATF or OPTEE, we need to >>> streamline some of the logic for when the FDT is appended to an image: >>> depending on the image type, we'd like to append the FDT not at all >>> (the case for the OS boot), to the 'firmware' image (if it is a >>> U-Boot) or to one of the loadables (if the 'firmware' is an ATF, an >>> OPTEE, or some other image-type and U-Boot is listed in the >>> loadabled). >>> >>> To achieve this goal, we drop the os_boot flag and track the type of >>> image loaded. If it is of type IH_OS_U_BOOT, we append the FDT. >>> >>> Signed-off-by: Philipp Tomsich >>> --- >>> >>> common/spl/spl_fit.c | 86 ++++++++++++++++++++++++++++++++++---------= --------- >>> 1 file changed, 56 insertions(+), 30 deletions(-) >> >> This change seems OK. Make sure you test booting OS. Let me know if you >> need help. >=20 > I=E2=80=99d appreciate if you could test this on your end as well. I curr= ently only > have test setups that need to go through ATF before entering an OS (as > the PSCI implementation lives in ATF). Philipp, I can test _this_ patch on my board. Looks like it doesn't depend on=20 other patches. York