How to erase spi flash (Jetson Nano)?

I have flashed bootloader (u-boot) to spi flash. As a result, I lost the ability to load u-boot from SD card. How do I clear the spi flash so that u-boot can be loaded from SD card?

What version of Linux for Tegra are you using?
Exactly what was the flash.sh command line you used to flash the device before flashing u-boot?
Exactly how did you flash u-boot?
Exactly what is the partition layout of your sdcard?

What version of are you using?

I use Linux for Tegra 4.5.1 for write to SPI nor-flash.

Exactly what was the flash.sh command line you used to flash the device before flashing u-boot?

./flash.sh p3448-0000-max-spi external

Exactly how did you flash u-boot?

To SPI nor-flash.

Exactly what is the partition layout of your sdcard?

Disk /dev/sdc: 58.88 GiB, 63218647040 bytes, 123473920 sectors
Disk model: SD Transcend
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0BB6D356-94FD-4CB7-B978-52A6D51F2C0D

Device Start End Sectors Size Type
/dev/sdc1 24576 123473886 123449311 58.9G Linux filesystem
/dev/sdc2 2048 2303 256 128K Linux filesystem
/dev/sdc3 4096 4991 896 448K Linux filesystem
/dev/sdc4 6144 7295 1152 576K Linux filesystem
/dev/sdc5 8192 8319 128 64K Linux filesystem
/dev/sdc6 10240 10623 384 192K Linux filesystem
/dev/sdc7 12288 13439 1152 576K Linux filesystem
/dev/sdc8 14336 14463 128 64K Linux filesystem
/dev/sdc9 16384 17663 1280 640K Linux filesystem
/dev/sdc10 18432 19327 896 448K Linux filesystem
/dev/sdc11 20480 20735 256 128K Linux filesystem
/dev/sdc12 22528 22687 160 80K Linux filesystem

I use Linux for Tegra 3.2.1 for write SD card.

hello antoha-mi,

please refer to [Bring-Up Considerations] session in the Jetson Nano Platform Adaptation and Bring-Up developer guide.
please have a try with this command, $ sudo ./flash.sh -r jetson-nano-qspi mmcblk0p1
thanks

1 Like

It worked! Thank you!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.