software =
{
	version = "1.0.1";
	hardware-compatibility: [ "encrypt" ];
	description = "Quasar firmware update";

	images: (
		{
			name = "rootfs";
			filename = "rootfs.ubifs";
			sha256 = "f6b3fbf00c8ab278c7c6858a1fd4db61fd3d83ff0e5b8aa4abd0a1c0e19d0b1f";
			volume = "rootfs";
		},

		{
			name = "boot";
			filename = "boot.img.encrypt";
			sha256 = "63c6d66594c08b6ff300110d6ec788af9bf49a8ce5c28b4ad8ea11858f2d9bd3";
			device = "/dev/mtd2";
			type = "flash";
		},

		{
			name = "dtb";
			filename = "dt.img.encrypt";
			sha256 = "c4117fa1249f6878464d7d62772b8b2109287edb98a1b4e26befa01da069e73c";
			device = "/dev/dtb";
		}
	);

	files: (
		{
			name = "bootloader";
			filename = "u-boot.bin.encrypt.usb.bl2";
			sha256 = "528de9de0d22fe3734e2f0c857195b7160daf819441fe48206e6226aa57f69c1";
			path = "/tmp/u-boot.bin.encrypt.usb.bl2";
		},

		{
			name = "tpl";
			filename = "u-boot.bin.encrypt.usb.tpl";
			sha256 = "d4cfa6b12c3ab656cd027ea451a3e37302a0d4c57be4e4d66f89589c825d5477";
			path = "/tmp/u-boot.bin.encrypt.usb.tpl";
		}
	);

	scripts: (
		{
			name = "tpl";
			filename = "flash-nand-copies.sh";
			sha256 = "d82ef6f4388caa06a1052114871c9e424384cb81a0826ab23190d1113471f96a";
			data = "/tmp/u-boot.bin.encrypt.usb.tpl /dev/mtd1 1M 0";
			type = "shellscript";
		},

		{
			name = "bootloader";
			filename = "flash-nand-copies.sh";
			sha256 = "d82ef6f4388caa06a1052114871c9e424384cb81a0826ab23190d1113471f96a";
			data = "/tmp/u-boot.bin.encrypt.usb.bl2 /dev/mtd0 0x40000 0x80000 0xc0000 0x100000 0x140000 0x180000 0x1c0000 0";
			type = "shellscript";
		},
	);
}

