u-boot-fw-utils issue
Hello,
We are trying to access uboot variables from our application running over Linux.
We are using Yocto krogoth 2.1.1 for imx6ul evaluation kit "mx6ul_14x14_evk".
We have built u-boot-fw-utils by adding "CORE_IMAGE_EXTRA_INSTALL += "u-boot-fw-utils" in the local.conf file.
Issues:
1. We are unable to update the existing uboot delay from the user space. We have tried updating it but it is not reflected once we reboot the device.
2. We are unable to add the new variables in uboot. When we execute "fw_setenv board_name evalkit" then we can see it using fw_printenv but after rebooting the device when we check the boot variables using the command "printenv" (uboot command interface) then the variable is not shown.
3. We also tried adding the variable through CONFIG_EXTRA_ENV_SETTINGS in mx6ul_14x14_evk.h at ./tmp/work/../../include/configs/ but it is also not shown when we use fw_printenv command.
We get warning " Bad CRC, using default environment" if we try to set any variable using fw_setenv.
It would be really helpful if you can help us on this.
Regards,
Hardik
Hello Hardik Padhariya,
Am 09.01.2019 um 09:14 schrieb Hardik Padhariya:
Quoted 27 lines
Hello,
We are trying to access uboot variables from our application running over Linux.
We are using Yocto krogoth 2.1.1 for imx6ul evaluation kit "
mx6ul_14x14_evk".We have built u-boot-fw-utils by adding "
CORE_IMAGE_EXTRA_INSTALL+= "u-boot-fw-utils" in the local.conf file.Issues:
1. We are unable to update the existing uboot delay from the user space. We have tried updating it but it is not reflected once we reboot the device.
2. We are unable to add the new variables in uboot. When we execute "
fw_setenvboard_nameevalkit" then we can see it usingfw_printenvbut after rebooting the device when we check the boot variables using the command "printenv" (uboot command interface) then the variable is not shown.
Quoted 8 lines
3. We also tried adding the variable through
CONFIG_EXTRA_ENV_SETTINGSinmx6ul_14x14_evk.hat ./tmp/work/../../include/configs/ but it is also not shown when we usefw_printenvcommand.We get warning " Bad CRC, using default environment" if we try to set any variable using
fw_setenv.
This means, that your fw_printenv util does not find the U-Boot environment on your env storage device.
Yoiu have to add a "/etc/fw_env.config" file, which fit with your device. See for some examples:
I do not know the exact values for "mx6ul_14x14_evk" ...
bye,
Heiko
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de