From: Alexander Graf Date: Thu, 24 Jan 2019 12:18:07 +0100 Subject: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support In-Reply-To: References: <20190118111820.71349-1-anup.patel@wdc.com> <20190118111820.71349-12-anup.patel@wdc.com> <66eb0450-f803-7375-42b4-3cbc5a6455e3@wdc.com> <0fa1d2f8-ba07-2720-ab29-27a1100f78ed@suse.de> Message-ID: <91bdd703-1086-2005-3fbe-5ced65db5fba@suse.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 24.01.19 12:05, Anup Patel wrote: > On Thu, Jan 24, 2019 at 4:16 PM Alexander Graf wrote: >> >> >> >> On 24.01.19 11:43, Anup Patel wrote: >>> >>> >>>> -----Original Message----- >>>> From: Andreas Schwab [mailto:schwab at suse.de] >>>> Sent: Thursday, January 24, 2019 3:24 PM >>>> To: Atish Patra >>>> Cc: Anup Patel ; Anup Patel ; >>>> Joe Hershberger ; U-Boot Mailing List >>> boot at lists.denx.de>; Palmer Dabbelt ; Alexander Graf >>>> ; Christoph Hellwig ; Paul Walmsley >>>> >>>> Subject: Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support >>>> >>>> On Jan 23 2019, Atish Patra wrote: >>>> >>>>> or you can try to edit the DT directly and update the FSBL if you are >>>>> comfortable with it. >>>> >>>> I think it would make sense to add the node in the board init function. >>>> That way it would work whether or not the FSBL is updated. >>> >>> Best way is to either fix in DTS itself or BBL/OpenSBI. >>> >>> For BBL it is difficult due to lack of matured FDT manipulation APIs. >>> My bad for previous misinformation about BBL. I thought Atish had >>> hacked this in BBL but he had hacked U-Boot. >>> >>> We already have taken care of this in OpenSBI using LibFDT so with >>> OpenSBI no hacks would be required. >>> >>> We are just few days away from OpenSBI being made public so no point >>> of adding work-around for "stdout-path" in U-Boot as well. >> >> I disagree. We want people to easily use this code, and not use it as a >> means to push for the OpenSBI vs BBL discussion. >> >> So IMHO a quirk that adds the stdout-path property in an early board >> init function is the best way to move forward here. That way the "good" >> case keeps behaving the same, but we stay compatible to current, >> existing previous stage firmware. >> >> Please, don't *ever* consider DT something that you "just modify". If >> anything worked with a DT before, you are required to keep it that way. >> Otherwise you break the compatibility contract between your firmware layers. > > No issues, I will try to add it board_init(). Board_init() is too late. This needs to go into early_board_init_f(). IIUC Andreas is prototyping that approach right now. Alex