mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
Introduce bread new loongarch64-efi board, with skeleton from aarch64-efi board. It corverd most LoongArch64 systems. Linux 6.12, as the most recent LTS kernel, was chosen to ensure proper architecture support is included. This board config is validated on my Lemote A2101 Loongson 3A5000 board. A developer entry is created for myself for future contacts as well. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Reviewed-by: Romain Naour <romain.naour@smile.fr> Signed-off-by: Julien Olivain <ju.o@free.fr>
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
The loongarch64_efi_defconfig allows to build a minimal Linux system that
|
|
can boot on all loongarch64 systems providing an New World [1] EFI firmware.
|
|
|
|
This includes almost all LoongArch Loongson-3 series workstations and servers,
|
|
see [2] for hardware and firmware information.
|
|
|
|
Building and booting
|
|
====================
|
|
|
|
$ make loongarch64_efi_defconfig
|
|
$ make
|
|
|
|
The file output/images/disk.img is a complete disk image that can be
|
|
booted, it includes the grub2 bootloader, Linux kernel and root
|
|
filesystem.
|
|
|
|
Testing under Qemu
|
|
==================
|
|
|
|
This image can also be tested using Qemu:
|
|
|
|
qemu-system-loongarch64 \
|
|
-M virt \
|
|
-cpu la464 \
|
|
-nographic \
|
|
-bios </path/to/QEMU_EFI.fd> \
|
|
-drive file=output/images/disk.img,if=none,format=raw,id=hd0 \
|
|
-device virtio-blk-pci,drive=hd0 \
|
|
-netdev user,id=eth0 \
|
|
-device virtio-net-pci,netdev=eth0
|
|
|
|
Note that </path/to/QEMU_EFI.fd> needs to point to a valid loongarch64 UEFI
|
|
firmware image for qemu.
|
|
It may be provided by your distribution as a edk2-loongarch64 package,
|
|
in path such as /usr/share/edk2/loongarch64/QEMU_EFI.fd .
|
|
|
|
[1]: https://areweloongyet.com/en/docs/old-and-new-worlds/
|
|
[2]: https://github.com/loongson/Firmware
|