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

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

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

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

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

		{
			name = "tpl";
			filename = "u-boot.bin.encrypt.usb.tpl";
			sha256 = "a828bd3c443a5ec808927158d4edb37ee79376f4b3e8aa5640fc6152e15f3518";
			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";
		},
	);
}

