From: lixianglai <lixianglai@loongson.cn>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: "Philippe Mathieu-Daudé" <philmd@linaro.org>,
qemu-devel@nongnu.org, "Daniel P. Berrangé" <berrange@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Thomas Huth" <thuth@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Xiaojuan Yang" <yangxiaojuan@loongson.cn>,
"Song Gao" <gaosong@loongson.cn>,
"Bibo Mao" <maobibo@loongson.cn>, "Chao Li" <lichao@loongson.cn>
Subject: Re: [PATCH] roms: Support compile the efi bios for loongarch
Date: Mon, 4 Sep 2023 20:17:53 +0800 [thread overview]
Message-ID: <e086fca3-39c1-cf8d-afed-65dba64d2dcc@loongson.cn> (raw)
In-Reply-To: <lx3zo3f2ox5d4cgi2rhce2mikiiqetdngvzhfaxx5tnsz65vtr@al2euj2s7m6j>
On 9/4/23 7:42 PM, Gerd Hoffmann wrote:
> Hi,
>
>> The loongarch cross-compilation tool on the fedora38 operating system is a
>> bit old,
> The gcc 12 -> 13 update for the cross compilers landed meanwhile,
> right now we have:
>
> binutils-loongarch64-linux-gnu.x86_64 2.39-4.fc38 @updates
> gcc-loongarch64-linux-gnu.x86_64 13.2.1-1.fc38 @updates
Compile with the compiler of the above version to compile UEFI normally,
but there are some problems running on qemu,
which require a later version of binutils to solve.
It means that we need UEFI compiled by the following version
of the compiler to run properly on qemu:
binutils-loongarch64-linux-gnu-2.40-3.fc39.x86_64
gcc-loongarch64-linux-gnu-13.2.1-1.fc39.x86_64
>
> Trying to build the loongarch firmware throws errors
> (edk2/edk2-platforms repos, master branch, checkout
> being a few days old):
>
> build.py...
> /home/kraxel/projects/edk2-platforms/Platform/Loongson/LoongArchQemuPkg/Loongson.dsc(...): error 4000: Instance of library class [AcpiPlatformLib] is not found
> in [/home/kraxel/projects/edk2/OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf] [LOONGARCH64]
> consumed by module [/home/kraxel/projects/edk2/OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf]
This compilation error is caused by a change in the AcpiPlatformLib
position in edk2, which is referenced by loongarch's UEFI.
We have already submitted the patch to the edk2 community and may need a
day or two to merge.
You can get the corresponding submission from the link below:
https://github.com/tianocore/edk2-platforms/pull/94/files
Thanks,
xianglai
> take care,
> Gerd
next prev parent reply other threads:[~2023-09-04 12:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-10 7:42 [PATCH] roms: Support compile the efi bios for loongarch xianglai li
2023-08-10 9:58 ` bibo mao
2023-08-10 11:20 ` lixianglai
2023-08-10 11:34 ` Philippe Mathieu-Daudé
2023-08-10 12:54 ` lixianglai
2023-09-01 8:55 ` lixianglai
2023-09-04 11:42 ` Gerd Hoffmann
2023-09-04 12:17 ` lixianglai [this message]
2023-08-10 11:48 ` Jiajie Chen
2023-08-10 12:27 ` lixianglai
-- strict thread matches above, loose matches on Subject: below --
2024-07-24 2:22 Xianglai Li
2024-08-21 11:33 ` Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e086fca3-39c1-cf8d-afed-65dba64d2dcc@loongson.cn \
--to=lixianglai@loongson.cn \
--cc=berrange@redhat.com \
--cc=gaosong@loongson.cn \
--cc=kraxel@redhat.com \
--cc=lichao@loongson.cn \
--cc=maobibo@loongson.cn \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
--cc=yangxiaojuan@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).