WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] Realtek rtl8712u wifi support  (Read 9980 times)

Offline mcdudeabides

  • Jr. Member
  • **
  • Posts: 60
[SOLVED] Realtek rtl8712u wifi support
« on: October 31, 2013, 06:12:14 AM »
I am trying to get an ASUS N10 USB WiFi adapter to work.  It shows up as a new USB device with VendorID 0B05 and ProductID 1786.  In dmesg, it fails when requesting "rtlwifi/rtl8712u.bin".  I find that this firmware exists in the x86 repo as "http://repo.tinycorelinux.net/5.x/x86/tcz/firmware-rtlwifi.tcz".  I believed the firmware to be portable across hardware platforms (designed for the USB WiFi adapter).  I attempted to load firmware-rtlwifi.tcz local, extract to a temp mount point, and copy the relevant .bin files to /usr/local/lib/firmware/rtlwifi.  I updated .filetool.lst to make sure the firmware was preserved over reboots.  Unfortunately, it appears that there are some complaints about "staging area", perhaps a corrupt unsquash and perhaps more than the rtl8712u.bin file is required. 

Is it possible to take the x86 firmware-rtlwifi.tcz package and repackage for the Pi platform? 

Relevant output from dmesg:
Code: [Select]
[    3.040841] usb 1-1.3: new high-speed USB device number 5 using dwc_otg
[    3.079683] bcm2708_i2c_init_pinmode(0,0)
[    3.079706] bcm2708_i2c_init_pinmode(0,1)
[    3.079890] bcm2708_i2c bcm2708_i2c.0: BSC0 Controller at 0x20205000 (irq 79) (baudrate 100k)
[    3.143619] usb 1-1.3: New USB device found, idVendor=0b05, idProduct=1786
[    3.143646] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.143659] usb 1-1.3: Product: ASUS EZ N Network Adapter
[    3.143670] usb 1-1.3: Manufacturer: Manufacturer Realtek
[    3.143682] usb 1-1.3: SerialNumber: 00e04c000001
[    3.262800] bcm2708_i2c_init_pinmode(1,2)
[    3.262824] bcm2708_i2c_init_pinmode(1,3)
[    3.263021] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100k)
[    3.330915] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated
[    3.330945] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[    7.262710] Adding 118768k swap on /dev/zram0.  Priority:-1 extents:1 across:118768k SSFS
[    7.444599] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    8.195935] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    8.279971] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   19.437071] r8712u: module is from the staging directory, the quality is unknown, you have been warned.
[   19.580918] r8712u: Staging version
[   19.581019] r8712u: register rtl8712_netdev_ops to netdev_ops
[   19.581050] usb 1-1.3: r8712u: USB_SPEED_HIGH with 4 endpoints
[   19.601733] usb 1-1.3: r8712u: Boot from EFUSE: Autoload OK
[   21.444813] usb 1-1.3: r8712u: CustomerID = 0x0010
[   21.444847] usb 1-1.3: r8712u: MAC Address from efuse = 74:d0:2b:ce:66:9a
[   21.444863] usb 1-1.3: r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
[   21.445328] usbcore: registered new interface driver r8712u
[   23.679537] usbcore: registered new interface driver snd-usb-audio
[   23.702593] usb 1-1.3: r8712u: Firmware request failed
[   24.944459] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   26.557294] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
« Last Edit: October 31, 2013, 08:10:29 AM by mcdudeabides »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Realtek rtl8712u wifi support
« Reply #1 on: October 31, 2013, 06:39:44 AM »
Which piCore version are you using?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline mcdudeabides

  • Jr. Member
  • **
  • Posts: 60
Re: Realtek rtl8712u wifi support
« Reply #2 on: October 31, 2013, 07:05:16 AM »
piCore 5.0.alpha5.  Kernel 3.11.5-piCore.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Realtek rtl8712u wifi support
« Reply #3 on: October 31, 2013, 07:36:35 AM »
The "staging directory" warning refers to the kernel tree, not to any local issue ;)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Realtek rtl8712u wifi support
« Reply #4 on: October 31, 2013, 07:55:45 AM »
firmware-rtlwifi.tcz added to repo. Install and tell us the result.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline mcdudeabides

  • Jr. Member
  • **
  • Posts: 60
Re: Realtek rtl8712u wifi support
« Reply #5 on: October 31, 2013, 08:03:03 AM »
Many thanks for the quick reply.  Will do so immediately.

Offline mcdudeabides

  • Jr. Member
  • **
  • Posts: 60
Re: Realtek rtl8712u wifi support
« Reply #6 on: October 31, 2013, 08:10:04 AM »
It is Alive!!!!  Thanks for your quick response.

Code: [Select]
[    3.163714] usb 1-1.3: New USB device found, idVendor=0b05, idProduct=1786
[    3.163741] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.163754] usb 1-1.3: Product: ASUS EZ N Network Adapter
[    3.163765] usb 1-1.3: Manufacturer: Manufacturer Realtek
[    3.163776] usb 1-1.3: SerialNumber: 00e04c000001
[    3.250655] bcm2708_i2c_init_pinmode(1,2)
[    3.250680] bcm2708_i2c_init_pinmode(1,3)
[    3.250884] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100k)
[    3.408626] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated
[    3.408656] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[    7.226859] Adding 118772k swap on /dev/zram0.  Priority:-1 extents:1 across:118772k SSFS
[    7.430147] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    8.157831] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    8.242304] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   19.810898] r8712u: module is from the staging directory, the quality is unknown, you have been warned.
[   19.814721] r8712u: Staging version
[   19.814819] r8712u: register rtl8712_netdev_ops to netdev_ops
[   19.814853] usb 1-1.3: r8712u: USB_SPEED_HIGH with 4 endpoints
[   19.918088] usb 1-1.3: r8712u: Boot from EFUSE: Autoload OK
[   21.746059] usb 1-1.3: r8712u: CustomerID = 0x0010
[   21.746089] usb 1-1.3: r8712u: MAC Address from efuse = 74:d0:2b:ce:66:9a
[   21.746106] usb 1-1.3: r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
[   21.746549] usbcore: registered new interface driver r8712u
[   24.066283] usbcore: registered new interface driver snd-usb-audio
[   26.114449] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   27.639161] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[   28.051083] r8712u 1-1.3:1.0 wlan0: 1 RCR=0x153f00e
[   28.051941] r8712u 1-1.3:1.0 wlan0: 2 RCR=0x553f00e