Skip to content

Commit

Permalink
Add gcc/dts to flashcmd script
Browse files Browse the repository at this point in the history
Needed for Orin AGX Industrial
  • Loading branch information
danielfullmer committed Feb 20, 2024
1 parent 792159e commit 485f104
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions device-pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
, buildOpteeTaDevKit
, python3
, openssl
, gcc
, dtc
, l4tVersion
, pkgsAarch64
Expand Down Expand Up @@ -112,6 +113,7 @@ let
in
import ./flashcmd-script.nix {
inherit lib;
inherit gcc dtc;
flash-tools = flash-tools-flashcmd;
};

Expand Down
5 changes: 4 additions & 1 deletion device-pkgs/flashcmd-script.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, flash-tools }:
{ lib, flash-tools, gcc, dtc }:
''
set -euo pipefail
Expand All @@ -14,6 +14,9 @@
chmod -R u+w "$WORKDIR"
cd "$WORKDIR"
# bootloader/tegraflash_impl_t234.py needs these to modify dtbs ;(
export PATH=${lib.makeBinPath [ gcc dtc ]}:$PATH
cd bootloader
bash ./flashcmd.txt
''

0 comments on commit 485f104

Please sign in to comment.