@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";
[01.741]mbr magic error: ▒▒▒▒H wanted softw411
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid GPT ***
[01.753]mbr magic error: ▒▒▒▒H wanted softw411
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
partno erro : can't find partition bootloader
[01.769]mbr magic error: ▒▒▒▒H wanted softw411
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid GPT ***
[01.780]mbr magic error: ▒▒▒▒H wanted softw411
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
partno erro : can't find partition boot-resource
[01.797]Get bootloader and boot-resource partition number fail!
[01.802]mbr magic error: ▒▒▒▒H wanted softw411
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid GPT ***
[01.814]mbr magic error: ▒▒▒▒H wanted softw411
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
[02.119]LCD open finish
[02.121]Loading Environment from SUNXI_FLASH... [02.126]mbr magic error: ▒▒▒▒H wanted softw411
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid GPT ***
[02.137]mbr magic error: ▒▒▒▒H wanted softw411
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
Can't find env partition
*** Warning - no device, using default environment
Failed (-19)
cann't get the boot_base from the env
[02.161]Item0 (Map) magic is bad
[02.164]mbr magic error: wanted softw411
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid GPT ***
[02.175]mbr magic error: wanted softw411
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
partno erro : can't find partition private
[02.191]mbr magic error: ▒▒▒▒▒▒▒▒ wanted softw411
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid GPT ***
[02.202]mbr magic error: ▒▒▒▒▒▒▒▒ wanted softw411
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
[02.215]update bootcmd
[02.217]mbr magic error: ▒▒▒▒▒▒▒▒ wanted softw411
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid GPT ***
[02.229]mbr magic error: ▒▒▒▒▒▒▒▒ wanted softw411
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
[02.241]mbr magic error: ▒▒▒▒▒▒▒▒ wanted softw411
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid GPT ***
[02.253]mbr magic error: ▒▒▒▒▒▒▒▒ wanted softw411
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
[02.265]mbr magic error: ▒▒▒▒▒▒▒▒ wanted softw411
[02.270]change working_fdt 0x44885e70 to 0x44865e70
[02.288]update dts
这是分区损坏了吗?这种是什么原因引起的,如何修复和预防
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>;
};
};