From: Simon Goldschmidt Date: Sun, 7 Apr 2019 20:07:00 +0200 Subject: [U-Boot] [PATCH] mmc: add eraseenv command In-Reply-To: References: <20190406181235.7666-1-frank-w@public-files.de> <2a41a963-6fd0-da1c-3a97-65405b2dcfa7@denx.de> <2ED88CD8-58D6-4418-9094-C725947B3912@public-files.de> <221e98b9-d54c-0be4-2ae9-41a9c24e584a@denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am 07.04.2019 um 19:32 schrieb Frank Wunderlich: > started to include erase in the global scope...hope i'm right. > > https://github.com/frank-w/u-boot/commits/eraseenv_new Yes, that looks like the correct approach. > > where is the env-command (i need to add erase too) defined? i found no cmd/env*.[ch]... It's in cmd/nvedit.c, see function 'do_env'. Regards, Simon > > regards Frank > > >> Gesendet: Sonntag, 07. April 2019 um 17:58 Uhr >> Von: "Stefano Babic" >> IMHO the U_BOOT_ENV_LOCATION should be extended to add a new function >> pointer, and the generic command calls it.