VIM1 linux4.9 rtl8192eu

Hello,

I am using the linux 4.9 emmc version with the vim1. I have tried 2 drivers. Both I can install and I can connect to the wifi. But when I disconnect my wifi stick I get an recursive fault.

The drivers I have tried are:
https://github.com/clnhub/rtl8192eu-linux
https://github.com/Mange/rtl8192eu-linux-driver

What can I do to resolve this?

Below is the error I get when I disconnect my device, it ends with “Fixing recursive fault but reboot is needed!”:

[ 118.568858@2] Unable to handle kernel NULL pointer dereference at virtual address 00000000

[ 118.571493@2] pgd = ffffffc04e922000

[ 118.575015@2] [0000000000000000] *pgd=0000000000000000, *pud=0000000000000000

[ 118.582091@2] Internal error: Oops: 96000005 [#1] PREEMPT SMP

[ 118.587782@2] Modules linked in: 8192eu(O) cpufreq_userspace cpufreq_powersave cpufreq_conservative cpufreq_ondemand encoder amvdec_avs2 amvdec_vp9 amvdec_vc1 amvdec_real amvdec_mmpeg4 amvdec_mpeg4 amvdec_mmpeg12 amvdec_mpeg12 amvdec_mmjpeg amvdec_mjpeg amvdec_h265 amvdec_h264mvc amvdec_mh264 amvdec_h264 amvdec_avs amvdec_ports stream_input decoder_common firmware media_clock zram dhd mali btrfs xor raid6_pq

[ 118.623668@2] CPU: 2 PID: 2528 Comm: kworker/2:2 Tainted: G O 4.9.241 #2

[ 118.631420@2] Hardware name: Khadas VIM (DT)

[ 118.635671@2] Workqueue: usb_hub_wq hub_event

[ 118.639962@2] task: ffffffc0601e8000 task.stack: ffffff802024c000

[ 118.647045@2] PC is at wl_cfg80211_netdev_notifier_call+0x8c/0x320 [dhd]

[ 118.653670@2] LR is at wl_cfg80211_netdev_notifier_call+0x7c/0x320 [dhd]

[ 120.075915@2] [ffffff802024f810+ 112][] wl_cfg80211_netdev_notifier_call+0x8c/0x320 [dhd]

[ 120.085171@2] [ffffff802024f880+ 64][] notifier_call_chain+0x5c/0xa0

[ 120.093099@2] [ffffff802024f8c0+ 48][] raw_notifier_call_chain+0x3c/0x50

[ 120.101380@2] [ffffff802024f8f0+ 48][] call_netdevice_notifiers_info+0x48/0x78

[ 120.110175@2] [ffffff802024f920+ 48][] __dev_close_many+0x58/0xf0

[ 120.117851@2] [ffffff802024f950+ 80][] dev_close_many+0x7c/0x110

[ 120.125442@2] [ffffff802024f9a0+ 96][] rollback_registered_many+0xf8/0x398

[ 120.133895@2] [ffffff802024fa00+ 48][] unregister_netdevice_queue+0x68/0xd8

[ 120.142433@2] [ffffff802024fa30+ 32][] unregister_netdev+0x28/0x38

[ 120.150504@2] [ffffff802024fa50+ 32][] rtw_os_ndev_unregister+0xb8/0xe4 [8192eu]

[ 120.159467@2] [ffffff802024fa70+ 32][] rtw_os_ndevs_unregister+0x2c/0x40 [8192eu]

[ 120.168522@2] [ffffff802024fa90+ 32][] rtw_dev_remove+0x2c/0xc8 [8192eu]

[ 120.176507@2] [ffffff802024fab0+ 112][] usb_unbind_interface+0x74/0x280

[ 120.184613@2] [ffffff802024fb20+ 32][] __device_release_driver+0x9c/0x118

[ 120.192976@2] [ffffff802024fb40+ 32][] device_release_driver+0x2c/0x40

[ 120.201083@2] [ffffff802024fb60+ 48][] bus_remove_device+0x130/0x158

[ 120.209018@2] [ffffff802024fb90+ 80][] device_del+0x110/0x248

[ 120.216351@2] [ffffff802024fbe0+ 48][] usb_disable_device+0x9c/0x168

[ 120.224284@2] [ffffff802024fc10+ 80][] usb_disconnect+0xbc/0x220

[ 120.231874@2] [ffffff802024fc60+ 272][] hub_event+0xda0/0x10a8

[ 120.239207@2] [ffffff802024fd70+ 80][] process_one_work+0x218/0x530

[ 120.247053@2] [ffffff802024fdc0+ 96][] worker_thread+0x50/0x4d0

[ 120.254559@2] [ffffff802024fe20+ 0][] kthread+0xf8/0x100

[ 120.261544@2] [0000000000000000+ 0][] ret_from_fork+0x10/0x40

[ 120.268964@2] Code: f942cf02 928235e6 8b060043 eb02027f (f948d862)

[ 120.275173@2] —[ end trace 8cff0b51962250ce ]—

[ 120.288271@2] note: kworker/2:2[2528] exited with preempt_count 1

[ 120.289022@2] Unable to handle kernel paging request at virtual address ffffffffffffffd8

[ 120.296748@2] pgd = ffffff800ade3000

[ 120.300277@2] [ffffffffffffffd8] *pgd=0000000000000000, *pud=0000000000000000

[ 120.307352@2] Internal error: Oops: 96000005 [#2] PREEMPT SMP

[ 120.313043@2] Modules linked in: 8192eu(O) cpufreq_userspace cpufreq_powersave cpufreq_conservative cpufreq_ondemand encoder amvdec_avs2 amvdec_vp9 amvdec_vc1 amvdec_real amvdec_mmpeg4 amvdec_mpeg4 amvdec_mmpeg12 amvdec_mpeg12 amvdec_mmjpeg amvdec_mjpeg amvdec_h265 amvdec_h264mvc amvdec_mh264 amvdec_h264 amvdec_avs amvdec_ports stream_input decoder_common firmware media_clock zram dhd mali btrfs xor raid6_pq

[ 120.348925@2] CPU: 2 PID: 2528 Comm: kworker/2:2 Tainted: G D O 4.9.241 #2

[ 120.356683@2] Hardware name: Khadas VIM (DT)

[ 120.360921@2] task: ffffffc0601e8000 task.stack: ffffff802024c000

[ 120.366956@2] PC is at kthread_data+0x24/0x30

[ 120.371262@2] LR is at wq_worker_sleeping+0x20/0xd8

[ 120.376090@2] pc : [] lr : [] pstate: 800001c5

[ 122.952226@2] [ffffff802024f810+ 112][] el1_da+0xe8/0x148

[ 122.959126@2] [ffffff802024f880+ 64][] notifier_call_chain+0x5c/0xa0

[ 122.967061@2] [ffffff802024f8c0+ 48][] raw_notifier_call_chain+0x3c/0x50

[ 122.975343@2] [ffffff802024f8f0+ 48][] call_netdevice_notifiers_info+0x48/0x78

[ 122.984139@2] [ffffff802024f920+ 48][] __dev_close_many+0x58/0xf0

[ 122.991815@2] [ffffff802024f950+ 80][] dev_close_many+0x7c/0x110

[ 122.999406@2] [ffffff802024f9a0+ 96][] rollback_registered_many+0xf8/0x398

[ 123.007859@2] [ffffff802024fa00+ 48][] unregister_netdevice_queue+0x68/0xd8

[ 123.016396@2] [ffffff802024fa30+ 32][] unregister_netdev+0x28/0x38

[ 123.024464@2] [ffffff802024fa50+ 32][] rtw_os_ndev_unregister+0xb8/0xe4 [8192eu]

[ 123.033419@2] [ffffff802024fa70+ 32][] rtw_os_ndevs_unregister+0x2c/0x40 [8192eu]

[ 123.042465@2] [ffffff802024fa90+ 32][] rtw_dev_remove+0x2c/0xc8 [8192eu]

[ 123.050470@2] [ffffff802024fab0+ 112][] usb_unbind_interface+0x74/0x280

[ 123.058577@2] [ffffff802024fb20+ 32][] __device_release_driver+0x9c/0x118

[ 123.066940@2] [ffffff802024fb40+ 32][] device_release_driver+0x2c/0x40

[ 123.075046@2] [ffffff802024fb60+ 48][] bus_remove_device+0x130/0x158

[ 123.082981@2] [ffffff802024fb90+ 80][] device_del+0x110/0x248

[ 123.090315@2] [ffffff802024fbe0+ 48][] usb_disable_device+0x9c/0x168

[ 123.098248@2] [ffffff802024fc10+ 80][] usb_disconnect+0xbc/0x220

[ 123.105837@2] [ffffff802024fc60+ 272][] hub_event+0xda0/0x10a8

[ 123.113171@2] [ffffff802024fd70+ 80][] process_one_work+0x218/0x530

[ 123.121017@2] [ffffff802024fdc0+ 96][] worker_thread+0x50/0x4d0

[ 123.128522@2] [ffffff802024fe20+ 0][] kthread+0xf8/0x100

[ 123.135508@2] [0000000000000000+ 0][] ret_from_fork+0x10/0x40

[ 123.142933@2] Fixing recursive fault but reboot is needed!

@Frank @numbqq