[SOLVED] dkms-8192cu wifi kernelmodule

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

[SOLVED] dkms-8192cu wifi kernelmodule

Postby eduardfaber » Fri Dec 09, 2016 8:04 pm

I bought a wifi usb stick and tried to install the dedicated kernel module. During the instalation the process aborted with a compiler error:
$this->bbcode_second_pass_code('', '
[root@module_tester ~]# pacman -Suy dkms-8192cu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
alarm is up to date 0.0 B 0.00B/s 00:00 [---------------------------------------------------------------------------------------] 0%
aur is up to date 0.0 B 0.00B/s 00:00 [---------------------------------------------------------------------------------------] 0%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (3) dkms-2.3-1 patch-2.7.5-1 dkms-8192cu-v4.0.2_9000.20130911-2

Total Installed Size: 5.52 MiB

:: Proceed with installation? [Y/n] y
(3/3) checking keys in keyring [#######################################################################################] 100%
(3/3) checking package integrity [#######################################################################################] 100%
(3/3) loading package files [#######################################################################################] 100%
(3/3) checking for file conflicts [#######################################################################################] 100%
(3/3) checking available disk space [#######################################################################################] 100%
:: Processing package changes...
(1/3) installing patch [#######################################################################################] 100%
Optional dependencies for patch
ed: for patch -e functionality
(2/3) installing dkms [#######################################################################################] 100%
Optional dependencies for dkms
linux-headers: build modules against the Arch kernel [installed]
linux-lts-headers: build modules against the LTS kernel
linux-zen-headers: build modules against the ZEN kernel
linux-grsec-headers: build modules against the GRSEC kernel
(3/3) installing dkms-8192cu [#######################################################################################] 100%

Creating symlink /var/lib/dkms/8192cu/v4.0.2_9000.20130911/source ->
/usr/src/8192cu-v4.0.2_9000.20130911

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area..................
cd /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build; make ARCH=arm modules.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.8.12-1-ARCH (armv5tejl)
Consult /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/make.log for more information.
error: command failed to execute correctly
:: Running post-transaction hooks...
(1/1) Install DKMS modules
==> dkms install 8192cu/v4.0.2_9000.20130911 -k 4.8.12-1-ARCH
Error! Bad return status for module build on kernel: 4.8.12-1-ARCH (armv5tejl)
Consult /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/make.log for more information.







[root@module_tester ~]# cat /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/make.log
DKMS make.log for 8192cu-v4.0.2_9000.20130911 for kernel 4.8.12-1-ARCH (armv5tejl)
Fri Dec 9 00:55:40 CET 2016
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.8.12-1-ARCH/build M=/var/lib/dkms/8192cu/v4.0.2_9000.20130911/build modules
make[1]: Entering directory '/usr/lib/modules/4.8.12-1-ARCH/build'
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_security.o
/var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_security.c: In function 'aes_cipher':
/var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_security.c:1504:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (j = 0; j < 8; j++)
^~~
/var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_security.c:1507:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
payload_index = hdrlen + 8;
^~~~~~~~~~~~~
/var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_security.c: In function 'aes_decipher':
/var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_security.c:1878:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (j = 0; j < 8; j++)
^~~
/var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_security.c:1881:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
payload_index = hdrlen + 8;
^~~~~~~~~~~~~
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_debug.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_io.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_ioctl_query.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_ioctl_set.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_ieee80211.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_mlme.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_mlme_ext.o
/var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_mlme_ext.c: In function 'on_action_public_p2p':
/var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_mlme_ext.c:5666:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if( _rtw_memcmp(pwdinfo->rx_prov_disc_info.peerDevAddr, empty_addr, ETH_ALEN) );
^~
/var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_mlme_ext.c:5667:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
_rtw_memcpy(pwdinfo->rx_prov_disc_info.peerDevAddr, GetAddr2Ptr(pframe), ETH_ALEN);
^~~~~~~~~~~
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_wlan_util.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_pwrctrl.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_rf.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_recv.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_sta_mgt.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_ap.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_xmit.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_p2p.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_tdls.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_br_ext.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_iol.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/rtw_sreset.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/core/efuse/rtw_efuse.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/hal_intf.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/hal_com.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/dm.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/rtl8192c/rtl8192c_hal_init.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/rtl8192c/rtl8192c_phycfg.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/rtl8192c/rtl8192c_rf6052.o
/var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/rtl8192c/rtl8192c_rf6052.c: In function 'PHY_RFShadowRefresh':
/var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/rtl8192c/rtl8192c_rf6052.c:1020:37: warning: iteration 63 invokes undefined behavior [-Waggressive-loop-optimizations]
RF_Shadow[eRFPath][Offset].Value = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/rtl8192c/rtl8192c_rf6052.c:1018:3: note: within this loop
for (Offset = 0; Offset <= RF6052_MAX_REG; Offset++)
^~~
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/rtl8192c/rtl8192c_dm.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/rtl8192c/rtl8192c_rxdesc.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/rtl8192c/rtl8192c_cmd.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/rtl8192c/usb/usb_halinit.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/rtl8192c/usb/rtl8192cu_led.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/rtl8192c/usb/rtl8192cu_xmit.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/rtl8192c/usb/rtl8192cu_recv.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/rtl8192c/usb/usb_ops_linux.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/rtl8192c/rtl8192c_sreset.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/rtl8192c/rtl8192c_xmit.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/hal/rtl8192c/usb/Hal8192CUHWImg.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/os_dep/osdep_service.o
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/os_dep/linux/os_intfs.o
/var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/os_dep/linux/os_intfs.c:1013:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/os_dep/linux/os_intfs.c:1013:22: note: (near initialization for 'rtw_netdev_ops.ndo_select_queue')
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:290: /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/os_dep/linux/os_intfs.o] Error 1
make[1]: *** [Makefile:1473: _module_/var/lib/dkms/8192cu/v4.0.2_9000.20130911/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.8.12-1-ARCH/build'
make: *** [Makefile:584: modules] Error 2











[root@module_tester ~]# cat /var/log/pacman.log |grep "12-0[89]"
[2016-12-08 23:27] [PACMAN] Running 'pacman -Suy'
[2016-12-08 23:27] [PACMAN] synchronizing package lists
[2016-12-08 23:27] [PACMAN] starting full system upgrade
[2016-12-08 23:41] [ALPM] transaction started
[2016-12-08 23:41] [ALPM] upgraded ca-certificates-mozilla (3.27.1-1 -> 3.27.2-1)
[2016-12-08 23:41] [ALPM] upgraded krb5 (1.13.4-1 -> 1.13.7-1)
[2016-12-08 23:41] [ALPM] upgraded zlib (1.2.8-4 -> 1:1.2.8-7)
[2016-12-08 23:42] [ALPM] installed icu (58.1-2)
[2016-12-08 23:42] [ALPM] installed libpsl (0.15.0-6)
[2016-12-08 23:42] [ALPM] upgraded curl (7.51.0-1 -> 7.51.0-2)
[2016-12-08 23:43] [ALPM] upgraded lz4 (131-2 -> 1:1.7.4.2-1)
[2016-12-08 23:43] [ALPM] upgraded libsystemd (231-4 -> 232-4)
[2016-12-08 23:43] [ALPM] upgraded dbus (1.10.12-1 -> 1.10.14-1)
[2016-12-08 23:45] [ALPM] upgraded systemd (231-4 -> 232-4)
[2016-12-08 23:45] [ALPM] upgraded device-mapper (2.02.167-2 -> 2.02.168-1)
[2016-12-08 23:46] [ALPM] upgraded harfbuzz (1.3.3-1 -> 1.3.4-1)
[2016-12-08 23:46] [ALPM] upgraded mkinitcpio (21-1 -> 22-1)
[2016-12-08 23:48] [ALPM] upgraded linux-armv5 (4.8.11-1 -> 4.8.12-1)
[2016-12-08 23:48] [ALPM-SCRIPTLET] >>> Updating module dependencies. Please wait ...
[2016-12-08 23:51] [ALPM] upgraded linux-armv5-headers (4.8.11-1 -> 4.8.12-1)
[2016-12-08 23:51] [ALPM] upgraded lvm2 (2.02.167-2 -> 2.02.168-1)
[2016-12-08 23:51] [ALPM] upgraded npth (1.2-1 -> 1.3-1)
[2016-12-08 23:51] [ALPM] upgraded pinentry (0.9.7-3 -> 1.0.0-1)
[2016-12-08 23:52] [ALPM] upgraded rpcbind (0.2.3-3 -> 0.2.4-2)
[2016-12-08 23:52] [ALPM] upgraded sqlite (3.15.1-2 -> 3.15.2-1)
[2016-12-08 23:52] [ALPM] upgraded systemd-sysvcompat (231-4 -> 232-4)
[2016-12-08 23:52] [ALPM] upgraded wget (1.18-1 -> 1.18-2)
[2016-12-08 23:52] [ALPM] transaction completed
[2016-12-08 23:52] [ALPM] running 'texinfo-install.hook'...
[2016-12-08 23:52] [ALPM] running 'udev-hwdb.hook'...
[2016-12-08 23:52] [ALPM] running 'update-ca-trust.hook'...
[2016-12-08 23:56] [PACMAN] Running 'pacman -Suy dkms-8192cu'
[2016-12-08 23:56] [PACMAN] synchronizing package lists
[2016-12-08 23:57] [PACMAN] starting full system upgrade
[2016-12-09 00:02] [PACMAN] Running 'pacman -Suy dkms-8192cu'
[2016-12-09 00:02] [PACMAN] synchronizing package lists
[2016-12-09 00:03] [PACMAN] Running 'pacman -Suy dkms-8192cu'
[2016-12-09 00:03] [PACMAN] synchronizing package lists
[2016-12-09 00:03] [PACMAN] starting full system upgrade
[2016-12-09 00:04] [ALPM] transaction started
[2016-12-09 00:04] [ALPM] installed patch (2.7.5-1)
[2016-12-09 00:04] [ALPM] installed dkms (2.3-1)
[2016-12-09 00:04] [ALPM] installed dkms-8192cu (v4.0.2_9000.20130911-2)
[2016-12-09 00:04] [ALPM-SCRIPTLET]
[2016-12-09 00:04] [ALPM-SCRIPTLET] Creating symlink /var/lib/dkms/8192cu/v4.0.2_9000.20130911/source ->
[2016-12-09 00:04] [ALPM-SCRIPTLET] /usr/src/8192cu-v4.0.2_9000.20130911
[2016-12-09 00:04] [ALPM-SCRIPTLET]
[2016-12-09 00:04] [ALPM-SCRIPTLET] DKMS: add completed.
[2016-12-09 00:04] [ALPM-SCRIPTLET]
[2016-12-09 00:04] [ALPM-SCRIPTLET] Kernel preparation unnecessary for this kernel. Skipping...
[2016-12-09 00:05] [ALPM-SCRIPTLET]
[2016-12-09 00:05] [ALPM-SCRIPTLET] Building module:
[2016-12-09 00:05] [ALPM-SCRIPTLET] cleaning build area..................
[2016-12-09 00:54] [ALPM-SCRIPTLET] cd /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build; make ARCH=arm modules.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................(bad exit status: 2)
[2016-12-09 00:54] [ALPM-SCRIPTLET] Error! Bad return status for module build on kernel: 4.8.12-1-ARCH (armv5tejl)
[2016-12-09 00:54] [ALPM-SCRIPTLET] Consult /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/make.log for more information.
[2016-12-09 00:55] [ALPM] transaction completed
[2016-12-09 00:55] [ALPM] running '70-dkms-install.hook'...
[2016-12-09 00:55] [ALPM-SCRIPTLET] ==> dkms install 8192cu/v4.0.2_9000.20130911 -k 4.8.12-1-ARCH
[2016-12-09 01:40] [ALPM-SCRIPTLET] Error! Bad return status for module build on kernel: 4.8.12-1-ARCH (armv5tejl)
[2016-12-09 01:40] [ALPM-SCRIPTLET] Consult /var/lib/dkms/8192cu/v4.0.2_9000.20130911/build/make.log for more information.
')

Who can give some help?

incompatible pointer type [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,

Thanks
Ed Faber
Last edited by eduardfaber on Thu Dec 22, 2016 8:53 pm, edited 2 times in total.
eduardfaber
 
Posts: 25
Joined: Mon Jan 04, 2016 11:38 pm
Location: Netherlands

Re: dkms-8192cu wifi kernelmodule

Postby graysky » Fri Dec 09, 2016 8:20 pm

Please use code tags... you also appear to be cross compiling? What if you build on the native Arch ARM box?
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: dkms-8192cu wifi kernelmodule

Postby eduardfaber » Fri Dec 09, 2016 8:30 pm

graysky,
No cross compiling, I'm building on a Olinuxino i.MX233
Sorry for not using the codetags.
Ed
eduardfaber
 
Posts: 25
Joined: Mon Jan 04, 2016 11:38 pm
Location: Netherlands

Re: dkms-8192cu wifi kernelmodule

Postby graysky » Fri Dec 09, 2016 8:34 pm

You can edit the post... if you're not cross compiling, why are there references to 4.8.12-1-ARCH? Isn't ARM on 4.4?
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: dkms-8192cu wifi kernelmodule

Postby moonman » Fri Dec 09, 2016 8:49 pm

Afaik you shouldn't need this dkms driver as the in-tree driver should work. Whixh kernel is that?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: dkms-8192cu wifi kernelmodule

Postby eduardfaber » Fri Dec 09, 2016 8:56 pm

graysky ,
Everything started with:
$ pacman -Suy dkms-8192cu
so everything is happening under controle of the packager...

Moonman,
The kernelcode seemed to be buggy. Thats the reason the repostory is providing a kernelmodule for it.

Ed
eduardfaber
 
Posts: 25
Joined: Mon Jan 04, 2016 11:38 pm
Location: Netherlands

Re: dkms-8192cu wifi kernelmodule

Postby moonman » Sat Dec 10, 2016 3:13 am

The reason why I haven't removed it from the repository is for devices with older kernels. So the in-tree driver still doesn't work well. I'll see if that package can be fixed.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: dkms-8192cu wifi kernelmodule

Postby moonman » Sat Dec 10, 2016 7:35 am

Fixed. Update the package when it is available in repos.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: dkms-8192cu wifi kernelmodule

Postby eduardfaber » Sat Dec 10, 2016 9:47 pm

Moonman, confirmed
I have an module. Now wait and see if it is really more reliable as the buildin driver.
thanks anyway!
Ed Faber
eduardfaber
 
Posts: 25
Joined: Mon Jan 04, 2016 11:38 pm
Location: Netherlands

Re: dkms-8192cu wifi kernelmodule

Postby eduardfaber » Thu Dec 15, 2016 6:34 pm

All,
Using the the new module give about 20-50 times a day(I use a restore script if the connetion is gone):

$this->bbcode_second_pass_code('', '
[320411.610000] rtw_wx_set_mlme, cmd=0, reason=3
')
One of the goals of this kernel module is to disable the powersavings options. Looking in the router I saw also powersaving opitons. After disabeling the i saw only a few times a disapeared link. Is seems the 8192cu cannot handele powersavings.
Not at the host side and also not at the router side.
Ed Faber
eduardfaber
 
Posts: 25
Joined: Mon Jan 04, 2016 11:38 pm
Location: Netherlands


Return to ARMv5

Who is online

Users browsing this forum: No registered users and 5 guests