On Thu, Sep 07, 2023 at 06:25:43PM +0800, caiyuqing...@163.com wrote: > From: caiyuqing379 <202235...@mail.sdu.edu.cn> > > Description: > Deploy EDK2 to run on 64-core CPU under RISC-V architecture, and > successfully boot to OS. > Implementation can be found on > https://github.com/AII-SDU/edk2-platforms/tree/devel-Sophgo/SG2042Pkg/Platform/Sophgo. > > Current progress and status: > 1.Adopted the scheme of separating OpenSBI and EDK2. It follows PEI less > design. > 2.The startup process is roughly: ZSBL + FSBL + OpenSBI + EDK2 + GRUB + > Linux OS. > The boot medium is SD card, where ZSBL is loaded and executed by an > auxiliary MCU, performing initial initialization > operations such as DIMM initialization. FSBL then continues with further > initialization tasks. OpenSBI is used to > initialize the hardware platform and kernel. Additionally, we have > upgraded the OpenSBI from version V0.9 to V1.2 to > align with community progress. EDK2, running in S-mode, handles > configuration operations, primarily completing the > SD card driver in the DXE stage, while PCIe driver testing and follow-up > work are planned. GRUB2 is used to load the > operating system, facilitating subsequent operations. > > Testing: > 1.Test the project on Sophgo SG2042 EVB and be able to launch Linux OS > 2.Test the project on Milk V Pioneer board and is able to boot into the > UEFI shell. > However, the SD card driver could not correctly recognize all partitions > and start Linux OS. > > Current limitation: > 1.PCIE driver is not currently supported. > 2.MMU support > SG2042 (Xuantie C920) MMU can be enabled in SV39 mode. Introduce the PCD > variable > PcdForceNoMMU to disable MMU configuration. Currently, enabling MMU > results in a > timeout for reading data blocks from the SD card, So MMU is disabled by > default. > 3.Clang toolchain support > Build the port using the CLANGDWARF toolchain (clang version 18.0.0). It > is able > to build successfully but the compiled binary was not fully work. > Please add patch revision history which helps reviewers to understand what has changed compared to previous version of the series.
> Signed-off-by: caiyuqing379 <202235...@mail.sdu.edu.cn> > Co-authored-by: USER0FISH <libing1...@outlook.com> > Cc: dahogn <dah...@hotmail.com> > Cc: meng-cz <mengcz1...@gmail.com> > Cc: yli147 <yong...@intel.com> > Cc: ChaiEvan <evan.c...@intel.com> > Cc: Sunil V L <suni...@ventanamicro.com> > Cc: Leif Lindholm <quic_llind...@quicinc.com> > As per Maintainers.txt, Leif and Mike are high level maintainers for edk2-platforms. Please CC both in future. Thanks, Sunil -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108706): https://edk2.groups.io/g/devel/message/108706 Mute This Topic: https://groups.io/mt/101213489/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-