logo

Could not compile stylesheet for simplistic. Using last compiled stylesheet.

CONFIG_WEXT_PRIV and 2.6.37-5 kernel

posted in Linux Kernel
Friday, May 24 2013, 04:20 PM
0
I'm upgrading to the new kernel, and trying to recompile the device driver for the D-Link DWA-125 WiFi device that I use. It compiled under 2.6.35.13-5 but the same driver fails to do so under 2.6.37.

I've traced the problem to the fact that the 2.6.37-5
igep00x0_defconfig
file no longer defines
CONFIG_WEXT_PRIV
, which in turn causes a problem with fields not being defined for
iw_handler_def
in
include/linux/iw_handler.h
.

My question is: Can
CONFIG_WEXT_PRIV
be safely set to
y
as it was in 2.6.35.13-5, or am I in danger of blowing things up that I don't understand?

(This is the only thing I'm doing involving wireless.)

Accepted Answer

Wednesday, June 19 2013, 06:19 PM - #permalink
0
Okay, for future reference if anyone else is trying to get the RealTek device driver to work, don't worry about modifying the kernel for CONFIG_WEXT_PRIV.

All you need to do is, in addition to the instructions mentioned above, additionally modify the Makefile by adding the line:

EXTRA_CFLAGS += -DCONFIG_WEXT_PRIV

after the

EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN

in the snippet above.

This activates the define in the linux kernel include file mentioned above and the device driver compiles.

The resulting 8192cu.ko module is installed using
insmod 8192cu.ko
, which, once the DWA-125 is attached to the USB port, creates [tt:3os6pld4]wlan1[/tt:3os6pld4] which can be configured as normal.

I've tested it in normal and ad-hoc mode.
The reply is currently minimized Show
Responses (5)
  • Accepted Answer

    Monday, May 27 2013, 09:12 AM - #permalink
    0
    Hi, Which is the driver that supports the D-Link DWA-125 wifi adapter ?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, May 27 2013, 08:25 PM - #permalink
    0
    The revision of the DWA-125 I have uses the Realtek RTL8188ETV chipset.

    The device driver source is found on the Realtek web site at Driver and is the file
    RTL8192xC_USB_linux_v3.4.4_4749.20121105.zip
    Scroll down to near the bottom where the RTL8188CUS driver is found.

    After unzip'ing, and untar'ing to get the source, cd down to
    RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105/driver/rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105
    .

    You have to change the Makefile (it's set for the 386):
    Change line 39 from
    CONFIG_PLATFORM_I386_PC = y
    to
    CONFIG_PLATFORM_I386_PC = n


    Insert before line 42:
    CONFIG_PLATFORM_ARM_IGEP = y

    Insert before line 286 (assumes kernel source at ~/kernel/linux-omap-2.6.37-5):
    ifeq ($(CONFIG_PLATFORM_ARM_IGEP), y)
    EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
    ARCH := arm
    CROSS_COMPILE := arm-poky-linux-gnueabi-
    KVER  := 2.6.37
    KSRC ?= /home/jdoe/kernel/linux-omap-2.6.37-5
    endif
    

    And then compile with
    make
    .

    As I said, this compiles and runs under the 2.6.35.13-5 kernel, but 2.6.37-5 doesn't define CONFIG_WEXT_PRIV, which causes the missing fields in
    iw_handler_def
    .
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 28 2013, 09:55 AM - #permalink
    0
    Hi,

    If you look at the code is the driver that enables the CONFIG_WEXT_PRIV=y using the select option in Kconfig. So you have two options:

    The first one is set manually the CONFIG_WEXT_PRIV=y in your .config. I think it's not a problem

    The second one is select a driver that enables this option, like RT2X00. See attached patch.

    Hope it helps you.
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 28 2013, 03:46 PM - #permalink
    0
    > The first one is set manually the CONFIG_WEXT_PRIV=y in your .config. I think it's not a problem

    Indeed, my worry was there might be some subtle side-effect that I was not aware of.

    I'll try modifying my .config and post the results later.

    Many thanks for your reply.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, June 20 2013, 09:26 AM - #permalink
    0
    Thanks for share this with us.
    The reply is currently minimized Show
Your Reply

SUPPORT


This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.
IGEP Community Wiki
IGEP Community Forum
IGEP Community Online Chat