From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CE21C4338F for ; Mon, 23 Aug 2021 12:51:17 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 70AC161185 for ; Mon, 23 Aug 2021 12:51:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 70AC161185 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=JTi.uk.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2CF7B81BCA; Mon, 23 Aug 2021 14:51:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=quarantine dis=none) header.from=JTi.uk.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=jti.uk.com header.i=@jti.uk.com header.b="TI3BNu9L"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C19EE80C8A; Mon, 23 Aug 2021 14:51:12 +0200 (CEST) Received: from jti.uk.com (jti.uk.com [81.137.207.160]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3394B8314B for ; Mon, 23 Aug 2021 14:51:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=JTi.uk.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=timh@jti.uk.com Received: from TIMHPZEON (jti.uk.com [81.137.207.160]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by jti.uk.com (Postfix) with ESMTPSA id A81A65C1688 for ; Mon, 23 Aug 2021 13:50:39 +0100 (IST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=jti.uk.com; s=JTinnovations; t=1629723039; bh=r2J2xJ1YqdSXdHDQthBuND6HoQmT+e3UOiR1Lsh+kII=; h=From:To:Subject:Date; b=TI3BNu9LFRVLdCneWqEkMuYAW7tXpWXiBWsZng5piauna7D5WoQPlDpr4Egt7N6zh mGN5rgjILdhlvTaZujQhtbcR6Q6043FtWpyRqNVBZFrbMWNfW7ml4Mq6LCK/KCf9wj bj+nsGN9Nh1pup7PWkMNiYzvD4PPvmUP6/yYxs4M= From: "Tim" To: Subject: Bootcmd/key1/key2 Date: Mon, 23 Aug 2021 13:50:38 +0100 Message-ID: <0cf501d7981d$79e40860$6dac1920$@JTi.uk.com> MIME-Version: 1.0 Thread-Index: AdeYGDTCAgRMYJYQSl+vw9brCrxUuw== Content-Language: en-gb X-MailScanner-ID: A81A65C1688.A531B X-MailScanner: Found to be clean X-MailScanner-From: timh@jti.uk.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Hi, I have my custom board successfully booting using my bootcmd environment variable. I would like to have alternate boots from user keys (derived from an I2C device if that's relevant) but if I set a key1 environment variable it is not executed in place of the saved bootcmd. The user guide says it should be (section 5.4.2 "User keys") but I have had zero success; I have searched every single file in the repo for "key1" and nothing helps (only reference is an env_set key1="on" - or "off" - for one board). What black magic is needed to get the alternate boot(s) to work , please? Tim.