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

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

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

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

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

		{
			name = "tpl";
			filename = "u-boot.bin.encrypt.usb.tpl";
			sha256 = "9d3658ee2b9393bd114265c2cbd9fd997e54d08b6b04db5b78b5ccdc87cc0a85";
			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 3M 0";
			type = "shellscript";
		},

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

