[PATCH v2 2/6] mtd: spi-nor: add erase die (chip) capability
Fabio Estevam
festevam at denx.de
Thu Nov 2 11:01:28 PDT 2023
On 02/11/2023 14:59, Tudor Ambarus wrote:
> On 11/2/23 17:54, Tudor Ambarus wrote:
>> Does this help?
>>
>
> I guess not, because you used the full flash erase in the first place,
> but still a bug. Ok, I'll add some prints.
Yes, it did not help:
root at mcde3000a:~# time flash_erase /dev/mtd0 0 0
Erasing 131072 Kibyte @ 0 -- 0 [ 27.693305] ****** n_dice: 2
% complete [ 27.699053] ****** die_size: 67108864
[ 27.703650] ****** multi_die_erase: 1
[ 27.707342] ****** addr: 0
[ 27.710070] ****** len: 134217728
[ 27.713406] **** Logic addr & (die_size - 1): 0
[ 27.718017] **************** spi_nor_erase_dice 1
[ 27.722793] spi-nor spi0.0: **** Die size is 65536KiB
[ 27.727964] spi-nor spi0.0: ***** nor->params->die_erase_opcode: 0xc4
[ 27.734430] spi-nor spi0.0: ***** nor->addr_nbytes: 4
[ 27.739498] spi-nor spi0.0: ***** addr 0x0
[ 27.743614] spi-nor spi0.0: ***** multi_die: 1
[ 27.748094] spi-nor spi0.0: ***** SR before erase: 0x2
[ 27.753278] spi-nor spi0.0: ***** SR after erase: 0x2
[ 27.758387] spi-nor spi0.0: **** Die size is 65536KiB
[ 27.763559] spi-nor spi0.0: ***** nor->params->die_erase_opcode: 0xc4
[ 27.770017] spi-nor spi0.0: ***** nor->addr_nbytes: 4
[ 27.775085] spi-nor spi0.0: ***** addr 0x4000000
[ 27.779724] spi-nor spi0.0: ***** multi_die: 1
[ 27.784249] spi-nor spi0.0: ***** SR before erase: 0x2
[ 27.789496] spi-nor spi0.0: ***** SR after erase: 0x2
Erasing 131072 Kibyte @ 0 -- 100 % complete
real 0m0.110s
user 0m0.001s
sys 0m0.107s
root at mcde3000a:~# hexdump /dev/mtd0
0000000 a1d4 168c 4dad dfb2 2a3d c2af 0aae c18a
0000010 2d5f 177a c39f 46a4 f9cd b880 331e 2543
0000020 dd47 8981 1eaa aab4 9626 336c 4f74 2b22
....
More information about the linux-arm-kernel
mailing list