2022-05-24 11:12:41

by Xi Ruoyao

[permalink] [raw]
Subject: Re: [PATCH V11 09/22] LoongArch: Add boot and setup routines

On Wed, 2022-05-18 at 17:26 +0800, Huacai Chen wrote:
> Currently an existing interface between the kernel and the bootloader
> is  implemented. Kernel gets 2 values from the bootloader, passed in
> registers a0 and a1; a0 is an "EFI boot flag" distinguishing UEFI and
> non-UEFI firmware, while a1 is a pointer to an FDT with systable,
> memmap, cmdline and initrd information.

If I understand this correctly, we can:

- set a0 to 0
- set a1 a pointer (virtual address or physical address?) to the FDT
with these information

in the bootloader before invoking the kernel, then it will be possible
to boot this kernel w/o firmware update?

I'd prefer to receive a firmware update anyway, but we need an
alternative if some vendor just say "no way, our customized distro works
fine and you should use it". (I'm not accusing LoongArch: such annoying
behavior is common among vendors of all architectures, and even worse
with x86 because they often say "just use Windoge".)
--
Xi Ruoyao <[email protected]>
School of Aerospace Science and Technology, Xidian University


2022-05-24 16:31:02

by Huacai Chen

[permalink] [raw]
Subject: Re: [PATCH V11 09/22] LoongArch: Add boot and setup routines

Hi, Ruoyao,

On Tue, May 24, 2022 at 4:27 PM Xi Ruoyao <[email protected]> wrote:
>
> On Wed, 2022-05-18 at 17:26 +0800, Huacai Chen wrote:
> > Currently an existing interface between the kernel and the bootloader
> > is implemented. Kernel gets 2 values from the bootloader, passed in
> > registers a0 and a1; a0 is an "EFI boot flag" distinguishing UEFI and
> > non-UEFI firmware, while a1 is a pointer to an FDT with systable,
> > memmap, cmdline and initrd information.
>
> If I understand this correctly, we can:
>
> - set a0 to 0
> - set a1 a pointer (virtual address or physical address?) to the FDT
> with these information
>
> in the bootloader before invoking the kernel, then it will be possible
> to boot this kernel w/o firmware update?
Unfortunately, there is no released firmware for you since we recently
changed the interface again and again. :(
You can contact with Li Chao ([email protected]), I think he can
provide help as much as possible (at least provide temporary firmwares
for developers).
We will also provide qemu-system and virtual machine's firmware as
soon as possible.

Huacai

>
> I'd prefer to receive a firmware update anyway, but we need an
> alternative if some vendor just say "no way, our customized distro works
> fine and you should use it". (I'm not accusing LoongArch: such annoying
> behavior is common among vendors of all architectures, and even worse
> with x86 because they often say "just use Windoge".)
> --
> Xi Ruoyao <[email protected]>
> School of Aerospace Science and Technology, Xidian University

2022-05-25 10:05:31

by 李超

[permalink] [raw]
Subject: Re: Re: [PATCH V11 09/22] LoongArch: Add boot and setup routines

Hi Ruoyao,

I got a message from Huacai that you want to get the firmware that can boot this kernel, so what kind of machine do you have? Can you provide information on SMBIOS type0, type1 and type2 of the machine at hand? I think it would be better if you could provid the image of machine and motherboard.

Referring to Huacai, we are going create a webpage on the Github that can provide the firmware which can boot the new interface kernels, we will provide as many kinds of machine firmware as possible, including qemu firmware. I beleve it will see you soon. :)

Thanks,
Chao

&gt; -----原始邮件-----
&gt; 发件人: "Huacai Chen" <[email protected]>
&gt; 发送时间: 2022-05-24 18:59:50 (星期二)
&gt; 收件人: "Xi Ruoyao" <[email protected]>, [email protected]
&gt; 抄送: "Huacai Chen" <[email protected]>, "Arnd Bergmann" <[email protected]>, "Andy Lutomirski" <[email protected]>, "Thomas Gleixner" <[email protected]>, "Peter Zijlstra" <[email protected]>, "Andrew Morton" <[email protected]>, "David Airlie" <[email protected]>, "Jonathan Corbet" <[email protected]>, "Linus Torvalds" <[email protected]>, linux-arch <[email protected]>, "open list:DOCUMENTATION" <[email protected]>, LKML <[email protected]>, "Xuefeng Li" <[email protected]>, "Yanteng Si" <[email protected]>, "Guo Ren" <[email protected]>, "Xuerui Wang" <[email protected]>, "Jiaxun Yang" <[email protected]>, "Stephen Rothwell" <[email protected]>, linux-efi <[email protected]>, "Ard Biesheuvel" <[email protected]>
&gt; 主题: Re: [PATCH V11 09/22] LoongArch: Add boot and setup routines
&gt;
&gt; Hi, Ruoyao,
&gt;
&gt; On Tue, May 24, 2022 at 4:27 PM Xi Ruoyao <[email protected]> wrote:
&gt; &gt;
&gt; &gt; On Wed, 2022-05-18 at 17:26 +0800, Huacai Chen wrote:
&gt; &gt; &gt; Currently an existing interface between the kernel and the bootloader
&gt; &gt; &gt; is implemented. Kernel gets 2 values from the bootloader, passed in
&gt; &gt; &gt; registers a0 and a1; a0 is an "EFI boot flag" distinguishing UEFI and
&gt; &gt; &gt; non-UEFI firmware, while a1 is a pointer to an FDT with systable,
&gt; &gt; &gt; memmap, cmdline and initrd information.
&gt; &gt;
&gt; &gt; If I understand this correctly, we can:
&gt; &gt;
&gt; &gt; - set a0 to 0
&gt; &gt; - set a1 a pointer (virtual address or physical address?) to the FDT
&gt; &gt; with these information
&gt; &gt;
&gt; &gt; in the bootloader before invoking the kernel, then it will be possible
&gt; &gt; to boot this kernel w/o firmware update?
&gt; Unfortunately, there is no released firmware for you since we recently
&gt; changed the interface again and again. :(
&gt; You can contact with Li Chao ([email protected]), I think he can
&gt; provide help as much as possible (at least provide temporary firmwares
&gt; for developers).
&gt; We will also provide qemu-system and virtual machine's firmware as
&gt; soon as possible.
&gt;
&gt; Huacai
&gt;
&gt; &gt;
&gt; &gt; I'd prefer to receive a firmware update anyway, but we need an
&gt; &gt; alternative if some vendor just say "no way, our customized distro works
&gt; &gt; fine and you should use it". (I'm not accusing LoongArch: such annoying
&gt; &gt; behavior is common among vendors of all architectures, and even worse
&gt; &gt; with x86 because they often say "just use Windoge".)
&gt; &gt; --
&gt; &gt; Xi Ruoyao <[email protected]>
&gt; &gt; School of Aerospace Science and Technology, Xidian University
</[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]>

本邮件及其附件含有龙芯中科的商业秘密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制或散发)本邮件及其附件中的信息。如果您错收本邮件,请您立即电话或邮件通知发件人并删除本邮件。
This email and its attachments contain confidential information from Loongson Technology , which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this email in error, please notify the sender by phone or email immediately and delete it.