在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
- [PATCH 00/16] LoongArch initial support Jiaxun Yang
- [PATCH 01/16] lib: fdtdec: Handle multiple memory... Jiaxun Yang
- Re: [PATCH 01/16] lib: fdtdec: Handle multipl... Heinrich Schuchardt
- Re: [PATCH 01/16] lib: fdtdec: Handle mul... Jiaxun Yang
- Re: [PATCH 01/16] lib: fdtdec: Handle... Simon Glass
- Re: [PATCH 01/16] lib: fdtdec: H... Heinrich Schuchardt
- [PATCH 02/16] linux/io.h: Use map_physmem to impl... Jiaxun Yang
- [PATCH 03/16] image: Take entry point as an outpu... Jiaxun Yang
- Re: [PATCH 03/16] image: Take entry point as ... Heinrich Schuchardt
- Re: [PATCH 03/16] image: Take entry point... Jiaxun Yang
- Re: [PATCH 03/16] image: Take entry p... Tom Rini
- Re: [PATCH 03/16] image: Take en... Jiaxun Yang
- Re: [PATCH 03/16] image: Tak... Tom Rini
- [PATCH 04/16] elf.h Define LoongArch bits Jiaxun Yang
- Re: [PATCH 04/16] elf.h Define LoongArch bits Heinrich Schuchardt
- [PATCH 05/16] image: Define IH_ARCH_LOONGARCH Jiaxun Yang
- Re: [PATCH 05/16] image: Define IH_ARCH_LOONG... Heinrich Schuchardt
- [PATCH 07/16] LoongArch: lib: General routines Jiaxun Yang
- Re: [PATCH 07/16] LoongArch: lib: General rou... Heinrich Schuchardt
- Re: [PATCH 07/16] LoongArch: lib: General... Jiaxun Yang