串口终端一直 ssssssssss,重新上电进入 u-boot 命令行,
输入 ubi info
=> ubi info
UBI: MTD device name: "sys"
UBI: MTD device size: 251 MiB
UBI: physical eraseblock size: 262144 bytes (256 KiB)
UBI: logical eraseblock size: 258048 bytes
UBI: number of good PEBs: 1004
UBI: number of bad PEBs: 0
UBI: smallest flash I/O unit: 4096
UBI: VID header offset: 2048 (aligned 2048)
UBI: data offset: 4096
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 8
UBI: available PEBs: 693
UBI: total number of reserved PEBs: 311
UBI: number of PEBs reserved for bad PEB handling: 40
UBI: max/mean erase counter: 2/1
输入ubi part sys
=> ubi part sys
[96.979]ubi0: attaching mtd4
[97.183]ubi0: scanning is finished
[97.190]ubi0: attached mtd4 (name "sys", size 251 MiB)
[97.195]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes
[97.201]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048
[97.207]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[97.213]ubi0: good PEBs: 1004, bad PEBs: 0, corrupted PEBs: 0
[97.219]ubi0: user volume: 8, internal volumes: 1, max. volumes count: 128
[97.225]ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
[97.233]ubi0: available PEBs: 693, total reserved PEBs: 311, PEBs reserved for bad PEB handling: 40
输入ubi create UDISK创建UDISK volume:
=> ubi create UDISK
No size specified -> Using max size (178827264)
Creating dynamic volume UDISK of size 178827264
输入ubi remove UDISK删除volume:
=> ubi remove UDISK
Remove UBI volume UDISK (id 8)
离线
离线
linux 操作
ubinfo /dev/ubi0
# ubinfo /dev/ubi0
ubi0
Volumes count: 9
Logical eraseblock size: 258048 bytes, 252.0 KiB
Total amount of logical eraseblocks: 1004 (259080192 bytes, 247.0 MiB)
Amount of available logical eraseblocks: 0 (0 bytes)
Maximum count of volumes 128
Count of bad physical eraseblocks: 0
Count of reserved physical eraseblocks: 40
Current maximum erase counter value: 2
Minimum input/output unit size: 4096 bytes
Character device major/minor: 243:0
Present volumes: 0, 1, 2, 3, 4, 5, 6, 7, 8
#
离线
#
# ubinfo /dev/ubi0_0
Volume ID: 0 (on ubi0)
Type: static
Alignment: 1
Size: 66 LEBs (17031168 bytes, 16.2 MiB)
Data bytes: 16777216 bytes (16.0 MiB)
State: OK
Name: mbr
Character device major/minor: 243:1
#
#
#
# ubinfo /dev/ubi0_1
Volume ID: 1 (on ubi0)
Type: dynamic
Alignment: 1
Size: 2 LEBs (516096 bytes, 504.0 KiB)
State: OK
Name: boot-resource
Character device major/minor: 243:2
#
#
#
#
# ubinfo /dev/ubi0_2
Volume ID: 2 (on ubi0)
Type: dynamic
Alignment: 1
Size: 1 LEBs (258048 bytes, 252.0 KiB)
State: OK
Name: env
Character device major/minor: 243:3
#
离线