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,URIBL_BLOCKED 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 C80E2C12002 for ; Fri, 16 Jul 2021 12:05:47 +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 0633C613C3 for ; Fri, 16 Jul 2021 12:05:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0633C613C3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ciavaldini.fr Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 67B2182A13; Fri, 16 Jul 2021 14:05:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ciavaldini.fr 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" (2048-bit key; unprotected) header.d=ciavaldini.fr header.i=@ciavaldini.fr header.b="YAeZi9fj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D52F68296A; Fri, 16 Jul 2021 14:02:00 +0200 (CEST) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DA87782051 for ; Fri, 16 Jul 2021 14:01:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ciavaldini.fr Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=pierre-alexis@ciavaldini.fr Received: (Authenticated sender: pierre-alexis@ciavaldini.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 7B3AF60002 for ; Fri, 16 Jul 2021 12:01:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ciavaldini.fr; s=gm1; t=1626436916; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=HsTWYcMfhZgvFqHy9KeI4LxyPAg+JS8kk8mSoGi8+Oo=; b=YAeZi9fjhC7TgxeWY5D0THrn5YZpC5hk2Ft2krbwke6c8Ludw4FKvVkSMOWgRPXT+atU4W P8f/E0BjTy0ljDPVU5Mk/fr9TyYZ+hv+YuVLyY8X3p4exq38/Italen9DK5Ak5zO4rhvPK e2vtWcqazZ3+9U1QRNHTX6HJtG7tj6j7jhrNA91XtFJdZ6OjlOclVljNUBa57hOMEmb7SW HRknnxc67ziIKg9bSHCC9pZacRBT4KRA3jq8mXASpAi2n5aw43TG/a2WAW9+EsDkoKcnJD F96ULia/ZI6ksdEVtu3mhReUPv+1LzLvp4J0AzcG5wrOFR19Yj8yB8BvjkIkxw== Date: Fri, 16 Jul 2021 14:01:55 +0200 From: Pierre-Alexis Ciavaldini To: "=?utf-8?Q?u-boot=40lists.denx.de?=" Message-ID: Subject: u-boot saveenv to redundant fat does not persist env X-Mailer: Mailspring MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 16 Jul 2021 14:05:28 +0200 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline 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'm trying to integrate u-boot in our project that is a custom scripted build without yocto, for use with mender. The complete discussion can be found here : https://hub.mender.io/t/pi3-usb-boot-support/595/54?u=peac The issue is that when issuing saveenv in u-boot, it responds with "Saving Environment to FAT... OK" but then using fw_printenv in the booted linux, does not show saved variables. The system currently boots because i've tricked it by getting the compiled-in env over uart (env print -a) and made a uboot.env using mkenvimage manually to enable fw_printenv to work. I've noticed that when deleting "/boot/u-boot/uboot.env", u-boot's saveenv does not re-create it, so it seems to me that saveenv does not write uboot.env. Here's the complete project files : https://git.iostud.io/cosmos/u-boot/-/tree/cosmos relevant modified files are: - configs/rpi_4_32b_defconfig - include/config_mender_defines.h - include/env_mender.h - include/configs/rpi.h - include/env_default.h - include/config_mender.h Any help or investigating direction would be greatly appreciated. Thank you