ramips: add encrypted SGE factory image for D-Link devices
creates SGE encrypted factory images to use via the D-Link web interface rename the old factory unencrypted images to recovery for use in the recovery console when recovery is needed DIR-1935-A1 , DIR-853-A1 , DIR-853-A3 , DIR-867-A1 , DIR-878-A1 and DIR-882-A1 Signed-off-by: Alan Luck <luckyhome2008@gmail.com>
This commit is contained in:
		 Alan Luck
					Alan Luck
				
			
				
					committed by
					
						 Hauke Mehrtens
						Hauke Mehrtens
					
				
			
			
				
	
			
			
			 Hauke Mehrtens
						Hauke Mehrtens
					
				
			
						parent
						
							f74f5b2994
						
					
				
				
					commit
					4c0dc68f46
				
			| @@ -226,6 +226,11 @@ define Build/copy-file | |||||||
| 	cat "$(1)" > "$@" | 	cat "$(1)" > "$@" | ||||||
| endef | endef | ||||||
|  |  | ||||||
|  | define Build/dlink-sge-image | ||||||
|  | 	$(STAGING_DIR_HOST)/bin/dlink-sge-image $(1) $@ $@.enc | ||||||
|  | 	mv $@.enc $@ | ||||||
|  | endef | ||||||
|  |  | ||||||
| define Build/edimax-header | define Build/edimax-header | ||||||
| 	$(STAGING_DIR_HOST)/bin/mkedimaximg -i $@ -o $@.new $(1) | 	$(STAGING_DIR_HOST)/bin/mkedimaximg -i $@ -o $@.new $(1) | ||||||
| 	@mv $@.new $@ | 	@mv $@.new $@ | ||||||
|   | |||||||
| @@ -684,10 +684,9 @@ define Device/dlink_dir-8xx-a1 | |||||||
|   DEVICE_VENDOR := D-Link |   DEVICE_VENDOR := D-Link | ||||||
|   DEVICE_PACKAGES := kmod-mt7615-firmware -uboot-envtools |   DEVICE_PACKAGES := kmod-mt7615-firmware -uboot-envtools | ||||||
|   KERNEL := $$(KERNEL) | uimage-sgehdr |   KERNEL := $$(KERNEL) | uimage-sgehdr | ||||||
|   IMAGES += factory.bin |   IMAGES += recovery.bin factory.bin | ||||||
|   IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \ |   IMAGE/recovery.bin := append-kernel | append-rootfs | check-size | ||||||
| 	check-size | append-metadata |   IMAGE/factory.bin := $$(IMAGE/recovery.bin) | dlink-sge-image $$$$(DEVICE_MODEL) | ||||||
|   IMAGE/factory.bin := append-kernel | append-rootfs | check-size |  | ||||||
| endef | endef | ||||||
|  |  | ||||||
| define Device/dlink_dir-8xx-r1 | define Device/dlink_dir-8xx-r1 | ||||||
| @@ -707,8 +706,8 @@ define Device/dlink_dir-xx60-a1 | |||||||
|   DEVICE_PACKAGES := kmod-mt7615-firmware kmod-usb3 \ |   DEVICE_PACKAGES := kmod-mt7615-firmware kmod-usb3 \ | ||||||
| 	kmod-usb-ledtrig-usbport -uboot-envtools | 	kmod-usb-ledtrig-usbport -uboot-envtools | ||||||
|   KERNEL := $$(KERNEL) | uimage-sgehdr |   KERNEL := $$(KERNEL) | uimage-sgehdr | ||||||
|   IMAGES += factory.bin |   IMAGES += recovery.bin | ||||||
|   IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \ |   IMAGE/recovery.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \ | ||||||
| 	check-size | 	check-size | ||||||
| endef | endef | ||||||
|  |  | ||||||
| @@ -760,6 +759,8 @@ define Device/dlink_dir-853-a3 | |||||||
|   $(Device/dlink_dir-xx60-a1) |   $(Device/dlink_dir-xx60-a1) | ||||||
|   DEVICE_MODEL := DIR-853 |   DEVICE_MODEL := DIR-853 | ||||||
|   DEVICE_VARIANT := A3 |   DEVICE_VARIANT := A3 | ||||||
|  |   IMAGES += factory.bin | ||||||
|  |   IMAGE/factory.bin := $$(IMAGE/recovery.bin) | dlink-sge-image $$(DEVICE_MODEL) | ||||||
| endef | endef | ||||||
| TARGET_DEVICES += dlink_dir-853-a3 | TARGET_DEVICES += dlink_dir-853-a3 | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user