From patchwork Tue Dec 20 18:38:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martyn Welch X-Patchwork-Id: 1717989 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=KgcG98Qp; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Nc5230SK2z1ydd for ; Wed, 21 Dec 2022 05:38:49 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 28DEE8533F; Tue, 20 Dec 2022 19:38:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=collabora.com header.i=@collabora.com header.b="KgcG98Qp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 10E328533F; Tue, 20 Dec 2022 19:38:36 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9969085174 for ; Tue, 20 Dec 2022 19:38:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=martyn.welch@collabora.com Received: from pan.home (unknown [IPv6:2a00:23c6:c311:3401:be81:c5f8:bf74:3e79]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: martyn) by madras.collabora.co.uk (Postfix) with ESMTPSA id D15736602CAC; Tue, 20 Dec 2022 18:38:32 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1671561513; bh=TWVx5lLMtOjslcugzgdNn07m/883TjCihVlH3I3+6vM=; h=From:To:Cc:Subject:Date:From; b=KgcG98QpIWhSFU0BV2lVhj66qhLht8HUlc4iDg5q4/ReSamXTHIRCL6kLBYoQlRSa tHTeLLBhgiZi8hNvHa2HnQS8zpSLNHsCowUtsTmq+n9TBYYZoly5322qyeGARC1qco 9ge+Asc+pTgaUNmmadY3kwaufZnT0ai6m/P3jzZx4deCBOnxR+38DclLK8+Rmt7wds 2UFzJz7reuOSIkLJDavPAjL+nJyYg3YL+JNZfsTuVAZpDa+7uMZCAoqiNl7TY1W5iU uGMnmMhZVLk94VLCPG+Kaci6UR1FuZDoHJCCVXCnwX0OLvFuEuUqnTSCfIuqTbiSll A8JN/AEXq17rw== From: Martyn Welch To: Dave Gerlach Cc: u-boot@lists.denx.de, Martyn Welch Subject: [PATCH 0/2] Enable distroboot as a boot option for am62x Date: Tue, 20 Dec 2022 18:38:17 +0000 Message-Id: <20221220183819.515667-1-martyn.welch@collabora.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean The am62x config currently doesn't enable distroboot as an option for booting. Add this as a further option after the existing mechanisms have failed. Whilst working on this it was found that boot detection was failing on the am625-sk when attempting to boot from raw offsets on an SD card. Boot mode is updated to correctly detect the boot mode from the SoC boot config. Martyn Welch (2): arm64:mach-k3 am625_init: Correct boot mode detection configs: Enable distroboot on am625 arch/arm/mach-k3/am625_init.c | 19 +++++++++---------- configs/am62x_evm_a53_defconfig | 2 +- include/configs/am62x_evm.h | 26 +++++++++++++++++++++++++- 3 files changed, 35 insertions(+), 12 deletions(-) Reviewed-by: Bryan Brattlof