Enviorment variable is not getting update during bootloader OTA update

Hi,
I am trying to update uboot and uboot enviorment variable during OTA update.
i am using jetson TX2 SDK 32.4.3.

steps i am following

  1. Put the device into recovery mode.
  2. Run below command to generate BUP:
    $ sudo FAB=300 BOARDID=3489 FUSELEVEL=fuselevel_production ./build_l4t_bup.sh jetson-tx2-4GB mmcblk0p1
    Payload will be saved in this directory of the source code “Tegra186_Linux_R32.4.3_aarch64/Linux_for_Tegra/bootloader/payloads_t18x/”
  3. Copy bootloader payload to /opt/ota_package/
    $cp Tegra186_Linux_R32.4.3_aarch64/Linux_for_Tegra/bootloader/payloads_t18x/bl_update_payload /opt/ota_package
    Please make sure you are using the same image to generate BUP
  4. Enable A/B redundancy
    $ sudo nv_update_engine --enable-ab
  5. Install Update Engine
    $ sudo nv_update_engine --install
    Device will reboot with updated bootloader
    ==========================
    my bootloader is updating successfully but when i am adding new environment variable in my uboot and updating the bootloader i am not seeing newly added enviorment varaible her.

================
does this bl_update_payload update enviorment variable partition also or not.

Any help will be appreciated?

hello anupam.kumar,

may I know what’s the environment variable you would like to add? could you please share some examples.
thanks

Hi Chang,

I am adding new enviorment variable in uboot to calculate crash cound.

i am adding this new enviorment variable in below file:
sources/u-boot_source/include/config_distro_bootcmd.h
sources/u-boot_source/cmd/nvedit.c

bootloader update doesn update uboot enviorment variable right?

==================

in uboot i was using below command to update the new enviornmnet varaible

In U-Boot, run “env default -f -a; saveenv”

========================
is any command in kernel to read default enviorment variable from emmc…fw_printenv and fw_setenv,.

hello anupam.kumar,

when U-Boot saves its environment data to eMMC, the u-boot will save env to the end of mmcblk0boot1.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.