@whycan 将设备树这三行注释掉就好了,
twi_drv_used = <1>;
dmas = <&dma 45>, <&dma 45>;
dma-names = "tx", "rx";
@whycan 将设备树这三行注释掉就好了,
twi_drv_used = <1>;
dmas = <&dma 45>, <&dma 45>;
dma-names = "tx", "rx";
ubiupdatevol /dev/ubi0_1 boot-resource.fex
这样可以修改整个卷的数据,但是如何修改boot-resource.fex里bootlogo.bmp,或者如何将新的bootlogo.bmp打包生成boot-resource.fex文件,然后再用上面命令来更新卷数据
# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00040000 "boot0"
mtd1: 00300000 00040000 "uboot"
mtd2: 00100000 00040000 "secure_storage"
mtd3: 0fb00000 00040000 "sys"
mtd分为4个分区,mtd3关联ubi0
ubi0分了7个卷
UBI version: 1
Count of UBI devices: 1
UBI control device major/minor: 10:123
Present UBI devices: ubi0
ubi0
Volumes count: 8
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: 244:0
Present volumes: 0, 1, 2, 3, 4, 5, 6, 7
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: 244:1
-----------------------------------
Volume ID: 1 (on ubi0)
Type: dynamic
Alignment: 1
Size: 69 LEBs (17805312 bytes, 16.9 MiB)
State: OK
Name: boot-resource
Character device major/minor: 244:2
-----------------------------------
Volume ID: 2 (on ubi0)
Type: dynamic
Alignment: 1
Size: 5 LEBs (1290240 bytes, 1.2 MiB)
State: OK
Name: env
Character device major/minor: 244:3
-----------------------------------
Volume ID: 3 (on ubi0)
Type: dynamic
Alignment: 1
Size: 5 LEBs (1290240 bytes, 1.2 MiB)
State: OK
Name: env-redund
Character device major/minor: 244:4
-----------------------------------
Volume ID: 4 (on ubi0)
Type: dynamic
Alignment: 1
Size: 70 LEBs (18063360 bytes, 17.2 MiB)
State: OK
Name: boot
Character device major/minor: 244:5
-----------------------------------
Volume ID: 5 (on ubi0)
Type: dynamic
Alignment: 1
Size: 732 LEBs (188891136 bytes, 180.1 MiB)
State: OK
Name: rootfs
Character device major/minor: 244:6
-----------------------------------
Volume ID: 6 (on ubi0)
Type: dynamic
Alignment: 1
Size: 5 LEBs (1290240 bytes, 1.2 MiB)
State: OK
Name: dsp0
Character device major/minor: 244:7
-----------------------------------
Volume ID: 7 (on ubi0)
Type: dynamic
Alignment: 1
Size: 8 LEBs (2064384 bytes, 1.9 MiB)
State: OK
Name: UDISK
Character device major/minor: 244:8
我想挂载ubi0_1卷(boot-resource)修改里面的开机logo
# mount -t ubifs ubi0_1 /mnt/boot
mount: mounting ubi0_1 on /mnt/boot failed: Invalid argument
挂载失败!
ubi0_5 (rootfs)可以挂载,ubi0_7 (UDisk)也可以挂载。
其他卷都无法挂载。
@whycan 将设备树这三行注释掉就好了,
twi_drv_used = <1>;
dmas = <&dma 45>, <&dma 45>;
dma-names = "tx", "rx";
@whycan devmem 查看了引脚寄存器配置两个引脚当前配置为gpio,不是i2c2, 处于设备树配置的sleep。用devmem修改了寄存器的值,再用i2cdetect也是扫不到设备。
# i2cdetect -y 2
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
`i2cdetect -y 2
0 1 2 3 4 5 6 7 8 9 a b c d e f
[14014.608115] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.620277] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x3)
00: [14014.627829] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
-- [14014.636662] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x4)
-- [14014.644440] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.652705] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x5)
-- [14014.660196] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.668270] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x6)
-- [14014.675835] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.683910] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x7)
-- [14014.691383] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.699452] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x8)
-- [14014.706936] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.715014] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x9)
-- [14014.723052] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.731113] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0xa)
-- [14014.738625] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.746699] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0xb)
-- [14014.754189] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.762267] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0xc)
-- [14014.769726] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.777807] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0xd)
-- [14014.785293] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.793369] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0xe)
-- [14014.800828] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.808904] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0xf)
--
[14014.816423] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
10: [14014.824652] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x10)
-- [14014.832577] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.840647] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x11)
-- [14014.848242] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.856325] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x12)
-- [14014.863973] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.872047] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x13)
-- [14014.879609] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.887688] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x14)
-- [14014.895273] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.903351] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x15)
-- [14014.910911] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.918989] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x16)
-- [14014.926569] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.934648] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x17)
-- [14014.942227] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.950303] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x18)
-- [14014.957887] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.965966] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x19)
-- [14014.973543] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.981619] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x1a)
-- [14014.989202] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14014.997285] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x1b)
-- [14015.004936] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.013009] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x1c)
-- [14015.020573] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.028648] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x1d)
-- [14015.036239] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.044316] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x1e)
-- [14015.051882] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.059952] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x1f)
--
[14015.067583] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
20: [14015.075812] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x20)
-- [14015.083736] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.091808] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x21)
-- [14015.099401] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.107477] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x22)
-- [14015.115055] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.123133] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x23)
-- [14015.130689] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.138771] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x24)
-- [14015.146426] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.154498] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x25)
-- [14015.162095] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.170137] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x26)
-- [14015.177717] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.185796] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x27)
-- [14015.193380] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.201454] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x28)
-- [14015.209041] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.217118] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x29)
-- [14015.224696] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.232772] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x2a)
-- [14015.240744] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.248808] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x2b)
-- [14015.256409] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.264484] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x2c)
-- [14015.272060] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.280122] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x2d)
-- [14015.287708] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.295785] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x2e)
-- [14015.303368] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.311443] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x2f)
--
[14015.319044] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
30: [14015.327278] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x30)
-- [14015.335200] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.343276] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x31)
-- [14015.350835] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.358905] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x32)
-- [14015.366594] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.374665] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x33)
-- [14015.382253] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.390327] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x34)
-- [14015.397921] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.405997] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x35)
-- [14015.413581] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.421657] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x36)
-- [14015.429247] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.437325] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x37)
-- [14015.444909] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.452985] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x38)
-- [14015.460542] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.468620] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x39)
-- [14015.476196] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.484271] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x3a)
-- [14015.491826] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.499910] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x3b)
-- [14015.507555] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.515630] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x3c)
-- [14015.523215] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.531287] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x3d)
-- [14015.538877] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.546958] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x3e)
-- [14015.554538] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.562613] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x3f)
--
[14015.570187] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
40: [14015.578420] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x40)
-- [14015.586342] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.594419] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x41)
-- [14015.601975] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.610053] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x42)
-- [14015.617630] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.625705] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x43)
-- [14015.633392] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.641463] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x44)
-- [14015.649052] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.657130] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x45)
-- [14015.664714] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.672792] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x46)
-- [14015.680350] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.688427] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x47)
-- [14015.696024] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.704102] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x48)
-- [14015.711668] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.719750] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x49)
-- [14015.727345] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.735419] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x4a)
-- [14015.742996] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.751071] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x4b)
-- [14015.758658] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.766739] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x4c)
-- [14015.774391] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.782465] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x4d)
-- [14015.790026] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.798105] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x4e)
-- [14015.805684] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.813763] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x4f)
--
[14015.821339] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
50: [14015.829576] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x50)
-- [14015.837495] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.845571] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x51)
-- [14015.853153] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.861226] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x52)
-- [14015.868811] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.876887] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x53)
-- [14015.884469] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.892543] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x54)
-- [14015.900098] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.908181] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x55)
-- [14015.915827] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.923900] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x56)
-- [14015.931460] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.939538] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x57)
-- [14015.947497] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.955561] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x58)
-- [14015.963169] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.971235] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x59)
-- [14015.978828] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14015.986906] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x5a)
-- [14015.994489] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.002562] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x5b)
-- [14016.010121] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.018199] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x5c)
-- [14016.025783] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.033863] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x5d)
-- [14016.041426] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.049509] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x5e)
-- [14016.057097] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.065170] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x5f)
--
[14016.072881] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
60: [14016.081107] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x60)
-- [14016.089053] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.097129] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x61)
-- [14016.104721] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.112787] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x62)
-- [14016.120347] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.128422] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x63)
-- [14016.136001] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.144079] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x64)
-- [14016.151637] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.159716] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x65)
-- [14016.167294] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.175376] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x66)
-- [14016.182954] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.191032] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x67)
-- [14016.198617] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.206702] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x68)
-- [14016.214349] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.222424] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x69)
-- [14016.229982] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.238059] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x6a)
-- [14016.245641] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.253716] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x6b)
-- [14016.261275] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.269352] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x6c)
-- [14016.276937] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.285013] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x6d)
-- [14016.292594] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.300668] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x6e)
-- [14016.308253] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.316336] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x6f)
--
[14016.323930] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
70: [14016.332164] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x70)
-- [14016.340077] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.348156] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x71)
-- [14016.355806] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.363882] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x72)
-- [14016.371446] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.379518] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x73)
-- [14016.387101] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.395174] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x74)
-- [14016.402750] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.410828] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x75)
-- [14016.418414] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.426492] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x76)
-- [14016.434073] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[14016.442151] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x77)
--
T113S使用i2c接口连接外置RTC初始化失败,这个是什么原因
[ 4.429716] sunxi-i2c sunxi-i2c2: sunxi-i2c2 supply twi not found, using dummy regulator
[ 4.444395] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
[ 4.452364] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x51)
[ 4.459795] rtc-pcf8563 2-0051: pcf8563_write_block_data: err=-22 addr=0e, data=03
[ 4.468327] rtc-pcf8563 2-0051: pcf8563_probe: write error
[ 4.474816] rtc-pcf8563: probe of 2-0051 failed with error -5
[ 4.481305] sunxi-i2c sunxi-i2c2: probe success
[ 4.488591] sunxi-i2c sunxi-i2c3: sunxi-i2c3 supply twi not found, using dummy regulator
[ 4.501228] sunxi-i2c sunxi-i2c3: probe success
使用longanLinux kernel5.4设备树配置
twi2_pins_a: twi2@0 {
pins = "PG14", "PG15";
function = "twi2";
drive-strength = <10>;
};
twi2_pins_b: twi2@1 {
pins = "PG14", "PG15";
function = "gpio_in";
};
&twi2 {
clock-frequency = <400000>;
pinctrl-0 = <&twi2_pins_a>;
pinctrl-1 = <&twi2_pins_b>;
pinctrl-names = "default", "sleep";
twi_drv_used = <1>;
dmas = <&dma 45>, <&dma 45>;
dma-names = "tx", "rx";
status = "okay";
pcf8563: pcf8563@51 {
compatible = "nxp,pcf8563";
reg = <0x51>;
#clock-cells = <0>;
};
};