aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/image
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2014-08-11 11:37:14 +0000
committerJonas Gorski <jogo@openwrt.org>2014-08-11 11:37:14 +0000
commitfaf35534f351739f06f12d006e5bc18cefb77e8a (patch)
treecd27e45ba3ea7c6b3a7ca14c210226641a037ce1 /target/linux/brcm63xx/image
parent71d57be0567e86d30857330c8f1c67c94cc1e5f7 (diff)
downloadmaster-187ad058-faf35534f351739f06f12d006e5bc18cefb77e8a.tar.gz
master-187ad058-faf35534f351739f06f12d006e5bc18cefb77e8a.tar.bz2
master-187ad058-faf35534f351739f06f12d006e5bc18cefb77e8a.zip
brcm63xx: use dtb board detection for HW556
This requires individual images for each board version for now. Linux partition was shrunk to ensure writing thewrong image won't erase wifi calibration data. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42126 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/image')
-rwxr-xr-xtarget/linux/brcm63xx/image/Makefile26
1 files changed, 14 insertions, 12 deletions
diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile
index 6ce7d957f9..9ee97d15a6 100755
--- a/target/linux/brcm63xx/image/Makefile
+++ b/target/linux/brcm63xx/image/Makefile
@@ -74,15 +74,6 @@ define Image/Build/CFEHW553
--block-size 0x20000 --image-offset $(4)
endef
-define Image/Build/CFEHW556
- # Generate the tagged image
- $(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux.lzma.cfe -f $(KDIR)/root.$(1) \
- --output $(BIN_DIR)/openwrt-$(2)-$(1)-cfe.bin \
- --boardid $(2) --chipid $(3) --entry $(LOADADDR) \
- --load-addr $(LOADADDR) --tag-version 8 --rsa-signature "$(5)" \
- --image-offset $(4) --info1 "$(6)" --block-size 0x20000
-endef
-
define Image/Build/CFEAGPF
# Generate the tagged image
$(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux.lzma.cfe -f $(KDIR)/root.$(1) \
@@ -229,6 +220,16 @@ define CfeImageDTB
TARGET_IMAGES += $(4)
endef
+define HW556ImageDTB
+ define Image/Build/$(2)
+ $$(call Image/Build/CFEDTB,$$(1),$(1),HW556,6358,$(2),EchoLife_HG556a,--image-offset 0x20000 --block-size 0x20000 --tag-version 8)
+ endef
+
+ TARGET_DTBS += $(1)
+ TARGET_IMAGES += $(2)
+endef
+
+
define Image/Build
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync
# Various routers
@@ -351,9 +352,6 @@ define Image/Build
#HW553
$(call Image/Build/CFEHW553,$(1),HW553,6358,0x20000,HW553)
- #HW556
- $(call Image/Build/CFEHW556,$(1),HW556,6358,0x20000,EchoLife_HG556a,OpenWRT-$(REVISION))
-
# T-Com Speedport W 303V Typ B
$(call Image/Build/SPW303V,$(1),96358-502V,6358,SPW303V)
@@ -388,5 +386,9 @@ $(eval $(call CfeImageDTB,dsl-274xb-c,96358GW,6358,DSL274XB-C2))
$(eval $(call CfeImageDTB,dsl-274xb-c,AW4139,6358,DSL274XB-C3))
# D-Link DVA-G3810BN/TL
$(eval $(call CfeImageDTB,dva-g3810bn_tl,96358VW,6358,DVAG3810BN))
+# Huawei HW556
+$(eval $(call HW556ImageDTB,hg556a-a,HW556-A))
+$(eval $(call HW556ImageDTB,hg556a-b,HW556-B))
+$(eval $(call HW556ImageDTB,hg556a-c,HW556-C))
$(eval $(call BuildImage))