This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

how to access the u boot environment variables from Linux



HI,

with using the u-boot/tools/env directory in u boot directory u-boot

$ make env -----------------------------------------------------------------> which created and executable file fw_printenv

this one i copied to /usr/sbin of target and on target etc/fw_env.config file

----------------------------------------------------------------------------------
#Configuration file for fw_(printenv/saveenv) utility.

#Up to two entries are valid, in this case the redundand

#nvironment sector is assumed present.

#MTD device name Device offset Env. size Flash sector size

/dev/mtd0 0x00000 0x20000 0x20000
--------------------------------------------------------------------------------------------------

target# ./fw_printenv

SEGV

please guide me what is causing this error...???

and my /proc/mtd is

dev: size erasesize name
mtd0: 00020000 00020000 "flash_uboot_env"
mtd1: 002e0000 00020000 "flash_linux_image"
mtd2: 00900000 00020000 "flash_jffs2"
mtd3: 00900000 00020000 "flash_data"

please guide me what is causing this error...???