Hi Naoki,
will overwrite with zeros, this does work …
blkdiscard -v -z /dev/nvme0n1
i tried to read from /dev/zero and write to /dev/null … this works … but again test with NVME … nope …
root@rock-5b:~# dd if=/dev/zero of=/dev/null bs=1G count=10
10+0 records in
10+0 records out
10737418240 bytes (11 GB, 10 GiB) copied, 1.71893 s, 6.2 GB/s
root@rock-5b:~# dd if=/dev/zero of=/dev/nvme0n1 bs=1G count=10
DDR Version V1.08 20220617
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
Manufacturer ID:0x6
CH0 RX Vref:30.7%, TX Vref:24.8%,24.8%
CH1 RX Vref:30.7%, TX Vref:24.8%,23.8%
CH2 RX Vref:29.7%, TX Vref:24.8%,23.8%
CH3 RX Vref:30.7%, TX Vref:25.8%,24.8%
change to F1: 528MHz
change to F2: 1068MHz
change to F3: 1560MHz
change to F0: 2112MHz
out
U-Boot SPL board init
U-Boot SPL 2017.09-g3caf61a44c2-220414 #stephen (Sep 29 2022 - 18:14:19)
Trying to boot from MMC2
spl: partition error
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(806278dba1...) + OK
## Checking uboot 0x00200000 ... sha256(a1a86d26d5...) + OK
## Checking fdt 0x0030a010 ... sha256(d32827d3ac...) + OK
## Checking atf-2 0x000f0000 ... sha256(c00c7fd75b...) + OK
## Checking atf-3 0xff100000 ... sha256(71c3a5841b...) + OK
## Checking atf-4 0xff001000 ... sha256(2301cf73be...) + OK
Jumping to U-Boot(0x00200000) via ARM Trusted Firmware(0x00040000)
Total: 794.308 ms
i tested ( count 1024->OK count 2048->OK count 4096->reboot )
dd if=/dev/zero of=/dev/nvme0n1 bs=1m count=4096