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

bump to new jetpack baseline #981

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

brianmcgillion
Copy link
Collaborator

@brianmcgillion brianmcgillion commented Jan 28, 2025

Description of changes

update to the latest jetpack-6 firmware 36.4.3.
using the latest kernel that is part of the bsp package 5.15

NB. the upstream fw no longer supports building the flash-{qspi,script} packages on and arm target so they can only be built from the cross-compiled versions, that is -from-x86_64 variants.

Checklist for things done

  • Summary of the proposed changes in the PR description
  • More detailed description in the commit message(s)
  • Commits are squashed into relevant entities - avoid a lot of minimal dev time commits in the PR
  • Contribution guidelines followed
  • Ghaf documentation updated with the commit - https://tiiuae.github.io/ghaf/
  • PR linked to architecture documentation and requirement(s) (ticket id)
  • Test procedure described (or includes tests). Select one or more:
    • Tested on Lenovo X1 x86_64
    • Tested on Jetson Orin NX or AGX aarch64
    • Tested on Polarfire riscv64
  • Author has run make-checks and it passes
  • All automatic Github Action checks pass - see actions
  • Author has added reviewers and removed PR draft status
  • Change requires full re-installation
  • Change can be updated with nixos-rebuild ... switch

Instructions for Testing

  • List all targets that this applies to:

  • the nvidia-orin targets both nx and agx

  • Is this a new feature

  • List the test steps to verify:

  • If it is an improvement how does it impact existing functionality?

  • it is a firmware update with no new obvious changes to the ghaf level except the use of the flashing package only available in the cross targets.

@brianmcgillion brianmcgillion temporarily deployed to internal-build-workflow January 28, 2025 19:23 — with GitHub Actions Inactive
@brianmcgillion brianmcgillion marked this pull request as draft January 28, 2025 19:23
@brianmcgillion brianmcgillion temporarily deployed to internal-build-workflow January 29, 2025 05:38 — with GitHub Actions Inactive
@brianmcgillion brianmcgillion temporarily deployed to internal-build-workflow January 29, 2025 06:56 — with GitHub Actions Inactive
@brianmcgillion brianmcgillion temporarily deployed to internal-build-workflow January 29, 2025 09:34 — with GitHub Actions Inactive
@brianmcgillion brianmcgillion temporarily deployed to internal-build-workflow January 29, 2025 10:17 — with GitHub Actions Inactive
@brianmcgillion brianmcgillion temporarily deployed to internal-build-workflow January 29, 2025 11:36 — with GitHub Actions Inactive
@brianmcgillion brianmcgillion temporarily deployed to internal-build-workflow January 29, 2025 12:10 — with GitHub Actions Inactive
@brianmcgillion brianmcgillion temporarily deployed to internal-build-workflow January 29, 2025 15:42 — with GitHub Actions Inactive
@brianmcgillion brianmcgillion temporarily deployed to internal-build-workflow January 30, 2025 11:58 — with GitHub Actions Inactive
@brianmcgillion brianmcgillion temporarily deployed to internal-build-workflow January 31, 2025 10:27 — with GitHub Actions Inactive
@brianmcgillion brianmcgillion temporarily deployed to internal-build-workflow February 1, 2025 05:39 — with GitHub Actions Inactive
@brianmcgillion brianmcgillion temporarily deployed to internal-build-workflow February 1, 2025 07:31 — with GitHub Actions Inactive
@brianmcgillion brianmcgillion temporarily deployed to internal-build-workflow February 1, 2025 07:40 — with GitHub Actions Inactive
@brianmcgillion brianmcgillion temporarily deployed to internal-build-workflow February 1, 2025 07:49 — with GitHub Actions Inactive
@brianmcgillion brianmcgillion temporarily deployed to internal-build-workflow February 1, 2025 08:06 — with GitHub Actions Inactive
@johannarautanen
Copy link

johannarautanen commented Feb 10, 2025

Tried with crosscompile Orin AGX, build flashed to Orin device:

Issue:

  • UARTI passthrough to net-vm failed, didn't established the connection to the net-vm: minicom -b 115200 -D /dev/ttyACM1
  • after first boot up after flashing the taskbar was visible, but after you reboot the ghaf, the taskbar wasn't visible anymore. Tried to reboot and shutdown, but the taskbar was still missing. With win-button you can open the application selection and win+L locked the ghaf-screen.
    When you stop the net-vm (sudo systemctl stop [email protected] and have the ethernet cable connected, then taskbar comes back visible.
    taskbar_ethernet.txt

Working:

  • booted up
  • ghaf visible on the external display
  • regression test run
  • automation test cases ok

Notes:

  • there some ramdomness some time, restart tooook long time and taskbar comes visible after couple of seconds.

@johannarautanen
Copy link

Tried with crosscompile Orin NX, build flashed to USB memory stick:

Working:

  • booted up
  • ghaf visible on the external display
  • regression test run
  • automation test cases ok

Notes:

  • there some ramdomness some time, restart tooook long time and taskbar comes visible after couple of seconds

@johannarautanen
Copy link

johannarautanen commented Feb 10, 2025

Tried with native Orin AGX, build flashed to USB memory stick: (re-label the internal eMMC partitions before)
Issues:

  • ghaf didn't boot up, didn't boot up the the ghaf-command line
    Screenshot from 2025-02-10 15-29-59

@johannarautanen
Copy link

johannarautanen commented Feb 10, 2025

Tried with native Orin NX, build flashed to USB memory stick:

Issues:

  • after first boot up after flashing the taskbar was visible, but after you reboot the ghaf, the taskbar wasn't visible anymore. Tried to reboot and shutdown, but the taskbar was still missing. With win-button you can open the application selection and win+L locked the ghaf-screen.
    taskbar.txt
    When you stop the net-vm (sudo systemctl stop [email protected] and have the usb-ethernet adapter with ethernet cable connected, then taskbar comes back visible.

Working:

  • booted up
  • ghaf visible on the external display

@johannarautanen
Copy link

Tried with crosscompile Orin AGX, build flashed to USB memory stick: (re-label the internal eMMC partitions before)
Issues:

  • same issue as with native Orin AGX, didn't boot up to the ghaf command-line

@johannarautanen johannarautanen added bug on Orin AGX Issues found on NVIDIA Jetson AGX Orin while checking this PR bug on Orin NX Issues found on NVIDIA Jetson NX Orin while checking this PR labels Feb 10, 2025
brianmcgillion and others added 10 commits February 12, 2025 16:51
Signed-off-by: Brian McGillion <[email protected]>
link against openssl for these tests.

Signed-off-by: Brian McGillion <[email protected]>
1. the patched dts file no longer exists in the sources
2. disable the bpmp patches for now
3. includes the 0004-bpmp-virt-drivers-5-15 which is a rebase onto the 5.15
kernel.

Signed-off-by: Brian McGillion <[email protected]>
1. NX/AGX: Using device trees from BSP
2. NX/AGX: Fix partition_template.nix to match 36.4.3

Signed-off-by: Tanel Dettenborn <[email protected]>

NX/AGX: Fix partition_template.nix to match 36.4.3

Signed-off-by: Tanel Dettenborn <[email protected]>
Set the hardware.deviceTree.dtbSource to the NVIDIA jetpack bsp.
In this way the fdtPath in sdimage.nix point to the
config.hardware.deviceTree.package that is configured
through  hardware.deviceTree.dtbSource.

Signed-off-by: Juan Pablo Ruiz <[email protected]>
this is a tmp patch to get building and and running version of the
jetpack 6 and the 5.15 kernel building and booting`

Signed-off-by: Brian McGillion <[email protected]>
- Create dts overlays to apply device tree changes for PCI
  passthrough instead of patches over the kernel dts source code
- Re-enable ethernet and wifi passthrough for agx and nx

Signed-off-by: Juan Pablo Ruiz <[email protected]>
1. fix uarti passthrough for nvidia Jetpack 6

2. disable pci_acs_override patch
   0001-pci-add-pci_acs_override-for-pci-passthrough.patch not needed
   for Jetpack 36.4.3. PCI passthrough on NX working ok without this
   patch.

3. add 8 sec delay for nvidia pci passthrough

- Add 8 seconds delay to wait for PCI devices to get full enumerated
- Remove deprecated kernel parameters for PCI passthrough

4. disable uarti passthrough

- The uarti passthrough is currently broken due we need to add a fixed
device tree to the netvm that affects it normal behavior.

Signed-off-by: Juan Pablo Ruiz <[email protected]>
Wait up to 60 seconds for ethernet PCI to get enumerated before start the
microvm-pci-devices@net-vm service. The pront start of this service was
failing if the ethernet PCI was not yet enumerated.

Fix microvm-pci-devices@net-vm service start error:
microvm-pci-devices@net-vm[836]: /var/lib/microvms/net-vm/current/bin/pci-setup: line 4:
cd: /sys/bus/pci/devices/0008:01:00.0: No such file or directory

Signed-off-by: Juan Pablo Ruiz <[email protected]>
The jetpack now follows the nvidia guidelines and the flashing scripts
are not longer supported for creation on arm targets.

They require an x86 host to generate the flashing scripts on. This
applies to bot the overall script and the qspi.

Signed-off-by: Brian McGillion <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug on Orin AGX Issues found on NVIDIA Jetson AGX Orin while checking this PR bug on Orin NX Issues found on NVIDIA Jetson NX Orin while checking this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants