Skip to content

Commit

Permalink
Fix zipped image flashing
Browse files Browse the repository at this point in the history
Fix zipped image flashing how it was
simplified solution not seems to work correctly

Signed-off-by: Ville-Pekka Juntunen <[email protected]>
  • Loading branch information
vjuntunen committed Dec 5, 2023
1 parent 48764c7 commit 8c14c42
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Jenkinsfiles/hw_test_set
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,11 @@ pipeline {
println("${params.image}")
println("${params.device}")
if ("${params.device}" == "orin-nx" || "${params.device}" == "orin-agx") {
// Use zstd to decompress the image and write directly to the USB drive.
sh "sudo zstd -d ${zipImagePath} -o /dev/${USBDEVICE}"
sh "sync"
// unzip zipped image, remove .zst ending from path and use that for flashing usb drive. Remove unzipped image after flashing.
sh "sudo zstd -d ${zipImagePath}"
unzippedPath = zipImagePath.minus(".zst")
sh "sudo dd if=${unzippedPath} of=/dev/${USBDEVICE} bs=1M status=progress conv=fsync"
sh "sudo rm -rf ${unzippedPath}"
} else {
sh "sudo dd if=${params.image} of=/dev/${USBDEVICE} bs=1M status=progress conv=fsync"
}
Expand Down

0 comments on commit 8c14c42

Please sign in to comment.