The "flash.sh" is missing

How do I flash SD card, SATA drive or USB drive without flash.sh? If it isn’t possible, how do I create a “flash.sh”?

Is SATA drive considered an external device on TX2?

Hi there,

For a Jetson TX2 I suggest you take a look at the relevant (archived) documentation.

The respective latest Jetpack for TX2 is 4.6.3 which will include a flash.shscript.

I hope that helps.

Thanks!

Hi,

The idea here is not correct. We won’t “create” a flash.sh. The default BSP includes it.

However, even if you have flash.sh, this tool is not able to flash any kind of external drive.
I explained that in this post with point 4 → flash.sh will not flash anything to your external drive..

I tried to flash SD card with “sudo ./flash.sh…” and the result is file not found.
It is said that the flash.sh will be deleted if “remove the temporary files after flashing” option is checked. I did not uncheck this option before flashing the emmc. I think it is probably why the flash,sh is not there.

The emmc storage is limited and TX2 doesn’t support m.2 ssd. Therefore I want to use SD or sata drive instead. But how? I think a lot of people want to get around this limitation.

Hi @wing901

  1. What option is this? A option in sdkmanager? or something else?

It is said that the flash.sh will be deleted if “remove the temporary files after flashing” option is checked

  1. Point 3 in above post also told how to do that. There is no method to “flash”. You can only manually put the rootfs to the external drive and then run the command to let kernel know where to loads rootfs.

As far as I can remember, the “removing temporary files…” option is on the flashing step.

What is the boot sequence of tx2? It is said that the order is SD card, usd/sata drive, emmc.

As far as I can remember, the “removing temporary files…” option is on the flashing step.

I mean, did you see that on sdkmanager?

What is the boot sequence of tx2? It is said that the order is SD card, usd/sata drive, emmc.

You can check by by interrupting the uboot in uart serial console.

Yes. It is checked by default.

Weird. That didn’t happen to me. Please disable that option on your side.

The flashing emmc(set up) is a one time procedure. After that is upgrade. It won’t show up again. Maybe this option did show up hereafter but I didn’t notice.

Hi,

Could you check your host machine path ~/nvidia/ and see if there is a jetpack folder there after you flash the board?

No. I could not find the jetpack folder. The nvidia folder contains several dozens compressed files including jetson linux and tegra linux sample root file system.

Hi @wing901,

Could you just share me a screenshot or result of “ls” command of what you saw in the directory and share it here?

Yes

Yes when I go home.

Only one folder under nvidia.

Yes… please share what inside that folder, if there is another folder inside, share what you see there…

Please do not just tell me “there is one folder”. Tell me what is its name and what is inside…

And please be aware that I am not asking you to share me the content of ~/Downloads/nvidia…

I only want to check ~/nvidia. Not the one under Downloads.

See the screenshot, please. (I edited the old post last night instead of posting a new one.)

Hi,

Yes, I saw the screenshot. But this directory is not what I want you to check. Do you understand what I tried to say here?

nivida/sdkm_downloads. There is no other file or path in nivida, only sdkm_downloads.