Skip to contentSkip to conversation

Changing u-boot parameter from linux.

U-Boot Brian S. Park 2 participants 2 messages Sep 2, 2008

lore
Share & tools
lore
#0 lore raw

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
===============================================================

#1 lore raw

Hi Brian,

Quoted 9 lines · Brian S. Park

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