Thanks
I figured out where to make the changes in the Makefile.
This allows a bigger image, and also the partition in the router is 8M
For the record, in case someone else need this:
Index: target/linux/ramips/image/Makefile
===================================================================
--- target/linux/ramips/image/Makefile (revision 32020)
+++ target/linux/ramips/image/Makefile (working copy)
@@ -220,8 +220,8 @@
$(call BuildFirmware/Generic,$(1),$(2),board=$(3) $(call mkmtd/phys,$(mtdlayout_rtn10plus)),$(mtd_rtn10plus_kernel_part_size),$(mtd_rtn10plus_rootfs_part_size))
endef
-define BuildFirmware/W306R_4M
- $(call BuildFirmware/w306r,$(1),$(2),$(call mkcmdline,$(3),$(4),$(5)) $(call mkmtd/$(6),$(mtdlayout_4M)),917504,2949120)
+define BuildFirmware/W306R_8M
+ $(call BuildFirmware/w306r,$(1),$(2),$(call mkcmdline,$(3),$(4),$(5)) $(call mkmtd/$(6),$(mtdlayout_8M)),917504,7143424)
endef
define BuildFirmware/w306r
@@ -388,8 +388,8 @@
endef
define Image/Build/Profile/W306R_V20
- $(call Image/Build/Template/$(fs_squash)/$(1),GENERIC_4M,w306r-v20,W306R_V20,ttyS1,57600,phys)
- $(call Image/Build/Template/$(fs_squash)/$(1),W306R_4M,w306r-v20,W306R_V20,ttyS1,57600,phys)
+ $(call Image/Build/Template/$(fs_squash)/$(1),GENERIC_8M,w306r-v20,W306R_V20,ttyS1,57600,phys)
+ $(call Image/Build/Template/$(fs_squash)/$(1),W306R_8M,w306r-v20,W306R_V20,ttyS1,57600,phys)
endef
define Image/Build/Profile/W502U