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 ...".
Do you have any advice?
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?
Hi NXP
We try to modify the "CONFIG_ENV_SIZE" and "CONFIG_SYS_CBSIZE".
About the result, It's amounts to the same thing.