From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by mx.groups.io with SMTP id smtpd.web12.4406.1574415248634738013 for ; Fri, 22 Nov 2019 01:34:09 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=V9r4ti9o; spf=pass (domain: linaro.org, ip: 209.85.128.65, mailfrom: leif.lindholm@linaro.org) Received: by mail-wm1-f65.google.com with SMTP id b11so6654026wmb.5 for ; Fri, 22 Nov 2019 01:34:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wJB5wQwErCmguwdzfQ2JGAbLITBanm9EobFzxVMTNJ8=; b=V9r4ti9ovAEm1vmOYHuONeJTn+orLkFi6s5GOKOLPnefskpAPUxAab3qnk9w44UP37 hgGxrEzsRo8pvC40jb1hwZ1Aa2FNnMlB7F36wuUkdlnyAGa8TrsQcloYj4VmNT4d1Rft 0FDBNTe2ULs3HursalGeGbKQYpX2J+kMLHTJT2cEjOw7mV/6eOzXylb/llTpfqMDTZxE eJfy525dPZh2tp1jbszQpFPwwqyeOyhyGHuuJ1+T2r/bUvnIIeg7se8J8RxUD4fzSrzc 5u7hdku0gJba1CVSYYCQyTtSQY6w59jXvKsY/qVRgVQAMvnYFpZrNl7/yfjYs3BzVJkT R3yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wJB5wQwErCmguwdzfQ2JGAbLITBanm9EobFzxVMTNJ8=; b=liRSe/SAIq2n38sdLTt16KxeyS0FWkHup/1Y9RGNfFI4WSQFnvd9qTdR0WgZWgWWee fK/iIcz7ZdhwU3nWQUKBz4WNjs4A4cndJNXuyEB/p7CBAZxYjeSnc9nmNjgeMLTxBqeq z74SanvZbo/f0GzdA6Dj/Mtb6c/Zl2padtAn2skruB2adeOz7viUbHY76VjpGExxguGr gTrFTadmN6+xOp17i+bXf46Ee2lr65sspVxkuyOy+ozaEdF3zN0fWI/MhOiv+ls3PsgC MSHjikjYd6cqLJnuL/HRJN98RZP4HcYcQDqiMo/TiUCso5KB/CGZkYcMbuXXJoL8M2ym 3vBg== X-Gm-Message-State: APjAAAXaF/72PUTtZwrEVDULAiilgxUI3FPJeWtYn5JQUpZW6CJp6DYz tZu6SEvw5pt+0hnG0MmzbVyOAg== X-Google-Smtp-Source: APXvYqxi1hqAo0HfqO7YiMsa6Z3Nl3y4k3IyWKf962BV+E/FKslYTRz/XD3RObPfBO0qq/U+I23S7A== X-Received: by 2002:a1c:a404:: with SMTP id n4mr14966872wme.135.1574415247005; Fri, 22 Nov 2019 01:34:07 -0800 (PST) Return-Path: Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id m9sm6710095wro.66.2019.11.22.01.34.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Nov 2019 01:34:06 -0800 (PST) Date: Fri, 22 Nov 2019 09:34:04 +0000 From: "Leif Lindholm" To: "Chang, Abner (HPS SW/FW Technologist)" Cc: "devel@edk2.groups.io" , "Chen, Gilbert" Subject: Re: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v3 37/39] edk2-staging:RISC-V-V2: Add RiscVEdk2Readme.md Message-ID: <20191122093404.GT7359@bivouac.eciton.net> References: <1572227957-13169-1-git-send-email-abner.chang@hpe.com> <1572227957-13169-38-git-send-email-abner.chang@hpe.com> <20191121170904.GQ7359@bivouac.eciton.net> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Nov 22, 2019 at 03:57:22 +0000, Chang, Abner (HPS SW/FW Technologist) wrote: > > > +## RISC-V EDK2 Package > > > +``` > > > +RiscVPkg - RISC-V processor package. This package provides RISC-V > > > + processor related protocols/libraries accroding to UEFI > > > + specification and edk2 implementations. > > > +RiscVPlatformPkg - RISC-V platform package. This package provides RISC- > > V > > > + platform common modules, libraries, PCDs and definitoins. > > > +``` > > > +## Toolchain of RISC-V EDK2 port > > > +Due to not yet tracked down bugs, only the following toolchain is > > > +known to produce bootoable binaries. > > > > Was this issue also resolved by Mark's linker script patch? > > The fix is not in lds, the fix is tool_def.template in which > msmall-data-limit is added and set to 0 to avoid .sdata2 > section. See below email on edk2-devel, > - [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v3-2] BaseTools: Fix > edk2 RISC-V binary hangs at POST with the latest toolchain Yes, I saw that. (I still think of it as a linker-script patch, because that's what Mark sent, but that's just my brain for you.) > > > +https://github.com/riscv/riscv-gnu-toolchain at commit ID 64879b24. > > > +The commit ID 64879b24 of riscv-gnu-toolchain repository is verified > > > +to build RISC-V edk2 platform and boot to EFI SHELL successfully. > > > +You have to clone the toolchain from above link and check out > > > +commit:64879b24 for building RISC-V edk2 port. > > > +The commit later than 64879b24 causes system hangs at the PEI phase > > > +to DXE phase transition. We are still figuring out the root cause. > > > + > > > +## EDK2 Build Target > > > +"RISCV64" ARCH is the RISC-V architecture which currently supported and > > verified. > > > +The verified RISC-V toolchain is > > > +https://github.com/riscv/riscv-gnu-toolchain > > > +@64879b24 as mentioned above, toolchain tag is "GCC5" which is > > > +declared in tools_def.txt. > > > > If this text is still needed: > > Which environment has this toolchain successfully been built in? > > Readme has been updated, > https://github.com/riscv/riscv-gnu-toolchain and "GCC5" till the > toolchain used for building binary of RISC-V platform, Ok - that is fine for the -staging branch, which will be useful for getting help tracking remaining toolchain issues down. > just commit > ID 64879b24 is not required. Yes. But the fact remains that I still have not been told of in which environment those toolchain sources might actually build. Certainly they don't in any I have. Please tell me the distribution of Linux, and version of said distribution, that you have personally used to build said toolchain. Please include this information in the readme. It is very easy for me to set up a Fedora or Centos chroot under one of my debian systems, but I do *not* have time to play around with all possible ones to find one that finally works. None of the ones I *have* tested will successfully build that toolchain, using those sources, by following the steps provided. So please state, explicitly, in the Readme, which distribution of Linux you used, and what version of that distribution was installed at the point you built it. In the Readme. Which distribution. (and so on..., until you tell me (and the readme) which version of which distribution *you* have successfully built said toolchain with) / Leif > - [edk2-devel] [Platform/devel-riscv-v2 PATCHv5-2] edk2-platforms: Update Readme.md for RISC-V platform. > - [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v3-2] BaseTools: Fix edk2 RISC-V binary hangs at POST with the latest toolchain > > > > > > / > > Leif > > > > > +Below is the edk2 build options for building RISC-V RV64 platform, > > > +``` build -a RISCV64 -p Platform/{Vendor}/{Platform}/{Platform}.dsc > > > +-t GCC5 ``` For example, ``` build -a RISCV64 -p > > > +Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc > > > +-t GCC5 > > > +``` > > > + > > > +Make sure RISC-V toolchain is built succesfully and the toolchain > > > +binaries are generated in somewhere you specified when building > > toolchain. > > > +'GCC5_RISCV64_PREFIX' is the cross compilation prefix to toolchain > > binraries. > > > +For example, set 'GCC5_RISCV64_PREFIX' to '~/RiscVToolchain/riscv64- > > unknown-elf-' > > > +before you build RISC-V edk2 port. > > > -- > > > 2.7.4 > > > > > > > >