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?

825件の閲覧回数
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 返答(返信)

810件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信

793件の閲覧回数
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 件の賞賛
返信

776件の閲覧回数
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 件の賞賛
返信