Hello, I'm trying to create a patch for tplinkCPE210_v3. I use Openwrt SNAPSHOT, r7821-bfff412536
I have read https://wiki.openwrt.org/doc/devel/patches
I do the following steps:
-
cd /TestPatchTplinkCPE210V3/tplinkcpe210v3/openwrt/
-
make clean
-
make -j8 V=s
All ok
-
make target/linux/{clean,prepare} QUILT=1 V=s
-
cd build_dir/target-mips_24kc_musl/linux-ar71xx_generic/linux-4.9.119/
-
quilt new generic/999-fix_jump.patch
Patch patches/generic/999-fix_jump.patch is now on top
7. quilt edit drivers/net/wireless/ath/ath9k/init.c
8. quilt diff
Index: linux-4.9.119/drivers/net/wireless/ath/ath9k/init.c
===================================================================
linux-4.9.119.orig/drivers/net/wireless/ath/ath9k/init.c
+++ linux-4.9.119/drivers/net/wireless/ath/ath9k/init.c
@@ -368,7 +368,7 @@ static void ath9k_init_misc(struct ath_s
struct ath_common *common = ath9k_hw_common(sc->sc_ah);
int i = 0;
common->last_rssi = ATH_RSSI_DUMMY_MARKER;
memcpy(common->bssidmask, ath_bcast_mac, ETH_ALEN);
I decided to stop the timer as a test.
-
cd /TestPatchTplinkCPE210V3/tplinkcpe210v3/openwrt/
-
make target/linux/update package/index V=s
-
make target/linux/{compile,install} QUILT=1 V=s
At the time of assembly, there were no errors. The firmware file was assembled, but as I understand the patch was not overlaid.
I searched all the init.c files and looked at the changes in them. In total there were 3 of them.
Modified file number 2 in the picture. It has a path:
/home/openwrt/TestPatchTplinkCPE210V3/tplinkcpe210v3/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/linux-4.9.119/drivers/net/wireless/ath/ath9k>
In other directories, the file remains the same. So it should be?
As I understood that the patch did not overlap:
- The size of the firmware remained unchanged, as I think it should become smaller, since I commented out one line.
- I did not find the modified init.c file in
build_dir/target-mips_24kc_musl/linux-ar71xx_generic/backports-2017-11-01
What am I doing wrong?