LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (http://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Firmware for Realtek 8192 (http://www.linuxquestions.org/questions/linux-wireless-networking-41/firmware-for-realtek-8192-a-761714/)

Torsten1981 10-13-2009 10:18 PM

Firmware for Realtek 8192
 
Hi,

I have a Realtek rtl8192 wireless card in my notebook. Unfortunately it was not supported by the kernel until 2.6.31. Lucky me there is a staging driver in 2.6.32 for this card (rtl8192E). I've compiled it but the kernel module needs to load a firmware (boot.img)
i've spent many hours searching for the firmware file but i've had no luck.
does anybody know where i can get the needed file or perhaps you have some other hints for me to get the wlan running

thanks a lot

Torsten

serafean 10-14-2009 03:33 PM

Hi, try this page (unpack and copy firmware to /lib/firmware), or try looking into the windows driver package for .bin files...

Serafean

Torsten1981 10-14-2009 04:37 PM

Hi Serafean,

thank you for your answer. unfortunately there isn't any url in your reply.


Quote:

Originally Posted by serafean (Post 3719297)
Hi, try this page (unpack and copy firmware to /lib/firmware), or try looking into the windows driver package for .bin files...

Serafean


serafean 10-17-2009 06:55 AM

Very sorry repaired. And is I said, look into the windows installation files for the firmware (from your first post, I'd say boot.img.) another source of info is here

Serafean

mariogiov 10-20-2009 01:48 PM

rtl8192e firmware available
 
Hi Torsten --
I recently dealt with getting the Realtek 8192E card working using the 2.6.32(-rc5 I think?) kernel. I also had trouble finding the firmware for the card, but I finally got ahold of them (thanks Greg!). I was going to post the requisite files here but there doesn't appear to be a way to do that. I believe you can email me (?) from this forum and I can send the firmware to you directly. I'm fairly new to this particular forum but I'll see if I can put them in a blog and link to them there as well. This should allow you to avoid using NDISwrapper.

Either way, I believe they should be pushed into the linux-firmware package soon.

mario

micro. 10-24-2009 02:08 PM

I'm about to try this...

May I ask where to get the firmware?

find.karl 10-26-2009 09:51 AM

Has anyone managed to get the RTL8192E wireless working under a 64bit version of linux?

I recently decided that I would ditch Windows in favor of Ubuntu but am being held back by that fact that my wireless card does not even show-up in Ubuntu 9.1. I have searched everywhere but have yet to hear that someone actually got it working. I really don't have the knowledge, time or patience to spend weeks in the depths of Linux code etc. to get this essential component working. Sadly it looks like I will probably have to go back to Windows soon.

Any help very much appreciated

alpha-linux 10-27-2009 03:01 AM

Hello,
Can anyone upload the firmwarefor the rtl8192e?
I think many of us would really appreciate that.


Greetings

micro. 10-27-2009 04:36 PM

kernel panic
 
I'm still attempting to get this working with debian 5.0 'lenny' 64 bit but have yet to be successful.

I'm attempting to compile the linux-2.6.32-rc5 kernel from source with the staging drivers for the 8192E chipset.

So far, I keep getting a kernel panic after compiling at least three different times. I am using the same machine I compiled with so it would take some time to type out the output from the kernel when loading the ramdisk... (I think that's what it was saying before hand.)

[ 24.307015] <IRQ> [<ffffffff812f81b7>] ? Panic+0x86/0x141

That's the first line on the screen when kernel goes to panic...

Goes on to oops_end...
__bad_area_nosemaphore...
Page_fault...
rtl8192_irq_rx_tasklet+0x2a1/0x1770 [r8192_pci]

And ends with...

[ 24.308220] [<ffffffff8100fdd5>] ? cpu_idle+0x59/0x91


All totally foreign to me, I hate to say... Something's not doing something right, lol.

Any advice?

alpha-linux 10-27-2009 05:56 PM

Hey micro,
I think this can be the solution:
1. download drivers for RTL8192SE from: http://rapidshare.com/files/29879398...it.tar.gz.html

2. Extract files/folders go into HAL and edit Makefile:
replace NIC_SELECT = RTL8192SE with NIC_SELECT = RTL8192E
...
Although it's supposed to be for the RTL8192SE it works also with the RTL8192E.
But you need the firmware for RTL8129E which i dont have.
I still would appreciate if somebody could upload the firmware.

Edit:
I tried to get the NIC work with the RTL8192SE firmware but it doesnt work i think because of two reasons:
1. it is not in the right format (*.bin original) but is requested as boot.img
-> i already renamed it and put it into /lib/firmware/RTL8129E, /lib/firmware/, /lib/firmware/`uname -r`, lib/firmware/`uname -r`/RTL8192E
2. it is not the right firmware oviously.


Regards,
alpha-....

micro. 10-29-2009 07:20 PM

hmmm
 
I'm having an issue trying to 'make' after unpacking the archive...

(btw, I found the Makefile in /rtl8192se_linux_2.6.0010.1020.2009_64bit/HAL/rtl8192/)

I tried once by editing the Makefile as regular user then 'su' to 'make' before removing the directory and starting over with root privileges...

########################

micro@debian-satellite:/mnt/shared/progz/linux/rtl8192$ tar xvf rtl8192se_linux_2.6.0010.1012.2009_64bit.tar.gz
rtl8192se_linux_2.6.0010.1020.2009_64bit/
*snip*
cd rtl8192se_linux_2.6.0010.1020.2009_64bit

##set the first line to 'NIC_SELECT = RTL8192E'

nano -w HAL/rtl8192/Makefile

##checked the readme.txt file and looked at the different ways to install... I was just planning on make && make install

debian-satellite:/rtl8192se_linux_2.6.0010.1020.2009_64bit# make
make: *** /lib/modules/2.6.30-bpo.2-amd64/build: No such file or directory. Stop.
make: *** [all] Error 2
debian-satellite:/mnt/shared/progz/linux/rtl8192/rtl8192se_linux_2.6.0010.1020.2009_64bit# mkdir /lib/modules/2.6.30-bpo.2-amd64/build
debian-satellite:/mnt/shared/progz/linux/rtl8192/rtl8192se_linux_2.6.0010.1020.2009_64bit# make
make[1]: Entering directory `/lib/modules/2.6.30-bpo.2-amd64/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.30-bpo.2-amd64/build'
make: *** [all] Error 2

############################

I looked around the Makefile and in /lib/modules... Of course, the directory I had created was empty.

Hmmm... That wasn't what I'd anticipated...

**edited**

I believe I had installed the backports kernel image through aptitude. Regardless, I went ahead and compiled a 2.6.30 kernel from source and then make && make install the drivers with root privileges. Everything went fine and I see that it requests the firmware with no obvious problems.

Knetworkmanager runs by default (I usually do a very minimalistic DE by net installing debian and then adding kdebase and what packages I want using aptitude through cli, but since this is a new machine and I wanted more capability without the work, I opted to see how it would handle bloated KDE...

Anywho... It sees the interface and will attempt to connect to my router but fails...

####################################################

debian-satellite:/home/micro# dmesg
*snip*
[ 984.956023] softmac_mgmt_xmit():insert to waitqueue!
[ 999.648054] rtl819xE:Setting SW wep key
[ 1000.916520] softmac_mgmt_xmit():insert to waitqueue!
*snip*
####################################################

It's the same on and on...

I am still looking into managing it via cli.

I added:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

network={
ssid="XXXXXXXXXXXX"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="XXXXXXXXXXX"
}

... to my /etc/wpa_supplicant.conf file (marked out secure information, lol) and tried:

#######################################################

debian-satellite:/etc/wpa_supplicant# wpa_supplicant -iwlan0 -Dr8192e_pci -c/etc/wpa_supplicant.conf
Unsupported driver 'r8192e_pci'.

debian-satellite:/etc/wpa_supplicant#

#######################################################

The good thing is that the interface is recognized and everything seems to be running fine. I just have to figure out how to connect now, lol. I'm almost there, though... I can almost taste it...

Thanks for all the help so far...

Torsten1981 10-31-2009 09:21 AM

Hi,

I finally have got the firmware. If somebody wants to have it too, please write an email.
Nevertheless the device doesnt't work. I changed the Makefile, make amd make install worked fine, dmesg tells that the device has been recognised, I can bring the device up but it is not possible to connect to the router. I also tried it without any network security like wep or wpa. If i scan for wlan nothing is found. If i try "iwconfig wlan0 essid 12345 ap any" iwconfig tells me that the ap is invalid.
dmesg tells me something about the activities but it makes no sence for me. i'm going to post the dmesg message later.

Is there anybody with an idea what i could try?

Torsten

mariogiov 10-31-2009 08:54 PM

I believe the firmware is also available via this link:
http://rapidshare.com/files/30069734...mware.zip.html

Perhaps this will help!

Torsten1981 11-02-2009 07:49 AM

Hi,

okay, here is the demsg message I get trying to connect to my router:

ieee80211_crypt: registered algorithm 'NULL'
ieee80211_crypt: registered algorithm 'TKIP'
ieee80211_crypt: registered algorithm 'CCMP'
ieee80211_crypt: registered algorithm 'WEP'

Linux kernel driver for RTL8192 based WLAN cards
Copyright (c) 2007-2008, Realsil Wlan
rtl819xE 0000:02:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
rtl819xE 0000:02:00.0: setting latency timer to 64
===============>NIC 8192E
Dot11d_Init()
IRQ 16============>r8192_wx_set_essid():driver is not up return
===>rtl8192_SetWirelessMode(), wireless_mode:0x8, support_mode:0x16
<===rtl8192_SetWirelessMode(), wireless_mode:10, bEnableHT = 1
rtl819xE 0000:02:00.0: firmware: requesting RTL8192E/boot.img
rtl819xE 0000:02:00.0: firmware: requesting RTL8192E/main.img
rtl819xE 0000:02:00.0: firmware: requesting RTL8192E/data.img
===>ieee80211_start_scan_rsl()
====================>haha:IPSEnter()


===>rtl8192_SetWirelessMode(), wireless_mode:0x10, support_mode:0x16
<===rtl8192_SetWirelessMode(), wireless_mode:10, bEnableHT = 1
===>ieee80211_start_scan_rsl()
===>ieee80211_start_scan_rsl()
rtl819xE:Setting SW wep key
rtl819xE:EnableHWSecurityConfig8192:, hwsec:1, pairwise_key:1, SECR_value:f

rtl819xE:====>to setKey(), dev:ffff88013bf80000, EntryNo:0, KeyIndex:0, KeyType:1, MacAddr00:00:00:00:00:00

rtl819xE:=========>after set key, usconfig:8004


Is there anybody out there with an idea?


in addition: if i want to bring up the device when my usb wlan is already up i'm getting the following message:


Linux kernel driver for RTL8192 based WLAN cards
Copyright (c) 2007-2008, Realsil Wlan
rtl819xE 0000:02:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
rtl819xE 0000:02:00.0: setting latency timer to 64
===============>NIC 8192E
Dot11d_Init()
IRQ 16===>rtl8192_SetWirelessMode(), wireless_mode:0x8, support_mode:0x16
<===rtl8192_SetWirelessMode(), wireless_mode:10, bEnableHT = 1
rtl819xE 0000:02:00.0: firmware: requesting RTL8192E/boot.img
rtl819xE 0000:02:00.0: firmware: requesting RTL8192E/main.img
rtl819xE 0000:02:00.0: firmware: requesting RTL8192E/data.img
rtl819xE:====>error=====dwRegRead: 2f, WriteData: 27

rtl819xE:PHY_RF8256_Config():Check Radio[0] Fail!!

rtl819xE:PHY Initialization failed

rtl819xE:RF Config failed

rtl819xE:ERR!!! _rtl8192_up(): initialization is failed!

perhaps there is any problem with the generic 802.11 stuff but i also tried to use the one that ist included in the realtek driver package. it doens'T help

bye

find.karl 11-03-2009 10:54 PM

Just a guess (No really) but looking at the output it looks like the Wireless card is not up meaning that you still have a driver issue.

“IRQ 16============>r8192_wx_set_essid():driver is not up return”

I was getting ready to try and write one but then I discovered that my sound was not working and my DVD is only working as a CD so I decided to give it up and run Linux in VirtualBox. Sad really, it would be nice if hardware vendors supported Windows, Linux and Mac as a rule. I would love it if I could see that a machine was “Linux Certified” prior to purchase.


All times are GMT -5. The time now is 03:14 AM.