130 lines
3.4 KiB
Plaintext
130 lines
3.4 KiB
Plaintext
|
software =
|
||
|
{
|
||
|
version = "0.1.0";
|
||
|
description = "Firmware update for Tina Project";
|
||
|
|
||
|
stable = {
|
||
|
|
||
|
/* now in systemA, we need to upgrade systemB(bootB, rootfsB) */
|
||
|
now_A_next_B = {
|
||
|
images: (
|
||
|
{
|
||
|
filename = "kernel";
|
||
|
device = "/dev/by-name/bootB";
|
||
|
sha256 = "@kernel";
|
||
|
installed-directly = true;
|
||
|
},
|
||
|
{
|
||
|
filename = "rootfs";
|
||
|
device = "/dev/by-name/rootfsB";
|
||
|
sha256 = "@rootfs";
|
||
|
installed-directly = true;
|
||
|
},
|
||
|
{
|
||
|
filename = "uboot";
|
||
|
type = "awuboot";
|
||
|
sha256 = "@uboot";
|
||
|
},
|
||
|
{
|
||
|
filename = "boot0";
|
||
|
type = "awboot0";
|
||
|
sha256 = "@boot0";
|
||
|
}
|
||
|
);
|
||
|
bootenv: (
|
||
|
{
|
||
|
name = "swu_mode";
|
||
|
value = "";
|
||
|
},
|
||
|
{
|
||
|
name = "boot_partition";
|
||
|
value = "bootB";
|
||
|
},
|
||
|
{
|
||
|
name = "root_partition";
|
||
|
value = "rootfsB";
|
||
|
},
|
||
|
{
|
||
|
name = "systemAB_next";
|
||
|
value = "B";
|
||
|
},
|
||
|
{
|
||
|
name = "swu_next";
|
||
|
value = "reboot";
|
||
|
}
|
||
|
);
|
||
|
};
|
||
|
|
||
|
/* now in systemB, we need to upgrade systemA(bootA, rootfsA) */
|
||
|
now_B_next_A = {
|
||
|
images: (
|
||
|
{
|
||
|
filename = "kernel";
|
||
|
device = "/dev/by-name/bootA";
|
||
|
sha256 = "@kernel";
|
||
|
installed-directly = true;
|
||
|
},
|
||
|
{
|
||
|
filename = "rootfs";
|
||
|
device = "/dev/by-name/rootfsA";
|
||
|
sha256 = "@rootfs";
|
||
|
installed-directly = true;
|
||
|
},
|
||
|
{
|
||
|
filename = "uboot";
|
||
|
type = "awuboot";
|
||
|
sha256 = "@uboot";
|
||
|
},
|
||
|
{
|
||
|
filename = "boot0";
|
||
|
type = "awboot0";
|
||
|
sha256 = "@boot0";
|
||
|
}
|
||
|
);
|
||
|
bootenv: (
|
||
|
{
|
||
|
name = "swu_mode";
|
||
|
value = "";
|
||
|
},
|
||
|
{
|
||
|
name = "boot_partition";
|
||
|
value = "bootA";
|
||
|
},
|
||
|
{
|
||
|
name = "root_partition";
|
||
|
value = "rootfsA";
|
||
|
},
|
||
|
{
|
||
|
name = "systemAB_next";
|
||
|
value = "A";
|
||
|
},
|
||
|
{
|
||
|
name = "swu_next";
|
||
|
value = "reboot";
|
||
|
}
|
||
|
);
|
||
|
};
|
||
|
};
|
||
|
|
||
|
/* when not call with -e xxx,xxx just clean */
|
||
|
bootenv: (
|
||
|
{
|
||
|
name = "swu_param";
|
||
|
value = "";
|
||
|
},
|
||
|
{
|
||
|
name = "swu_software";
|
||
|
value = "";
|
||
|
},
|
||
|
{
|
||
|
name = "swu_mode";
|
||
|
value = "";
|
||
|
},
|
||
|
{
|
||
|
name = "swu_version";
|
||
|
value = "";
|
||
|
}
|
||
|
);
|
||
|
|
||
|
}
|