Replies: 3 comments 5 replies
-
This has changed a few times in the last couple releases, but this is my current understanding. Someone will please correct me if this is wrong. In the stock flash script, the setting
In meta-tegra, we handle (1) by calling out allowing you to customize the partition map (e.g.) For (2) you can change the value specified for
You would compile this overlay, and append it to the |
Beta Was this translation helpful? Give feedback.
-
Hi @kekiefer , I adapted the device tree with the RootfsRedundancyLevel to 01 (I actually couldnt add it as an overlay, because something in between is ignoring my overlay at least as I use it for a standart raspi, but I managed to patch it, so now is set). When I call nvbootctl now, I can read the current slot, I can see that there are 2 slots available, and so on. Curiously, nvbootctl -t rootfs is-rootfs-ab-enable answers nothing (before the device tree changes, it answered that it is not implemented, so this is something). get current slot and set current slot work, also dump slots info. For set-active-boot-slot is of course write protected, so I remount the efivars as rw, and chattr on the files (all of them as a test, since I dont know where exactly nvbootctl is trying to write) so the inmutable bit is removed, and then try again nvbootctl -t rootfs set-active-boot-slot and the device basically dies, and does not want to boot anymore unless I flash it again. Could I be missing something? May be some other fixed variable on the uefi var that has to be set on the device tree? It is actually complicated to test this without the sources of nvbootctl script or the description of all uefivars. Thanks in advance and best regards, |
Beta Was this translation helpful? Give feedback.
-
I've got a PR started at #1428 which proposes incorporating this into the BSP layer. Would appreciate any review/testing from folks who have already implemented in their custom MACHINEs |
Beta Was this translation helpful? Give feedback.
-
Hi,
I updated in the end of the year my system from Dunfell to Kirkstone (and most importantly, from cboot to UEFI).
In previous versions, I could set the variable
CONFIG_ENABLE_A_B_SLOT=1
and then AB rootfs would be configured.For the current version, I was redirected to the documentation, where this is described to be made with the following command:
sudo ROOTFS_AB=1 ROOTFS_RETRY_COUNT_MAX=3 ./flash.sh [options] <target_board> <rootdev>
Actually, this worked for me with the predefined ubuntu image from nvidia using specifically (and after this, nvbootctl works too, which is what I need as an interface for Rauc):
sudo ROOTFS_AB=1 ./flash.sh jetson-agx-xavier-devkit mmcblk0p12
Why mmcblk0p12 I can not say, but it is the recommendation of the flashing script for using emmc. I dont really understand it but I can live with that :)
The question is, how do I bring this variable for the meta-tegra generated scripts? As far as I can look, there is just the tegraflash.py script used, and I dont find a variable that could help me to set this.
Am I missing something? Could you help me to set ROOTFS_AB for the generated scripts?
Thanks in advance,
Alvaro.
Beta Was this translation helpful? Give feedback.
All reactions