env_buf [32 bytes] too small for value of "bootcmd_mmc"

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

env_buf [32 bytes] too small for value of "bootcmd_mmc"

1,588 Views
xavierboucher
Contributor III

Hi,

Does anybody know what this error means:

env_buf [32 bytes] too small for value of "bootcmd_mmc"

It pops out in the u-boot console when loading the extra env config. Here is my config for sabre SD.

#define    CONFIG_EXTRA_ENV_SETTINGS                            \
         "uboot=u-boot.imx\0"                            \
         "kernel=uImage\0"                            \
         "bootargs=console=ttymxc2,115200\0"                    \
         "bootargs_mmc=setenv bootargs ${bootargs} "                 \
             "root=/dev/mmcblk0p2 rootwait "                         \
             "video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB565 "        \
             "video=mxcfb2:dev=lcd,320x240M@60,if=RGB565 "            \
             " fbmem=28M vmalloc=400\0"                    \
         "bootcmd_mmc=run bootargs_mmc; mmc dev 0;"                   \
             "fatload mmc 0 ${loadaddr} ${kernel}; bootm ${loadaddr}\0"    \
         "bootcmd=run bootcmd_mmc\0"


Thank you!

Labels (1)
0 Kudos
Reply
1 Reply

1,273 Views
Yuri
NXP Employee
NXP Employee

Please  also make sure CONFIG_ENV_SIZE and CONFIG_ENV_OFFSET are correct.


Have a great day,
Yuri

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

0 Kudos
Reply