forked from mendersoftware/meta-mender-community
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from cakre/rollback-support
Add Rollback support
- Loading branch information
Showing
10 changed files
with
104 additions
and
14 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...er-tegra-jetpack5/recipes-bsp/tegra-binaries/tegra-redundant-boot/nv_update_verifier.init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#! /bin/sh | ||
NAME=nv_update_verifier | ||
DESC="OTA bootloader update verifier" | ||
|
||
case "$1" in | ||
start|restart) | ||
echo -n "Running $DESC: " | ||
/usr/sbin/nv_update_verifier < /dev/null | ||
echo "[OK]" | ||
;; | ||
stop) | ||
;; | ||
*) | ||
N=/etc/init.d/$NAME | ||
echo "Usage: $N {start|stop|restart}" >&2 | ||
exit 1 | ||
;; | ||
esac | ||
|
||
exit 0 |
10 changes: 10 additions & 0 deletions
10
...tegra-jetpack5/recipes-bsp/tegra-binaries/tegra-redundant-boot/nv_update_verifier.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=OTA bootloader update verifier | ||
After=nvstartup.service | ||
|
||
[Service] | ||
Type=simple | ||
ExecStart=/usr/sbin/nv_update_verifier | ||
|
||
[Install] | ||
WantedBy=basic.target |
9 changes: 9 additions & 0 deletions
9
...nder-tegra-jetpack5/recipes-bsp/tegra-binaries/tegra-redundant-boot/nv_update_verifier.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
upgrade_available=$(/sbin/fw_printenv upgrade_available | cut -d "=" -f2) | ||
|
||
# Only verify booted slot if we are not in an upgrade process | ||
# since mender will do that on commit (through fw_setenv) | ||
if [ "$upgrade_available" == "0" ]; then | ||
/usr/sbin/nvbootctrl verify | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
...gra/meta-mender-tegra-jetpack5/recipes-bsp/uefi/files/0008-enable-rootfs-redundancy.patch
This file was deleted.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
...tegra-jetpack5/recipes-bsp/uefi/files/L4TConfiguration-RootfsRedundancyLevelABEnable.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/dts-v1/; | ||
|
||
/ { | ||
overlay-name = "L4T Configuration Settings"; | ||
|
||
fragment@0 { | ||
target-path = "/"; | ||
|
||
board_config { | ||
sw-modules = "uefi"; | ||
}; | ||
|
||
__overlay__ { | ||
|
||
firmware { | ||
|
||
uefi { | ||
|
||
variables { | ||
|
||
gNVIDIAPublicVariableGuid { | ||
|
||
RootfsRedundancyLevel { | ||
data = [01 00 00 00]; | ||
runtime; | ||
locked; | ||
}; | ||
|
||
RootfsRetryCountMax { | ||
data = [ 01 00 00 00 ]; | ||
runtime; | ||
}; | ||
|
||
}; | ||
|
||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; |
7 changes: 7 additions & 0 deletions
7
...-tegra/meta-mender-tegra-jetpack5/recipes-mender/tegra-state-scripts/files/abort-blupdate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
CAPTARGET="/opt/nvidia/esp/EFI/UpdateCapsule/TEGRA_BL.Cap" | ||
|
||
if [ -f "$CAPTARGET" ]; then | ||
rm "$CAPTARGET" | ||
fi |
3 changes: 3 additions & 0 deletions
3
...der-tegra/meta-mender-tegra-jetpack5/recipes-mender/tegra-state-scripts/files/verify-slot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
/usr/sbin/nvbootctrl verify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters