Hey lynxis, Looking over the new Makefile style, I was unable to find any examples of this for devices that rely on NAND and .tar sysupgrade images, such as the NetgearNAND boards. (maybe I am blind?)
It's also worth noting this device is a bit special, as it doesn't use a UBI generated image for the system.img, but instead a squashfs file. If you have any tips on how to move this code over to the new style, please let me know or feel free to reach out to me directly. With that said, would it be possible to get this merged as is in the meantime to help get this device mainline? Best Regards, Chris Blake On Sun, Dec 6, 2015 at 12:56 AM, Alexander Couzens <lyn...@fe80.eu> wrote: > 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 <chunk...@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@0x20000(firmware) >> mr12_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,256k(u-boot-env)ro,13440k(rootfs),2304k(kernel),128k(art)ro,15744k@0x80000(firmware) >> mr16_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,256k(u-boot-env)ro,13440k(rootfs),2304k(kernel),128k(art)ro,15744k@0x80000(firmware) >> +mr18_mtdlayout=mtdparts=ar934x-nfc:512k(nandloader)ro,8M(kernel),8M(recovery),113664k(ubi),128k@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@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: lyn...@fe80.eu > jabber: lyn...@fe80.eu > mobile: +4915123277221 > gpg: 390D CF78 8BF9 AA50 4F8F F1E2 C29E 9DA6 A0DF 8604 > > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel > _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel