X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/57ffcdaccdfae691a6f214e9668209c6db67d0d6..058c28d6fe9c9285dc69b95e2b91a779b199220a:/target/linux/ramips/image/Makefile diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 745edefba..4692d68d5 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -144,16 +144,16 @@ define Image/Build/Template/GENERIC_4M $(call BuildFirmware/Generic,$(1),$(2),board=$(3),mtdlayout_4M,851968,3014656) endef -mtdlayout_8M=mtdparts=physmap-flash.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,832k(kernel),7040k(rootfs),7872k@0x50000(firmware) -kernel_size_8M=851968 -rootfs_size_8M=7208960 +mtdlayout_8M=mtdparts=physmap-flash.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,896k(kernel),6976k(rootfs),7872k@0x50000(firmware) +kernel_size_8M=917504 +rootfs_size_8M=7143424 define Image/Build/Template/GENERIC_8M $(call BuildFirmware/Generic,$(1),$(2),board=$(3),mtdlayout_8M,$(kernel_size_8M),$(rootfs_size_8M)) endef -mtdlayout_dir300b1=mtdparts=physmap-flash.0:192k(u-boot)ro,64k(devdata)ro,64k(devconf)ro,832k(kernel),2944k(rootfs),3776k@0x50000(firmware) -mtd_dir300b1_kernel_part_size=851968 -mtd_dir300b1_rootfs_part_size=3014656 +mtdlayout_dir300b1=mtdparts=physmap-flash.0:192k(u-boot)ro,64k(devdata)ro,64k(devconf)ro,896k(kernel),2880k(rootfs),3776k@0x50000(firmware) +mtd_dir300b1_kernel_part_size=917504 +mtd_dir300b1_rootfs_part_size=2949120 define Image/Build/Template/DIR300B1 $(call BuildFirmware/Generic,$(1),$(2),board=$(3),mtdlayout_dir300b1,$(mtd_dir300b1_kernel_part_size),$(mtd_dir300b1_rootfs_part_size)) mkwrgimg -s $(4) -d /dev/mtdblock/2 \ @@ -167,6 +167,16 @@ define Image/Build/Template/NW718 $(call BuildFirmware/NW718,$(1),$(2),board=$(3),mtdlayout_nw718,851968,2949120) endef +console_WR6202=ttyS1,115200 +mtdlayout_WR6202=mtdparts=physmap-flash.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,1024k(kernel),6848k(rootfs),7872k@0x50000(firmware) +define Image/Build/Template/WR6202 + $(call BuildFirmware/Generic,$(1),$(2),board=$(3) console=$(console_WR6202),mtdlayout_WR6202,1048576,7012352) +endef + +define Image/Build/Profile/WR6202 + $(call Image/Build/Template/WR6202,$(1),wr6202,WR6202) +endef + console_OMNIEMB=ttyS1,57600 mtdlayout_ONMIEMB=mtdparts=physmap-flash.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,1024k(kernel),6848k(rootfs),7872k@0x50000(firmware) define Image/Build/Template/OMNIEMB @@ -213,8 +223,9 @@ define Image/Build/Profile/BC2 $(call Image/Build/Template/GENERIC_8M,$(1),bc2,BC2) endef +mtdlayout_all0256n=mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,832k(kernel),2944k(rootfs),3776k@0x50000(firmware) define Image/Build/Profile/ALL0256N - $(call Image/Build/Template/GENERIC_4M,$(1),all0256n,ALL0256N) + $(call BuildFirmware/Generic,$(1),all0256n,board=ALL0256N,mtdlayout_all0256n,851968,3014656) endef define Image/Build/Profile/NBG419N @@ -297,12 +308,13 @@ define Image/Build/Template/F5D8235V1 $(call BuildFirmware/Generic,$(1),$(2),board=$(3),mtdlayout_f5d8235,$(mtd_f5d8235_kernel_part_size),$(mtd_f5d8235_rootfs_part_size)) endef - -mtdlayout_wr5123gn=mtdparts=physmap-flash.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,832k(kernel),2944k(rootfs),3776k@0x50000(firmware) -mtdlayout_wr5123gn8m=mtdparts=physmap-flash.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,832k(kernel),7040k(rootfs),7872k@0x50000(firmware) define Image/Build/Profile/WR5123GN - $(call BuildFirmware/Generic,$(1),wr512-3gn-4M,board="WR512-3GN",mtdlayout_wr5123gn,851968,3014656) - $(call BuildFirmware/Generic,$(1),wr512-3gn-8M,board="WR512-3GN",mtdlayout_wr5123gn8m,851968,7208960) + $(call Image/Build/Template/GENERIC_4M,$(1),wr512-3gn-4M,WR512-3GN) + $(call Image/Build/Template/GENERIC_8M,$(1),wr512-3gn-8M,WR512-3GN) +endef + +define Image/Build/Profile/SLR7205 + $(call Image/Build/Template/GENERIC_4M,$(1),sl-r7205,SL-R7205) endef ifeq ($(CONFIG_RALINK_RT305X),y) @@ -319,6 +331,7 @@ define Image/Build/Profile/Default $(call Image/Build/Profile/NW718,$(1)) $(call Image/Build/Profile/OMNIEMB,$(1)) $(call Image/Build/Profile/PWH2004,$(1)) + $(call Image/Build/Profile/SLR7205,$(1)) $(call Image/Build/Profile/WHRG300N,$(1)) $(call Image/Build/Profile/WCR150GN,$(1)) $(call Image/Build/Profile/F5D8235V2,$(1)) @@ -328,6 +341,7 @@ define Image/Build/Profile/Default $(call Image/Build/Profile/WR5123GN,$(1)) $(call Image/Build/Profile/WL341V3,$(1)) $(call Image/Build/Profile/WL351,$(1)) + $(call Image/Build/Profile/WR6202,$(1)) endef endif @@ -339,6 +353,11 @@ define Image/Build/Profile/RTN15 $(call Image/Build/Template/GENERIC_4M,$(1),rt-n15,RT-N15) endef +mtdlayout_v11stfe=mtdparts=physmap-flash.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,1280k(kernel),2112k(rootfs),3392k@0x50000(firmware) +define Image/Build/Profile/V11STFE + $(call BuildFirmware/Generic,$(1),v11st-fe,board=V11ST-FE,mtdlayout_v11stfe,1310720,2162688) +endef + mtdlayout_wlitx4ag300n=mtdparts=physmap-flash.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,832k(kernel),2880k(rootfs),64k(user)ro,3712k@0x50000(firmware) define Image/Build/Profile/WLITX4AG300N $(call BuildFirmware/Buffalo2,$(1),wli-tx4-ag300n,WLI-TX4-AG300N,mtdlayout_wlitx4ag300n,851968,2949120) @@ -348,6 +367,7 @@ ifeq ($(CONFIG_RALINK_RT288X),y) define Image/Build/Profile/Default $(call Image/Build/Profile/F5D8235V1,$(1)) $(call Image/Build/Profile/RTN15,$(1)) + $(call Image/Build/Profile/V11STFE,$(1)) $(call Image/Build/Profile/WLITX4AG300N,$(1)) endef endif