0bda:8178, pvaret / rtl8192cu-fixes – Debian installation issue

Forum Forums General Hardware 0bda:8178, pvaret / rtl8192cu-fixes – Debian installation issue

  • This topic has 5 replies, 3 voices, and was last updated Jun 15-4:28 pm by toumbo.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #61673
    Member
    toumbo

    Hello people!!

    I have this Wi-Fi adapter

    wlx14cc2016487d: 0bda:8178 Realtek RTL8192CU 802.11n WLAN Adapter

    Therefore, while I’m about to istall it with the rtl8192cu-fixes workaround there is an issue.

    toumbo@antix1:~
    $ sudo dkms install 8192cu/1.11
    [sudo] password for toumbo: 
    
    Kernel preparation unnecessary for this kernel.  Skipping...
    
    Building module:
    cleaning build area...
    make -j2 KERNELRELEASE=4.9.0-264-antix.1-486-smp -C /lib/modules/4.9.0-264-antix.1-486-smp/build M=/var/lib/dkms/8192cu/1.11/build............(bad exit status: 2)
    Error! Bad return status for module build on kernel: 4.9.0-264-antix.1-486-smp (i686)
    Consult /var/lib/dkms/8192cu/1.11/build/make.log for more information.

    /var/lib/dkms/8192cu/1.11/build/make.log has the following output.

    DKMS make.log for 8192cu-1.11 for kernel 4.9.0-264-antix.1-486-smp (i686)
    Mon 14 Jun 2021 07:22:01 PM EEST
    make: Entering directory '/usr/src/linux-headers-4.9.0-264-antix.1-486-smp'
      LD      /var/lib/dkms/8192cu/1.11/build/built-in.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_cmd.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_security.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_debug.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_io.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_ioctl_query.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_ioctl_set.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_ieee80211.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_mlme.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_mlme_ext.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_wlan_util.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_pwrctrl.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_rf.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_recv.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_sta_mgt.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_ap.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_xmit.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_p2p.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_tdls.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_br_ext.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_iol.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/rtw_sreset.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/core/efuse/rtw_efuse.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/hal/hal_intf.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/hal/hal_com.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/hal/dm.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/hal/rtl8192c/rtl8192c_hal_init.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/hal/rtl8192c/rtl8192c_phycfg.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/hal/rtl8192c/rtl8192c_rf6052.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/hal/rtl8192c/rtl8192c_dm.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/hal/rtl8192c/rtl8192c_rxdesc.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/hal/rtl8192c/rtl8192c_cmd.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/hal/rtl8192c/usb/usb_halinit.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/hal/rtl8192c/usb/rtl8192cu_led.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/hal/rtl8192c/usb/rtl8192cu_xmit.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/hal/rtl8192c/usb/rtl8192cu_recv.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/hal/rtl8192c/usb/usb_ops_linux.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/hal/rtl8192c/rtl8192c_sreset.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/hal/rtl8192c/rtl8192c_xmit.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/hal/rtl8192c/usb/Hal8192CUHWImg.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/os_dep/osdep_service.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/os_dep/linux/os_intfs.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.o
      CC [M]  /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_ops_linux.o
    /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.c:157:2: error: expected identifier or ‘(’ before ‘{’ token
      {USB_DEVICE(0x0DF6, 0x0061)},/* Sitecom - Edimax */ \
      ^
    /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.c:157:30: error: expected identifier or ‘(’ before ‘,’ token
      {USB_DEVICE(0x0DF6, 0x0061)},/* Sitecom - Edimax */ \
                                  ^
    /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.c:158:30: error: expected identifier or ‘(’ before ‘,’ token
      {USB_DEVICE(0x0B05, 0x17AB)},/* ASUS - Edimax */ \
                                  ^
    /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.c:159:30: error: expected identifier or ‘(’ before ‘,’ token
      {USB_DEVICE(0x0846, 0x9021)},/* Netgear - Sercomm */ \
                                  ^
    /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.c:160:30: error: expected identifier or ‘(’ before ‘,’ token
      {USB_DEVICE(0x0846, 0xF001)}, /* Netgear - Sercomm */ \
                                  ^
    /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.c:161:30: error: expected identifier or ‘(’ before ‘,’ token
      {USB_DEVICE(0x0E66, 0x0019)},/* Hawking,Edimax */ \
                                  ^
    /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.c:162:30: error: expected identifier or ‘(’ before ‘,’ token
      {USB_DEVICE(0x0E66, 0x0020)}, /* Hawking  - Edimax */ \
                                  ^
    /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.c:163:30: error: expected identifier or ‘(’ before ‘,’ token
      {USB_DEVICE(0x050D, 0x1004)}, /* Belkin - Edimax */ \
                                  ^
    /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.c:164:30: error: expected identifier or ‘(’ before ‘,’ token
      {USB_DEVICE(0x0BDA, 0x2E2E)}, /* Intel - - */ \
                                  ^
    /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.c:165:30: error: expected identifier or ‘(’ before ‘,’ token
      {USB_DEVICE(0x2357, 0x0100)}, /* TP-Link - TP-Link */ \
                                  ^
    /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.c:166:30: error: expected identifier or ‘(’ before ‘,’ token
      {USB_DEVICE(0x06F8, 0xE035)}, /* Hercules - Edimax */ \
                                  ^
    /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.c:167:30: error: expected identifier or ‘(’ before ‘,’ token
      {USB_DEVICE(0x04BB, 0x0950)}, /* IO-DATA - Edimax */ \
                                  ^
    /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.c:168:30: error: expected identifier or ‘(’ before ‘,’ token
      {USB_DEVICE(0x0DF6, 0x0070)}, /* Sitecom - Edimax */ \
                                  ^
    /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.c:169:30: error: expected identifier or ‘(’ before ‘,’ token
      {USB_DEVICE(0x0789, 0x016D)}, /* LOGITEC - Edimax */ \
                                  ^
    /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.c:171:45: error: expected identifier or ‘(’ before ‘,’ token
      {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8186)},/* Intel-Xavi( Azwave) */
                                                 ^
    In file included from /var/lib/dkms/8192cu/1.11/build/include/osdep_service.h:764,
                     from /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.c:23:
    /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.c:214:26: error: ‘rtw_usb_id_tbl’ undeclared here (not in a function); did you mean ‘rtw_drv_init’?
     MODULE_DEVICE_TABLE(usb, rtw_usb_id_tbl);
                              ^~~~~~~~~~~~~~
    ./include/linux/module.h:213:21: note: in definition of macro ‘MODULE_DEVICE_TABLE’
     extern const typeof(name) __mod_##type##__##name##_device_table  \
                         ^~~~
    ./include/linux/module.h:213:27: error: ‘__mod_usb__rtw_usb_id_tbl_device_table’ aliased to undefined symbol ‘rtw_usb_id_tbl’
     extern const typeof(name) __mod_##type##__##name##_device_table  \
                               ^~~~~~
    /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.c:214:1: note: in expansion of macro ‘MODULE_DEVICE_TABLE’
     MODULE_DEVICE_TABLE(usb, rtw_usb_id_tbl);
     ^~~~~~~~~~~~~~~~~~~
    make[1]: *** [scripts/Makefile.build:307: /var/lib/dkms/8192cu/1.11/build/os_dep/linux/usb_intf.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make: *** [Makefile:1558: _module_/var/lib/dkms/8192cu/1.11/build] Error 2
    make: Leaving directory '/usr/src/linux-headers-4.9.0-264-antix.1-486-smp'

    What am I doing wrong?

    I have to say I’ve done this procedure on ubuntu based distros numerous times

    #61674
    Member
    skidoo
    Helpful
    Up
    0
    ::

    you, personally, are probably doing nothing wrong.

    possibly the compiler directives on the ubuntu system(s) you previously build on were less stringent, or targeted a lesser C/C++ version

    Start at the bottom of the error output and read upward.

    “aliased to undefined symbol ‘rtw_usb_id_tbl’ extern const typeof(name) __mod_##type##__##name##_device_table”

    You might try editing out the “const” declaration
    @ include/linux/module.h Line 213
    and retry
    (or,
    attempt to workaround by applying less stringent Warning-Options)

    https://community.arm.com/developer/tools-software/oss-platforms/f/gnu-toolchain-forum/47925/c-extern-const-link-error

    ______________

    ps
    It might be helpful for you to read both the open and the closed bug tickets here:
    https://github.com/pvaret/rtl8192cu-fixes/issues

    #61678
    Member
    toumbo
    Helpful
    Up
    0
    ::

    Thank you for your input skidoo!

    I’m struggling to understand what you recommend since I know nothing about c++.

    Besides, it seems there is no module.h file which I could tinker.

    https://www.dropbox.com/s/i187iktyp3z455u/screenshot.jpg?dl=0

    <spoiler>I’m in the process of reading those tickets you mentioned</spoiler>

    • This reply was modified 5 months, 2 weeks ago by toumbo.
    • This reply was modified 5 months, 2 weeks ago by toumbo.
    • This reply was modified 5 months, 2 weeks ago by toumbo.
    #61683
    Member
    skidoo
    Helpful
    Up
    0
    ::

    FWIW, a websearch
    RTL8192CU linux driver “debian”
    and filter result to just those for the past year…

    skimming through the results, seems to me that using this oooooold driver + “fixes” workround is not the recommended solution nowadays

    did you search the antixforum for previous discussions of RTL8192CU ?
    Lookit:
    https://www.antixforum.com/forums/topic/wait-it-does-not-work-right-okay-that-was-aimed-at-the-wireless-driver/#post-24344

    #61710
    Member
    Xecure
    Helpful
    Up
    1
    ::

    The Wireless device should work out of the box, based on https://linux-hardware.org/?id=usb:0bda-8178

    The git link you provided says:

    https://github.com/pvaret/rtl8192cu-fixes
    This driver is not explicitly maintained.

    The new rtl8xxxu driver initially introduced in kernel 4.4 works mostly well these days, and you should give it a try before trying this repository.

    You could unload the rtl8192cu driver and load kernel module rtl8xxxu just to test it out (to see if it works for you).

    sudo modprobe -r rtl8192cu
    sudo modprobe rtl8xxxu

    (or use the Control Centre > Maintenance > Network Assistant to unload the driver)
    And test how well (or bad) you can get the wifi to work. If it works normally, you can blacklist rtl8192cu using the Network Assistant and reboot.

    antiX Live system enthusiast.
    General Live Boot Parameters for antiX.

    #61737
    Member
    toumbo
    Helpful
    Up
    0
    ::

    It seems to do work out of the box as you say Xecure!
    Guess my concern is because rtl8xxxu does not make the device led to blink.
    I’ll keep this configuration for a while and inform you about any result.

    Words can’t say how much I thank you for helping me!!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.