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 set fw_env.config

Hello TI

I want use fw_env.config to print u-boot enviroment variables in kernel userspace

but I don't know how to set value for each entry. Could you help me to fill the blank ?

Thank you.

u-boot/include/configs/am335x_evm.h

                 #define CONFIG_ENV_SIZE            (128 << 10)

                 #define CONFIG_ENV_SECT_SIZE        (4 << 10) /* 4 KB sectors */
                 #define CONFIG_ENV_OFFSET        (768 << 10) /* 768 KiB in */

                   #define CONFIG_ENV_OFFSET        0x260000 /* environment starts here */

And How do I set fw_env.config?

                MTD device name ----> ?

               Device Offset -----> 0x260000??

               Environment Size -----> ?

               Flash sector size ------> ?

Thank you