UBI: logical eraseblock size: 126976 bytes UBI: smallest flash I/O unit: 2048 UBI: sub-page size: 512 UBI: VID header offset: 2048 (aligned 2048) UBI: data offset: 4096 UBI: volume 0 (\UBI: attached mtd8 to ubi0 UBI: MTD device name: \UBI: MTD device size: 32 MiB UBI: number of good PEBs: 256 UBI: number of bad PEBs: 0 UBI: max. allowed volumes: 128 UBI: wear-leveling threshold: 4096 UBI: number of internal volumes: 1 UBI: number of user volumes: 1 UBI: available PEBs: 0 UBI: total number of reserved PEBs: 256 UBI: number of PEBs reserved for bad PEB handling: 2 UBI: max/mean erase counter: 1/0 UBI: image sequence number: 669128329 UBI: background thread \UBI device number 0, total 256 LEBs (32505856 bytes, 31.0 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB) root@I01X088.00:~# mount -t ubifs ubi0_0 ~/mountpoint/ UBIFS: mounted UBI device 0, volume 0, name \UBIFS: file system size: 14983168 bytes (14632 KiB, 14 MiB, 118 LEBs) UBIFS: journal size: 2412544 bytes (2356 KiB, 2 MiB, 19 LEBs) UBIFS: media format: w4/r0 (latest is w4/r0) UBIFS: default compressor: lzo UBIFS: reserved for root: 0 bytes (0 KiB) root@I01X088.00:~# ls ls mountpoint mtraces.txt nfs printenv saveenv setenv root@I01X088.00:~# ls mountpoint mtraces.txt nfs printenv saveenv setenv root@I01X088.00:~# cd mountpoint/ root@I01X088.00:~/mountpoint# ls macros.ttm multicom-libstsdk macros_tests.ttm multicom_v4.0.5P2 main_eud7141_7141_ST40ESTB_LINUX_32BITS.out sdk-fonts modules stsdk-fonts modules_eud7141_7141_ST40ESTB_LINUX_32BITS root@I01X088.00:~/mountpoint# 通过nfs tar的方式进行ubi关联
I01X088.00 login: root
Linux I01X088.00 2.6.32.57_stm24_V5.0-EUD7141_7141-STSDK #4 PREEMPT Wed Sep 26 22:47:08 CST 2012 sh4 unknown unknown GNU/Linux Welcome to STMicroelectronics Base Distribution. Last login: Sat Jan 1 00:00:25 +0000 2000 on console. No mail. root@I01X088.00:~# flash_eraseall /dev/mtd8
flash_eraseall has been replaced by `flash_erase