Hi,
I am useing jetpack4.4 -L4T 32.4.3 ,xavier 32GB , custom carrier board,
If I want to enable A/B redundancy for rootfs(I follow the link:Enabling A/B redundancy for rootfs ), other things are ready, but I’m not sure about this function:
tegrabl_a_b_get_active_slot(NULL, uint32_t *active_slot){…}
How should I modify it?
Thanks!
BR,
hello actiondo,
you’ll need to call tegrabl_a_b_get_active_slot()
for current active slot number.
please access CBoot sources from download center, please refer to the sources of A/B slot selection logic.
thanks
Hi JerryChang,
If I get the current active slot number,for example 1, what should I do next?
Thanks!
BR,
hello actiondo,
you’ll need to create a define config and also have your own functional implementations.
for example, you may refer to add_boot_slot_suffix() function which add boot.slot_suffix=… to command line.
#if defined(CONFIG_ENABLE_A_B_SLOT)
static int add_boot_slot_suffix(char *cmdline, int len, char *param, void *priv){...}
you should have to enable BUP generation utility to create image with APP/APP_b partitions.
according to Topic 139810, please refer to a workaround to avoid the failures when running BUP generation.
thanks