espressif / esp-hosted

Hosted Solution (Linux/MCU) with ESP32 (Wi-Fi + BT + BLE)
Other
706 stars 169 forks source link

esp32-sdio.ko #461

Open tgt008 opened 2 months ago

tgt008 commented 2 months ago

I can't load esp32-sdio.ko driver. root@MiWiFi-R4CM-srv:~/test# insmod esp32_sdio.ko [323594.850219] esp32_sdio: disagrees about version of symbol cfg80211_mgmt_tx_status_ext [323594.858173] esp32_sdio: Unknown symbol cfg80211_mgmt_tx_status_ext (err -22) [323594.865339] esp32_sdio: disagrees about version of symbol cfg80211_rx_assoc_resp [323594.872912] esp32_sdio: Unknown symbol cfg80211_rx_assoc_resp (err -22) [323594.879683] esp32_sdio: disagrees about version of symbol skb_put [323594.886007] esp32_sdio: Unknown symbol skb_put (err -22) [323594.891485] esp32_sdio: disagrees about version of symbol cfg80211_scan_done [323594.898671] esp32_sdio: Unknown symbol cfg80211_scan_done (err -22) [323594.905066] esp32_sdio: disagrees about version of symbol cfg80211_sched_scan_stopped [323594.913007] esp32_sdio: Unknown symbol cfg80211_sched_scan_stopped (err -22) [323594.920178] esp32_sdio: disagrees about version of symbol hci_free_dev [323594.926830] esp32_sdio: Unknown symbol hci_free_dev (err -22) [323594.932702] esp32_sdio: disagrees about version of symbol skb_dequeue [323594.939248] esp32_sdio: Unknown symbol skb_dequeue (err -22) [323594.945032] esp32_sdio: disagrees about version of symbol hci_alloc_dev_priv [323594.952182] esp32_sdio: Unknown symbol hci_alloc_dev_priv (err -22) [323594.958561] esp32_sdio: disagrees about version of symbol eth_validate_addr [323594.965620] esp32_sdio: Unknown symbol eth_validate_addr (err -22) [323594.971935] esp32_sdio: disagrees about version of symbol cfg80211_disconnected [323594.979342] esp32_sdio: Unknown symbol cfg80211_disconnected (err -22) [323594.985985] esp32_sdio: disagrees about version of symbol ether_setup [323594.992541] esp32_sdio: Unknown symbol ether_setup (err -22) [323594.998330] esp32_sdio: disagrees about version of symbol wake_up_process [323595.005227] esp32_sdio: Unknown symbol wake_up_process (err -22) [323595.011343] esp32_sdio: disagrees about version of symbol skb_queue_purge_reason [323595.018840] esp32_sdio: Unknown symbol skb_queue_purge_reason (err -22) [323595.025558] esp32_sdio: disagrees about version of symbol dev_addr_mod [323595.032186] esp32_sdio: Unknown symbol dev_addr_mod (err -22) [323595.038032] esp32_sdio: disagrees about version of symbol eth_type_trans [323595.044834] esp32_sdio: Unknown symbol eth_type_trans (err -22) [323595.050861] esp32_sdio: disagrees about version of symbol alloc_netdev_mqs [323595.057834] esp32_sdio: Unknown symbol alloc_netdev_mqs (err -22) [323595.064055] esp32_sdio: disagrees about version of symbol wiphy_new_nm [323595.070694] esp32_sdio: Unknown symbol wiphy_new_nm (err -22) [323595.076582] esp32_sdio: disagrees about version of symbol cfg80211_rx_mlme_mgmt [323595.083999] esp32_sdio: Unknown symbol cfg80211_rx_mlme_mgmt (err -22) [323595.090643] esp32_sdio: disagrees about version of symbol wiphy_register [323595.097446] esp32_sdio: Unknown symbol wiphy_register (err -22) [323595.103475] esp32_sdio: disagrees about version of symbol cfg80211_put_bss [323595.110452] esp32_sdio: Unknown symbol cfg80211_put_bss (err -22) [323595.116650] esp32_sdio: disagrees about version of symbol netif_device_detach [323595.123889] esp32_sdio: Unknown symbol netif_device_detach (err -22) [323595.130352] esp32_sdio: disagrees about version of symbol skb_queue_tail [323595.137154] esp32_sdio: Unknown symbol skb_queue_tail (err -22) [323595.143187] esp32_sdio: disagrees about version of symbol ieee80211_get_channel_khz [323595.150941] esp32_sdio: Unknown symbol ieee80211_get_channel_khz (err -22) [323595.157940] esp32_sdio: disagrees about version of symbol skb_pull [323595.164248] esp32_sdio: Unknown symbol skb_pull (err -22) [323595.169790] esp32_sdio: disagrees about version of symbol kfree_skb_reason [323595.176796] esp32_sdio: Unknown symbol kfree_skb_reason (err -22) [323595.183010] esp32_sdio: disagrees about version of symbol skb_push [323595.189314] esp32_sdio: Unknown symbol skb_push (err -22) [323595.194836] esp32_sdio: disagrees about version of symbol wiphy_unregister [323595.201819] esp32_sdio: Unknown symbol wiphy_unregister (err -22) [323595.208025] esp32_sdio: disagrees about version of symbol free_netdev [323595.214568] esp32_sdio: Unknown symbol free_netdev (err -22) [323595.220336] esp32_sdio: disagrees about version of symbol kthread_stop [323595.226967] esp32_sdio: Unknown symbol kthread_stop (err -22) [323595.232821] esp32_sdio: disagrees about version of symbol netif_tx_wake_queue [323595.240060] esp32_sdio: Unknown symbol netif_tx_wake_queue (err -22) [323595.246525] esp32_sdio: disagrees about version of symbol cfg80211_bss_flush [323595.253670] esp32_sdio: Unknown symbol cfg80211_bss_flush (err -22) [323595.260057] esp32_sdio: disagrees about version of symbol pskb_pull_tail [323595.267029] esp32_sdio: Unknown symbol __pskb_pull_tail (err -22) [323595.273233] esp32_sdio: disagrees about version of symbol netif_rx [323595.279516] esp32_sdio: Unknown symbol netif_rx (err -22) [323595.285024] esp32_sdio: disagrees about version of symbol netdev_alloc_skb [323595.292173] esp32_sdio: Unknown symbol __netdev_alloc_skb (err -22) [323595.298563] esp32_sdio: disagrees about version of symbol kthread_create_on_node [323595.306069] esp32_sdio: Unknown symbol kthread_create_on_node (err -22) [323595.312810] esp32_sdio: disagrees about version of symbol hci_unregister_dev [323595.319960] esp32_sdio: Unknown symbol hci_unregister_dev (err -22) [323595.326368] esp32_sdio: disagrees about version of symbol cfg80211_unregister_wdev [323595.334042] esp32_sdio: Unknown symbol cfg80211_unregister_wdev (err -22) [323595.340940] esp32_sdio: disagrees about version of symbol cfg80211_rx_mgmt_ext [323595.348267] esp32_sdio: Unknown symbol cfg80211_rx_mgmt_ext (err -22) [323595.354817] esp32_sdio: disagrees about version of symbol hci_recv_frame [323595.361638] esp32_sdio: Unknown symbol hci_recv_frame (err -22) [323595.367705] esp32_sdio: disagrees about version of symbol netif_carrier_off [323595.374771] esp32_sdio: Unknown symbol netif_carrier_off (err -22) [323595.381114] esp32_sdio: disagrees about version of symbol cfg80211_inform_bss_data [323595.388786] esp32_sdio: Unknown symbol cfg80211_inform_bss_data (err -22) [323595.395687] esp32_sdio: disagrees about version of symbol kmalloc_trace [323595.402405] esp32_sdio: Unknown symbol kmalloc_trace (err -22) [323595.408372] esp32_sdio: disagrees about version of symbol hci_register_dev [323595.415357] esp32_sdio: Unknown symbol hci_register_dev (err -22) [323595.421579] esp32_sdio: disagrees about version of symbol cfg80211_shutdown_all_interfaces [323595.429952] esp32_sdio: Unknown symbol cfg80211_shutdown_all_interfaces (err -22) [323595.437555] esp32_sdio: disagrees about version of symbol dev_kfree_skb_any_reason [323595.445228] esp32_sdio: Unknown symbol dev_kfree_skb_any_reason (err -22) [323595.452143] esp32_sdio: disagrees about version of symbol wiphy_free [323595.458602] esp32_sdio: Unknown symbol wiphy_free (err -22) [323595.464283] esp32_sdio: disagrees about version of symbol kmalloc_caches [323595.471110] esp32_sdio: Unknown symbol kmalloc_caches (err -22) [323595.477165] esp32_sdio: disagrees about version of symbol register_netdevice [323595.484314] esp32_sdio: Unknown symbol register_netdevice (err -22) insmod: ERROR: could not insert module esp32_sdio.ko: Invalid parameters root@MiWiFi-R4CM-srv:~/test#

mantriyogesh commented 2 months ago
  1. Send the output of:
    • uname -a
    • lsmod | grep cfg80211

Try to:

  1. modprobe cfg80211 # before loading esp32_sdio.ko
  2. Do not forget to pass reset pin argument. check documentation.
  3. If above doesn't solve, send full textual logs from start for ESP and Linux:
    • ESP
    • git commit used
    • idf.py menuconfigfrom bootup
    • Host
    • git commit used
    • dmesg from system bootup