Results 1 to 14 of 14

Thread: rtl8723be wireless driver installation

  1. #1
    Join Date
    2014-Sep
    Posts
    3

    rtl8723be wireless driver installation

    Hello,

    Code:
    root@kali:~# lspci -nn | grep Network
    02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]
    im trying to install the rtl8723be wireless driver from here: http://github.com/lwfinger/rtl8723be

    Every time I try to make i get this errror:
    Code:
    root@kali:~/rtl8723be# make
    make -C /lib/modules/3.14-kali1-amd64/build M=/root/rtl8723be/rtl8723be modules
    make[1]: *** /lib/modules/3.14-kali1-amd64/build: No such file or directory.  Stop.
    I know /lib/modules/../build should be some link to the linux headers. I installed all available headers with apt-get install linux-headers* , but i still cant install the driver.
    Is there a possibility to install ./firmware/rtlwifi/rtl8723befw.bin directly, or is this not a module?

    I hope you can help me

  2. #2
    Join Date
    2014-Sep
    Posts
    3
    Edit: I just saw this: http://forums.debian.net/viewtopic.php?f=7&t=116559 does that mean i have to wait for the next kali version?
    How close is the developerteam to publishing?

  3. #3
    Join Date
    2014-Jun
    Location
    Greece
    Posts
    133
    Hi there!

    Well I have some spare time today, so here it goes:

    Download the driver if you haven't do that already:
    Code:
    git clone https://github.com/lwfinger/rtl8723be
    Install linux headers:
    Code:
    apt-get install -y linux-headers-"`uname -r`"
    Now if you try to compile it you will see something like this:
    ....
    ....
    /root/rtl8723be/rtl8723be/trx.c: In function ‘rtl8723be_rx_query_desc’:
    /root/rtl8723be/rtl8723be/trx.c:621:3: error: implicit declaration of function ‘_ieee80211_is_robust_mgmt_frame’ [-Werror=implicit-function-declaration]
    cc1: some warnings being treated as errors
    make[5]: *** [/root/rtl8723be/rtl8723be/trx.o] Error 1
    make[4]: *** [_module_/root/rtl8723be/rtl8723be] Error 2
    make[3]: *** [sub-make] Error 2
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/usr/src/linux-headers-3.14-kali1-686-pae'
    make[1]: *** [default] Error 2
    make[1]: Leaving directory `/root/rtl8723be/rtl8723be'
    make: *** [all] Error 2
    There is a typo(?) in /rtl8723be/trx.c file. So, open it and go to line 621
    #if (LINUX_VERSION_CODE <= KERNEL_VERSION(3,14,0))
    if ((ieee80211_is_robust_mgmt_frame(hdr)) &&
    (ieee80211_has_protected(hdr->frame_control)))
    #else
    if ((_ieee80211_is_robust_mgmt_frame(hdr)) &&
    (ieee80211_has_protected(hdr->frame_control)))
    #endif
    and remove the underscore "_" before "ieee80211_is_robust_mgmt_frame(hdr)) &&"
    it should look like this:
    #if (LINUX_VERSION_CODE <= KERNEL_VERSION(3,14,0))
    if ((ieee80211_is_robust_mgmt_frame(hdr)) &&
    (ieee80211_has_protected(hdr->frame_control)))
    #else
    if ((ieee80211_is_robust_mgmt_frame(hdr)) &&
    (ieee80211_has_protected(hdr->frame_control)))
    #endif
    save it and run:
    Code:
    make
    make install
    It should compile and install correctly.

    Make sure that module and firmware are install correctly: (i'm running i386 of Kali)
    /lib/modules/3.14-kali1-686-pae/kernel/drivers/net/wireless/rtlwifi/rtl8723be/rtl8723be.ko
    /lib/firmware/rtlwifi/rtl8723befw.bin

    Finally you may want to run:
    Code:
    depmod -a
    modprobe rtl8723be
    Unfortunately I don't own a RTL8723BE based card to tell if the driver is working or not.
    Please report back if you have positive (or negative) results. They should be helpful for other users also.

    Good luck!
    Last edited by Nick_the_Greek; 2014-09-09 at 15:16. Reason: wrong line number
    Security always begins with personal responsibility. - quietman7

  4. #4
    Join Date
    2013-Mar
    Location
    milano
    Posts
    301
    @Nick_the_Greek
    with your permission... I naturally say :
    a sincere thank you for sharing your knowledge about your experience !!
    for us, "" community"" is a "GOLD"
    tnx zimmaro_the_g0at

  5. #5
    Join Date
    2014-Jun
    Location
    Greece
    Posts
    133
    You're welcome zimmaro.
    Without trying to hijack this thread I know that I could say at least for you "una faccia una razza"
    I've seen your posts.
    Security always begins with personal responsibility. - quietman7

  6. #6
    Join Date
    2014-Sep
    Posts
    3
    Hey nice_the_greek,

    i try ur fix, but it dosent work. My Code is allready without a "_". So i can fix anything.

    Then i cant update the linux headers via: apt-get install -y linux-headers-"`uname -r`"

    i get this message every time.

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package linux-headers-3.14-kali1-amd64
    E: Couldn't find any package by regex 'linux-headers-3.14-kali1-amd64'
    I hope anyone can help me

    Thx xSK

  7. #7
    Join Date
    2014-Jun
    Location
    Greece
    Posts
    133
    Quote Originally Posted by xSk View Post
    Hey nice_the_greek,
    i try ur fix, but it dosent work. My Code is allready without a "_". So i can fix anything.
    Then i cant update the linux headers via: apt-get install -y linux-headers-"`uname -r`"
    i get this message every time.
    I hope anyone can help me
    Thx xSK
    Hi there xSK
    You are right. I just re-download the drivers and the underscore "_" it's there. I've a made a mistake. It's line 621 not 622. As for the rest you can try:
    Code:
    apt-get update
    apt-get install -y linux-headers-"`uname -r`"
    and if that doesn't work then check your sources.list and try again.
    http://docs.kali.org/general-use/kal...t-repositories

    PS My name is Nick. I'm not that nice.... lol
    Security always begins with personal responsibility. - quietman7

  8. #8
    Join Date
    2014-Sep
    Posts
    3
    Sorry Nick, for that nice type.

    It works I updated my sourcelist and load the headers.

    I use ur Code and remove the "_" form line 621.

    Thanks for ur work Nick ,

    xSK

  9. #9
    Join Date
    2014-Feb
    Posts
    5
    Post deleted

    Follow new post below
    Kernel 3.15 had bugs

    3.16 fixed wifi and Internet drops.
    Last edited by cjen1987; 2014-09-14 at 21:14.

  10. #10
    Join Date
    2014-Feb
    Posts
    5
    Post deleted

    Follow fix below

    By the way, ignore the Linux header error in updating the kernel below. The apt-get - f autoremove will fix the error. Will also be included in the steps below.

    Just waiting on post approval...
    Last edited by cjen1987; 2014-09-14 at 21:37.

  11. #11
    Join Date
    2014-Feb
    Posts
    5
    Ok, there are still bugs with the rtl8723be on kernel 3.15.x.
    SO DO NOT UPDATE TO 3.15,UPDATE TO 3.16 WHICH FIXES INTERNET AND CONNECTION

    HOW TO DO SO BELOW:


    I found the perfect fix with no disconnections or anything.

    Same as above but use this instead:

    1. For 32-bit system:

    cd /tmp/

    wget http://kernel.ubuntu.com/~kernel-ppa...31935_i386.deb

    wget http://kernel.ubuntu.com/~kernel-ppa...031935_all.deb

    wget http://kernel.ubuntu.com/~kernel-ppa...31935_i386.deb

    sudo dpkg -i linux-headers-3.16.0-*.deb linux-image-3.16.0-*.deb

    2. For 64-bit system:

    cd /tmp/

    wget http://kernel.ubuntu.com/~kernel-ppa...1935_amd64.deb

    wget http://kernel.ubuntu.com/~kernel-ppa...031935_all.deb

    wget http://kernel.ubuntu.com/~kernel-ppa...1935_amd64.deb

    sudo dpkg -i linux-headers-3.16.0-*.deb linux-image-3.16.0-*.deb


    Choose 32-bit or 64-bit (depending on which system you installed)

    reboot into the new 3.16.x

    Run:

    apt-get -f autoremove


    Next run:

    dpkg --list | grep linux-image

    ------------------------------------------------------
    apt-get purge (Old Kernel):

    apt-get purge linux-image-3.14-kali1-amd64
    or
    apt-get purge linux-image-3.14
    -----------------------------------------------------------------



    Once you removed old kernel run:


    update-grub2





    After you are done, reboot.
    The wireless drivers will be 100% working and no data drops likein 3.15.x kernel!
    Last edited by cjen1987; 2014-09-15 at 17:04.

  12. #12
    Join Date
    2014-Sep
    Posts
    3
    I updated the kernel to 3.15, but now i cant load the driver, and i have the same problem before 3.15.

    So i try to install the module but it dosent work, same Error! I try to fix it with nicks´s 622 line problem, but i cant install it, same error again.

    Before 3.15 Kernel Update Wlan works but it allways drops the con. after a few minutes i cant reconnect.

  13. #13
    Join Date
    2014-Feb
    Posts
    5
    Quote Originally Posted by xSk View Post
    I updated the kernel to 3.15, but now i cant load the driver, and i have the same problem before 3.15.

    So i try to install the module but it dosent work, same Error! I try to fix it with nicks´s 622 line problem, but i cant install it, same error again.

    Before 3.15 Kernel Update Wlan works but it allways drops the con. after a few minutes i cant reconnect.

    The new steps above will update you to kernel 3.16 with the drop problem fixed. Fast connection also.



    Just follow steps below, I spent hours trying to fix the problem myself, and have no more issues.


    Do this:
    Ok, there are still bugs with the rtl8723be on kernel 3.15.x.
    SO DO NOT UPDATE TO 3.15,UPDATE TO 3.16 WHICH FIXES INTERNET AND CONNECTION

    HOW TO DO SO BELOW:


    I found the perfect fix with no disconnections or anything.

    Same as above but use this instead:


    1. For 32bit:

    wget http://kernel.ubuntu.com/~kernel-ppa...31935_i386.deb

    wget http://kernel.ubuntu.com/~kernel-ppa...031935_all.deb

    wget http://kernel.ubuntu.com/~kernel-ppa...31935_i386.deb

    sudo dpkg -i linux-headers-3.16.0-*.deb linux-image-3.16.0-*.deb



    2. For 64-bit system:

    cd /tmp/

    wget http://kernel.ubuntu.com/~kernel-ppa...1935_amd64.deb

    wget http://kernel.ubuntu.com/~kernel-ppa...031935_all.deb

    wget http://kernel.ubuntu.com/~kernel-ppa...1935_amd64.deb

    sudo dpkg -i linux-headers-3.16.0-*.deb linux-image-3.16.0-*.deb


    Choose 32-bit or 64-bit (depending on which system you installed)

    reboot into the new 3.16.x

    Run:

    apt-get -f autoremove


    Next run:

    dpkg --list | grep linux-image

    ------------------------------------------------------
    apt-get purge (Old Kernel):

    apt-get purge linux-image-3.14-kali1-amd64
    or
    apt-get purge linux-image-3.14
    -----------------------------------------------------------------



    Once you removed old kernel run:


    update-grub2




    No need to edit anything or add a conf file, just update and go. Aircrack works fine too.


    Screen shots:

    http://s27.postimg.org/a8mxjo436/Scr...5_13_41_30.jpg
    http://s7.postimg.org/yjbpmsnpm/Scre...5_13_41_39.jpg
    http://s4.postimg.org/r37ytne0c/20140915_140316.jpg

    Speedtest wit no drops:
    http://s30.postimg.org/8mplu7l4g/Scr...5_14_09_22.jpg
    Last edited by cjen1987; 2014-09-15 at 18:10.

  14. #14
    Join Date
    2013-Feb
    Posts
    225
    Installing an Ubuntu kernel on Kali is a sure way to break your system. Real bad advice.

Similar Threads

  1. cant get wifi to work with rtl8723be
    By nos hit in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2016-12-29, 07:43
  2. Help with USB Wireless WiMax Dongle Modem Driver Installation
    By Sunbir Ahammed in forum General Archive
    Replies: 0
    Last Post: 2014-02-26, 14:47

Tags for this Thread

Posting Permissions

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