From 619a58d641cd763c00be42d5c99c6a72074e845c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 29 Feb 2016 20:11:30 +0000 Subject: ar71xx, firmware-utils: split ubdev01 flash layout from XM 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 SVN-Revision: 48828 --- target/linux/ar71xx/image/Makefile | 2 +- tools/firmware-utils/src/mkfwimage.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index cb111042a7..ca4437b4b8 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -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 diff --git a/tools/firmware-utils/src/mkfwimage.c b/tools/firmware-utils/src/mkfwimage.c index 00bf439afe..5dae284d5d 100644 --- a/tools/firmware-utils/src/mkfwimage.c +++ b/tools/firmware-utils/src/mkfwimage.c @@ -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 = "", }, }; -- cgit v1.2.3