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

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

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

494 Views
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?

 

Labels (2)
0 Kudos
3 Replies

462 Views
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 Kudos

445 Views
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 Kudos