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 3F1E1C4338F for ; Wed, 28 Jul 2021 12:54:56 +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 D838E60E09 for ; Wed, 28 Jul 2021 12:54:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D838E60E09 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ciavaldini.fr 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 01BD882D49; Wed, 28 Jul 2021 14:54:40 +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="ZeATtdwt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9179B831A9; Tue, 27 Jul 2021 16:44:25 +0200 (CEST) Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 B5BCC82AE5 for ; Tue, 27 Jul 2021 16:44:21 +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 relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 55DD8FF80F for ; Tue, 27 Jul 2021 14:44:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ciavaldini.fr; s=gm1; t=1627397061; 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=fugDskRtQ9JBOBpmYFWSLfh4HPGRiRwYnPJJwC2i85E=; b=ZeATtdwtuAg9xVXIk5xPuYPAypgiW0RpXrhFHtEqG6RQBFZTirUQsWf9CRtPagfz1/1573 wO3H/8LtJv8CUAg9nZFAukN06JTqLhA6qgukS97gU7bJj8qFCAhjZLEqvgu0yHiSseF9bk /jdxEqs8JY85BwEAtR978exw32GTMGzvtcSKhW6355/GlMAEnUNjclim5mZ+lXD+lxrxYY bWJZJPqJkpAPSUyQPq3QgafGiYjzUpC78Y/rzYEK+ZfSBHupdpxlfIfEaB07U9x0P1VVHz 3tOB29lZQnL2KS9qbYigJiVL0ZBxmsJNrO5y9AeokATlGYBvqmDyTq98iC+IJA== Date: Tue, 27 Jul 2021 16:44:20 +0200 From: Pierre-Alexis Ciavaldini To: "=?utf-8?Q?u-boot=40lists.denx.de?=" Message-ID: <7EB54645-1F55-4BB0-8E58-8B74BC8F2452@getmailspring.com> Subject: u-boot saveenv to redundant fat does not persist env X-Mailer: Mailspring MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 28 Jul 2021 14:54: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 problem 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, Pierre-Alexis Ciavaldini