public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* modify boot environment parameters
@ 2007-09-19 16:04 Saravanan Chanemouganandam
  2007-09-23 22:03 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Saravanan Chanemouganandam @ 2007-09-19 16:04 UTC (permalink / raw)
  To: linux-arm; +Cc: linux-mtd

Hi all,

Are there utilities to modify the boot environment (like u-boot) block on the 
flash from within the linux ?
I am looking for information to modify the boot environment block on the NOR 
(/dev/mtd0) flash at offset 0x5000. 

Thanks
Sara

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: modify boot environment parameters
  2007-09-19 16:04 modify boot environment parameters Saravanan Chanemouganandam
@ 2007-09-23 22:03 ` Wolfgang Denk
  2007-09-24  7:28   ` Saravanan Chanemouganandam
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2007-09-23 22:03 UTC (permalink / raw)
  To: Saravanan Chanemouganandam; +Cc: linux-arm, linux-mtd

In message <200709191804.24336.schane@osmozis.com> you wrote:
> 
> Are there utilities to modify the boot environment (like u-boot) block on the 
> flash from within the linux ?

Of course there are. But this is off topic here.

> I am looking for information to modify the boot environment block on the NOR 
> (/dev/mtd0) flash at offset 0x5000. 

See u-boot/tools/env/

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@denx.de
I think there's a world market for about five computers.
         -- attr. Thomas J. Watson (Chairman of the Board, IBM), 1943

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: modify boot environment parameters
  2007-09-23 22:03 ` Wolfgang Denk
@ 2007-09-24  7:28   ` Saravanan Chanemouganandam
  0 siblings, 0 replies; 3+ messages in thread
From: Saravanan Chanemouganandam @ 2007-09-24  7:28 UTC (permalink / raw)
  To: linux-mtd

Hello Denk,

I am using proprietary (ARMmon) binary version of bootloader (like u-boot and 
not u-boot bootloader) that gives support to modify environment variables 
only from the bootloader prompt. But, In my case, I want to modify boot 
environment option
"root=/dev/mtdblock1" to "root=/dev/mtdblock2" and viceversa on successive 
reboot.

The environment variables are stored at the offset 0x00050000  ( 4th block) on 
the NOR flash (/dev/mtdblock0).

Is there any utility tool to access and modify a particular block 0x00050000 
on the NOR flash ? I came across u-boot/tools/env but its ment for u-boot. 
Will it give support to other flash env access with some modification ?

Thanks
Sara




Le Lundi 24 Septembre 2007 00:03, Wolfgang Denk a écrit :
> In message <200709191804.24336.schane@osmozis.com> you wrote:
> > Are there utilities to modify the boot environment (like u-boot) block on
> > the flash from within the linux ?
>
> Of course there are. But this is off topic here.
>
> > I am looking for information to modify the boot environment block on the
> > NOR (/dev/mtd0) flash at offset 0x5000.
>
> See u-boot/tools/env/
>
> Best regards,
>
> Wolfgang Denk

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-24  7:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-19 16:04 modify boot environment parameters Saravanan Chanemouganandam
2007-09-23 22:03 ` Wolfgang Denk
2007-09-24  7:28   ` Saravanan Chanemouganandam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox