Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17
Hi all, I need to compile a driver for my OS Debian Squeeze 2.6.38 to get my WiFi stick running. Unfortunaley, I'm unable to locate and install the Linux headers ...
  1. #1
    Just Joined!
    Join Date
    Oct 2011
    Posts
    9

    Need some help compiling a driver

    Hi all,

    I need to compile a driver for my OS Debian Squeeze 2.6.38 to get my WiFi stick running. Unfortunaley, I'm unable to locate and install the Linux headers successfully to compile it by myself (I've already spent a lot of time to fix it, searched for answers for my questions in several forums, asked my teachers, etc...).

    I would be REALLY appreciated if somebody can help me out! Unfortunaley, I'm not allowed to post the link to the official driver here unless I have made 15 posts, so you have to google for it: It's the RTL8188CUS driver, you can find it by going to the offical Realtek homepage.

    Thank you in advance!

  2. #2
    Guest
    Join Date
    Feb 2005
    Posts
    314
    2.6.38 is not the squeeze kernel. Where did you get that kernel from?

    Refer to the debian wiki for installing the driver: rtl819x - Debian Wiki

    You need a newer kernel (2.6.39) and non-free firmware.

  3. #3
    Just Joined!
    Join Date
    Oct 2011
    Posts
    9
    Quote Originally Posted by caravel View Post
    2.6.38 is not the squeeze kernel. Where did you get that kernel from?

    Refer to the debian wiki for installing the driver: rtl819x - Debian Wiki

    You need a newer kernel (2.6.39) and non-free firmware.
    I'm running a Singleboard-Computer, a "Foxboard G20" and I downloaded it from the developers homepage.

    A newer kernel you say? This is weird, because the driver which I need is a "Linux driver for Kernel 2.6.38(and earlier)", at least it's described as such one.

  4. #4
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,072
    Hello and Welcome!

    Start here: http://www.linuxforums.org/forum/wir...tart-here.html
    Post back with all requested info.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  5. #5
    Just Joined!
    Join Date
    Oct 2011
    Posts
    9
    Quote Originally Posted by jayd512 View Post
    Hello and Welcome!

    Start here:
    Post back with all requested info.
    ============ lspci ============

    ============ lsusb ============
    Bus 001 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN
    Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

    ============ lsmod ============
    Module Size Used by
    ipv6 221082 10
    r8712u 274688 0
    firmware_class 5023 1 r8712u

    ============ dmesg-firmware ============

    ============ kernel version ============
    2.6.38

    ============ ifconfig ============
    eth0 Link encap:Ethernet HWaddr 00:04:25:28:03:22
    inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::204:25ff:fe28:322/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:11269 errors:0 dropped:0 overruns:0 frame:0
    TX packets:2289 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:15338894 (14.6 MiB) TX bytes:241690 (236.0 KiB)
    Interrupt:21 Base address:0x4000

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


    ============ iwconfig ============
    wlan0 unassociated Nickname:"rtl_wifi"
    Mode:Auto Access Point: Not-Associated Sensitivity:0/0
    Retry:off RTS thr:off Fragment thr:off
    Encryption key:off
    Power Management:off
    Link Quality:0 Signal level:0 Noise level:0
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0
    Yeah that's pretty much it. My guess is that the module "r8712u" is the wrong one for my WiFi Stick, that's why I'm looking for a compiled version of 8192cu. If I'm trying to set wlan0 per "ifconfig wlan0 up" up, I get no response.

  6. #6
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,072
    The Debian wiki has some instructions for getting that adapter working on Squeeze.
    rtl819x - Debian Wiki
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  7. #7
    Just Joined!
    Join Date
    Oct 2011
    Posts
    9
    Quote Originally Posted by jayd512 View Post
    The Debian wiki has some instructions for getting that adapter working on Squeeze.
    rtl819x - Debian Wiki
    Alright, I'll give it a try!
    Last edited by Zebra; 10-25-2011 at 08:03 PM.

  8. #8
    Just Joined!
    Join Date
    Oct 2011
    Posts
    9
    It's me again,

    I'm getting an error at Step 4 of the tutorial:

    debarm:~# modprobe r8192s_usb
    FATAL: Module r8192s_usb not found.

  9. #9
    Guest
    Join Date
    Feb 2005
    Posts
    314
    The wiki states which controllers are supported by the kernel driver included in the squeeze kernel and yours is not one of them. The kernel module you need is also not included in 2.6.38 - you need at least 2.6.39 for the RTL8188CUS support, so no luck there either.

    The module you're trying to insert was removed form the mainline kernel in 2.6.37 (which is what the fatal error refers to) and replaced by r8712u (also covered in the same wiki page) which is actually being loaded according to the report you posted - but it looks like r8712u is not the correct module for RTL8188CUS which should use the rtl8192cu - which is not in your kernel version (this is probably why it's loading r8192s_usb).

    If the 2.6.38 kernel you have is the one from squeeze-backports, and you already have the backports repo set up, just install the 2.6.39 kernel from there and reboot. The module should load and all should be well, you will still need to install wireless-tools and wpasupplicant then configure your device as required: WiFi/HowToUse - Debian Wiki

  10. #10
    Linux Newbie
    Join Date
    Sep 2007
    Posts
    137
    I'm unable to locate and install the Linux headers
    The squeeze-backports repo may have the header pkg you're looking for:

    Debian -- Package Search Results -- headers-2.6.38

    If so, add this line to /etc/apt/sources.list file, then update:

    Code:
     deb http://backports.debian.org/debian-backports squeeze-backports main
    Quote Originally Posted by Zebra
    I'm getting an error at Step 4 of the tutorial:
    Code:
    debarm:~# modprobe r8192s_usb
    FATAL: Module r8192s_usb not found.
    Try r8192u_usb

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •