diff options
author | Jonas Gorski <jogo@openwrt.org> | 2014-08-11 11:37:14 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2014-08-11 11:37:14 +0000 |
commit | 52b0935efe803609153bf0c040efbe7578695aff (patch) | |
tree | 1ddeb39ead6304d5ffe7629f62b75f71d0285e48 /target/linux/brcm63xx/image | |
parent | 0aa242fe20960cd313fcea8408679adbcf6bdcfd (diff) | |
download | upstream-52b0935efe803609153bf0c040efbe7578695aff.tar.gz upstream-52b0935efe803609153bf0c040efbe7578695aff.tar.bz2 upstream-52b0935efe803609153bf0c040efbe7578695aff.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>
SVN-Revision: 42126
Diffstat (limited to 'target/linux/brcm63xx/image')
-rwxr-xr-x | target/linux/brcm63xx/image/Makefile | 26 |
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)) |