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

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

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

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

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

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

