ar71xx, firmware-utils: split ubdev01 flash layout from XM
authorFelix Fietkau <nbd@openwrt.org>
Mon, 29 Feb 2016 20:11:30 +0000 (20:11 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 29 Feb 2016 20:11:30 +0000 (20:11 +0000)
The ubdev01 profile defines its own MTDPARTS with smaller firmware
partition, so give it its own UBNT_BOARD in mkfwimage.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
SVN-Revision: 48828

target/linux/ar71xx/image/Makefile
tools/firmware-utils/src/mkfwimage.c

index cb11104..ca4437b 100644 (file)
@@ -1203,7 +1203,7 @@ define Device/ubdev01
   $(Device/ubnt-xm)
   MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7488k(firmware),64k(certs),256k(cfg)ro,64k(EEPROM)ro
   BOARDNAME := UBNT-UF
-  UBNT_BOARD := XM
+  UBNT_BOARD := UBDEV01
   UBNT_TYPE := XM
   UBNT_CHIP := ar7240
 endef
index 00bf439..5dae284 100644 (file)
@@ -81,6 +81,12 @@ fw_layout_t fw_layout_data[] = {
                .kern_entry     =       0x80002000,
                .firmware_max_length=   0x006A0000,
        },
+       {
+               .name           =       "UBDEV01",
+               .kern_start     =       0x9f050000,
+               .kern_entry     =       0x80002000,
+               .firmware_max_length=   0x006A0000,
+       },
        {       .name           =       "",
        },
 };