Lines Matching +full:erase +full:- +full:size

6 -----------------------------------
11 standard set of internal read-only parameter tables.
17 on its SFDP data. All one has to do is to specify the "jedec,spi-nor"
28 -----------------------------
31 section, after the ``---`` marker.
41 root@1:~# cat /sys/bus/spi/devices/spi0.0/spi-nor/partname
43 root@1:~# cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id
45 root@1:~# cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer
47 root@1:~# xxd -p /sys/bus/spi/devices/spi0.0/spi-nor/sfdp
69 root@1:~# sha256sum /sys/bus/spi/devices/spi0.0/spi-nor/sfdp
70 …0461876f189ac97f93e68a05fa6428c6650b3b7baf736a921e5898ed1 /sys/bus/spi/devices/spi0.0/spi-nor/sfdp
72 Please dump the SFDP tables using ``xxd -p``. It enables us to do
74 ``xxd -rp``. Dumping the SFDP data with ``hexdump -Cv`` is accepted,
79 root@1:~# cat /sys/kernel/debug/spi-nor/spi0.0/capabilities
81 1S-1S-1S
85 1S-1S-1S (fast read)
89 1S-1S-2S
93 1S-2S-2S
97 1S-1S-4S
101 1S-4S-4S
105 4S-4S-4S
111 1S-1S-1S
114 root@1:~# cat /sys/kernel/debug/spi-nor/spi0.0/params
117 size 8.00 MiB
118 write size 1
119 page size 256
126 erase 0x20
131 read 1S-4S-4S
132 write 1S-1S-1S
133 register 1S-1S-1S
135 erase commands
143 region (in hex) | erase mask | flags
144 ------------------+------------+----------
145 00000000-00007fff | [01 ] |
146 00008000-0000ffff | [0 2 ] |
147 00010000-007effff | [0 3] |
148 007f0000-007f7fff | [0 2 ] |
149 007f8000-007fffff | [01 ] |
151 4) Use `mtd-utils <https://git.infradead.org/mtd-utils.git>`__
152 and verify that erase, read and page program operations work fine::
159 root@1:~# mtd_debug erase /dev/mtd0 0 2097152
183 If the flash comes erased by default and the previous erase was ignored,
184 we won't catch it, thus test the erase again::
186 root@1:~# mtd_debug erase /dev/mtd0 0 2097152
201 mtd.size = 8388608 (8M)