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 cb111042a72ccd25ff0bfa8e83781fec2d7d83bb..ca4437b4b845156082a3283088b77560c3d20639 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 00bf439afe6c382feb9f41bff8f8d5130155e50f..5dae284d5d72455dec91f2e486859a78e7defba3 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           =       "",
        },
 };