change for flash configuration testing (some memory is read uninitialized)
[cr816-sim.git] / tools / bq_test_erase_eeprom_all
blob0d64dcbfae9741ada32d41720a4705b0def1be5b
1 #!/bin/sh
2 #require key 0xde 0x83 (may be different, use simulator), can be erased by row by row (no key)
4 echo "will erase entire flash (const+log)!!" >&2
5 echo "enter to continue, ctrl+c to quit" >&2
6 read
8 . ./i2c_config.sh
10 #i2ctransfer -y ${SMB_IFACE} w3@${SMB_ADDR} 0x47 0xde 0x83
12 smb_init
13 smb_write 3 0x47 0xde 0x83
14 smb_commit