How to replace u-boot environment in linux

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to replace u-boot environment in linux

1,398 Views
berniechen
Contributor II


Dear all

I using kernel 3.0.35, ubuntu 11.10 , and we using sd card boot, below are my arguments in u-boot

setenv bootargs_mmc 'setenv bootargs ${bootargs} root=/dev/mmcblk1p1 rootwait rw video=mxcfb1:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB2

setenv bootcmd_mmc 'run bootargs_base bootargs_mmc;mmc dev 2;mmc read ${loadaddr} 0x800 0x2000;bootm'

setenv bootcmd 'run bootcmd_mmc'

saveenv

run bootcmd

then we can into ubuntu. Please can someone kindly indicate how to replace uboot environment from linux. What tools that I should to use?

For example, I'd like replace LDB-XGA by LDB-WGA.

Thank you..

Tags (1)
0 Kudos
3 Replies

935 Views
igorpadykov
NXP Employee
NXP Employee

Hi Bernie

please look at denx suggestion

HowCanIAccessUBootEnvironmentVariablesInLinux < DULG < DENX

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

935 Views
berniechen
Contributor II

Hi igorpadykov

Thanks your reply. I have build fw_printenv binary. But it looks to use it for flash memory in kernel (MTD), we use sd card

but there are no MTD in our linux.

root@linaro-ubuntu-desktop: cat  /proc/mtd

                                         dev:          size                 erasesize             name        

How can I change u-boot environments in sd card in linux

Thank you.

0 Kudos

935 Views
berniechen
Contributor II

I use sd card boot

I want to print u-boot environment in linux from my sd card, fw_printenv can't to access, because we have no device file in cat /proc/mtd

Thank you..

0 Kudos