-
Notifications
You must be signed in to change notification settings - Fork 79
Orin rework #1201
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
Merged
Merged
Orin rework #1201
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -12,7 +12,7 @@ | |
| ./security | ||
| ./users | ||
| ./version | ||
| ./virtualisation | ||
| ./virtualization | ||
| ./systemd | ||
| ./services | ||
| ./networking | ||
|
|
||
File renamed without changes.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,80 @@ | ||
| # Copyright 2022-2024 TII (SSRC) and the Ghaf contributors | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| { config, lib, ... }: | ||
| let | ||
| cfg = config.ghaf.profiles.orin; | ||
| in | ||
| { | ||
| options.ghaf.profiles.orin = { | ||
| enable = lib.mkEnableOption "Enable the basic nvidia orin config"; | ||
|
|
||
| netvmExtraModules = lib.mkOption { | ||
| description = '' | ||
| List of additional modules to be passed to the netvm. | ||
| ''; | ||
| default = [ ]; | ||
| }; | ||
|
|
||
| }; | ||
|
|
||
| config = lib.mkIf cfg.enable { | ||
| ghaf = { | ||
| profiles.graphics = { | ||
| enable = true; | ||
| renderer = "gles2"; | ||
| compositor = "labwc"; | ||
| idleManagement.enable = false; | ||
| # Disable suspend by default, not working as intended | ||
| allowSuspend = false; | ||
| }; | ||
|
|
||
| reference.programs.windows-launcher.enable = true; | ||
| reference.host-demo-apps.demo-apps.enableDemoApplications = true; | ||
|
|
||
| hardware.nvidia = { | ||
| virtualization.enable = true; | ||
| virtualization.host.bpmp.enable = false; | ||
| passthroughs.host.uarta.enable = false; | ||
| # TODO: uarti passthrough is currently broken, it will be enabled | ||
| # later after a further analysis. | ||
| passthroughs.uarti_net_vm.enable = false; | ||
| }; | ||
|
|
||
| # Virtualization options | ||
| virtualization = { | ||
| microvm-host = { | ||
| enable = true; | ||
| networkSupport = true; | ||
| # sharedVmDirectory = { | ||
| # enable = true; | ||
| # }; | ||
| }; | ||
|
|
||
| microvm = { | ||
| netvm = { | ||
| enable = true; | ||
| #wifi = true; | ||
| extraModules = cfg.netvmExtraModules; | ||
| }; | ||
|
|
||
| adminvm = { | ||
| enable = false; | ||
| }; | ||
| }; | ||
|
|
||
| #nvidia-podman.daemon.enable = true; | ||
| nvidia-docker.daemon.enable = true; | ||
| }; | ||
|
|
||
| # Disable givc | ||
| givc.enable = false; | ||
|
|
||
| host = { | ||
| networking.enable = true; | ||
| }; | ||
|
|
||
| # Create admin home folder; temporary solution | ||
| users.admin.createHome = true; | ||
| }; | ||
| }; | ||
| } |
This file contains hidden or 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 hidden or 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,73 @@ | ||
| # Copyright 2025 TII (SSRC) and the Ghaf contributors | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Reference hardware modules | ||
| # | ||
| { | ||
| ghaf.hardware.nvidia.orin = { | ||
| enable = true; | ||
| kernelVersion = "upstream-6-6"; | ||
| somType = "agx"; | ||
| agx.enableNetvmWlanPCIPassthrough = true; | ||
| carrierBoard = "devkit"; | ||
| }; | ||
|
|
||
| # To enable or disable wireless | ||
| networking.wireless.enable = true; | ||
|
|
||
| hardware = { | ||
| # Device Tree | ||
| deviceTree.name = "tegra234-p3737-0000+p3701-0000-nv.dtb"; | ||
| nvidia-jetpack = { | ||
| enable = true; | ||
| som = "orin-agx"; | ||
| carrierBoard = "devkit"; | ||
| modesetting.enable = true; | ||
| flashScriptOverrides = { | ||
| flashArgs = [ | ||
| "-r" | ||
| "jetson-agx-orin-devkit" | ||
| "mmcblk0p1" | ||
| ]; | ||
| }; | ||
| firmware.uefi = { | ||
| logo = ../../../../../../docs/src/img/1600px-Ghaf_logo.svg; | ||
| edk2NvidiaPatches = [ | ||
| # This effectively disables EFI FB Simple Framebuffer, which does | ||
| # not work properly but causes kernel panic during the boot if the | ||
| # HDMI cable is connected during boot time. | ||
| # | ||
| # The patch reverts back to old behavior, which is to always reset | ||
| # the display when exiting UEFI, instead of doing handoff, when | ||
| # means not to reset anything. | ||
| # ./edk2-nvidia-always-reset-display.patch | ||
| ]; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| ghaf.profiles.orin.netvmExtraModules = [ | ||
| { | ||
| # The Nvidia Orin hardware dependent configuration is in | ||
| # modules/reference/hardware/jetpack Please refer to that | ||
| # section for hardware dependent netvm configuration. | ||
|
|
||
| # Wireless Configuration. Orin AGX has WiFi enabled where Orin NX does | ||
| # not. | ||
|
|
||
| # To enable or disable wireless | ||
| networking.wireless.enable = true; | ||
|
|
||
| # For WLAN firmwares | ||
| hardware = { | ||
| enableRedistributableFirmware = true; | ||
| wirelessRegulatoryDatabase = true; | ||
| }; | ||
|
|
||
| services.dnsmasq.settings.dhcp-option = [ | ||
| "option:router,192.168.100.1" # set net-vm as a default gw | ||
| "option:dns-server,192.168.100.1" | ||
| ]; | ||
| } | ||
| ]; | ||
| } | ||
This file contains hidden or 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,73 @@ | ||
| # Copyright 2025 TII (SSRC) and the Ghaf contributors | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Reference hardware modules | ||
| # | ||
| { | ||
| ghaf.hardware.nvidia.orin = { | ||
| enable = true; | ||
| kernelVersion = "upstream-6-6"; | ||
| somType = "agx64"; | ||
| agx.enableNetvmWlanPCIPassthrough = true; | ||
| carrierBoard = "devkit"; | ||
| }; | ||
|
|
||
| # To enable or disable wireless | ||
| networking.wireless.enable = true; | ||
|
|
||
| hardware = { | ||
| # Device Tree | ||
| deviceTree.name = "tegra234-p3737-0000+p3701-0005-nv.dtb"; | ||
| nvidia-jetpack = { | ||
| enable = true; | ||
| som = "orin-agx"; | ||
| carrierBoard = "devkit"; | ||
| modesetting.enable = true; | ||
| flashScriptOverrides = { | ||
| flashArgs = [ | ||
| "-r" | ||
| "jetson-agx-orin-devkit" | ||
| "mmcblk0p1" | ||
| ]; | ||
| }; | ||
| firmware.uefi = { | ||
| logo = ../../../../../../docs/src/img/1600px-Ghaf_logo.svg; | ||
| edk2NvidiaPatches = [ | ||
| # This effectively disables EFI FB Simple Framebuffer, which does | ||
| # not work properly but causes kernel panic during the boot if the | ||
| # HDMI cable is connected during boot time. | ||
| # | ||
| # The patch reverts back to old behavior, which is to always reset | ||
| # the display when exiting UEFI, instead of doing handoff, when | ||
| # means not to reset anything. | ||
| # ./edk2-nvidia-always-reset-display.patch | ||
| ]; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| ghaf.profiles.orin.netvmExtraModules = [ | ||
| { | ||
| # The Nvidia Orin hardware dependent configuration is in | ||
| # modules/reference/hardware/jetpack Please refer to that | ||
| # section for hardware dependent netvm configuration. | ||
|
|
||
| # Wireless Configuration. Orin AGX has WiFi enabled where Orin NX does | ||
| # not. | ||
|
|
||
| # To enable or disable wireless | ||
| networking.wireless.enable = true; | ||
|
|
||
| # For WLAN firmwares | ||
| hardware = { | ||
| enableRedistributableFirmware = true; | ||
| wirelessRegulatoryDatabase = true; | ||
| }; | ||
|
|
||
| services.dnsmasq.settings.dhcp-option = [ | ||
| "option:router,192.168.100.1" # set net-vm as a default gw | ||
| "option:dns-server,192.168.100.1" | ||
| ]; | ||
| } | ||
| ]; | ||
| } |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.