From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0911015703C; Mon, 29 Jan 2024 17:06:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706548019; cv=none; b=nayFKyZe2OWLXcG/NuaNGTo4qcJYKMNeZwbavBd+rJWNMUNEAqGsEqkbFnlpfzuJeTLvsjtISY/TmKqF+nJJqOktG6jdli5R0HMmRnJfh5sKc3obn1SC0m49WOP/iky2GSbQSpwVJQA6uRlzT7JlfwkiG9n/1+3m1vFliE+L91c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706548019; c=relaxed/simple; bh=SCaoAmBi/2reJUEo2PU2IT6gdz1i41diwpyziovjDwQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GrE3nm1Xs0bI7IeegtnOGIH1+7MPwrD06JpkrWSWGEkRuF/V2poVrqUyayqGt4pIxC/CQ/Giszu5dV5vNkQAw6YN2sSVpfjW5OCzQ7jBvExv7QPqPcE9nG9g1jJM11x1wV/1n1NVCDN3ShRSugFXVBzMkHY/9YU2Cjb7/oDcgDo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Wm7ecTO9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Wm7ecTO9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 979CEC433F1; Mon, 29 Jan 2024 17:06:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1706548018; bh=SCaoAmBi/2reJUEo2PU2IT6gdz1i41diwpyziovjDwQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wm7ecTO9OxMEvLZ/nINHH9D56ZG3uUXuR16LWhxfDKM7mdyGTefJ6krrAhHJVCe6T tWhLkd21asnndUHLi7/YY2MQfS8hZdAx0VL3RdJfmAv6XZhVnHdI6awTzkEGbMsSyI C0X4SfJlEwKIQDcB6tlBIFRfrjcOHqcqJHQalSCM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Josef Bacik , Simon Glass , Will Deacon Subject: [PATCH 6.7 011/346] arm64: properly install vmlinuz.efi Date: Mon, 29 Jan 2024 09:00:42 -0800 Message-ID: <20240129170016.687050110@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240129170016.356158639@linuxfoundation.org> References: <20240129170016.356158639@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.7-stable review patch. If anyone has any objections, please let me know. ------------------ From: Josef Bacik commit 7b21ed7d119dc06b0ed2ba3e406a02cafe3a8d03 upstream. If you select CONFIG_EFI_ZBOOT, we will generate vmlinuz.efi, and then when we go to install the kernel we'll install the vmlinux instead because install.sh only recognizes Image.gz as wanting the compressed install image. With CONFIG_EFI_ZBOOT we don't get the proper kernel installed, which means it doesn't boot, which makes for a very confused and subsequently angry kernel developer. Fix this by properly installing our compressed kernel if we've enabled CONFIG_EFI_ZBOOT. Signed-off-by: Josef Bacik Cc: # 6.1.x Fixes: c37b830fef13 ("arm64: efi: enable generic EFI compressed boot") Reviewed-by: Simon Glass Link: https://lore.kernel.org/r/6edb1402769c2c14c4fbef8f7eaedb3167558789.1702570674.git.josef@toxicpanda.com Signed-off-by: Will Deacon Signed-off-by: Greg Kroah-Hartman --- arch/arm64/boot/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/arch/arm64/boot/install.sh +++ b/arch/arm64/boot/install.sh @@ -17,7 +17,8 @@ # $3 - kernel map file # $4 - default install path (blank if root directory) -if [ "$(basename $2)" = "Image.gz" ]; then +if [ "$(basename $2)" = "Image.gz" ] || [ "$(basename $2)" = "vmlinuz.efi" ] +then # Compressed install echo "Installing compressed kernel" base=vmlinuz