kernel
kernel copied to clipboard
wlan(develop-5.10) not work on Firefly RK3399
Based on develop-5.10, wlan doesn't work.
Maybe I didn't setup the gpio pin properly which is connecting to the wifi module. But how to set it? Thanks.
-
ip information
4: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 08:e9:f6:e6:29:82 brd ff:ff:ff:ff:ff:ff -
Boot log
Dec 21 04:05:47 kernel: [BT_RFKILL]: Enter rfkill_rk_init Dec 21 04:05:47 kernel: [WLAN_RFKILL]: Enter rfkill_wlan_init Dec 21 04:05:47 kernel: [WLAN_RFKILL]: Enter rfkill_wlan_probe Dec 21 04:05:47 kernel: [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi_chip_type = ap6356s Dec 21 04:05:47 kernel: [WLAN_RFKILL]: wlan_platdata_parse_dt: enable wifi power control. Dec 21 04:05:47 kernel: [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi power controled by gpio. Dec 21 04:05:47 kernel: [WLAN_RFKILL]: wlan_platdata_parse_dt: WIFI,host_wake_irq = 3, flags = 0. Dec 21 04:05:47 kernel: [WLAN_RFKILL]: wlan_platdata_parse_dt: The ref_wifi_clk not found ! Dec 21 04:05:47 kernel: [WLAN_RFKILL]: rfkill_wlan_probe: init gpio Dec 21 04:05:47 kernel: [WLAN_RFKILL]: rfkill_set_wifi_bt_power: 1 Dec 21 04:05:47 kernel: [WLAN_RFKILL]: Exit rfkill_wlan_probe Dec 21 04:05:47 kernel: [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: uart_rts_gpios = 83. Dec 21 04:05:47 kernel: [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,reset_gpio = 9. Dec 21 04:05:47 kernel: [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,wake_gpio = 90. Dec 21 04:05:47 kernel: [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,wake_host_irq = 4. Dec 21 04:05:47 kernel: [BT_RFKILL]: bluetooth_platdata_parse_dt: clk_get failed!!!. Dec 21 04:05:47 kernel: [BT_RFKILL]: Request irq for bt wakeup host Dec 21 04:05:47 kernel: [BT_RFKILL]: ** disable irq Dec 21 04:05:47 kernel: [BT_RFKILL]: bt shut off power Dec 21 04:05:47 kernel: [BT_RFKILL]: bt_default device registered. ... ec 21 04:05:48 kernel: [dhd] dhd_tcpack_suppress_set: TCPACK_INFO_MAXNUM=10, TCPDATA_INFO_MAXNUM=10 Dec 21 04:05:48 kernel: [dhd] dhd_get_memdump_info: MEMDUMP ENABLED = 3 Dec 21 04:05:48 kernel: [dhd] sdioh_cis_read: func_cis_ptr[0]=0x1070 Dec 21 04:05:48 systemd[1]: Mounted /boot. Dec 21 04:05:48 systemd[1]: Reached target Local File Systems. Dec 21 04:05:48 kernel: [dhd] dhd_conf_get_otp : module_name=ap6398sv Dec 21 04:05:48 kernel: [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : sectoin 1, size 10300 Dec 21 04:05:48 kernel: [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : sectoin 2, size 65536 Dec 21 04:05:48 kernel: [dhd] dhdsdio_probe_init: making DHD_BUS_DOWN Dec 21 04:05:48 kernel: [dhd] Dongle Host Driver, version 101.10.361.20 (wlan=r892223-20220701-3) drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd compiled on Dec 21 2022 at 03:54:44 Dec 21 04:05:48 kernel: [dhd] Register interface [wlan0] MAC: 08:e9:f6:e6:29:82 Dec 21 04:05:48 kernel: [dhd] [wlan0] wl_android_wifi_off : in g_wifi_on=1, on_failure=1 Dec 21 04:05:48 kernel: [dhd] dhd_rtt_deinit: ENTER Dec 21 04:05:48 kernel: [dhd] dhd_rtt_deinit: EXIT, err = 0 Dec 21 04:05:48 kernel: [dhd] dhd_bus_devreset: == Power OFF == Dec 21 04:05:48 kernel: [dhd] dhd_bus_stop: making DHD_BUS_DOWN Dec 21 04:05:48 kernel: [dhd] bcmsdh_oob_intr_unregister: Enter Dec 21 04:05:48 kernel: [dhd] bcmsdh_oob_intr_unregister: irq is not registered Dec 21 04:05:48 systemd[1]: Starting Restore /run/initramfs on shutdown... Dec 21 04:05:48 kernel: [dhd] dhd_bus_devreset: making dhdpub up FALSE Dec 21 04:05:48 kernel: [dhd] dhd_txglom_enable: enable 0 Dec 21 04:05:48 kernel: [dhd] dhd_bus_devreset: making DHD_BUS_DOWN Dec 21 04:05:48 kernel: [dhd] wifi_platform_set_power = 0, delay: 0 msec Dec 21 04:05:48 kernel: [dhd] ======== PULL WL_REG_ON(-1) LOW! ======== Dec 21 04:05:48 kernel: [WLAN_RFKILL]: rockchip_wifi_power: 0 Dec 21 04:05:48 kernel: [WLAN_RFKILL]: rockchip_wifi_power: toggle = false Dec 21 04:05:48 kernel: [WLAN_RFKILL]: wifi shut off power [GPIO-1-1] Dec 21 04:05:48 kernel: [dhd] [wlan0] wl_android_wifi_off : out Dec 21 04:05:48 systemd[1]: Condition check resulted in Rebuild Dynamic Linker Cache being skipped. Dec 21 04:05:48 kernel: [dhd] dhdsdio_probe : mutex is released. Dec 21 04:05:48 kernel: cpu cpu0: Looking up cpu-supply from device tree Dec 21 04:05:48 kernel: cpu cpu4: Looking up cpu-supply from device tree Dec 21 04:05:48 kernel: [dhd] _dhd_module_init: Exit err=0 ... Dec 21 04:05:50 kernel: [dhd] DHD: dongle ram size is set to 1310720(orig 1310720) at 0x170000 Dec 21 04:05:50 kernel: [dhd] dhd_bus_devreset: making DHD_BUS_DOWN Dec 21 04:05:50 kernel: [dhd] dhdsdio_probe_init: making DHD_BUS_DOWN Dec 21 04:05:50 kernel: [dhd] dhd_conf_set_path_params : Final DHD_LINUX_STD_FW_API=not defined Dec 21 04:05:50 kernel: [dhd] dhd_conf_set_path_params : Final fw_path=/vendor/etc/firmware/fw_bcm4359c51a2_ag.bin Dec 21 04:05:50 kernel: [dhd] dhd_conf_set_path_params : Final nv_path=/vendor/etc/firmware/nvram_ap6398sv.txt Dec 21 04:05:50 kernel: [dhd] dhd_conf_set_path_params : Final clm_path=/vendor/etc/firmware/clm_bcm4359c51a2_ag.blob Dec 21 04:05:50 kernel: [dhd] dhd_conf_set_path_params : Final conf_path=/vendor/etc/firmware/config.txt Dec 21 04:05:50 kernel: [dhd] dhd_os_open_image1: /vendor/etc/firmware/config.txt (205 bytes) open success Dec 21 04:05:50 kernel: [dhd] dhd_conf_read_config : Ignore config file /vendor/etc/firmware/config.txt Dec 21 04:05:50 kernel: [dhd] dhd_os_open_image1: /vendor/etc/firmware/fw_bcm4359c51a2_ag.bin (784088 bytes) open success Dec 21 04:05:50 kernel: [dhd] dhdsdio_download_code_file: dhd_os_get_image_block failed (-1) Dec 21 04:05:50 kernel: [dhd] _dhdsdio_download_firmware: dongle image file download failed Dec 21 04:05:50 kernel: [dhd] dhd_bus_devreset Failed to download binary to the dongle Dec 21 04:05:50 kernel: [dhd] dhd_net_bus_devreset: dhd_bus_devreset: -35 Dec 21 04:05:50 kernel: [dhd] ANDROID-ERROR) failed to power up wifi chip, retry again (0 left) ** Dec 21 04:05:50 kernel: [dhd] dhd_rtt_deinit: ENTER Dec 21 04:05:50 kernel: [dhd] dhd_rtt_deinit: EXIT, err = 0 Dec 21 04:05:50 kernel: [dhd] dhd_net_bus_devreset: dhd_bus_devreset: -35 Dec 21 04:05:50 kernel: [dhd] wifi_platform_set_power = 0, delay: 0 msec Dec 21 04:05:50 kernel: [dhd] ======== PULL WL_REG_ON(-1) LOW! ======== Dec 21 04:05:50 kernel: [WLAN_RFKILL]: rockchip_wifi_power: 0 Dec 21 04:05:50 kernel: [WLAN_RFKILL]: rockchip_wifi_power: toggle = false Dec 21 04:05:50 kernel: [WLAN_RFKILL]: wifi shut off power [GPIO-1-1] Dec 21 04:05:50 kernel: [dhd] ANDROID-ERROR) failed to power up wifi chip, max retry reached ** Dec 21 04:05:50 kernel: [dhd] [wlan0] wl_android_wifi_on : Failed -35 Dec 21 04:05:50 kernel: [dhd] dhd_open : wl_android_wifi_on failed (-35) Dec 21 04:05:50 kernel: [dhd] [wlan0] dhd_stop : Enter Dec 21 04:05:50 kernel: [dhd] [wlan0] wl_android_wifi_off : in g_wifi_on=0, on_failure=1 Dec 21 04:05:50 kernel: [dhd] dhd_rtt_deinit: ENTER Dec 21 04:05:50 kernel: [dhd] dhd_rtt_deinit: EXIT, err = 0 Dec 21 04:05:50 kernel: [dhd] dhd_net_bus_devreset: dhd_bus_devreset: -35 Dec 21 04:05:50 kernel: [dhd] wifi_platform_set_power = 0, delay: 0 msec Dec 21 04:05:50 kernel: [dhd] ======== PULL WL_REG_ON(-1) LOW! ======== Dec 21 04:05:50 kernel: [WLAN_RFKILL]: rockchip_wifi_power: 0 Dec 21 04:05:50 kernel: [WLAN_RFKILL]: rockchip_wifi_power: toggle = false Dec 21 04:05:50 kernel: [WLAN_RFKILL]: wifi shut off power [GPIO-1-1] Dec 21 04:05:50 kernel: [dhd] [wlan0] wl_android_wifi_off : out Dec 21 04:05:50 kernel: [dhd] dhd_os_wake_lock_destroy: wake lock count=1 Dec 21 04:05:50 kernel: [dhd] [wlan0] dhd_stop : Exit Dec 21 04:05:50 kernel: [dhd] [wlan0] dhd_open : Exit ret=-1 Dec 21 04:05:50 kernel: [dhd] Failed to open primary dev ret -1 Dec 21 04:05:50 kernel: [dhd] dhd_pri_open : mutex is released. Dec 21 04:05:50 NetworkManager[4118]: <warn> [1671566750.5714] platform-linux: do-change-link[4]: failure changing link: failure 1 (Operation not permitted) Dec 21 04:05:50 kernel: [dhd] [wlan0] dhd_set_mac_address : macaddr = 1e:df:94:51:2d:02 Dec 21 04:05:50 kernel: [dhd] CFG80211-ERROR) wl_cfg80211_macaddr_sync_reqd : no macthing if type Dec 21 04:05:50 kernel: [dhd] dhd_set_mac_addr_handler: interface info not available/down