@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";
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>;
};
};
终于调通了,简直就是一个大坑...由于WiFi驱动里面cfg80211.h的接口定义跟内核版本的cfg80211.h的接口不一致,导致调用时传入的数据不对了,但是奇怪的是,这编译时或者运行时为什么不报错呢......
Authenticated with 78:44:fd:be:c6:64 (on wlan0)
Not connected.
1.查看想要连接BSSID已经验证成功了,但是查看WIFI没有连接上,而且下面一直有个其他MAC地址的一直在解除认证数据帧,scan了下WiFi,附近根本没有此MAC地址的设备。
[STA_WRN] Freq 2462 (wsm ch: 11) prev: 3.
[XRADIO] if0-TX-auth-- (认证请求)
[XRADIO] if0-RX-auth-- (接收认证)
[STA_WRN] Freq 2422 (wsm ch: 3) prev: 11.
[STA_WRN] Freq 2462 (wsm ch: 11) prev: 3.
[XRADIO] if0-TX-assoc_req-- (关联请求)
[XRADIO] if0-RX-assoc_resp-- (关联成功)
[AP_WRN] [STA] ASSOC HTCAP 11N 58
[XRADIO] if0-TX-deauth-- (解除认证)
[WSM_WRN] Issue unjoin command(TX).
调试发现,已经成功认证连接了,但是不知道为什么马上又发送了deauth解除认证,断开连接的数据帧。导致WiFi没有连接上
Successfully initialized wpa_supplicant
nl80211: Could not re-add multicast membership for vendor events: -2 (No such file or directory)
[STA_WRN] Freq 2412 (wsm ch: 1) prev: 3.
[STA_WRN] Freq 2422 (wsm ch: 3) prev: 1.
[STA_WRN] Freq 2412 (wsm ch: 1) prev: 3.
[AP_WRN] [STA] ASSOC HTCAP 11N 58
[WSM_WRN] Issue unjoin command(TX).
使用wpa_cli -i wlan0 scan 可以正常扫描都附近的wiif,配置wpa_supplicant连接后,打印上述信息后就没反应了。
wpa_state=SCANNING,一直处于这个状态。
WiFi热点配置都没有问题,猜测可能驱动哪里没有配置好
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)也可以挂载。
其他卷都无法挂载。