From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web08.3908.1658820542417811185 for ; Tue, 26 Jul 2022 00:29:02 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ghLunBZt; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: osteffen@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658820540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4tFT99KsXQE1Bs4Ka4XaaDceli82e7d0F92IbyXqWac=; b=ghLunBZtzRvzUNFFr9RUzmuShLZ4uavviGMTZkMrrtEo0JRCGpc4ud+6rVHzGjwBnn3tFK Tlyo28VFH6BGumTzPNpjl5Cd1Pz+Fz/M0+IKSA0swb/wc3Dv7uMFdFK71lXlCrIGvdrnPZ d1gxqopC4ReXv0bLIZFEJ1Pl3FMPPeE= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-110-E_XQ1NWoMd6JK4sgpSGOsQ-1; Tue, 26 Jul 2022 03:28:57 -0400 X-MC-Unique: E_XQ1NWoMd6JK4sgpSGOsQ-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0BE50280F2AF; Tue, 26 Jul 2022 07:28:57 +0000 (UTC) Received: from osteffen-laptop.redhat.com (unknown [10.40.194.3]) by smtp.corp.redhat.com (Postfix) with ESMTP id 469BB492C3B; Tue, 26 Jul 2022 07:28:55 +0000 (UTC) From: "Oliver Steffen" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Chasel Chiu , Gerd Hoffmann , Leif Lindholm , Nate DeSimone , Sami Mujawar , Star Zeng , Andrew Fish , Oliver Steffen Subject: [PATCH 0/3] ArmPlatformPkg, ArmVirtPkg: Add early hello message Date: Tue, 26 Jul 2022 09:28:45 +0200 Message-Id: <20220726072848.640026-1-osteffen@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=osteffen@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true Add the ability to print an early hello message independent of debug mask to the serial port when the firmware starts. Introduce a PCD entry to set the message text (ArmPlatformPkg). If the message text is empty (default) then nothing is printed. The message is useful for debugging boot problems, especially with silent firmware builds. It can take some seconds until the first line is printed when booting the firmware, for example when running ArmVirt in Qemu. Use the above in ArmVirtPkg by defining a message text. These changes have already been proposed by Laszlo Ersek in 2015. I am reposting because I find this useful. Example of a VM starting up, AARCH64, Qemu on X64). First line is the new message. (Timestamp in seconds). -VM start- 0000.094 | UEFI firmware starting. 00004.06 | BdsDxe: failed to load Boot0001 "UEFI Misc Device" from VenHw(93E34C7E-B50E-11DF-9223-2443DFD72085,00): Not Found 00004.08 | BdsDxe: loading Boot0002 "UEFI Misc Device 2" from PciRoot(0x0)/Pci(0x2,0x0) 00004.08 | BdsDxe: starting Boot0002 "UEFI Misc Device 2" from PciRoot(0x0)/Pci(0x2,0x0) 00004.11 | System BootOrder not found. Initializing defaults. 00004.11 | Creating boot entry "Boot0005" with label "Red Hat Enterprise Linux" for file "\EFI\redhat\shimaa64.efi" 00004.15 | 00008.39 | EFI stub: Booting Linux Kernel... [...] PR: https://github.com/tianocore/edk2/pull/3140 Signed-off-by: Oliver Steffen # Everything here is editable! You can modify the patch name, author, # date, commit message, and the diff (if --diff was given). # Lines starting with '#' will be ignored, and an empty message # aborts the edit. Laszlo Ersek (3): ArmPlatformPkg: introduce fixed PCD for early hello message ArmPlatformPkg: PrePeiCore: write early hello message to the serial port ArmVirtPkg: set early hello message ArmPlatformPkg/ArmPlatformPkg.dec | 7 +++++++ ArmVirtPkg/ArmVirtQemu.dsc | 1 + ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf | 2 ++ ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf | 2 ++ ArmPlatformPkg/PrePeiCore/PrePeiCore.h | 1 + ArmPlatformPkg/PrePeiCore/MainMPCore.c | 5 +++++ ArmPlatformPkg/PrePeiCore/MainUniCore.c | 5 +++++ 7 files changed, 23 insertions(+) -- 2.37.1