Giter Club home page Giter Club logo

rtl8190p's Introduction

This repo has been updated to build on modern kernels. The procedure is to be in this directory, i.e. the base directory after doing a 'git clone', and do 'make' and 'sudo make install'.

rtl8190p's People

Contributors

lwfinger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rtl8190p's Issues

Module crashes on init

Hi
I just installed and tested your module on Lubuntu 20.04 with kernel 5.4.
Below is the output from dmesg.
I'm available work together to debug your module if you agree.

[ 25.466902] 8190p: loading out-of-tree module taints kernel.
[ 25.467142] 8190p: module verification failed: signature and/or required key missing - tainting kernel
[ 25.467764] rtllib_crypt: registered algorithm 'NULL'
[ 25.467765] rtllib_crypt: registered algorithm 'TKIP'
[ 25.467766] rtllib_crypt: registered algorithm 'CCMP'
[ 25.467767] rtllib_crypt: registered algorithm 'WEP'
[ 25.467767]
Linux kernel driver for RTL8192 based WLAN cards
[ 25.467768] Copyright (c) 2007-2008, Realsil Wlan
[ 25.470982] BUG: unable to handle page fault for address: ffffffffc0a5b900
[ 25.470986] #PF: supervisor write access in kernel mode
[ 25.470987] #PF: error_code(0x0003) - permissions violation
[ 25.470988] PGD 4000e067 P4D 4000e067 PUD 40010067 PMD 70f3c067 PTE 718e4061
[ 25.470993] Oops: 0003 [#1] SMP PTI
[ 25.470996] CPU: 1 PID: 454 Comm: systemd-udevd Tainted: G OE 5.4.0-40-generic #44-Ubuntu
[ 25.470998] Hardware name: System manufacturer System Product Name/P5KPL-AM-CKD-VISUM-SI, BIOS 0312 01/21/2009
[ 25.471010] RIP: 0010:TSInitialize+0x2e5/0x370 [8190p]
[ 25.471013] Code: 00 66 41 89 94 24 5a 01 00 00 e8 f6 5a 01 00 49 8b 97 20 21 00 00 48 8b 45 c8 4d 89 a7 20 21 00 00 49 89 04 24 49 89 54 24 08 <4c> 89 22 49 81 c4 d0 01 00 00 4c 39 65 d0 0f 85 1b ff ff ff 48 8b
[ 25.471014] RSP: 0018:ffffb4c70043f998 EFLAGS: 00010246
[ 25.471016] RAX: ffff8e446da829d8 RBX: ffff8e446da829f0 RCX: 0000000000000000
[ 25.471017] RDX: ffffffffc0a5b900 RSI: ffff8e446da82a90 RDI: ffff8e446da82b80
[ 25.471019] RBP: ffffb4c70043f9e8 R08: 0000000000000000 R09: ffff8e447cc02fc0
[ 25.471020] R10: 0000000000000dc0 R11: 0000000000000000 R12: ffff8e446da829e8
[ 25.471022] R13: 0000000000000001 R14: ffff8e446da82b80 R15: ffff8e446da808c0
[ 25.471024] FS: 00007fdbccb84880(0000) GS:ffff8e447d280000(0000) knlGS:0000000000000000
[ 25.471025] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 25.471027] CR2: ffffffffc0a5b900 CR3: 000000007580e000 CR4: 00000000000406e0
[ 25.471028] Call Trace:
[ 25.471039] alloc_rtllib_rsl+0x23b/0x2f0 [8190p]
[ 25.471048] rtl8192_pci_probe+0x7c/0x2f0 [8190p]
[ 25.471053] local_pci_probe+0x48/0x80
[ 25.471055] pci_device_probe+0x10f/0x1b0
[ 25.471059] really_probe+0x159/0x3e0
[ 25.471061] driver_probe_device+0xbc/0x100
[ 25.471063] device_driver_attach+0x5d/0x70
[ 25.471064] __driver_attach+0x8f/0x150
[ 25.471066] ? device_driver_attach+0x70/0x70
[ 25.471069] bus_for_each_dev+0x7e/0xc0
[ 25.471071] driver_attach+0x1e/0x20
[ 25.471073] bus_add_driver+0x152/0x1f0
[ 25.471075] driver_register+0x74/0xd0
[ 25.471077] __pci_register_driver+0x57/0x60
[ 25.471084] rtl8192_pci_module_init+0x104/0x118 [8190p]
[ 25.471091] ? rtllib_crypto_tkip_init+0x17/0x17 [8190p]
[ 25.471094] do_one_initcall+0x4a/0x1fa
[ 25.471097] ? kfree+0x231/0x250
[ 25.471100] ? _cond_resched+0x19/0x30
[ 25.471101] ? kmem_cache_alloc_trace+0x16c/0x240
[ 25.471105] do_init_module+0x62/0x250
[ 25.471107] load_module+0x10b8/0x1200
[ 25.471111] __do_sys_finit_module+0xbe/0x120
[ 25.471112] ? __do_sys_finit_module+0xbe/0x120
[ 25.471115] __x64_sys_finit_module+0x1a/0x20
[ 25.471117] do_syscall_64+0x57/0x190
[ 25.471120] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 25.471122] RIP: 0033:0x7fdbcd10470d
[ 25.471124] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 53 f7 0c 00 f7 d8 64 89 01 48
[ 25.471126] RSP: 002b:00007ffd628eb7d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 25.471128] RAX: ffffffffffffffda RBX: 0000555d3fd366d0 RCX: 00007fdbcd10470d
[ 25.471129] RDX: 0000000000000000 RSI: 00007fdbccfe1ded RDI: 0000000000000006
[ 25.471130] RBP: 0000000000020000 R08: 0000000000000000 R09: 0000000000000000
[ 25.471132] R10: 0000000000000006 R11: 0000000000000246 R12: 00007fdbccfe1ded
[ 25.471133] R13: 0000000000000000 R14: 0000555d3fd41780 R15: 0000555d3fd366d0
[ 25.471135] Modules linked in: 8190p(OE+) serio_raw snd_seq_device snd_timer snd soundcore asus_atk0110 mac_hid sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 btrfs xor zstd_compress raid6_pq libcrc32c dm_mirror dm_region_hash dm_log i915 video i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops psmouse i2c_i801 pata_acpi drm lpc_ich r8169 realtek floppy
[ 25.471154] CR2: ffffffffc0a5b900
[ 25.471156] ---[ end trace 84f3da099ccb07a1 ]---
[ 25.471165] RIP: 0010:TSInitialize+0x2e5/0x370 [8190p]
[ 25.471166] Code: 00 66 41 89 94 24 5a 01 00 00 e8 f6 5a 01 00 49 8b 97 20 21 00 00 48 8b 45 c8 4d 89 a7 20 21 00 00 49 89 04 24 49 89 54 24 08 <4c> 89 22 49 81 c4 d0 01 00 00 4c 39 65 d0 0f 85 1b ff ff ff 48 8b
[ 25.471168] RSP: 0018:ffffb4c70043f998 EFLAGS: 00010246
[ 25.471170] RAX: ffff8e446da829d8 RBX: ffff8e446da829f0 RCX: 0000000000000000
[ 25.471171] RDX: ffffffffc0a5b900 RSI: ffff8e446da82a90 RDI: ffff8e446da82b80
[ 25.471172] RBP: ffffb4c70043f9e8 R08: 0000000000000000 R09: ffff8e447cc02fc0
[ 25.471174] R10: 0000000000000dc0 R11: 0000000000000000 R12: ffff8e446da829e8
[ 25.471175] R13: 0000000000000001 R14: ffff8e446da82b80 R15: ffff8e446da808c0
[ 25.471177] FS: 00007fdbccb84880(0000) GS:ffff8e447d280000(0000) knlGS:0000000000000000
[ 25.471179] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 25.471180] CR2: ffffffffc0a5b900 CR3: 000000007580e000 CR4: 00000000000406e0

Error in make install step: file not found.

Hello. First of all, thanks for supporting an almost forgotten product!

Ive gone through all steps of downloading and building the drivers, no problem at all. However, when I do the sudo make install`
in the top level directory (/rtl8190p/), I get:

$: install -p -m 644 src/r8190_pci.ko /lib/modules/5.4.0-39-generic/kernel/drivers/net/wireless
$: install: não foi possível obter estado de 'src/r8190_pci.ko': Arquivo ou diretório inexistente
make: *** [Makefile:76: install] Error 1

(translating: it was not possible to obtain the state of 'src/r8190_pci.ko': File or directory inexistent)

It`s a problem on my steps or some typo in the makefile?

Thanks a lot!

Doesn't compile using recent kernel sources

Getting errors such as the following

/srv/Downloads/Devices/NIC/rtl8190p-master/src/rtl_core.c:2577:10: error: ‘struct net_device’ has no member named ‘trans_start’; did you mean ‘mem_start’?
     dev->trans_start = jiffies;
        ^~
/srv/Downloads/Devices/NIC/rtl8190p-master/src/rtllib_rx.c:1017:5: error: ‘struct net_device’ has no member named ‘last_rx’
  dev->last_rx = jiffies;
     ^~
/srv/Downloads/Devices/NIC/rtl8190p-master/src/rtllib_crypt_tkip.c:119:25: error: implicit declaration of function ‘crypto_alloc_hash’; did you mean ‘crypto_alloc_base’? [-Werror=implicit-function-declaration]
  priv->tx_tfm_michael = crypto_alloc_hash("michael_mic", 0,
                         ^~~~~~~~~~~~~~~~~
/srv/Downloads/Devices/NIC/rtl8190p-master/src/rtllib_crypt_tkip.c:162:4: error: implicit declaration of function ‘crypto_free_hash’; did you mean ‘crypto_free_comp’? [-Werror=implicit-function-declaration]
    crypto_free_hash(priv->tx_tfm_michael);
    ^~~~~~~~~~~~~~~~
/srv/Downloads/Devices/NIC/rtl8190p-master/src/rtllib_crypt_tkip.c:684:13: error: implicit declaration of function ‘crypto_hash_setkey’; did you mean ‘crypto_cipher_setkey’? [-Werror=implicit-function-declaration]
         if (crypto_hash_setkey(tfm_michael, key, 8))
             ^~~~~~~~~~~~~~~~~~
/srv/Downloads/Devices/NIC/rtl8190p-master/src/rtllib_crypt_tkip.c:689:16: error: implicit declaration of function ‘crypto_hash_digest’; did you mean ‘crypto_has_cipher’? [-Werror=implicit-function-declaration]
         return crypto_hash_digest(&desc, sg, data_len + 16, mic);
                ^~~~~~~~~~~~~~~~~~

DMA: Out of SW-IOMMU space for 9100 bytes at device 0000:05:07.0

Hi!

I have this NIC: http://www.encore-usa.com/br/taxonomy/term/66/all .
Ndiswrapper dont work, as I am using a 64 bit kernel.

This driver is awesome, but since I compiled my connection drops often and sometimes I need to reboot, or else it won't connect again.

I've found this link, but I couldn't adapt it for rtl8190p:
http://www.spinics.net/lists/linux-driver-devel/msg08658.html

I want to help improving this driver.

Please, can you send me some tips on how to traceback this issue? Trying gcc debug will help?
Thank you!

Best regards,
Weber Kai

Building for Old Kernel Fails

I have an old PC I am trying to re-purpose, and I've install LinuxCNC on it. This is a debian flavor with kernel version 4.19.0-16-rt-amd64. This machine has an RTL8190 wireless PCI card in it, which I am trying to get operational. I've gone down the ndiswrapper route with no luck, and discovered this driver source. Upon trying to make, I get the following warning:

rtl8190p/src/rtllib_crypt_tkip.c: In function ‘rtllib_tkip_init’: /home/joe/rtl8192du/rtl8190p/src/rtllib_crypt_tkip.c:122:22: error: implicit declaration of function ‘crypto_alloc_sync_skcipher’; did you mean ‘crypto_alloc_skcipher’? [-Werror=implicit-function-declaration] priv->tx_tfm_arc4 = crypto_alloc_sync_skcipher("ecb(arc4)", 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~
Followed by a good number of similar errors (implicit declaration of functions), and a good many more warning related to those same functions. I am able to build the rtl8192du driver (though it doesn't work with the hardware I have), so I have all the build essentials it seems. Can you please assist?

rtl_wx.h has at least a hundred "strays" and many other warnings

I dont really know how to describe the issues. I'd copy and paste the 3 pages of errors but its on an offline system.

rtl_wx.o make error 1
module for the master folder error 2
recipe for target 'all' failed , error 2
recipe for 'modules' error 2

I dont know what else to say, for the post part its just "stray /###" where the #'s are random numbers

running on debian 10.13

Manjaro Linux Makefile error

I've been struggling with this driver for a while now, It worked for me some years ago (rtl8190p_linux_2.6.0011.1029.2009), probably something simple but all my google researching skills have failed me.

$ make
make[1]: Entering directory '/usr/lib/modules/4.3.3-3-MANJARO/build'
  CC [M]  /media/sharefs/Data/storage/linux-apps/rtl8190p/src/rtl_core.o
/media/sharefs/Data/storage/linux-apps/rtl8190p/src/rtl_core.c: In function ‘rtl8192_init_priv_variable’:
/media/sharefs/Data/storage/linux-apps/rtl8190p/src/rtl_core.c:1531:35: error: implicit declaration of function ‘vzalloc’ [-Werror=implicit-function-declaration]
  priv->pFirmware = (rt_firmware *)vzalloc(sizeof(rt_firmware));
                                   ^
/media/sharefs/Data/storage/linux-apps/rtl8190p/src/rtl_core.c:1531:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  priv->pFirmware = (rt_firmware *)vzalloc(sizeof(rt_firmware));
                    ^
/media/sharefs/Data/storage/linux-apps/rtl8190p/src/rtl_core.c: In function ‘rtl8192_pci_disconnect’:
/media/sharefs/Data/storage/linux-apps/rtl8190p/src/rtl_core.c:4620:4: error: implicit declaration of function ‘vfree’ [-Werror=implicit-function-declaration]
    vfree(priv->pFirmware);
    ^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/media/sharefs/Data/storage/linux-apps/rtl8190p/src/rtl_core.o' failed
make[2]: *** [/media/sharefs/Data/storage/linux-apps/rtl8190p/src/rtl_core.o] Error 1
Makefile:1378: recipe for target '_module_/media/sharefs/Data/storage/linux-apps/rtl8190p/src' failed
make[1]: *** [_module_/media/sharefs/Data/storage/linux-apps/rtl8190p/src] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.3.3-3-MANJARO/build'
Makefile:12: recipe for target 'all' failed
make: *** [all] Error 2
Machine:     x86_64
System name:  Linux
Nodename:    metis-jupiter
Release:     4.3.3-3-MANJARO
Version:     #1 SMP PREEMPT Thu Dec 24 09:35:07 UTC 2015
...
02:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9120 SATA 6Gb/s Controller (rev 12)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)
04:00.0 SATA controller: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 03)
04:00.1 IDE interface: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 03)
06:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
0b:02.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8190 802.11n PCI Wireless Network Adapter
0b:04.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller (rev c0)
...

Connection drops often when uploading

Hi!

For testing, I changed my setup to iommu=force and in BIOS setup I set "PCI/PnP OS"=No.

My testing case is: google chrome, chrome cast beta and videostream extension. Using a wired connection to the router, everything goes fine.

By wireless, after a few seconds, the connection drops. When reconnecting, sometimes I get "bad password" error, sometimes I get "unable to get IP" error. After issuing "modprobe -r r8190_pci" and "modprobe r8190_pci" I can connect again. But if I try the same test, the same error occurs.

There are no "strange" logs messages, except for a few of these ones:
==========>received disassoc/deauth(c0) frame, reason code:7
==========>received disassoc/deauth(c0) frame, reason code:f

Please, let me now if there is some additional information I can supply.

Thank you very much!

Best regards,
Weber Kai

DMA: Out of SW-IOMMU space for 9100 bytes at device 0000:05:07.0

Hi!

I have this NIC: http://www.encore-usa.com/br/taxonomy/term/66/all .
Ndiswrapper dont work, as I am using a 64 bit kernel.

This driver is awesome, but since I compiled my connection drops often and sometimes I need to reboot, or else it won't connect again.

I've found this link, but I couldn't adapt it for rtl8190p:
http://www.spinics.net/lists/linux-driver-devel/msg08658.html

I want to help improving this driver.

Please, can you send me some tips on how to traceback this issue? Trying gcc debug will help?
Thank you!

Best regards,
Weber Kai

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.