Patching fails when compiling Openwrt

GinDiamond
 
Posts: 48
Joined: Thu Mar 31, 2016 11:02 pm

Patching fails when compiling Openwrt

Tue Jan 22, 2019 12:52 pm

Last night I tried setting up the openwrt dev environment again and one of the first steps was for me to clone the openwrt git and then patch it with https://github.com/Vonger/vocore2. I followed the directions exactly and it was all going well until the compilation hit this snag:

Code: Select all
Applying ./patches/0306-spi-flash-factory-id.patch using plaintext:
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/drivers/mtd/devices/m25p80.c
|+++ b/drivers/mtd/devices/m25p80.c
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
Patch failed!  Please fix ./patches/0306-spi-flash-factory-id.patch!
make[3]: *** [Makefile:79: /root/vocore/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/mt7628-p4rev-120395/.prepared_b8a4efb5fe3d36e23efdac873e7137a7_6664517399ebbbc92a37c5bb081b5c53] Error 1
make[3]: Leaving directory '/root/vocore/openwrt/package/kernel/mt7628'
time: package/kernel/mt7628/compile#0.37#0.08#0.42
make[2]: *** [package/Makefile:109: package/kernel/mt7628/compile] Error 2
make[2]: Leaving directory '/root/vocore/openwrt'
make[1]: *** [package/Makefile:103: /root/vocore/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/root/vocore/openwrt'
make: *** [/root/vocore/openwrt/include/toplevel.mk:218: world] Error 2


What exactly is this error and why is it happening?

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: Patching fails when compiling Openwrt

Sun Jan 27, 2019 10:39 am

Sorry, I have fixed that patch, it is for spi unique id, just an addition feature, you can remove it if it is still buggy.

And firmware based on openwrt 18.06.1 now is valid.
Please download from http://vonger.cn/misc/vocore2/20190127.bin, it is based on openwrt 18.06.1
Tutorials at http://vonger.cn/?p=14633

Return to VoCore2/Lite/Ultimate

Who is online

Users browsing this forum: Google [Bot] and 40 guests