OpenWrt Forum Archive

Topic: Reversed (or previously applied) patch detected! Assume -R? [n]

The content of this topic has been archived on 2 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

When compiling with jffs2, I run into this problem where the compilation becomes interactive...

---snip---
patching file include/asm-ppc/signal.h
patching file include/asm-s390/signal.h
patching file include/asm-s390x/signal.h
patching file include/asm-sh/signal.h
patching file include/asm-sparc/signal.h
patching file include/asm-sparc64/signal.h

Applying ./patches/generic/111-bridging_performance.patch using plaintext:
patching file net/core/dev.c

Applying ./patches/generic/111-netfilter_NETMAP.patch using plaintext:
patching file Documentation/Configure.help
patching file net/ipv4/netfilter/Config.in
Hunk #1 succeeded at 66 (offset -3 lines).
patching file net/ipv4/netfilter/ipt_NETMAP.c
patching file net/ipv4/netfilter/Makefile
Hunk #1 succeeded at 108 (offset -2 lines).

Applying ./patches/generic/112-bridging_performance.patch using plaintext:
patching file net/core/dev.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file net/core/dev.c.rej
Patch failed!  Please fix ./patches/generic/112-bridging_performance.patch!
make[3]: *** [/usr/src/openwrt/build_mipsel/linux/.patched] Error 1
make[3]: Leaving directory `/usr/src/openwrt/target/linux/linux-2.4'
make[2]: *** [2.4/brcm-prepare] Error 2
make[2]: Leaving directory `/usr/src/openwrt/target/linux'
make[1]: *** [linux-prepare] Error 2
make[1]: Leaving directory `/usr/src/openwrt/target'
make: *** [target_compile] Error 2
---snip---

Note that:
1. Compilation completes cleanly where I select squashfs instead of jffs2.
2. I do have all required packages

Although I did experiment with answering the yes and no questions differently, in the end I was never successful. Can someone tell me where I need to look next, or if anyone has had the same problem?

Thankyou in advance, and I appoligise if this is a repeat, however I did a few searches hear with 0 results so I am assuming it is not.

Nima

It seems you have a mix of whiterussian and HEAD.
Can you check out a fresh version from CVS (using the whiterussian branch naturally) and confirm it still doesn't build ?

Here is the exact order from scratch - I should have documented this in the previous post:

PACKAGES="gcc g++ binutils patch bzip2 flex bison make gettext unzip libz-dev libc"

#. 1. Make sure I have all $PACKAGES installed prior to doing anything else.
#. (I had problems previosly when I installed missing packages after a failed attemt of a build)

#.  2. Download it...
cd /usr/src/; wget http://downloads.openwrt.org/whiterussi … c2.tar.bz2

#. 3. Update to the latest from cvs...
cvs -d:pserver:anonymous@openwrt.org:/openwrt co openwrt

#. 4. Re-use the previously downloaded packages to save on time...
cd openwrt; ln -s /usr/src/openwrt-workbench/dl

#. 5. Compile the kernel (or attempt to smile)
make

#. 6. If the compile runs cleanly, customise target filesystem in a minor way:
cd build_mipsel/root/
#. edit etc/passwd and make set root password; eg
./crypt.pl p@55w0rd
des l2h17a787hcjw
md5 $1$q59yFS0y$OL7a3HOTwMVivNAz49BGO/
cd -
make
#. obviously crypt is a simple perl executable to generate the des hash for the password file.

In case it is a question:

nima@playboy:/usr/src/openwrt-workbench$ ls dl
binutils-2.15.94.0.2.tar.bz2  lzma406.zip
bridge-utils-1.0.6.tar.gz     mtd_20050122.orig.tar.gz
busybox-1.00.tar.bz2          nmap-3.81.tar.bz2
dnsmasq-2.22.tar.gz           openssl-0.9.7g.tar.gz
dropbear-0.45.tar.bz2         pcre-5.0.tar.bz2
gcc-3.4.4.tar.bz2             ppp-2.4.3.tar.gz
gdb-6.3.tar.bz2               shfs-0.35.tar.gz
ipkg-0.99.149.tar.gz          squashfs2.1-r2.tar.gz
ipkg-utils-1.7.tar.gz         uClibc++-0.1.11.tbz2
iptables-1.3.1.tar.bz2        uClibc-0.9.27.tar.bz2
kernel-binary-wl-0.4.tar.gz   wireless_tools.28.pre7.tar.gz
kernel-source-et-0.10.tar.gz  wol-0.7.1.tar.gz
libpcap-0.8.3.tar.gz          wpa_supplicant-0.3.8.tar.gz
linux-2.4.30.tar.bz2          zlib-1.2.2.tar.bz2
loader-0.04.tar.gz

The discussion might have continued from here.