From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rahanesh Date: Tue, 15 Sep 2009 19:13:59 +0530 Subject: [U-Boot] Firmware Upgrade In-Reply-To: <20090915110805.4DC6D832E864@gemini.denx.de> References: <4AAF71E3.7050702@tataelxsi.co.in> <20090915110805.4DC6D832E864@gemini.denx.de> Message-ID: <4AAF9A1F.1060206@tataelxsi.co.in> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Wolfgang Denk, Thank you very much for the reply!!! Few questions: 1) You said " If your environment is stored in NOR or NAND flash, then you can use the tools from the tools/env/ directory (fw_setenv / fw_printenv)." *It is already stored in NOR Flash. This is not in a separate partition. Should it be in a separate partition? Currently uboot.bin and environment variable are in mtd1 partition. Any problem? Should i create another partition for environment variables alone? *2) I have downloaded these tools from* http://packages.debian.org/unstable/main/uboot-envtools *. I am not able to make it. I need to cross compile this for MIPS. Can u suggest me an url where i can get the stable and compilable src code. Thanks Rahanesh Wolfgang Denk wrote: > Dear Rahanesh, > > In message <4AAF71E3.7050702@tataelxsi.co.in> you wrote: > >> Is it Possible from Linux to set an environment variable of u-Boot.? >> > > If your environment is stored in NOR or NAND flash, then you can use > the tools from the tools/env/ directory (fw_setenv / fw_printenv). > > It should be trivial to adapt the code for other storage devices, too. > > >> But after a successful download of new jffs and writing to mtd2 >> partition , How will Linux update the environment variable of U-boot? >> > > Use fw_setenv. > > > Best regards, > > Wolfgang Denk > > -- > DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany > Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de > Any sufficiently advanced technology is indistinguishable from magic. > - Arthur C. Clarke > >