How to add WIFI dongle (Netgear WNA1000M)?

  • Hi!

    can you give me a hint how to set-up wifi dongle from Netgear on Raspbery Pi2 (of course under Libreelec)?

    Netgear WNA1000Mv2

    dmesg gives me the following:
    [ 155.487972] usb 1-1.5: new high-speed USB device number 4 using dwc_otg
    [ 155.582907] usb 1-1.5: New USB device found, idVendor=0846, idProduct=9043
    [ 155.582940] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 155.582956] usb 1-1.5: Product: WNA1000Mv2
    [ 155.582971] usb 1-1.5: Manufacturer: Realtek
    [ 155.582985] usb 1-1.5: SerialNumber: xxxxxxxxxxxx

    It works like a charm on my Ubuntu 14.04 laptop and is identified as rtl8192cu module. But Raspberry Pi2 does not recognize it. usb.ids file does not contain VENDOR ID and PRODUCT ID of the dongle and even if I add it, it does not help.

    It seems that relevant kernel module is there (rtl8xxxu)...

    Will appreciate any help. Thanks.

    Edited once, last by sudovec (May 1, 2016 at 9:27 PM).

    • Official Post

    I've noticed this bug also and a fix will be in the next release. For now you can do this

    Code
    echo "blacklist rtl8xxxu" > /storage/.config/modprobe.d/blacklist.conf

    Then reboot


  • I've noticed this bug also and a fix will be in the next release. For now you can do this

    Code
    echo "blacklist rtl8xxxu" > /storage/.config/modprobe.d/blacklist.conf

    Then reboot


    Thanks for quick reply. Unfortunately it didn't help.

    dmesg output is still the same.

  • For a reference - dmesg output from Ubuntu 14.04 laptop is:


    [hr]


    Did you try adding the device Id to the rtl8192cu driver?


    How can I do that?

    Edited once, last by sudovec (May 1, 2016 at 9:59 PM).

  • lsmod:

    Code
    RPiOpenElec:~ # lsmod
    Module                  Size  Used by
    8021q                  16074  0
    bcm2835_wdt             2777  0
    bcm2835_gpiomem         2652  0

    Thanks for hint - will check tomorrow and let you know the result.

    • Official Post


    lsmod:

    Code
    RPiOpenElec:~ # lsmod
    Module                  Size  Used by
    8021q                  16074  0
    bcm2835_wdt             2777  0
    bcm2835_gpiomem         2652  0

    Thanks for hint - will check tomorrow and let you know the result.

    please do because I can possibly patch the device id into the driver for the next release

  • I did all the steps. Result:

    1. driver does not load automatically. lsmod out after reboot:

    Code
    RPiOpenElec:~ # lsmod
    Module                  Size  Used by
    8021q                  16074  0
    bcm2835_gpiomem         2652  0
    bcm2835_wdt             2777  0

    2. To add IDs I had to load the module manually (without loading the module file did not exist):

    Code
    modprobe 8192cu

    3. lsmod after modprobe

    Code
    RPiOpenElec:~ # lsmod
    Module                  Size  Used by
    8192cu                581812  0
    8021q                  16074  0
    bcm2835_gpiomem         2652  0
    bcm2835_wdt             2777  0

    4. dmesg after these steps:

    Code
    [    9.097627] 8021q: 802.1Q VLAN Support v1.8
    [   38.020690] rtl8192cu driver version=v4.0.2_9000.20130911
    [   38.023039] usbcore: registered new interface driver rtl8192cu

    5. dmesg after inserting Wifi dongle

    Code
    [   38.020690] rtl8192cu driver version=v4.0.2_9000.20130911
    [   38.023039] usbcore: registered new interface driver rtl8192cu
    [  176.021442] usb 1-1.4: new high-speed USB device number 5 using dwc_otg
    [  176.116288] usb 1-1.4: New USB device found, idVendor=0846, idProduct=9043
    [  176.116318] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [  176.116333] usb 1-1.4: Product: WNA1000Mv2
    [  176.116348] usb 1-1.4: Manufacturer: Realtek
    [  176.116363] usb 1-1.4: SerialNumber: 00xxxxxxxxxx

    So, as the result it still does not work.
    [hr]
    Update:

    I tried it one more time, if I run manually echo "0846 9043" just before insertion of dongle, the dmesg output is different. However, it still does not work - I think the problem is indicated on line bDriverStopped:1


    [hr]
    Update #2 - IT WORKS!!!

    Thanks very much.

    After installing the dongle, I had to enable Wireless network in KODI - LibreElec Settings menu.

    However, after reboot everything is lost. So, I have to again load the driver and add new IDs to it before dongle is recognized.

    Where should I put these commands so that it is run automatically on startup?

    Edited once, last by sudovec (May 3, 2016 at 7:26 PM).

    • Official Post


    Update #2 - IT WORKS!!!

    Thanks very much.

    After installing the dongle, I had to enable Wireless network in KODI - LibreElec Settings menu.

    However, after reboot everything is lost. So, I have to again load the driver and add new IDs to it before dongle is recognized.

    Where should I put these commands so that it is run automatically on startup?

    Awesome, I'm glad you got it working.

    for now you can create a file /storage/.config/autostart.sh with the commands in it.

    I will add the fixes to the next version. Thanks for testing.

    EDIT:
    I've PR'd these two changes
    linux: disable CONFIG_RTL8XXXU by lrusak · Pull Request #287 · LibreELEC/LibreELEC.tv · GitHub
    RTL8192CU: add Netgear WNA1000Mv2 id by lrusak · Pull Request #288 · LibreELEC/LibreELEC.tv · GitHub