Skip to content

Commit

Permalink
hostapp-update-hooks: Remove hardcoded internal devices
Browse files Browse the repository at this point in the history
... and determine the internal device during HUP, as this
would allow to boot the flasher Orins from multiple targets,
depending on the flasher config.json settings.

Signed-off-by: Alexandru Costache <alexandru@balena.io>
  • Loading branch information
acostach committed Dec 2, 2024
1 parent 4290aa3 commit 5230b92
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ source /usr/bin/uefi_common.func
DURING_UPDATE=${DURING_UPDATE:-0}
bootloader_blob="/opt/tegra-binaries/TEGRA_BL_3701.Cap.gz"
bootloader_device="/dev/mtdblock0"
internal_storage="/dev/mmcblk0"
internal_storage="/dev/$(findmnt --noheadings --canonicalize --output SOURCE "/mnt/sysroot/active/" | xargs lsblk -no pkname)"
use_capsule=1
efivars_dir="/sys/firmware/efi/efivars/"
# See https://github.com/OE4T/meta-tegra/blob/master/recipes-bsp/tools/setup-nv-boot-control/setup-nv-boot-control.sh.in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ source /usr/bin/uefi_common.func

DURING_UPDATE=${DURING_UPDATE:-0}
bootloader_device="/dev/mtdblock0"
internal_storage="/dev/nvme0n1"
internal_storage="/dev/$(findmnt --noheadings --canonicalize --output SOURCE "/mnt/sysroot/active/" | xargs lsblk -no pkname)"
use_capsule=1
bootloader_blob="/opt/tegra-binaries/TEGRA_BL_3701_64.Cap.gz"
efivars_dir="/sys/firmware/efi/efivars/"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ device_type="jetson-orin-nano-devkit"

DURING_UPDATE=${DURING_UPDATE:-0}
bootloader_device="/dev/mtdblock0"
internal_storage="/dev/nvme0n1"
internal_storage="/dev/$(findmnt --noheadings --canonicalize --output SOURCE "/mnt/sysroot/active/" | xargs lsblk -no pkname)"
use_capsule=1
bootloader_blob="/opt/tegra-binaries/TEGRA_BL_Orin_Nano.Cap.gz"
boardspec=$(tegra-boardspec 2>/dev/null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ source /usr/bin/uefi_common.func

DURING_UPDATE=${DURING_UPDATE:-0}
bootloader_device="/dev/mtdblock0"
internal_storage="/dev/nvme0n1"
internal_storage="/dev/$(findmnt --noheadings --canonicalize --output SOURCE "/mnt/sysroot/active/" | xargs lsblk -no pkname)"
use_capsule=1
bootloader_blob="/opt/tegra-binaries/TEGRA_BL_Seeed_j3010.Cap.gz"
efivars_dir="/sys/firmware/efi/efivars/"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ source /usr/bin/uefi_common.func

DURING_UPDATE=${DURING_UPDATE:-0}
bootloader_device="/dev/mtdblock0"
internal_storage="/dev/nvme0n1"
internal_storage="/dev/$(findmnt --noheadings --canonicalize --output SOURCE "/mnt/sysroot/active/" | xargs lsblk -no pkname)"
use_capsule=1
bootloader_blob="/opt/tegra-binaries/TEGRA_BL_Seeed_j4012.Cap.gz"
efivars_dir="/sys/firmware/efi/efivars/"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ source /usr/bin/uefi_common.func

DURING_UPDATE=${DURING_UPDATE:-0}
bootloader_device="/dev/mtdblock0"
internal_storage="/dev/nvme0n1"
internal_storage="/dev/$(findmnt --noheadings --canonicalize --output SOURCE "/mnt/sysroot/active/" | xargs lsblk -no pkname)"
use_capsule=1
bootloader_blob="/opt/tegra-binaries/TEGRA_BL_Orin_NX.Cap.gz"
efivars_dir="/sys/firmware/efi/efivars/"
Expand Down

0 comments on commit 5230b92

Please sign in to comment.