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

Add orin-nx and lenovo-x1 boot tests #43

Merged
merged 3 commits into from
Aug 19, 2024
Merged

Conversation

vjuntunen
Copy link
Contributor

Add orin-nx and lenovo-x1 boot tests to ghah-infra mainline.

@vjuntunen vjuntunen requested review from henrirosten and a team August 16, 2024 11:49
ghaf-test-boot.groovy Outdated Show resolved Hide resolved
ghaf-test-boot.groovy Outdated Show resolved Hide resolved
Comment on lines 126 to 138
if(["lenovo-x1"].contains(params.DEVICE_CONFIG_NAME)) {
echo "Wiping filesystem..."
def SECTOR = 512
def MIB_TO_SECTORS = 20480
// Disk size in 512-byte sectors
def SECTORS = sh(script: "sudo blockdev --getsz /dev/${dev}", returnStdout: true).trim()
// Unmount possible mounted filesystems
sh "sync; sudo umount -q /dev/${dev}* || true"
// Wipe first 10MiB of disk
sh "sudo dd if=/dev/zero of=/dev/${dev} bs=${SECTOR} count=${MIB_TO_SECTORS} conv=fsync status=none"
// Wipe last 10MiB of disk
sh "sudo dd if=/dev/zero of=/dev/${dev} bs=${SECTOR} count=${MIB_TO_SECTORS} seek=\$(( ${SECTORS} - ${MIB_TO_SECTORS} )) conv=fsync status=none"
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have to do it in this PR, but frankly, I think the details of how the flashing needs to happen should come from a script in Ghaf repo, so we would not have to worry about such details in the Jenkins pipeline.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this is just a working one for those new devices and let's improve this later.

Add orin-nx and lenovo-x1 boot tests to ghah-infra
mainline.

Signed-off-by: Ville-Pekka Juntunen <[email protected]>
@vjuntunen vjuntunen force-pushed the add_more_test_devices branch from d7415ea to 1ce7d9c Compare August 16, 2024 12:29
@henrirosten henrirosten merged commit 2561dd5 into main Aug 19, 2024
1 check passed
@henrirosten henrirosten deleted the add_more_test_devices branch August 23, 2024 05:28
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.

3 participants