public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Changing u-boot parameter from linux.
@ 2008-09-02 18:52 Brian S. Park
  2008-09-02 19:42 ` Ben Warren
  0 siblings, 1 reply; 2+ messages in thread
From: Brian S. Park @ 2008-09-02 18:52 UTC (permalink / raw)
  To: u-boot

Hi all,
What is the recommended way to update u-boot parameter (such as 
network IP) from linux? In the past, I just updated the parameter 
sector in the flash by calculating the check sum and wrote the new 
data to the flash directly from linux application. This works ok if 
u-boot is not updated. I realized that u-boot has changed the way it 
writes the parameter to the flash since we used in on our last 
hardware (version 1.0.0) and am wondering if there is a better way to do this.

Thanks

Brian


===============================================================
Brian S. Park  brian.park at corelis.com  (562) 926-6727 x132
---------------------------------------------------------------
Everything we do helps our customers get to market
FASTER with HIGHER quality and LOWER cost
===============================================================

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

* [U-Boot] Changing u-boot parameter from linux.
  2008-09-02 18:52 [U-Boot] Changing u-boot parameter from linux Brian S. Park
@ 2008-09-02 19:42 ` Ben Warren
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Warren @ 2008-09-02 19:42 UTC (permalink / raw)
  To: u-boot

Hi Brian,

Brian S. Park wrote:
> Hi all,
> What is the recommended way to update u-boot parameter (such as 
> network IP) from linux? In the past, I just updated the parameter 
> sector in the flash by calculating the check sum and wrote the new 
> data to the flash directly from linux application. This works ok if 
> u-boot is not updated. I realized that u-boot has changed the way it 
> writes the parameter to the flash since we used in on our last 
> hardware (version 1.0.0) and am wondering if there is a better way to do this.
>   
Use the fw_printenv/fw_setenv application in the tools/env directory.  
It's a user-space app that can access your environment if you make it 
visible through MTD.

regards,
Ben

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

end of thread, other threads:[~2008-09-02 19:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-02 18:52 [U-Boot] Changing u-boot parameter from linux Brian S. Park
2008-09-02 19:42 ` Ben Warren

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