在2024年6月11日六月 下午2:02,Heinrich Schuchardt写道:
> On 22.05.24 17:34, Jiaxun Yang wrote:
>> For LoongArch the start of the image is not the entry
>> point to the image.
>
> Looking at arch/loongarch/kernel/head.S there seem to be two cases:
>
> * The kernel has an EFI stub (CONFIG_EFI_STUB=y).
>    The legacy physical entry point is available at offset 0x08 of the
> header.
> * The kernel has no EFI stub.
>    The kernel entry point matches the start of the image.
>
> Where do you differentiate between the cases?

Hi Heinrich,

In case there is no EFI stub LoongArch would use elf format vmlinux, there
is no real "raw" image for us.

bootelf can't be used at the moment as it doesn't setup FDT and other 
environments
properly.

I'm planning to implement a bootlinuxelf command for this case, as MIPS, 
LoongArch,
xtensa are all using ELF as default kernel image format.

Thanks
- Jiaxun
>
[...]

-- 
- Jiaxun

Reply via email to