[LEDE-DEV] [PATCH v3] ramips: build factory images for Buffalo WSR-1166DHP/WSR-1166DHP2

Mathias Kresin dev at kresin.me
Sun Dec 11 05:53:16 PST 2016


First of all, sorry for beeing late to the party and requesting changes 
to a V3.

11.12.2016 02:17, FUKAUMI Naoki:
> diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
> index 6d85511..23a79f5 100644
> --- a/target/linux/ramips/image/mt7621.mk
> +++ b/target/linux/ramips/image/mt7621.mk
> @@ -192,8 +192,41 @@ define Device/wndr3700v5
>  endef
>  TARGET_DEVICES += wndr3700v5
>
> +define Build/wsr-factory-image
> +	$(STAGING_DIR_HOST)/bin/trx \
> +		-M $(2) \
> +		-m $(IMAGE_SIZE) \
> +		-f $(1) \
> +		-o $(1).trx
> +	$(STAGING_DIR_HOST)/bin/buffalo-enc \
> +		-l -m 'start' \
> +		-p $(3) -v '0.00' \
> +		-i $(1).trx -o $(1).trx.enc
> +	$(STAGING_DIR_HOST)/bin/buffalo-tag \
> +		-a MTK \
> +		-b $(3) -p $(3) \
> +		-l JP -r JP -r JP \
> +		-s \
> +		-v '0.00' -m '0.00' \
> +		-w 1 \
> +		-I $(1).trx.enc -o $(1).tag
> +	$(STAGING_DIR_HOST)/bin/buffalo-enc \
> +		-l -m 'start' \
> +		-p '' -v '' \
> +		-i $(1).tag -o $(1).tag.enc
> +	$(STAGING_DIR_HOST)/bin/mkdhpimg \
> +		$(1).tag.enc $(1).trx.enc \
> +		$(call imgname,initramfs,$(4))-factory.bin
> +endef
> +
> +define Build/wsr-1166-factory-images
> +	$(call Build/wsr-factory-image,$@,0x746f435c,WSR-1166DHP,wsr-1166dhp)
> +	$(call Build/wsr-factory-image,$@,0x1fc384dd,WSR-1166DHP2,wsr-1166dhp2)
> +endef

This looks like the old image build code we just got rid of. Would you 
please add multiple factory images to "Device/wsr-1166" instead.

Have a look at the DGN3500 image build code in the lantiq target for an 
example.

Mathias



More information about the Lede-dev mailing list