SPI NAND Sync with Kernel for Support of Winbond W25N02KV
Status: Tested on XS Board
=> mtd list
List of MTD devices:
* spi-nand0
- device: spi-flash@0
- parent: spi@21e0000
- driver: spi_nand
- path: /soc/bus@2100000/spi@21e0000/spi-flash@0
- type: NAND flash
- block size: 0x20000 bytes
- min I/O: 0x800 bytes
- OOB size: 128 bytes
- OOB available: 56 bytes
- 0x000000000000-0x000010000000 : "spi-nand0"
- 0x000000000000-0x000010000000 : "UBI"
* nor0
- device: flash@0
- parent: spi@200c000
- driver: jedec_spi_nor
- path: /soc/bus@2000000/spba-bus@2000000/spi@200c000/flash@0
- type: NOR flash
- block size: 0x1000 bytes
- min I/O: 0x1 bytes
- 0x000000000000-0x000000100000 : "nor0"
- 0x000000000000-0x000000020000 : "spl"
- 0x000000020000-0x0000000f0000 : "u-boot"
- 0x0000000f0000-0x000000100000 : "env"
=> ubi part UBI
SF: Detected mx25v8035f with page size 256 Bytes, erase size 4 KiB, total 1 MiB
ubi0: attaching mtd5
ubi0: scanning is finished
ubi0: attached mtd5 (name "UBI", size 256 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 2047, bad PEBs: 1, corrupted PEBs: 0
ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 1553925693
ubi0: available PEBs: 2, total reserved PEBs: 2045, PEBs reserved for bad PEB handling: 39
=> ubifsmount ubi0
=> ubifsls
<DIR> 5520 Fri Mar 09 12:34:56 2018 bin
<DIR> 160 Fri Mar 09 12:34:56 2018 dev
<DIR> 5480 Fri Mar 09 12:34:56 2018 etc
<DIR> 6048 Fri Mar 09 12:34:56 2018 lib
<DIR> 160 Fri Mar 09 12:34:56 2018 mnt
<DIR> 160 Fri Mar 09 12:34:56 2018 run
<DIR> 160 Fri Mar 09 12:34:56 2018 tmp
<DIR> 160 Fri Mar 09 12:34:56 2018 sys
<DIR> 808 Fri Mar 09 12:34:56 2018 var
<DIR> 736 Fri Mar 09 12:34:56 2018 usr
<DIR> 496 Fri Mar 09 12:34:56 2018 www
<DIR> 456 Fri Mar 09 12:34:56 2018 boot
<DIR> 224 Fri Mar 09 12:34:56 2018 home
<DIR> 160 Fri Mar 09 12:34:56 2018 proc
<DIR> 8496 Fri Mar 09 12:34:56 2018 sbin
<DIR> 160 Fri Mar 09 12:34:56 2018 media
Edited by Frieder Schrempf