ar71xx, firmware-utils: split ubdev01 flash layout from XM
authorJohn Crispin <john@openwrt.org>
Tue, 1 Mar 2016 08:14:47 +0000 (08:14 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 1 Mar 2016 08:14:47 +0000 (08:14 +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>
Backport of r48828

SVN-Revision: 48847

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

index d28d6b3271cff47cf4b753c34e3a8d022cc1f855..05ef1d2d41166891ca7dc5ccb0b6cb3f5b95b667 100644 (file)
@@ -2031,7 +2031,7 @@ $(eval $(call SingleProfile,TPLINK-SAFELOADER,64kraw,CPE510,cpe210-220-510-520,C
 $(eval $(call SingleProfile,UAPPRO,64k,UAPPRO,ubnt-uap-pro,UAP-PRO,ttyS0,115200,BZ,BZ,ar934x))
 $(eval $(call SingleProfile,UAPPRO,64k,UBNTUNIFIOUTDOORPLUS,ubnt-unifi-outdoor-plus,UBNT-UOP,ttyS0,115200,BZ,BZ,ar7240))
 
-$(eval $(call SingleProfile,UBDEV,64kraw,UBDEV01,ubdev01,UBNT-UF,ttyS0,115200,XM,XM,ar7240))
+$(eval $(call SingleProfile,UBDEV,64kraw,UBDEV01,ubdev01,UBNT-UF,ttyS0,115200,UBDEV01,XM,ar7240))
 
 $(eval $(call SingleProfile,UBNT,64k,UBNTRS,ubnt-rs,UBNT-RS,ttyS0,115200,RS,RSx,ar7100))
 $(eval $(call SingleProfile,UBNT,64k,UBNTRSPRO,ubnt-rspro,UBNT-RSPRO,ttyS0,115200,RSPRO,RSPRO,ar7100pro))
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           =       "",
        },
 };