[OpenWrt-Devel] [PATCH v6 6/6] ar71xx: add support for Cisco's MR18

Alexander Couzens lynxis at fe80.eu
Sun Dec 6 01:56:41 EST 2015


Hi Christian,

please use the new image/Makefile style. Like the most tplink or
ubiquity devices use it.

If you need any help, just ask.

Best,
lynxis

On Sat,  5 Dec 2015 23:48:08 +0100
Christian Lamparter <chunkeey at googlemail.com> wrote:

> +MIPS_MACHINE(ATH79_MACH_MR18, "MR18", "Meraki MR18", mr18_setup);
> diff --git a/target/linux/ar71xx/image/Makefile
> b/target/linux/ar71xx/image/Makefile index d12ad8b..bac4a18 100644
> --- a/target/linux/ar71xx/image/Makefile
> +++ b/target/linux/ar71xx/image/Makefile
> @@ -1494,6 +1494,7 @@
> dragino2_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,16000k(firmware),64k(config)ro
> hiwifi_hc6361_mtdlayout=mtdparts=spi0.0:64k(u-boot)ro,64k(bdinfo)ro,1280k(kernel),14848k(rootfs),64k(backup)ro,64k(art)ro,16128k at 0x20000(firmware)
> mr12_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,256k(u-boot-env)ro,13440k(rootfs),2304k(kernel),128k(art)ro,15744k at 0x80000(firmware)
> mr16_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,256k(u-boot-env)ro,13440k(rootfs),2304k(kernel),128k(art)ro,15744k at 0x80000(firmware)
> +mr18_mtdlayout=mtdparts=ar934x-nfc:512k(nandloader)ro,8M(kernel),8M(recovery),113664k(ubi),128k at 130944k(odm-caldata)ro
> pb92_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,2752k(rootfs),896k(kernel),64k(nvram),64k(art)ro,3648k at 0x50000(firmware)
> planex_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7744k(firmware),128k(art)ro
> ubntxm_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7552k(firmware),256k(cfg)ro,64k(EEPROM)ro
> @@ -1975,6 +1976,37 @@ Image/Build/CyberTANLZMA/buildkernel=$(call
> MkuImageLzma,$(2),$(3) $(4)) Image/Build/CyberTANLZMA=$(call
> Image/Build/CyberTAN,$(1),$(2),$(3),$(4),$(5)) 
> +define Image/Build/MerakiNAND/initramfs
> +	$(eval kernelsize=$(call mtdpartsize,kernel,$(4)))
> +	$(call PatchKernel,$(2),$(3) $(4),"-initramfs")
> +	-$(STAGING_DIR_HOST)/bin/mkmerakifw \
> +		-B $(2) -s \
> +		-i $(KDIR_TMP)/vmlinux-initramfs-$(2) \
> +		-o $(KDIR_TMP)/vmlinux-initramfs-$(2)-patched
> +	$(CP) $(KDIR_TMP)/vmlinux-initramfs-$(2)-patched
> $(BIN_DIR)/$(IMG_PREFIX)-$(2)-initramfs.bin +endef
> +


-- 
Alexander Couzens

mail: lynxis at fe80.eu
jabber: lynxis at fe80.eu
mobile: +4915123277221
gpg: 390D CF78 8BF9 AA50 4F8F  F1E2 C29E 9DA6 A0DF 8604
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20151206/b7c6dc70/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list