Fix Asus RT-N15 flash partitions and make an image.
Signed-off-by: Roman Yeryomin <[email protected]>
Index: target/linux/ramips/files/arch/mips/ralink/rt288x/mach-rt-n15.c
===================================================================
--- a/target/linux/ramips/files/arch/mips/ralink/rt288x/mach-rt-n15.c
(revision 28717)
+++ b/target/linux/ramips/files/arch/mips/ralink/rt288x/mach-rt-n15.c
(working copy)
@@ -54,11 +54,11 @@
}, {
.name = "kernel",
.offset = 0x050000,
- .size = 0x0b0000,
+ .size = 0x0d0000,
}, {
.name = "rootfs",
- .offset = 0x100000,
- .size = 0x300000,
+ .offset = 0x120000,
+ .size = 0x2e0000,
}, {
.name = "firmware",
.offset = 0x050000,
Index: target/linux/ramips/image/Makefile
===================================================================
--- a/target/linux/ramips/image/Makefile (revision 28717)
+++ b/target/linux/ramips/image/Makefile (working copy)
@@ -265,6 +265,17 @@
endef
endif
+
+define Image/Build/Profile/RTN15
+ $(call Image/Build/Template/GENERIC_4M,$(1),rt-n15,RT-N15)
+endef
+
+ifeq ($(CONFIG_RALINK_RT288X),y)
+define Image/Build/Profile/Default
+ $(call Image/Build/Profile/RTN15,$(1))
+endef
+endif
+
define Image/Build/squashfs
$(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
endef
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel