Is it possible to update u-boot in SPI flash on L138-SOM by u-boot?
Watching the serial flasher loading image, it is loading u-boot at 0x10000, the start of 2nd erase sector, so
I expected something like the following would work:
U-Boot > sf probe 0
SPI flash already probed
8192 KiB M25P64 at 0:0 is now current device
U-Boot> sf erase 0x10000 0x20000
U-Boot > tftp u-boot-mmc.bin
Using device
TFTP from server 172.30.2.87; our IP address is 172.30.2.100
Filename 'u-boot-mmc.bin'.
Load address: 0xc0700000
Loading: ##################################
done
Bytes transferred = 171352 (29d58 hex)
U-Boot > sf write 0xc0700000 0x10000 171352
But if I reset the board, nothing happens, and I have to go back to serial flasher to unbrick it.