本帖最后由 张小牛 于 2022-2-15 10:04 编辑
需要一个固件分区备份,或者谁有,试一下告诉我,最好手里有TTL或编程器,不然变砖可能救不回来。
秘密就是内置的mtd是阉割版,不能解锁、不能写入,升级一下mtd软件包,1、8、9、10、13、14等分区就都可以解锁了。再安装一个nand-utils查一下就更清楚。虽然6、7不能解锁,但是flash总共就256M,所以mtd1是mtd2-14的复合体,mtd1能写基本上就能解决问题。退一步说,9和10能写,可玩性也很高。
root@SAF:/usr/sbin# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "bootcode"
mtd1: 0ff00000 00020000 "ubilayer_v5"
mtd2: 0001f000 0001f000 "flash_configA"
mtd3: 0001f000 0001f000 "flash_configB"
mtd4: 0001f000 0001f000 "slave_paramA"
mtd5: 0001f000 0001f000 "slave_paramB"
mtd6: 030ec000 0001f000 "allsystemA"
mtd7: 030ec000 0001f000 "allsystemB"
mtd8: 00117000 0001f000 "keyfile"
mtd9: 0103a000 0001f000 "frameworkA"
mtd10: 0103a000 0001f000 "frameworkB"
mtd11: 0001f000 0001f000 "wifi_paramA"
mtd12: 0001f000 0001f000 "wifi_paramB"
mtd13: 00a0d000 0001f000 "file_system"
mtd14: 06064000 0001f000 "apps"
root@SAF:/usr/sbin# cat /proc/partitions
major minor #blocks name
1 0 50000 ram0
1 1 50000 ram1
1 2 50000 ram2
1 3 50000 ram3
31 0 1024 mtdblock0
31 1 261120 mtdblock1
31 2 124 mtdblock2
31 3 124 mtdblock3
31 4 124 mtdblock4
31 5 124 mtdblock5
31 6 50096 mtdblock6
31 7 50096 mtdblock7
31 8 1116 mtdblock8
31 9 16616 mtdblock9
31 10 16616 mtdblock10
31 11 124 mtdblock11
31 12 124 mtdblock12
31 13 10292 mtdblock13
31 14 98704 mtdblock14
7 0 92 loop0
root@SAF:/usr/sbin# mtdinfo --all
Count of MTD devices: 15
Present MTD devices: mtd0, mtd1, mtd2, mtd3, mtd4, mtd5, mtd6, mtd7, mtd8, mtd9, mtd10, mtd11, mtd12, mtd13, mtd14
Sysfs interface supported: yes
mtd0
Name: bootcode
Type: nand
Eraseblock size: 131072 bytes, 128.0 KiB
Amount of eraseblocks: 8 (1048576 bytes, 1024.0 KiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 2048 bytes
OOB size: 64 bytes
Character device major/minor: 90:0
Bad blocks are allowed: true
Device is writable: false
mtd1
Name: ubilayer_v5
Type: nand
Eraseblock size: 131072 bytes, 128.0 KiB
Amount of eraseblocks: 2040 (267386880 bytes, 255.0 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 2048 bytes
OOB size: 64 bytes
Character device major/minor: 90:2
Bad blocks are allowed: true
Device is writable: true
mtd2
Name: flash_configA
Type: ubi
Eraseblock size: 126976 bytes, 124.0 KiB
Amount of eraseblocks: 1 (126976 bytes, 124.0 KiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 2048 bytes
Character device major/minor: 90:4
Bad blocks are allowed: false
Device is writable: false
mtd3
Name: flash_configB
Type: ubi
Eraseblock size: 126976 bytes, 124.0 KiB
Amount of eraseblocks: 1 (126976 bytes, 124.0 KiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 2048 bytes
Character device major/minor: 90:6
Bad blocks are allowed: false
Device is writable: false
mtd4
Name: slave_paramA
Type: ubi
Eraseblock size: 126976 bytes, 124.0 KiB
Amount of eraseblocks: 1 (126976 bytes, 124.0 KiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 2048 bytes
Character device major/minor: 90:8
Bad blocks are allowed: false
Device is writable: false
mtd5
Name: slave_paramB
Type: ubi
Eraseblock size: 126976 bytes, 124.0 KiB
Amount of eraseblocks: 1 (126976 bytes, 124.0 KiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 2048 bytes
Character device major/minor: 90:10
Bad blocks are allowed: false
Device is writable: false
mtd6
Name: allsystemA
Type: ubi
Eraseblock size: 126976 bytes, 124.0 KiB
Amount of eraseblocks: 404 (51298304 bytes, 48.9 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 2048 bytes
Character device major/minor: 90:12
Bad blocks are allowed: false
Device is writable: false
mtd7
Name: allsystemB
Type: ubi
Eraseblock size: 126976 bytes, 124.0 KiB
Amount of eraseblocks: 404 (51298304 bytes, 48.9 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 2048 bytes
Character device major/minor: 90:14
Bad blocks are allowed: false
Device is writable: false
mtd8
Name: keyfile
Type: ubi
Eraseblock size: 126976 bytes, 124.0 KiB
Amount of eraseblocks: 9 (1142784 bytes, 1.1 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 2048 bytes
Character device major/minor: 90:16
Bad blocks are allowed: false
Device is writable: true
mtd9
Name: frameworkA
Type: ubi
Eraseblock size: 126976 bytes, 124.0 KiB
Amount of eraseblocks: 134 (17014784 bytes, 16.2 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 2048 bytes
Character device major/minor: 90:18
Bad blocks are allowed: false
Device is writable: true
mtd10
Name: frameworkB
Type: ubi
Eraseblock size: 126976 bytes, 124.0 KiB
Amount of eraseblocks: 134 (17014784 bytes, 16.2 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 2048 bytes
Character device major/minor: 90:20
Bad blocks are allowed: false
Device is writable: true
mtd11
Name: wifi_paramA
Type: ubi
Eraseblock size: 126976 bytes, 124.0 KiB
Amount of eraseblocks: 1 (126976 bytes, 124.0 KiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 2048 bytes
Character device major/minor: 90:22
Bad blocks are allowed: false
Device is writable: false
mtd12
Name: wifi_paramB
Type: ubi
Eraseblock size: 126976 bytes, 124.0 KiB
Amount of eraseblocks: 1 (126976 bytes, 124.0 KiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 2048 bytes
Character device major/minor: 90:24
Bad blocks are allowed: false
Device is writable: false
mtd13
Name: file_system
Type: ubi
Eraseblock size: 126976 bytes, 124.0 KiB
Amount of eraseblocks: 83 (10539008 bytes, 10.1 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 2048 bytes
Character device major/minor: 90:26
Bad blocks are allowed: false
Device is writable: true
mtd14
Name: apps
Type: ubi
Eraseblock size: 126976 bytes, 124.0 KiB
Amount of eraseblocks: 796 (101072896 bytes, 96.4 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 2048 bytes
Character device major/minor: 90:28
Bad blocks are allowed: false
Device is writable: true
|