|
9 | 9 |
|
10 | 10 | cfg = config.hardware.nvidia-jetpack; |
11 | 11 |
|
| 12 | + # The AGX supports Emulating weaker Jetson SoMs on the devkit: |
| 13 | + # https://developer.ridgerun.com/wiki/index.php/NVIDIA_Jetson_Orin/Flashing_commands_for_emulation#Flashing_the_board |
| 14 | + agxDevkitTargetBoards = { |
| 15 | + "devkit" = "jetson-agx-orin-devkit"; |
| 16 | + "devkit-as-nx-8gb" = "jetson-agx-orin-devkit-as-nx-8gb"; |
| 17 | + "devkit-as-nx-16gb" = "jetson-agx-orin-devkit-as-nx-16gb"; |
| 18 | + "devkit-as-nano-8gb" = "jetson-agx-orin-devkit-as-nano8gb"; |
| 19 | + "devkit-as-nano-4gb" = "jetson-agx-orin-devkit-as-nano4gb"; |
| 20 | + }; |
| 21 | + |
12 | 22 | nvpModelConf = { |
13 | 23 | orin-agx = "${pkgs.nvidia-jetpack.l4t-nvpmodel}/etc/nvpmodel/nvpmodel_p3701_0000.conf"; |
14 | 24 | orin-agx-industrial = "${pkgs.nvidia-jetpack.l4t-nvpmodel}/etc/nvpmodel/nvpmodel_p3701_0008.conf"; |
|
61 | 71 |
|
62 | 72 | hardware.nvidia-jetpack.flashScriptOverrides = |
63 | 73 | let |
| 74 | + # The AGX supports Emulating weaker Jetson SoMs on the devkit: |
| 75 | + # https://developer.ridgerun.com/wiki/index.php/NVIDIA_Jetson_Orin/Flashing_commands_for_emulation#Flashing_the_board |
| 76 | + agxDevkitTargetBoards = { |
| 77 | + "devkit" = "jetson-agx-orin-devkit"; |
| 78 | + "devkit-as-nx-8gb" = "jetson-agx-orin-devkit-as-nx-8gb"; |
| 79 | + "devkit-as-nx-16gb" = "jetson-agx-orin-devkit-as-nx-16gb"; |
| 80 | + "devkit-as-nano-8gb" = "jetson-agx-orin-devkit-as-nano8gb"; |
| 81 | + "devkit-as-nano-4gb" = "jetson-agx-orin-devkit-as-nano4gb"; |
| 82 | + }; |
64 | 83 | # Remove unnecessary partitions to make it more like |
65 | 84 | # flash_t194_uefi_sdmmc_min.xml, except also keep the A/B slots on each |
66 | 85 | # partition |
|
96 | 115 | in |
97 | 116 | mkMerge [ |
98 | 117 | (mkIf (cfg.som == "orin-agx") { |
99 | | - targetBoard = mkDefault "jetson-agx-orin-devkit"; |
| 118 | + targetBoard = mkDefault (agxDevkitTargetBoards."${cfg.carrierBoard}"); |
100 | 119 | # We don't flash the sdmmc with kernel/initrd/etc at all. Just let it be a |
101 | 120 | # regular NixOS machine instead of having some weird partition structure. |
102 | 121 | partitionTemplate = mkDefault "${pkgs.nvidia-jetpack.bspSrc}/bootloader/t186ref/cfg/flash_t234_qspi.xml"; |
|
0 commit comments