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

Xavier AGX: Firmware autoupdate results in build errors #182

Open
maleadt opened this issue Jan 24, 2024 · 2 comments
Open

Xavier AGX: Firmware autoupdate results in build errors #182

maleadt opened this issue Jan 24, 2024 · 2 comments

Comments

@maleadt
Copy link

maleadt commented Jan 24, 2024

Running with hardware.nvidia-jetpack.firmware.autoUpdate, rebuilding the OS yields:

/nix/store/3v9y55i00c66m79k9wiq7l67gkkd5gm4-install-systemd-boot.sh: line 8: cat: command not found
Current Jetson firmware version is:
New Jetson firmware version is: 35.3.1

/nix/store/byq6p9lb8pz9cl85nr338cj3vmdf77q0-ota-utils/share/ota_helpers.func: line 6: cut: command not found
/nix/store/byq6p9lb8pz9cl85nr338cj3vmdf77q0-ota-utils/share/ota_helpers.func: line 7: cut: command not found
/nix/store/byq6p9lb8pz9cl85nr338cj3vmdf77q0-ota-utils/share/ota_helpers.func: line 8: cut: command not found
/nix/store/byq6p9lb8pz9cl85nr338cj3vmdf77q0-ota-utils/share/ota_helpers.func: line 9: cut: command not found
/nix/store/byq6p9lb8pz9cl85nr338cj3vmdf77q0-ota-utils/share/ota_helpers.func: line 10: cut: command not found
/nix/store/byq6p9lb8pz9cl85nr338cj3vmdf77q0-ota-utils/share/ota_helpers.func: line 11: cut: command not found
/nix/store/byq6p9lb8pz9cl85nr338cj3vmdf77q0-ota-utils/share/ota_helpers.func: line 85: cut: command not found
warning: error(s) occurred while switching to the new configuration
@danielfullmer
Copy link
Collaborator

Just curious, did you somehow configure your NixOS system to not have coreutils in your PATH? Either way, this looks like something we can fix, but these are a class of errors that I commonly miss....

@maleadt
Copy link
Author

maleadt commented Mar 27, 2024

Not explicitly, no. I'm fairly new to Nix, and using a very simple config. Relevant pieces of it:

{ config, lib, pkgs, ... }:

{
  imports =
      ./hardware-configuration.nix
      (fetchTarball "https://github.com/anduril/jetpack-nixos/archive/master.tar.gz" + "/modules/default.nix")
    ];

  hardware.nvidia-jetpack.enable = true;
  hardware.nvidia-jetpack.som = "xavier-agx";
  hardware.nvidia-jetpack.carrierBoard = "devkit";
  #hardware.nvidia-jetpack.firmware.autoUpdate = true;

  # Use the systemd-boot EFI boot loader.
  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = false;


  ## software

  services.nvpmodel = {
    enable = true;
    # MODE_30W_ALL
    profileNumber = 3;
  };

  environment.systemPackages = with pkgs; [
      # essential CLI utilities
      ripgrep
      fd
      screen
      ncdu
  ];


  ## users

  # There's Tegra udev rules that expect certain groups to exist
  users.groups.debug = {};
  users.groups.crypto = {};
  users.groups.trusty = {};
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants