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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D6F04C433EF for ; Tue, 21 Dec 2021 18:01:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7613580820; Tue, 21 Dec 2021 19:01:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=public-files.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="ASCsmzUz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DBA0C811DE; Tue, 21 Dec 2021 19:01:16 +0100 (CET) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (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 DC7DF8069C for ; Tue, 21 Dec 2021 19:01:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=public-files.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=frank-w@public-files.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1640109673; bh=DXc8g3aSx4xeisq+QDqCBWrEcHH2oTLTtIzwH7/GAIw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=ASCsmzUzugwIaDShUHWAzO0fhNv+XDz9FyOJ4zQCVIBvDfa6DagivvRbcUdpMrW+5 U8cMiEaDGKHH63R07YqP42sKygLCnBfI76DnCqpBv+wOcOnjQfP2yJ01ktncxa68d+ rYx8FOy7zTt/7vtkcx/rG4+TETamFVjlG4zx1uBU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [217.61.155.223] ([217.61.155.223]) by web-mail.gmx.net (3c-app-gmx-bs28.server.lan [172.19.170.80]) (via HTTP); Tue, 21 Dec 2021 19:01:13 +0100 MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: Frank Wunderlich Cc: U-Boot Mailing List Subject: Aw: extend environment with file Content-Type: text/plain; charset=UTF-8 Date: Tue, 21 Dec 2021 19:01:13 +0100 Importance: normal Sensitivity: Normal In-Reply-To: References: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:e8sEMxemog4UZ054yVl7Y3uAdMoef5MgnVKkTXvOEPsnpNW/34EoCucjZelEwFq6UZDqN 5+rotgyWbKwjlCTXSDWH3xeTJqbeGDo2Bov7xwSIEXzYAwA+5gG3x8/NnrkxRRc7H8ZAREJvTo6U zQCMJhWU2ZiVEMn4boioJn7hWh7mQ76kyZWcbr2amDbHh+m/vmgu9uCfgx566RBab3v1RGLYuqAk zH5G6CsvN4KofFOSmO6g3PdOyHIoUNK3eRk5/WXFb8QwTBhR3PBLQ4yU+7/f2VBbVMMN4cUiFR88 fA= X-UI-Out-Filterresults: notjunk:1;V03:K0:MjWAb41ga48=:SHgiBjulCPhAPkZ5a2I8rL tGsD/9b3WQlWyD2zI/b6d7Z/oItLSKkx3KRVO7/w+4fUJaErOuV+LG75GQkJOXUjFMxKIuFJB O7619tmcAHZfsdkIWZovBt9E5FVBPnScpGaEXOWUQKvhesiKQ022CByS5/Gdj41vcjgAKRXEA cjW5bNysC128sQ9WIDK72kPcQGHX0wQLyBblVCBI8uzNzTisIDAvwO6GaOBW/LwRAoOIAABdY KoyCpHmptapxK30tWIOIWwjyLcJ0qvFEZkiMG6lG03Am4HpqfpHr+1ZSXLX+NapomQLCS0Buo gGaEqYArpcPB+bw42IWbn5o2W95vrZqmlNC57yGlnQ0z2C2VowYblGO+nvjKItn0IbBIa1Lc4 1uVpwsmHHOTyHN5327YJ0mMrjRiRKPBnU/x9YYkoEljGNJutSxh+jm/Iy6jOVqyDLuuSYG5su X7il/N2LBckDXbck/VmofzTRFsKv2fKgAdyfT+Kw646UVnlsJx4V/xYgQsD2AY2IZbAE6Slta z+ubD5g8upqBp/dBAg1OhbOFyElnk3DrCoWUaTIjNz8lll8CreIYh/ddB3JA0UZWrXDtdJSK/ m7PxTEoL4YauZGPC9CLG/69bgNyDBRSKTGV3xKQBhbysJBHGz67ZkRGZRXt57cDb+Tg3mfyRd /p9S/MfQnEivR+RNmhiXZQj8gGnLAw8MZAlvHz5w1Wvcupf2iq+ze7osF8dWHW1jS99VpSm0w D/uOC03pt8ftG0AnWN/d2MdKq0i3qc7M8/VT8ZGrAshrWFaA4vNGHgZtGAmvLkMHejQOi3HLG orbZ/HC Content-Transfer-Encoding: quoted-printable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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, as far as i have debugged it: soc-config is in CONFIG_EXTRA_ENV_SETTINGS distroboot (include/config_distro_bootcmd.h) lands in BOOTENV magic is in include/env_default.h where at least CONFIG_EXTRA_ENV_SETTINGS= is only mapped if CONFIG_USE_DEFAULT_ENV_FILE is not set, if set a generated headerfile g= enerated/defaultenv_autogenerated.h is included which contains some magic numbers (i guess hex-values of the c= hars from the file). this seems to be generated in main Makefile, but i'm not sure how exactly (anyhow with t= ools/env/). any idea to concatenate both sources? regards Frank > Gesendet: Dienstag, 21. Dezember 2021 um 13:56 Uhr > Von: "Frank Wunderlich" > An: "U-Boot Mailing List" > Betreff: extend environment with file > > Hi, > > currently i use distroboot on my board which sets some environment-varia= bles, some other (memory addresses) were set in my soc-specific header fil= e (include/configs/rk3568_common.h). > > But distroboot is a bit too limited for my needs (no tftp, no script, ..= .), so imho i need to use the bootmenu way here, but for local kernel-boot= up run distro_bootcmd. > > I want to add some more variables (e.g. for bootmenu) and for easier mai= ntaining i used a txt-file for it and defined > > CONFIG_DEFAULT_ENV_FILE=3D"uEnv_r2pro.txt" > > but this option seems to clear the previous environment from distroboot = and soc header file...i have now only the vars from the file defined. > > i tried adding CONFIG_ENV_APPEND=3Dy but i have still only the vars from= the file. > > Is there a way to append (distrocmd + soc-header + uenv-file) instead of= overwriting? > > regards Frank >