您尚未登录。

楼主 # 2024-04-03 21:44:57

memory
会员
注册时间: 2021-08-11
已发帖子: 442
积分: 418

T113-S3 SPI NAND 操作笔记

串口终端一直 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)

离线

楼主 #1 2024-04-03 21:46:23

memory
会员
注册时间: 2021-08-11
已发帖子: 442
积分: 418

Re: T113-S3 SPI NAND 操作笔记

离线

楼主 #2 2024-04-03 22:43:06

memory
会员
注册时间: 2021-08-11
已发帖子: 442
积分: 418

Re: T113-S3 SPI NAND 操作笔记

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
#

离线

楼主 #3 2024-04-03 22:49:17

memory
会员
注册时间: 2021-08-11
已发帖子: 442
积分: 418

Re: T113-S3 SPI NAND 操作笔记

#
# 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
#

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn