[U-Boot] [PATCH] common: add a grepenv command

Reinhard Meyer (-VC) reinhard.meyer at emk-elektronik.de
Fri Jul 16 12:29:06 CEST 2010


Wolfgang Denk schrieb:
> Dear Kim Phillips,
> 
> In message <20100715221522.1dd4eecb.kim.phillips at freescale.com> you wrote:
>> u-boot environments, esp. when boards are shared across multiple users,
>> can get pretty large and time consuming to visually parse.
>> The grepenv command this patch adds can be used in lieu of printenv
>> to facilitate searching.  grepenv works like printenv but limits its output
>> only to environment strings (variable name and value pairs) that match the
>> user specified substring.

My five cents to this: this addition command should be optional (#ifdef) anyway...

> 
> Thanks, but I will not apply thjis.
> 
> I'm in the process of resturcturing the whole environment handling.
> The new implementation will use a hash table for internal storage, so
> this code would no longer apply then.
> 
> Please wait a bit for me to publish the new code, and then try to
> reimplement it in the new environment.

Will be there a means to mark variables as non-saveable, example if one
does a bootp/dhcp and a saveenv afterwards, ip-address, filesize etc.
are saved as well, which makes absolutely no sense. Neither does
saving the ethaddr when it is created from VPD data :)

Reinhard



More information about the U-Boot mailing list