ar71xx: Move MR12 & MR16 from legacy to generic
This moves the Meraki MR12 and Meraki MR16 to the new generic target. Tested and verified working on both devices. Note that kernel/rootfs images are still generated. This is because they are used for the inital flashing process due to the fun pace at which UBoot erases/writes to SPI. Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
This commit is contained in:
parent
7b9ac39afa
commit
d8662ac3c6
3 changed files with 26 additions and 16 deletions
|
@ -108,6 +108,32 @@ define Device/gl-mifi
|
|||
endef
|
||||
TARGET_DEVICES += gl-mifi
|
||||
|
||||
define Device/mr12
|
||||
DEVICE_TITLE := Meraki MR12
|
||||
DEVICE_PACKAGES := kmod-spi-gpio
|
||||
BOARDNAME = MR12
|
||||
IMAGE_SIZE = 15744k
|
||||
MTDPARTS = spi0.0:256k(u-boot)ro,256k(u-boot-env)ro,13440k(rootfs),2304k(kernel),128k(art)ro,15744k@0x80000(firmware)
|
||||
IMAGE/kernel.bin = append-kernel
|
||||
IMAGE/rootfs.bin = append-rootfs | pad-rootfs
|
||||
IMAGE/sysupgrade.bin = append-rootfs | pad-rootfs | pad-to 13440k | append-kernel | check-size $$$$(IMAGE_SIZE)
|
||||
IMAGES := kernel.bin rootfs.bin sysupgrade.bin
|
||||
endef
|
||||
TARGET_DEVICES += mr12
|
||||
|
||||
define Device/mr16
|
||||
DEVICE_TITLE := Meraki MR16
|
||||
DEVICE_PACKAGES := kmod-spi-gpio
|
||||
BOARDNAME = MR16
|
||||
IMAGE_SIZE = 15744k
|
||||
MTDPARTS = spi0.0:256k(u-boot)ro,256k(u-boot-env)ro,13440k(rootfs),2304k(kernel),128k(art)ro,15744k@0x80000(firmware)
|
||||
IMAGE/kernel.bin = append-kernel
|
||||
IMAGE/rootfs.bin = append-rootfs | pad-rootfs
|
||||
IMAGE/sysupgrade.bin = append-rootfs | pad-rootfs | pad-to 13440k | append-kernel | check-size $$$$(IMAGE_SIZE)
|
||||
IMAGES := kernel.bin rootfs.bin sysupgrade.bin
|
||||
endef
|
||||
TARGET_DEVICES += mr16
|
||||
|
||||
define Device/dr531
|
||||
DEVICE_TITLE := Wallys DR531
|
||||
DEVICE_PACKAGES := kmod-usb-core kmod-usb2
|
||||
|
|
|
@ -185,18 +185,6 @@ define LegacyDevice/HORNETUBx2
|
|||
endef
|
||||
LEGACY_DEVICES += HORNETUBx2
|
||||
|
||||
define LegacyDevice/MR12
|
||||
DEVICE_TITLE := Meraki MR12
|
||||
DEVICE_PACKAGES := kmod-spi-gpio
|
||||
endef
|
||||
LEGACY_DEVICES += MR12
|
||||
|
||||
define LegacyDevice/MR16
|
||||
DEVICE_TITLE := Meraki MR16
|
||||
DEVICE_PACKAGES := kmod-spi-gpio
|
||||
endef
|
||||
LEGACY_DEVICES += MR16
|
||||
|
||||
define LegacyDevice/PB92
|
||||
DEVICE_TITLE := Atheros PB92 reference board
|
||||
DEVICE_PACKAGES := kmod-usb-core kmod-usb2
|
||||
|
|
|
@ -271,8 +271,6 @@ ew-dorin_mtdlayout_16M=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),16000k(fir
|
|||
f9k1115v2_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),14464k(rootfs),1408k(kernel),64k(nvram)ro,64k(envram)ro,64k(art)ro,15872k@0x50000(firmware)
|
||||
dlrtdev_mtdlayout=mtdparts=spi0.0:256k(uboot)ro,64k(config)ro,6208k(firmware),64k(caldata)ro,640k(certs),960k(unknown)ro,64k@0x7f0000(caldata_copy)
|
||||
dlrtdev_mtdlayout_fat=mtdparts=spi0.0:256k(uboot)ro,64k(config)ro,7168k(firmware),640k(certs),64k(caldata)ro,64k@0x660000(caldata_orig),6208k@0x50000(firmware_orig)
|
||||
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)
|
||||
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
|
||||
|
@ -949,8 +947,6 @@ $(eval $(call SingleProfile,AthLzma,64k,EWDORINAP,ew-dorin,EW-DORIN,ttyATH0,1152
|
|||
$(eval $(call SingleProfile,AthLzma,64k,EWDORINRT,ew-dorin-router,EW-DORIN-ROUTER,ttyATH0,115200,$$(ew-dorin_mtdlayout_4M),KRuImage,65536))
|
||||
$(eval $(call SingleProfile,AthLzma,64k,EWDORIN16M,ew-dorin-16M,EW-DORIN,ttyATH0,115200,$$(ew-dorin_mtdlayout_16M),KRuImage,65536))
|
||||
$(eval $(call SingleProfile,AthLzma,64k,HORNETUBx2,hornet-ub-x2,HORNET-UB,ttyATH0,115200,$$(alfa_mtdlayout_16M),KRuImage,65536))
|
||||
$(eval $(call SingleProfile,AthLzma,64k,MR12,mr12,MR12,ttyS0,115200,$$(mr12_mtdlayout),RKuImage))
|
||||
$(eval $(call SingleProfile,AthLzma,64k,MR16,mr16,MR16,ttyS0,115200,$$(mr16_mtdlayout),RKuImage))
|
||||
$(eval $(call SingleProfile,AthLzma,64k,PB92,pb92,PB92,ttyS0,115200,$$(pb92_mtdlayout),KRuImage))
|
||||
$(eval $(call SingleProfile,AthLzma,64k,TUBE2H16M,tube2h-16M,TUBE2H,ttyATH0,115200,$$(alfa_mtdlayout_16M),KRuImage,65536))
|
||||
$(eval $(call SingleProfile,AthLzma,64k,WLR8100,wlr8100,WLR8100,ttyS0,115200,$$(wlr8100_mtdlayout),KRuImage))
|
||||
|
|
Loading…
Reference in a new issue