configs/solidrun_macchiatobin_efi_defconfig: EFI config for MacchiatoBin
PATCH v5 8/10 configs/solidrun_macchiatobin_efi_defconfig: EFI config for MacchiatoBin
This introduces an alternative board build for the MacchiatoBin based on EDK2 (UEFI) firmware loaded as BL33 by ARM Trusted Firmware.
---
Revision 5:
* Fixed incorrect Linux version statement in readme.txt
* Replaced kernel EFI stub mode with GRUB2 for more convenience
* The GRUB2 package handles the efi-part image
* Simplified the post script
* Removed the startup.nsh in favour of that provided by GRUB2
* Re-exported the defconfig
Revision 4:
* Renamed post-image.sh to assemble-flash-images
* Updated to Linux LTS kernel 5.10
* Added startup.nsh for auto-booting from the EFI shell
--- .../macchiatobin-efi/assemble-flash-images | 7 ++ board/solidrun/macchiatobin-efi/genimage.cfg | 30 +++++++ board/solidrun/macchiatobin-efi/grub.cfg | 6 ++ .../solidrun/macchiatobin-efi/linux.fragment | 3 + board/solidrun/macchiatobin-efi/readme.txt | 90 +++++++++++++++++++ configs/solidrun_macchiatobin_efi_defconfig | 28 ++++++ 6 files changed, 164 insertions(+) create mode 100755 board/solidrun/macchiatobin-efi/assemble-flash-images create mode 100644 board/solidrun/macchiatobin-efi/genimage.cfg create mode 100644 board/solidrun/macchiatobin-efi/grub.cfg create mode 100644 board/solidrun/macchiatobin-efi/linux.fragment create mode 100644 board/solidrun/macchiatobin-efi/readme.txt create mode 100644 configs/solidrun_macchiatobin_efi_defconfig
board/solidrun/macchiatobin-efi/assemble-flash-images new file +7 -0
@@ -0,0 +1,7 @@ +#!/bin/bash + +set -e + +BOARD_DIR="$(dirname $0)" + +cp -f ${BOARD_DIR}/grub.cfg ${BINARIES_DIR}/efi-part/EFI/BOOT/grub.cfg
board/solidrun/macchiatobin-efi/genimage.cfg new file +30 -0
@@ -0,0 +1,30 @@ +image efi-part.vfat { + vfat { + file startup.nsh { + image = "efi-part/startup.nsh" + } + file EFI { + image = "efi-part/EFI" + } + file Image { + image = "Image" + } + } + size = 32M +} + +image sdcard.img { + hdimage { + gpt = true + } + + partition boot { + partition-type = 0xEF + image = "efi-part.vfat" + } + + partition root { + partition-type = 0x83 + image = "rootfs.ext2" + } +}
board/solidrun/macchiatobin-efi/grub.cfg new file +6 -0
@@ -0,0 +1,6 @@ +set default="0" +set timeout="5" + +menuentry "Buildroot" { + linux /Image root=/dev/vda2 rootwait console=ttyAMA0 +}
board/solidrun/macchiatobin-efi/linux.fragment new file +3 -0
@@ -0,0 +1,3 @@ +CONFIG_MARVELL_PHY=y +CONFIG_MARVELL_10G_PHY=y +CONFIG_SFP=y
board/solidrun/macchiatobin-efi/readme.txt new file +90 -0
90 lines not on this page · raw message
configs/solidrun_macchiatobin_efi_defconfig new file +28 -0
@@ -0,0 +1,28 @@ +BR2_aarch64=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y +BR2_TOOLCHAIN_BUILDROOT_WCHAR=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/solidrun/macchiatobin-efi/assemble-flash-images support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/solidrun/macchiatobin-efi/genimage.cfg" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.34" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/solidrun/macchiatobin-efi/linux.fragment" +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="120M" +# BR2_TARGET_ROOTFS_TAR is not set +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="a80x0_mcbin" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_EDK2_AS_BL33=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_TARGETS="mrvl_flash" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="USE_COHERENT_MEM=0" +BR2_TARGET_BINARIES_MARVELL=y +BR2_TARGET_EDK2=y +BR2_TARGET_EDK2_PLATFORM_SOLIDRUN_ARMADA80X0MCBIN=y +BR2_TARGET_GRUB2=y +BR2_TARGET_MV_DDR_MARVELL=y +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y
Signature · 1 line
2.30.2
PATCH v5 8/10 configs/solidrun_macchiatobin_efi_defconfig: EFI config for MacchiatoBin
Hi Dick,
Quoted 6 lines · Dick Olsson via buildroot
This introduces an alternative board build for the MacchiatoBin based on EDK2 (UEFI) firmware loaded as BL33 by ARM Trusted Firmware.
Signed-off-by Dick Olsson <[email protected]>---
...
board/solidrun/macchiatobin-efi/readme.txt line 90
Quoted 3 lines
board/solidrun/macchiatobin-efi/readme.txt new file +3
-0+Second, attach to the serial console[1], ... + +[1]: http://wiki.espressobin.net/tiki-index.php?page=Quick+User+Guide
That is not the right URL. Use this instead:
http://wiki.macchiatobin.net/tiki-index.php?page=Quick+Start+Guide
baruch
Signature · 3 lines
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -