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

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

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

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

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

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

