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

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

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

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

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

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

