Results 1 to 5 of 5

Thread: *patch* can't find file to patch at input line 24 / rtl8187 / 2.6.28

  1. #1
    Just burned his ISO
    Join Date
    Apr 2009
    Posts
    3

    Arrow *patch* can't find file to patch at input line 24 / rtl8187 / 2.6.28

    hi guys, i'm having some kind of problem,and i have been trying to find solution everywhere almost :\ i cant seem to be able to patch that driver, tried weird things and it just doesn't work. i'm quite familiar with terminal, but when it comes to drivers and complying them i have two left hands.

    the weird thing if i want to patch it with rtl8187_2.6.27.patch it works. but anything with 2.6.26 seems lacking rtl8187_dev.c .
    i'm open to suggestions.
    Thanks in advance.

    Code:
    Desktop/rtl8187_linux_26.1010.0622.2006$ ls
    beta-8187    ReadMe.txt~
    drv.tar.gz    rtl8187_hw_signal_backport_2.6.28.patch
    ieee80211    rtl8187-mac80211-injection-speed-2.6.28-wl.patch
    ifcfg-wlan0    stack.tar.gz
    mac80211_2.6.28-rc8-wl_frag+ack_radiotap_2.6.28_mod.patch  wlan0dhcp
    makedrv    wlan0down
    makedrv~    wlan0rmv
    makedrvbk    wlan0up
    ReadMe.txt    wpa_supplicant-0.4.9
    xxxxxxxxxx:~/Desktop/rtl8187_linux_26.1010.0622.2006$ patch -Np1 -i rtl8187_hw_signal_backport_2.6.28.patch
    can't find file to patch at input line 24
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    --------------------------
    |From: Larry Finger <Larry.Finger@lwfinger.net>
    |Date: Thu, 4 Dec 2008 04:21:20 +0000 (-0600)
    |Subject: rtl8187: Improve wireless statistics for RTL8187
    |X-Git-Tag: master-2009-01-05~191
    
    |
    |rtl8187: Improve wireless statistics for RTL8187
    |
    |The current wireless statistics for the RTL8187 poorly indicate the signal
    |strength and quality. With testing, I found that the AGC value is inversely
    |correlated with the strength as in the RTL8187B. By implementing a similar
    |calculation, much more code becomes common to the two devices.
    |
    |Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
    |Tested by: Mart├*n Ernesto Barreyro <barreyromartin@gmail.com>
    |Acked-by: Hin-Tak Leung <htl10@users.sourceforge.net>
    |Signed-off-by: John W. Linville <linville@tuxdriver.com>
    |Crudely-backported-by: Zero_Chaos <zero_chaos@pentoo.ch>
    |---
    |
    |diff -Naur linux-2.6.28-orig/drivers/net/wireless/rtl8187_dev.c linux-2.6.28/drivers/net/wireless/rtl8187_dev.c
    |--- linux-2.6.28-orig/drivers/net/wireless/rtl8187_dev.c 2009-02-09 16:52:51.000000000 -0500
    |+++ linux-2.6.28/drivers/net/wireless/rtl8187_dev.c 2009-02-09 17:22:50.000000000 -0500
    --------------------------
    File to patch:

  2. #2
    Developer
    Join Date
    Mar 2007
    Posts
    6,124

    Default

    Kernel patches are almost always kernel number and revision specific for example a squashfs patch will work on 2.6.28.1-r1 but will not work on 2.6.28.1-r2. Youll need to find one for your exact kernel or modify the one you have which is how most new patches are made anyway.

  3. #3
    Just burned his ISO
    Join Date
    Apr 2009
    Posts
    3

    Default

    I ment to say anythign with 2.6.28 cant seem to work, and in the patche's name it is said to work on 2.6.28

    uname -r
    2.6.28-11-generic

    and i got the patches from patches.aircrack-ng.org
    and the driver from there too.

    if this is true, how can i mod my patch to work on my kernel ? thanks

  4. #4
    Developer
    Join Date
    Mar 2007
    Posts
    6,124

    Default

    Well that is not the backtrack kernel and this is a backtrack Linux support forum. Maybe you should check the aircrack forums out or whatever distro you are using.

  5. #5
    Just burned his ISO
    Join Date
    Apr 2009
    Posts
    3

    Default

    i'm kind of aware of that, sorry ... but often visit your forum for help, and usually find what i want. And since i couldnt come across any solution , and since all distros are Linux after all - i figured i could try asking here, as i could get most extensive help.

Posting Permissions

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