How to erase spi flash on the khadas edge V

Hello to everyone.

I would like to know how can I erase SPI flash on the khadas edge V using the sf command. What’s the correct command to issue ? I found this article :

https://support.corpshadow.com/hc/en-us/articles/360058956011-Boot-From-SPI-Flash

where he says that I should write the following commands :

kvim3# sf probe
kvim3# sf erase 0 1000
kvim3# reset

but it seems valid for the Khadas VIM3/VIM3L,not sure if it is also valid for the Edge-V.

Hello @Mario_Marietto

It should also work for Edge-V.

kedge# sf probe
SF: Detected w25q128fw with page size 256 Bytes, erase size 4 KiB, total 16 MiB
kedge# sf erase 0 1000
SF: 4096 bytes @ 0x0 Erased: OK