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

Skipping ~/jetson-files if it only contains the zip image #3

Closed
cvaisnor opened this issue Nov 22, 2023 · 1 comment
Closed

Skipping ~/jetson-files if it only contains the zip image #3

cvaisnor opened this issue Nov 22, 2023 · 1 comment

Comments

@cvaisnor
Copy link

Awesome script!! I got this to work yesterday but had to tweak a few things.

For the ~/jetson-files dir, I had placed the Deepstream .deb as well as my Jetson image in compressed zip format.

It looks like the if-statements in flashmgr.sh at

if [ -f ~/jetson-files/sd-blob.img ]; then
and at
elif [ -f ~/jetson-files/jp512-orin-nano-sd-card-image.zip ]; then
should be swapped.

Because I had never unzipped the image file, the statement at L#91 skips at checking the rest of the dir.

@cranky-cyborg
Copy link
Owner

The logic behind that is simple.

If (the blob.img file is extracted and is ready to use ) then
flash the image
else if ( the zip file is available) then
unzip the file, and flash the image.
end if

noting in both cases, the script checks the MD5 hash so jumping straight to blob.img will save a few minutes if the script has been executed before or the file exists.

hope this makes sense.

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

No branches or pull requests

2 participants