Skip to content

Comments

Fix Jetson cross flash initrd closure#1704

Closed
vadika wants to merge 1 commit intotiiuae:mainfrom
vadika:fix/jetson-cross-flash-initrd
Closed

Fix Jetson cross flash initrd closure#1704
vadika wants to merge 1 commit intotiiuae:mainfrom
vadika:fix/jetson-cross-flash-initrd

Conversation

@vadika
Copy link
Contributor

@vadika vadika commented Jan 26, 2026

Rebuild the Jetson flash initrd in the cross-compilation module using a
proper suffix for /lib instead of embedding the subpath in the store
path. This keeps initrd contents valid for closure collection and avoids
the missing-store-path error when building the x86_64 flash script.

Changes:

  • Recreate flashInitrd contents with { object = modulesClosure; symlink = "/lib"; suffix = "/lib"; }
  • Add a config-aware overlay to apply the corrected initrd in cross builds
  • Keep behavior aligned with jetpack-nixos initrd flashing logic

Description of Changes

Type of Change

  • New Feature
  • Bug Fix
  • Improvement / Refactor

Related Issues / Tickets

Checklist

  • Clear summary in PR description
  • Detailed and meaningful commit message(s)
  • Commits are logically organized and squashed if appropriate
  • Contribution guidelines followed
  • Ghaf documentation updated with the commit - https://tiiuae.github.io/ghaf/
  • 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

Testing Instructions

Applicable Targets

  • Orin AGX aarch64
  • Orin NX aarch64
  • Lenovo X1 x86_64
  • Dell Latitude x86_64
  • System 76 x86_64

Installation Method

  • Requires full re-installation
  • Can be updated with nixos-rebuild ... switch
  • Other:

Test Steps To Verify:

  1. ...

  Rebuild the Jetson flash initrd in the cross-compilation module using a
  proper suffix for /lib instead of embedding the subpath in the store
  path. This keeps initrd contents valid for closure collection and avoids
  the missing-store-path error when building the x86_64 flash script.

  Changes:

  - Recreate flashInitrd contents with { object = modulesClosure; symlink = "/lib"; suffix = "/lib"; }
  - Add a config-aware overlay to apply the corrected initrd in cross builds
  - Keep behavior aligned with jetpack-nixos initrd flashing logic

Signed-off-by: vadik likholetov <vadikas@gmail.com>
@vadika
Copy link
Contributor Author

vadika commented Jan 26, 2026

made a fix to upstream, no need for the patch.

@vadika vadika closed this Jan 26, 2026
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

Successfully merging this pull request may close these issues.

1 participant