Hi Vipin,
On 03.06.23 12:29, Vipin Vijayan wrote:
Hi,
I am working on our custom board with dunfell version and we are using a
custom u-boot for the board. But when i try to use fw_printenv and
fw_setenv iam not being able to access those functionalities. Iam using
libubootenv for those specific functionalities .
iam adding libubootenv-bin in image_install and iam getting the
fw_printenv and fw_setenv in the /usr/bin folder
But when i use fw_printenv and fw_setenv iam getting an error,
Can't read from default
Can't read from file.
We are storing the environment variables in the spi flash /dev/mtd3
When i try hexdump i can find the variables present
But iam not being able to access it with fw_printenv and fw_setenv any
variable using fw_setenv
I should mention that fw_env.config is perfect and does not have any
error in it, because when we try to access those variables using another
fw_printenv,
This is not a valid proof. Old tools have linked-in environment, and
fw_printenv prints variables even if fw_env.config is not correct. If
libuboot does not report the variables, the main reason is that your
fw_env.config does not match the configuration in U-Boot.
To check this, you can set with old tool some variables, reboot your
board and check if the variable can be read by U-Boot. If not, your
fw_env.config is far away to be perfect.
which we got from executing make in the git source , we are
getting the variables printed.
Also during build of the u-boot we are using a patch file which we got
from internet for its build succession, I dont know whether that patch
interferes with anything that hinders its function.
Patch was merged into U-Boot some years ago and you do not need it if
your u-boot is not too old. You need to install u-boot-initial-env as
well (this replaces the linked-in environment from old tool), it is part
of u-boot-env package.
Iam attaching my fw_env.config
Only you can check if fw_env.config is correct.
and also the patch file i used for u-boot
along with this
Patch was merged and part of U-Boot since 2019.07
As iam a beginner in this field, Iam not much aware of these
functionalities in detail. Please look in to the issue and any helps are
appreciated.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60169): https://lists.yoctoproject.org/g/yocto/message/60169
Mute This Topic: https://lists.yoctoproject.org/mt/99302424/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-