[Buildroot] [PATCH v2 4/4] configs/qemu_riscv32_nommu_virt_defconfig: New defconfig

Waldemar Brodkorb wbx at openadk.org
Sun Oct 1 11:39:58 UTC 2023


Hi Romain,

Romain Naour wrote,

> Hello,
> 
> Le 17/12/2022 à 06:13, Jesse Taube a écrit :
> > Add RISC-V 32-bit nommu defconfig for QEMU virt machine with MMU
> > disabled.
> > 
> > Unlike qemu_riscv32_virt, qemu_riscv32_nommu_virt does not use OpenSBI,
> > since the kernel is running in machine mode (M-mode).
> > 
> > Signed-off-by: Jesse Taube <Mr.Bossman075 at gmail.com>
> > Cc: Yimin Gu <ustcymgu at gmail.com>
> 
> I rebased the elf2flt patch for risc32 [1] on top of elf2flt 2023.09 release,
> then I enabled the risc32 uclibc-ng support [2] without patching it since we use
> the latest release (v1.0.44) containing this commit [3].
> 
> But the system doesn't boot due to a reloc issue:
> 
> binfmt_flat: reloc outside program 0xfff7b6dc (0 - 0x9cec0/0x8a180), killing sh!
> Starting init: /bin/sh exists but couldn't execute it (error -8)
> 
> This issue may be related to the toolchain used to build this defconfig (gcc
> 12.3.0 and binutils 2.40) that is newer than the toolchain used at the time this
> series was tested.

Can you share your elf2flt patch, please. 

best regards
 Waldemar



More information about the buildroot mailing list