Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Tegra, Jetpack 5: add Jetson as working target #394

Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
dfff6ca
fix: Tegra, Jetpack 5: add Jetson as working target
Feb 6, 2024
3785d2a
fix: Tegra, Jetpack5: delete duplicated files for Xavier and Orin
Feb 13, 2024
38bb02b
fix: Tegra, Jetpack 5: remove non working capsule update code
Mar 5, 2024
4fd8676
Replace custom mender layout by nVidia redundant layout and ensure UD…
Apr 24, 2024
0dea1a5
Rewrite switch-rootfs using capsule
Apr 24, 2024
0be16ea
Add back custom flash cml for xavier
Apr 30, 2024
e3dbaa0
Update data partition for tegra234
Apr 30, 2024
bbe09f2
Revert to enable reseting unbootable status flag again
May 3, 2024
2981d00
Add rollback support
cakre Apr 29, 2024
9c9680f
Don't install capsule after rollback
cakre May 2, 2024
192439b
Add kas files for orin nano
May 2, 2024
19a7cc4
Add kas for agx xavier and agx orin
May 6, 2024
09037e4
Rewrite switch rootfs for simplicity
May 7, 2024
4cdb52e
Add back the rootfs patch
May 7, 2024
a6bf3b6
Update edk2-firmware-tegra_%.bbappend to only append rootfs patch whe…
May 7, 2024
63d4fd4
Use default redundant layout for AGX Xavier
irodriguez-veridas May 21, 2024
e4ff278
Remove unneeded mender custom layout
irodriguez-veridas May 21, 2024
2f78465
Extend reserved space required for other nVidia partitions for AGX Xa…
irodriguez-veridas May 28, 2024
ef7e689
Fix incorrect data partition number for xavier-nx
cakre Jul 1, 2024
f61ba7a
Install nv_update_verifier regardless of tegra
cakre Jul 1, 2024
8530876
Do not set different reserved space for jetson-agx-xavier-devkit
Jul 12, 2024
7d8c89a
Remove 0008-enable-rootfs-redundancy.patch
Jul 13, 2024
6951ba7
Remove files that are no longer needed due upstream fixes
Jul 15, 2024
3363b4c
Add support for mender 4
cakre Jul 25, 2024
94e878d
Add back edk2-firmware-tegra to ensure signle retry
Jul 26, 2024
fc4e0e1
chore: remove mention of Mender Hub links in README
TheYoctoJester Jul 27, 2024
34b9448
chore: remove commented out RDEPENDS
TheYoctoJester Jul 27, 2024
891f58e
fix(tegra): remove invalid partitions offsets
TheYoctoJester Jul 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions kas/jetson-agx-orin-devkit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ header:
- kas/include/tegra-jetpack5.yml

machine: jetson-agx-orin-devkit

repos:
meta-tegra:
refspec: eb2bcfbfca44d100205c2d865a1ab5add1c4f264

local_conf_header:
AB-upgrades: |
USE_REDUNDANT_FLASH_LAYOUT_DEFAULT = "1"
10 changes: 9 additions & 1 deletion kas/jetson-agx-xavier-devkit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ header:
version: 11
includes:
- kas/include/mender-full.yml
- kas/include/tegra-jetpack4.yml
- kas/include/tegra-jetpack5.yml

machine: jetson-agx-xavier-devkit

repos:
meta-tegra:
refspec: eb2bcfbfca44d100205c2d865a1ab5add1c4f264

local_conf_header:
AB-upgrades: |
USE_REDUNDANT_FLASH_LAYOUT_DEFAULT = "1"
15 changes: 15 additions & 0 deletions kas/jetson-orin-nano-devkit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
header:
version: 11
includes:
- kas/include/mender-full.yml
- kas/include/tegra-jetpack5.yml

machine: jetson-orin-nano-devkit
repos:
meta-tegra:
refspec: b7a0792b996b47305c7ec1713621b0e07d314700

local_conf_header:
AB-upgrades: |
UBOOT_EXTLINUX = "1"
USE_REDUNDANT_FLASH_LAYOUT_DEFAULT = "1"
8 changes: 4 additions & 4 deletions meta-mender-tegra/meta-mender-tegra-jetpack5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ Mender integration layer for NVIDIA Tegra hardware.
The supported and tested boards are:

- AGX Orin

Visit the individual board links above for more information on status of the
integration and more detailed instructions on how to build and use images
together with Mender for the mentioned boards.
- AGX Xavier
- Orin Nano


## Dependencies
Expand Down Expand Up @@ -40,6 +38,8 @@ for the most up to date instructions on starting out with mender and tegra.
The following configuration files for building using the `kas` tool are provided:

- [jetson-agx-orin-devkit.yml](../../kas/jetson-agx-orin-devkit.yml)
- [jetson-agx-xavier-devkit.yml](../../kas/jetson-agx-xavier-devkit.yml)
- [jetson-orin-nano-devkit.yml](../../kas/jetson-orin-nano-devkit.yml)

## Acknowlegements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ PREFERRED_PROVIDER_u-boot-fw-utils = "u-boot-fw-utils-tegra"
PREFERRED_PROVIDER_libubootenv:tegra = "${@'libubootenv-fake' if d.getVar('PREFERRED_PROVIDER_virtual/bootloader').startswith('cboot') else 'libubootenv'}"
PREFERRED_RPROVIDER_u-boot-fw-utils = "u-boot-fw-utils-tegra"
PREFERRED_RPROVIDER_libubootenv-bin:tegra = "${@'libubootenv-fake' if d.getVar('PREFERRED_PROVIDER_virtual/bootloader').startswith('cboot') else 'libubootenv-bin'}"
PREFERRED_PROVIDER_virtual/bootloader:tegra194 = "edk2-firmware-tegra"
PREFERRED_PROVIDER_libubootenv:tegra234 = "libubootenv-fake"
PREFERRED_PROVIDER_libubootenv:tegra194 = "libubootenv-fake"
MENDER_FEATURES_DISABLE:append:tegra194 = " mender-uboot"

# Note: this isn't really a boot file, just put it here to keep the mender build from
# complaining about empty IMAGE_BOOT_FILES. We won't use the full image anyway, just the mender file
Expand All @@ -46,18 +49,18 @@ IMAGE_BOOT_FILES = "u-boot-dtb.bin"
# boot into an emergency shell and examine the /dev/mmcblk* devices,
# or use the uboot console to look at mtdparts
MENDER_DATA_PART_NUMBER_DEFAULT:tegra186 = "34"
MENDER_DATA_PART_NUMBER_DEFAULT:tegra194 = "43"
MENDER_DATA_PART_NUMBER_DEFAULT:tegra194 = "42"
MENDER_DATA_PART_NUMBER_DEFAULT:xavier-nx = "23"
MENDER_DATA_PART_NUMBER_DEFAULT:tegra210 = "${@'16' if (d.getVar('TEGRA_SPIFLASH_BOOT') or '') == '1' else '23'}"
MENDER_DATA_PART_NUMBER_DEFAULT:jetson-nano-emmc = "19"
MENDER_DATA_PART_NUMBER_DEFAULT:xavier-nx = "12"
MENDER_DATA_PART_NUMBER_DEFAULT:tegra234 = "16"
MENDER_DATA_PART_NUMBER_DEFAULT:tegra234 = "15"
MENDER_ROOTFS_PART_A_NUMBER_DEFAULT = "1"
MENDER_ROOTFS_PART_B_NUMBER_DEFAULT:tegra186 = "33"
MENDER_ROOTFS_PART_B_NUMBER_DEFAULT:tegra194 = "42"
MENDER_ROOTFS_PART_B_NUMBER_DEFAULT:tegra194 = "2"
MENDER_ROOTFS_PART_B_NUMBER_DEFAULT:tegra210 = "${@'15' if (d.getVar('TEGRA_SPIFLASH_BOOT') or '') == '1' else '22'}"
MENDER_ROOTFS_PART_B_NUMBER_DEFAULT:jetson-nano-emmc = "18"
MENDER_ROOTFS_PART_B_NUMBER_DEFAULT:xavier-nx = "11"
MENDER_ROOTFS_PART_B_NUMBER_DEFAULT:tegra234 = "2"
MENDER_STORAGE_DEVICE_DEFAULT:jetson-orin-nano-devkit = "/dev/mmcblk1"

# Machine name and flash layout changed for SDcard Nanos in L4T R32.5.x
MENDER_DATA_PART_NUMBER_DEFAULT:jetson-nano-devkit = "3"
Expand Down Expand Up @@ -144,6 +147,7 @@ do_image_mender[depends] += "${_MENDER_IMAGE_DEPS_EXTRA}"
# be included by default on cboot platforms.
MACHINE_ESSENTIAL_EXTRA_RDEPENDS:remove:tegra194 = "kernel-image kernel-devicetree"
MACHINE_ESSENTIAL_EXTRA_RDEPENDS:remove:tegra186 = "${@'kernel-image kernel-devicetree' if (d.getVar('PREFERRED_PROVIDER_virtual/bootloader') or '').startswith('cboot') else ''}"
MACHINE_ESSENTIAL_EXTRA_RDEPENDS:remove:tegra234 = "kernel-image kernel-devicetree"

# Compatibility settings for handling the machine name changes
# made in L4T R32.5.x, to allow for upgrades. This does not
Expand Down
Loading