Firefly,RK3568的开发板,Android11,linux4.19,原本开发板上是正基的AP6275S的WiFi模组,按照原本代码里的dtsi配置,WiFi模组是可以正常工作的 现在我把开发板上的AP6275S模组换成RTL8822CS模组,这两个模组是pin to pin的,所以我个人认为是不需要修改dtsi的 但是现在的情况是,RTL8822CS模组在开发板上电后,测量这三个关键脚的电压,vbat:3.3v,vddio:1.8v,WL_REG_ON:0v,所以就是WiFi的使能脚没有拉上去,因此模块没有被正确识别到 然后我把dtsi里面的reset-gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>;屏蔽掉之后,WL_REG_ON变成1.8v,说明WiFi的使能脚被拉上去了,按理说这种情况下WiFi模组是可以被识别到sdio节点了,但是我cat /sys/bus/sdio/devices,仍然为空,没有识别到节点 正常可以识别到的AP6275S模组,开发板上电过程过会有这样的打印:[ 1.298662] mmc3: new ultra high speed SDR104 SDIO card at address 0001 换成RTL8822CS模组之后,有这样的报错:[ 1.013139] mmc3 mmc_send_io_op_cond err: -110 另外,这是设备树中关于WiFi模组部分的定义 rk3568-firefly-roc-pc.dtsi: &sdio_pwrseq { status = "okay"; reset-gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>; post-power-on-delay-ms = <100>; }; /* used for wifi */ &sdmmc2 { status = "okay"; }; &wireless_wlan { wifi_chip_type = "ap6275s"; status = "okay"; }; rk3568-firefly-port.dtsi: sdio_pwrseq: sdio-pwrseq { compatible = "mmc-pwrseq-simple"; clocks = <&rk809 1>; clock-names = "ext_clock"; pinctrl-names = "default"; pinctrl-0 = <&wifi_enable_h>; /* * On the module itself this is one of these (depending * on the actual card populated): * - SDIO_RESET_L_WL_REG_ON * - PDN (power down when low) */ post-power-on-delay-ms = <200>; reset-gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>; }; wireless_wlan: wireless-wlan { compatible = "wlan-platdata"; rockchip,grf = <&grf>; wifi_chip_type = "ap6398s"; pinctrl-names = "default"; pinctrl-0 = <&wifi_host_wake_irq>; WIFI,host_wake_irq = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>; status = "disabled"; }; &sdmmc2 { max-frequency = <150000000>; supports-sdio; bus-width = <4>; disable-wp; cap-sd-highspeed; cap-sdio-irq; keep-power-in-suspend; pinctrl-names = "default"; pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>; sd-uhs-sdr104; mmc-pwrseq = <&sdio_pwrseq>; non-removable; status = "disabled"; }; 这是什么原因导致,以及我该怎么定位问题点,怎么解决? 127|:/ # dmesg | grep mmc [ 0.000000] Kernel command line: storagemedia=emmc androidboot.storagemedia=emmc androidboot.mode=normal androidboot.dtb_idx=0 androidboot.dtbo_idx=0 androidboot.verifiedbootstate=orange androidboot.serialno=a71618cb25982e2f console=ttyFIQ0 androidboot.baseband=N/A androidboot.wificountrycode=CN androidboot.veritymode=enforcing androidboot.hardware=rk30board androidboot.console=ttyFIQ0 androidboot.verifiedbootstate=orange firmware_class.path=/vendor/etc/firmware init=/init rootwait ro loop.max_part=7 androidboot.selinux=permissive buildvariant=userdebug earlycon=uart8250,mmio32,0xfe660000 androidboot.boot_devices=fe310000.sdhci,usbhost/fd000000.dwc3/xhci-hcd.5.auto,fd880000.usb,fd800000.usb,fe2b0000.dwmmc,fc800000.sata,3c0800000.pcie,3c0000000.pcie [ 0.878005] dwmmc_rockchip fe000000.dwmmc: IDMAC supports 32-bit address mode. [ 0.878052] dwmmc_rockchip fe000000.dwmmc: Using internal DMA controller. [ 0.878070] dwmmc_rockchip fe000000.dwmmc: Version ID is 270a [ 0.878118] dwmmc_rockchip fe000000.dwmmc: DW MMC controller at irq 42,32 bit host data width,256 deep fifo [ 0.878233] dwmmc_rockchip fe000000.dwmmc: allocated mmc-pwrseq [ 0.878252] mmc_host mmc3: card is non-removable. [ 1.203456] mmc_host mmc3: Bus speed (slot 0) = 375000Hz (slot req 400000Hz, actual 375000HZ div = 0) [ 1.216970] dwmmc_rockchip fe2b0000.dwmmc: IDMAC supports 32-bit address mode. [ 1.217077] dwmmc_rockchip fe2b0000.dwmmc: Using internal DMA controller. [ 1.217098] dwmmc_rockchip fe2b0000.dwmmc: Version ID is 270a [ 1.217162] dwmmc_rockchip fe2b0000.dwmmc: DW MMC controller at irq 51,32 bit host data width,256 deep fifo [ 1.217324] dwmmc_rockchip fe2b0000.dwmmc: Linked as a consumer to regulator.31 [ 1.217423] dwmmc_rockchip fe2b0000.dwmmc: Linked as a consumer to regulator.25 [ 1.227793] mmc3 mmc_send_io_op_cond err: -110 [ 1.229524] mmc_host mmc0: Bus speed (slot 0) = 375000Hz (slot req 400000Hz, actual 375000HZ div = 0) [ 1.243895] mmc2: Unknown controller version (5). You may experience problems. [ 1.275331] mmc2: SDHCI controller on fe310000.sdhci [fe310000.sdhci] using ADMA [ 1.307616] mmc2: new HS200 MMC card at address 0001 [ 1.308387] mmcblk2: mmc2:0001 Y2P032 29.1 GiB [ 1.308955] mmcblk2boot0: mmc2:0001 Y2P032 partition 1 4.00 MiB [ 1.309577] mmcblk2boot1: mmc2:0001 Y2P032 partition 2 4.00 MiB [ 1.309908] mmcblk2rpmb: mmc2:0001 Y2P032 partition 3 16.0 MiB, chardev (237:0) [ 1.312637] mmcblk2: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 [ 1.469671] init: [libfs_mgr]Not running /system/bin/e2fsck on /dev/block/mmcblk2p11 (executable not in system image) [ 1.474046] EXT4-fs (mmcblk2p11): mounted filesystem with ordered data mode. Opts: discard [ 1.552552] mmc_host mmc3: Bus speed (slot 0) = 375000Hz (slot req 375000Hz, actual 375000HZ div = 0) [ 1.576150] mmc3 mmc_send_io_op_cond err: -110 [ 1.920002] mmc3 mmc_send_io_op_cond err: -110 [ 2.265908] mmc3 mmc_send_io_op_cond err: -110 [ 3.146176] EXT4-fs (mmcblk2p14): mounted filesystem with ordered data mode. Opts: (null) [ 3.220319] EXT4-fs (mmcblk2p10): Ignoring removed nomblk_io_submit option [ 3.225319] EXT4-fs (mmcblk2p10): mounted filesystem with ordered data mode. Opts: errors=remount-ro,nomblk_io_submit [ 3.294691] EXT4-fs (mmcblk2p10): mounted filesystem with ordered data mode. Opts: noauto_da_alloc,discard [ 3.534779] EXT4-fs (mmcblk2p15): Ignoring removed nomblk_io_submit option [ 3.534821] EXT4-fs (mmcblk2p15): Using encoding defined by superblock: utf8-12.1.0 with flags 0x0 [ 3.544105] EXT4-fs (mmcblk2p15): mounted filesystem with ordered data mode. Opts: errors=remount-ro,nomblk_io_submit [ 3.638150] EXT4-fs (mmcblk2p15): Using encoding defined by superblock: utf8-12.1.0 with flags 0x0 [ 3.649337] EXT4-fs (mmcblk2p15): mounted filesystem with ordered data mode. Opts: discard,noauto_da_alloc,data=ordered,user_xattr,barrier=1 [ 4.269587] type=1400 audit(1742366978.946:10): avc: denied { setattr } for comm="init" name="nfc" dev="mmcblk2p15" ino=466945 scontext=u:r:vendor_init:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir permissive=1 [ 4.270714] type=1400 audit(1742366978.950:11): avc: denied { read } for comm="init" name="nfc" dev="mmcblk2p15" ino=466945 scontext=u:r:vendor_init:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir permissive=1 [ 4.270860] type=1400 audit(1742366978.950:12): avc: denied { open } for comm="init" path="/data/nfc" dev="mmcblk2p15" ino=466945 scontext=u:r:vendor_init:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir permissive=1 [ 8.374401] type=1400 audit(1742366983.053:41): avc: denied { getattr } for comm="main" path="/oem" dev="mmcblk2p14" ino=2 scontext=u:r:zygote:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 [ 8.378507] type=1400 audit(1742366983.056:42): avc: denied { search } for comm="main" name="/" dev="mmcblk2p14" ino=2 scontext=u:r:zygote:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 [ 25.262280] type=1400 audit(1742366999.923:141): avc: denied { search } for comm="android.bg" name="/" dev="mmcblk2p14" ino=2 scontext=u:r:mediaprovider_app:s0:c118,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module [ 25.398786] type=1400 audit(1742366999.9sive=1 app=com.android.providers.media.module [ 25.581192] type=1400 audit(1742367000.256:149): avc: denied { search } for comm="rs.media.module" name="/" dev="mmcblk2p14" ino=2 scontext=u:r:mediaprovider_app:s0:c118,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module [ 29.020249] type=1400 audit(1742367003.696:154): avc: denied { search } for comm=4173796E635461736B202331 name="/" dev="mmcblk2p14" ino=2 scontext=u:r:mediaprovider_app:s0:c118,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module :/ # |
-
-
54.76 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1