only DHP-EU and DHP2-JP (fw ver. 2.x) images are built for now. it seems DHP-JP/AP/TW (fw ver. 1.x) use different buffalo_csum() formula, so this may not work for them. (not confirmed)
Signed-off-by: FUKAUMI Naoki <nao...@gmail.com> --- target/linux/bcm53xx/image/Makefile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/target/linux/bcm53xx/image/Makefile b/target/linux/bcm53xx/image/Makefile index 853c9b2..d612b26 100644 --- a/target/linux/bcm53xx/image/Makefile +++ b/target/linux/bcm53xx/image/Makefile @@ -84,6 +84,35 @@ define Build/seama-nand -i $@.entity endef +define Build/dhp-factory-image + $(eval product=$(word 1,$(1))) + $(eval region=$(word 2,$(1))) + $(eval language=$(word 3,$(1))) + ( \ + echo $(product)_9.99_9.99_$(region)_bcm; \ + echo filelen=$$(stat -c%s $@); \ + cat $@ \ + ) > $@.trx + $(STAGING_DIR_HOST)/bin/buffalo-enc \ + -m 'start' \ + -p $(product) -v '9.99' \ + -i $@.trx -o $@.trx.enc + $(STAGING_DIR_HOST)/bin/buffalo-tag \ + -a bcm \ + -b $(product) -p $(product) \ + -l $(language) -r $(region) -r $(region) \ + -s \ + -v '9.99' -m '9.99' \ + -w 1 \ + -I $@.trx.enc -o $@.tag + $(STAGING_DIR_HOST)/bin/buffalo-enc \ + -m 'start' \ + -p '' -v '' \ + -i $@.tag -o $@.tag.enc + $(STAGING_DIR_HOST)/bin/mkdhpimg \ + $@.tag.enc $@.trx.enc $@ +endef + DEVICE_VARS += PRODUCTID SIGNATURE NETGEAR_BOARD_ID NETGEAR_REGION TPLINK_BOARD BRCMFMAC_43602A1 := kmod-brcmfmac brcmfmac-firmware-43602a1-pcie @@ -149,6 +178,9 @@ endef TARGET_DEVICES += buffalo-wzr-600dhp2 define Device/buffalo-wzr-900dhp + IMAGES += factory-DHP-EU.bin factory-DHP2-JP.bin + IMAGE/factory-DHP-EU.bin := append-ubi | trx-nand | dhp-factory-image WZR-900DHP EU mlang20 + IMAGE/factory-DHP2-JP.bin := append-ubi | trx-nand | dhp-factory-image WZR-900DHP2 JP jp DEVICE_TITLE := Buffalo WZR-900DHP DEVICE_PACKAGES := kmod-b43 $(USB3_PACKAGES) endef -- 2.7.4 _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev