Automate regular x86-64 stable RT kernel Upgrade#345
Open
jatinjb444 wants to merge 3 commits into
Open
Conversation
Contributor
|
Please run flake8 ( python3 -m flake8 ) on all the python files and fix all the issues we can. Some of them could be fixed by running black (python3 -m black ). |
dbeefde to
e0fcb85
Compare
4709c45 to
34fd7ec
Compare
Shreejit-03
reviewed
May 12, 2026
Shreejit-03
reviewed
May 12, 2026
Shreejit-03
reviewed
May 12, 2026
Shreejit-03
reviewed
May 12, 2026
Shreejit-03
reviewed
May 12, 2026
Shreejit-03
reviewed
May 12, 2026
Shreejit-03
reviewed
May 12, 2026
rajendra-desai-ni
requested changes
May 22, 2026
Contributor
rajendra-desai-ni
left a comment
There was a problem hiding this comment.
- This commit doesn't have a proper title.
- Remove "Finalized" word from the PR title.
- Add AB work item in the PR description.
- You don't have to add 'Updates' section in the PR description. All the updates should go into their respective work items.
- Try to follow 'Summary', 'Justification', and 'Testing' section in the PR description which is cleaner compared to existing sections.
- Merge patches,build x64 kernel - Install kernel on target with reboot and SSH readiness checks. - Rebuild out-of-tree drivers automatically using DKMS. - Kernel source is mounted via SSHFS to avoid local copy. - Fix build/source symlinks and prepare kernel headers. Verified on real NI RT target with DKMS-managed drivers. Signed-off-by: Jatin Bharti <jatin.bharti@emerson.com>
- Automated defconfig regeneration process - Integrated gated kernel PR creation workflow - Pulled latest upstream changes for consistency - Improved SSH connection handling logic - Cleaned and formatted json.config structure - Enhanced overall script reliability and clarity Signed-off-by: Jatin Bharti <jatin.bharti@emerson.com>
- Moved build functions into build.py module - Centralized reusable build utilities - Removed redundant code across scripts - Cleaned up unused and inconsistent files - Improved modularity and maintainability Signed-off-by: Jatin Bharti <jatin.bharti@emerson.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Changes
#work item - 3181494
https://dev.azure.com/ni/DevCentral/_workitems/edit/3181494
This PR automates fetching and merging the latest stable‑RT kernel tags into the NI Linux Real‑Time branch. It includes clean repository setup, RT merge, kernel build, deployment, and driver rebuild integration using SSHFS and DKMS. Additionally it also include defconfig regeneration and PR creation automatically once the script ran sucessfully and also sends an email to notify the user about the result status.
Justification
The RT kernel upgrade process involves multiple manual steps and is error-prone. This automation streamlines the workflow, improves reliability, and ensures consistent execution across runs.
Testing
uname -rdkms statusProcess
Suggested Reviewers:
@rajendra-desai-ni
@Shreejit-03
@ni/rtos