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

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

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

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

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

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

