Created
December 11, 2019 14:02
-
-
Save c-mauderer/db7a96ef488c74425433821329ed0fd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From a1efb959719872fd785c6ab11fd721924494f6b8 Mon Sep 17 00:00:00 2001 | |
From: Christian Mauderer <oss@c-mauderer.de> | |
Date: Wed, 11 Dec 2019 14:40:24 +0100 | |
Subject: [PATCH] Try to generate firmware image. | |
--- | |
target/linux/ath79/image/generic-ubnt.mk | 17 ++++++++++++----- | |
tools/firmware-utils/src/mkfwimage.c | 9 +++++++++ | |
2 files changed, 21 insertions(+), 5 deletions(-) | |
diff --git a/target/linux/ath79/image/generic-ubnt.mk b/target/linux/ath79/image/generic-ubnt.mk | |
index e75b9ea770..e4f1eb97fe 100644 | |
--- a/target/linux/ath79/image/generic-ubnt.mk | |
+++ b/target/linux/ath79/image/generic-ubnt.mk | |
@@ -84,16 +84,23 @@ define Device/ubnt-xw | |
ATH_SOC := ar9342 | |
endef | |
-define Device/ubnt_acb-isp | |
+define Device/ubnt-acb | |
$(Device/ubnt) | |
+ UBNT_TYPE := ACB | |
+ UBNT_CHIP := qca9533 | |
+ UBNT_BOARD := ACB | |
+ UBNT_VERSION := 2.5.0 | |
ATH_SOC := qca9533 | |
- IMAGE_SIZE := 15744k | |
+endef | |
+ | |
+define Device/ubnt_acb-isp | |
+ $(Device/ubnt-acb) | |
DEVICE_MODEL := airCube ISP | |
UBNT_BOARD := ACB-ISP | |
- UBNT_TYPE := ACB | |
- UBNT_CHIP := qca9533 | |
- IMAGES := sysupgrade.bin | |
+ IMAGE_SIZE := 15744k | |
+ IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | mkubntimage-split | |
endef | |
+ | |
TARGET_DEVICES += ubnt_acb-isp | |
define Device/ubnt_airrouter | |
diff --git a/tools/firmware-utils/src/mkfwimage.c b/tools/firmware-utils/src/mkfwimage.c | |
index c8737386a2..c9d838a2e1 100644 | |
--- a/tools/firmware-utils/src/mkfwimage.c | |
+++ b/tools/firmware-utils/src/mkfwimage.c | |
@@ -128,6 +128,15 @@ struct fw_info fw_info[] = { | |
}, | |
.sign = true, | |
}, | |
+ { | |
+ .name = "ACB-ISP", | |
+ .fw_layout = { | |
+ .kern_start = 0x9f050000, | |
+ .kern_entry = 0x80002000, | |
+ .firmware_max_length= 0x00F60000, | |
+ }, | |
+ .sign = true, | |
+ }, | |
{ | |
.name = "", | |
}, | |
-- | |
2.24.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment