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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,207 次查看
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!

标签 (1)
0 项奖励
1 回复

892 次查看
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 项奖励