LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NetWork card works after complete install, then when I reboot it don't work anymore. (http://www.linuxquestions.org/questions/linux-networking-3/network-card-works-after-complete-install-then-when-i-reboot-it-dont-work-anymore-747148/)

rowebil 08-12-2009 08:10 PM

NetWork card works after complete install, then when I reboot it don't work anymore.
 
I have BackTrack 3 and Realtek 8185 network card

I fresh install Backtrack 3 and update kernel, then ./makedrv, then ./wlan0up

It works, yay! :)

But then I reboot, and it's gone? Yea, it's in the lspci file, loaded, but it doesn't work. I can't even re-install the card using ./makedrv.

Here is my logs.

Okay. I extracted lspci at the time it worked and after reboot, and it's the same file. Not changed at all.

Code:

00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
00:02.0 CardBus bridge: Texas Instruments PCI1251A
00:02.1 CardBus bridge: Texas Instruments PCI1251A
00:06.0 Multimedia audio controller: Cirrus Logic CS 4610/11 [CrystalClear SoundFusion Audio Accelerator] (rev 01)
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
01:00.0 VGA compatible controller: Neomagic Corporation NM2200 [MagicGraph 256AV] (rev 20)
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8185 IEEE 802.11a/b/g Wireless LAN Controller (rev 20)

Bottom one.
Now what do I do? How do I start it?

Everytime I reboot, my rtl8185 folder always deletes. It's in etc, and dev.

Here's my log in terminal
Code:

bt rtl8185 # cd /etc/rtl8185/rtl8185_linux_26.1027.0823.2007
bt rtl8185_linux_26.1027.0823.2007 # wireless.sh
./wireless.sh: line 1: cd: /root/rtl8185_linux_26.1027.0823.2007: No such file or directory
./ieee80211/
./ieee80211/ieee80211_module.c
./ieee80211/ieee80211_rx.c
./ieee80211/tags
./ieee80211/Makefile
./ieee80211/ieee80211_crypt_tkip.c
./ieee80211/ieee80211_softmac.c
./ieee80211/readme
./ieee80211/ieee80211_crypt_ccmp.c
./ieee80211/ieee80211.h
./ieee80211/ieee80211_tx.c
./ieee80211/ieee80211_softmac_wx.c
./ieee80211/ieee80211_crypt.h
./ieee80211/ieee80211_wx.c
./ieee80211/license
./ieee80211/ieee80211_crypt_wep.c
./ieee80211/ieee80211_crypt.c
rtl8185/
rtl8185/README.adhoc
rtl8185/r8180_sa2400.h
rtl8185/Makefile
rtl8185/copying
rtl8185/README.master
rtl8185/r8180.h
rtl8185/install
rtl8185/r8180_max2820.h
rtl8185/r8180_max2820.c
rtl8185/r8180_rtl8225.h
rtl8185/r8180_wx.h
rtl8185/authors
rtl8185/tags
rtl8185/r8180_pm.c
rtl8185/r8180_hw.h
rtl8185/r8180_gct.c
rtl8185/r8180_gct.h
rtl8185/r8180_rtl8225.c
rtl8185/readme
rtl8185/r8180_93cx6.h
rtl8185/ieee80211.h
rtl8185/license
rtl8185/r8180_pm.h
rtl8185/changes
rtl8185/r8180_rtl8225z2.c
rtl8185/r8180_wx.c
rtl8185/r8180_rtl8255.c
rtl8185/r8180_93cx6.c
rtl8185/r8180_sa2400.c
rtl8185/r8180_core.c
rtl8185/r8180_rtl8255.h
rtl8185/ieee80211_crypt.h
rm -f *.mod.c *.mod *.o .*.cmd *.ko
rm -rf /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/tmp
make -C /lib/modules/2.6.21.5/build M=/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211 CC=gcc modules
make[1]: Entering directory `/usr/src/linux-2.6.21.5'
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_softmac.o
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_softmac.c: In function 'ieee80211_softmac_init':
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_softmac.c:2236: warning: assignment from incompatible pointer type
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_softmac.c:2237: warning: assignment from incompatible pointer type
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_softmac.c:2238: warning: assignment from incompatible pointer type
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_softmac.c:2239: warning: assignment from incompatible pointer type
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_softmac.c:2240: warning: assignment from incompatible pointer type
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_softmac.c:2241: warning: assignment from incompatible pointer type
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_rx.o
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_tx.o
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_wx.o
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_module.o
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_softmac_wx.o
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt.o
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.o
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.c: In function 'ieee80211_ccmp_aes_encrypt':
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.c:88: warning: passing argument 1 of 'crypto_cipher_encrypt_one' from incompatible pointer type
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.c: In function 'ieee80211_ccmp_init':
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.c:110: warning: assignment from incompatible pointer type
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.c:127: warning: passing argument 1 of 'crypto_free_cipher' from incompatible pointer type
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.c: In function 'ieee80211_ccmp_deinit':
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.c:144: warning: passing argument 1 of 'crypto_free_cipher' from incompatible pointer type
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.c: In function 'ieee80211_ccmp_set_key':
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.c:422: warning: passing argument 1 of 'crypto_cipher_setkey' from incompatible pointer type
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_tkip.o
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_wep.o
  LD [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211-rtl.o
  LD [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt-rtl.o
  LD [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_wep-rtl.o
  LD [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_tkip-rtl.o
  LD [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp-rtl.o
  Building modules, stage 2.
  MODPOST 5 modules
  CC      /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211-rtl.mod.o
  LD [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211-rtl.ko
  CC      /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt-rtl.mod.o
  LD [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt-rtl.ko
  CC      /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp-rtl.mod.o
  LD [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp-rtl.ko
  CC      /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_tkip-rtl.mod.o
  LD [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_tkip-rtl.ko
  CC      /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_wep-rtl.mod.o
  LD [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_wep-rtl.ko
make[1]: Leaving directory `/usr/src/linux-2.6.21.5'
rm -f *.mod.c *.mod *.o .*.cmd *.ko *~
rm -rf /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/tmp
make -C /lib/modules/2.6.21.5/build M=/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185 CC=gcc modules
make[1]: Entering directory `/usr/src/linux-2.6.21.5'
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.o
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:82:1: warning: "rdtsc" redefined
In file included from include/asm/processor.h:17,
                from include/asm/thread_info.h:16,
                from include/linux/thread_info.h:21,
                from include/linux/preempt.h:9,
                from include/linux/spinlock.h:49,
                from include/linux/module.h:9,
                from /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.h:27,
                from /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:61:
include/asm/msr.h:69:1: warning: this is the location of the previous definition
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c: In function 'rtl8180_init':
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:3159: warning: assignment from incompatible pointer type
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:3522: warning: passing argument 2 of 'request_irq' from incompatible pointer type
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c: At top level:
/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:579: warning: 'r8180_get_wireless_stats' defined but not used
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_sa2400.o
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_93cx6.o
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_wx.o
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_max2820.o
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_gct.o
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_rtl8225.o
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_rtl8225z2.o
  CC [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_rtl8255.o
  LD [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: "ieee80211_softmac_stop_protocol_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "free_ieee80211_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wx_get_wap_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wake_queue_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_rx_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wx_get_mode_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_is_shortslot" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wx_set_freq_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wx_get_name_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wx_get_rate_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wx_set_rate_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_ps_tx_ack" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wx_get_freq_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_is_54g" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_stop_queue_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wx_set_scan_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wx_get_essid_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wx_get_scan_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wpa_supplicant_ioctl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wx_set_mode_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_get_beacon" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wx_set_rawtx_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wx_set_encode_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_stop_protocol_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wx_set_wap_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wx_get_power_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wx_get_encode_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_softmac_start_protocol_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wlan_frequencies_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wx_set_power_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "alloc_ieee80211_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_reset_queue" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_wx_set_essid_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
WARNING: "ieee80211_start_protocol_rtl" [/etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko] undefined!
  CC      /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.mod.o
  LD [M]  /etc/rtl8185/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.ko
make[1]: Leaving directory `/usr/src/linux-2.6.21.5'
insmod: error inserting 'ieee80211_crypt-rtl.ko': -1 File exists
insmod: error inserting 'ieee80211_crypt_wep-rtl.ko': -1 Unknown symbol in module
insmod: error inserting 'ieee80211_crypt_tkip-rtl.ko': -1 Unknown symbol in module
insmod: error inserting 'ieee80211_crypt_ccmp-rtl.ko': -1 Unknown symbol in module
insmod: error inserting 'ieee80211-rtl.ko': -1 File exists
insmod: error inserting 'r8180.ko': -1 File exists
wlan0: ERROR while getting interface flags: No such device

I know it's a lot im really sorry.

If you don't understand what I'm saying, ask me questions and I'll answer them.

It might be a kernel problem? But can anyone provide me with working drivers for Realtek 8185 that work on Backtrack 3 install? No upgrade? I tried everything!

markush 08-13-2009 01:24 PM

please post the output of
Code:

/sbin/lspci | grep -i real
and the output of
Code:

lsmod | grep -i rtl
Markus

rowebil 08-14-2009 08:39 PM

Code:


Before install
lspci command
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8185 IEEE 802.11a/b/g Wireless LAN Controller (rev 20)

lsmod command came out as nothing, just a new line.

After install, working.
lspci command
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8185 IEEE 802.11a/b/g Wireless LAN Controller (rev 20)

lsmod command
bt rtl8185_linux_26.1027.0823.2007 # lsmod | grep -i rtl
ieee80211_rtl          60036  1 r8180
ieee80211_crypt_ccmp_rtl    10240  0
ieee80211_crypt_tkip_rtl    13184  0
ieee80211_crypt_wep_rtl    7936  0
ieee80211_crypt_rtl    8452  4 ieee80211_rtl,ieee80211_crypt_ccmp_rtl,ieee80211_crypt_tkip_rtl,ieee80211_crypt_wep_rtl


markush 08-15-2009 05:47 AM

I think you'll have to make sure that the modules for the netwok-card are loaded.

I'd recommend that you reboot your system and, instead of reinstalling the network-card do
Code:

modprobe ieee80211_rtl
where modprobe will load this module. Maybe the other modules (of your lsmod output) have also to be loaded the same way.

If this works, you have to find out why the modules are not loaded while the system is starting.

Markus

rowebil 08-15-2009 06:59 AM

I modprobe everyone of those drives or lsmod output, then I went to directory and went to rtl8185 directory and ran wlan0up

For all those drivers, I got file exists errors, then for the r8180.ko driver, I have unknown symbol in module.
After that I have, wlan0: ERROR while getting interface flags: No such device.


Do you think another module is being loaded, and conflicting with my module? How would I find that out?

markush 08-15-2009 02:52 PM

Hello,

I never heard about such conflicts between modules. But I've never had such an issue with hardware, so I think I can't help you any further. Maybe someone who is reading this has an idea. Good luck.

Markus


All times are GMT -5. The time now is 02:18 PM.