In Yocto4.0, What is the maximum line length to set a u-boot variable with setenv in imx6q?

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

In Yocto4.0, What is the maximum line length to set a u-boot variable with setenv in imx6q?

489 次查看
charleshuang
Senior Contributor II

Hi NXP

We want to add some variable with setenv bootargs. 

(1)What is the maximum line length to set a u-boot variable with setenv in imx6q?

(2)How to change the max size of the u-boot environment?

uboot command :

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

setenv 'fdt_file' imx6q-sabresd.dtb

fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}

setenv bootargs console=ttymxc0,115200 root=/dev/mmcblk2p2 rootwait rw 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789.........

bootz ${loadaddr} - ${fdt_addr}

Then system will be hang up in "Starting kernel ...".

charleshuang_0-1701424459714.png

Do you have any advice?

 

标签 (2)
0 项奖励
3 回复数

474 次查看
jimmychan
NXP TechSupport
NXP TechSupport
0 项奖励

457 次查看
charleshuang
Senior Contributor II

Hi @jimmychan 

About the solution "https://unix.stackexchange.com/questions/530762/max-line-length-for-u-boot-setenv", do you have try it?

Because we try to modify "CONFIG_ENV_SIZE" and "CONFIG_SYS_CBSIZE",  the u-boot variable "string length" is always fixed.  We cannot modify it.

Do you have any advice?

0 项奖励

440 次查看
charleshuang
Senior Contributor II

Hi NXP

We try to modify the "CONFIG_ENV_SIZE" and "CONFIG_SYS_CBSIZE".

About the result, It's amounts to the same thing.

0 项奖励