Configuring a TrendNet N150 (TEW-648UB) USB Wifi adapter

  • Hello,


    I use Openmediavault for more than six months and I'm very happy about it.


    I plan to install it on a CuBox http://www.solid-run.com/products/cubox, in order to transform any eSATA external hard-disk into a very capable NAS with Gigabit LAN (a thing the raspberry Pi does not have), and with DLNA over Wifi (with Android clients for example).


    Having a TrendNet N150, which is one of the smallest and cheapest USB Wifi adapter available, I tried to experiment it on a PC from a openmediavault installation done on a USB stick. Note that this PC has a Zotac H55-ITX motherboard, so it has a built-in Atheros AR928X Wifi adapter, so I ail to have two wlan connection.


    Both adapters are recognized by Ubuntu 12.04 with noting to do (just plug and enter passphrase on prompt)


    Here is what i did :


    I installed wpasupplicant

    Code
    apt-get install wpasupplicant


    I protected /etc/network/interfaces as it will contain my Wifi passphrase

    Code
    chmod 0600 /etc/network/interfaces


    I added in /etc/network/interfaces the definition for wlan1 and wlan2

    Code
    auto wlan<X>
    iface wlan<X> inet dhcp
        wpa-ssid <my-ssid>
        wpa-psk <my-passphrase>


    I rebooted, and from that point, wlan1 on the Atheros adapter went UP with an IP allocated by my ADSL box. But wlan2 cannot be up.


    I found here http://bernaerts.dyndns.org/li…tu-trendnet-n150-tew648ub that the N150 would need a particular firmware. So I followed the instructions, creating a /lib/firmware/RTL8192SU directory with the rtl8192sfw74.bin, rtl8192sfw492.bin, rtl8192sfw.bin files. In fact, only the rtl8192sfw.bin is really used. wlan2 is now configured, but it can not connect.


    I think the firmware is not correct.
    I found here http://packages.debian.org/squ…firmware-realtek/download I could install a realtek firmware form Debian repository. So i updated /etc/apt/sources.list

    Code
    deb http://ftp.fr.debian.org/debian/ squeeze main contrib non-free


    and installed this firmware

    Code
    apt-get update
    apt-get install firmware-realtek


    I did not improve anything.


    I also tried to build firmware from Realtek site on an Ubuntu 64 installation
    http://218.210.127.131/downloa…Down=false&Downloads=true


    But I have compiler errors (in french 'transtypage d'un pointeur vers un entier de taille différente [-Wpointer-to-int-cast]')


    I do not know enough Linux, Debian and Ubuntu to cope with that.


    However, I think that the resolution of this issue could be profiable to others.


    So, if any of you could help ...


    I kinow that, after having a working Wifi adapter on AMD64, I will have to make it work on ARM on the CuBox ... that's another story ...


    I noted some interesting lines on syslog


    And these lines repeat ...


    The activation of the WLAN link is very different on Ubuntu :


    Best regards,


    Fred

    omv 2.x omv 3.x (testing) - AMD CPU - RAM ECC 8x4TB RAID6 + 4x3TB RAID5 - SSD 4GB for system

  • Hello,


    I have good news, as the Wifi adapter is working.


    I guessed, reading here http://wiki.debian.org/fr/rtl819x that the kernel used by openmediavault was not recent enough.


    So I tried to use the Debian backports I added a new line to the /etc/apt/sources.list.d/

    Code
    deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free


    And then upgraded the distri :

    Code
    apt-get update
    apt-get -t squeeze-backports dist-upgrade


    During the upgrade, the system ask several times to choose between existing configuration file (mail, samba, smartmon, etc.) and a new version. I kept exiting files.


    After that, the version of kernel is "Linux version 3.2.0-0.bpo.3-amd64 (Debian 3.2.23-1~bpo60+2)"


    The adapter is regognized as "r8712u" and the firmware must be provided in /lib/firmware/rtlwifi/rtl8712u.bin I took from an Ubuntu 12.04 system.


    The problem is of course that I don't use the stable Debian distrib, but openmediavault is working fine as far as I can see.


    Now I will have to make all that work on ARM ...


    Best regards


    Fred

    omv 2.x omv 3.x (testing) - AMD CPU - RAM ECC 8x4TB RAID6 + 4x3TB RAID5 - SSD 4GB for system

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!