140 lines
3.3 KiB
Plaintext
140 lines
3.3 KiB
Plaintext
software =
|
|
{
|
|
version = "1.0.0.1";
|
|
description = "Firmware update for Luban Project";
|
|
|
|
stable = {
|
|
/*
|
|
* upgrade_recovery stage:
|
|
* Running in main system, and upgrade the "recovery" partition,
|
|
* then reboot to the new recovery system
|
|
* Step1: Download image and upgrade the "recovery" partition
|
|
* Step2: Setup bootenv "swu_entry, boot_partition, boot_os, swu_status"
|
|
* Step3: Reboot to the new recovery system to run "upgrade_kernel"
|
|
*/
|
|
upgrade_recovery = {
|
|
images: (
|
|
{
|
|
filename = "recovery";
|
|
device = "/dev/mtd9";
|
|
type = "flash";
|
|
sha256 = "@recovery";
|
|
}
|
|
);
|
|
|
|
/*
|
|
* Some key env variables:
|
|
* swu_boardname: The selected board name. Here is "stable"
|
|
* swu_entry: The upgrade entry selection. Value can be
|
|
* "upgrade_recovery" and "upgrade_kernel"
|
|
* boot_os: SPL Falcon mode flag. Should be set to "no"
|
|
* during OTA
|
|
* swu_status: OTA status flag, Value can be "progress",
|
|
* "finish"
|
|
* swu_reboot: When this flag is set to "yes", the
|
|
* system will be reboot when all works done for current
|
|
* stage.
|
|
*/
|
|
bootenv: (
|
|
{
|
|
name = "swu_entry";
|
|
value = "upgrade_kernel";
|
|
},
|
|
{
|
|
name = "boot_partition";
|
|
value = "recovery";
|
|
},
|
|
{
|
|
name = "boot_os";
|
|
value = "no";
|
|
},
|
|
{
|
|
name = "swu_status";
|
|
value = "progress";
|
|
},
|
|
{
|
|
name = "swu_reboot";
|
|
value = "yes";
|
|
}
|
|
);
|
|
};
|
|
|
|
/*
|
|
* upgrade_kernel stage:
|
|
* Running in Recovery system, it will upgrade some key
|
|
* partitions, then reboot to main system.
|
|
* Step1: Download and upgrade partitons
|
|
* Step2: Setup ENV variables, and mark OTA "finish"
|
|
* Step3: Reboot to main system
|
|
*
|
|
* data UBIFS (ubi1:data, ubisystem):
|
|
* Optional factory/user data image built from
|
|
* target/.../data/ overlay (see image_cfg.json "data").
|
|
* Listed last so earlier images are processed first.
|
|
*
|
|
* IMPORTANT: If the .swu file itself is stored on /data (ubi1:data),
|
|
* updating this volume can corrupt the stream while it is being read.
|
|
* Prefer placing the package in RAM (/tmp), on the network, or on
|
|
* external media for OTA that includes "data".
|
|
*/
|
|
upgrade_kernel = {
|
|
images: (
|
|
{
|
|
filename = "logo";
|
|
device = "/dev/mtd7";
|
|
type = "flash";
|
|
sha256 = "@logo";
|
|
},
|
|
{
|
|
filename = "kernel";
|
|
device = "/dev/mtd8";
|
|
type = "flash";
|
|
sha256 = "@kernel";
|
|
},
|
|
{
|
|
filename = "rootfs";
|
|
volume = "rootfs";
|
|
installed-directly = true;
|
|
sha256 = "@rootfs";
|
|
},
|
|
{
|
|
filename = "data";
|
|
volume = "data";
|
|
installed-directly = true;
|
|
sha256 = "@data";
|
|
}
|
|
);
|
|
|
|
bootenv: (
|
|
{
|
|
name = "boot_partition";
|
|
value = "kernel";
|
|
},
|
|
{
|
|
name = "swu_param";
|
|
value = "";
|
|
},
|
|
{
|
|
name = "swu_boardname";
|
|
value = "";
|
|
},
|
|
{
|
|
name = "swu_entry";
|
|
value = "";
|
|
},
|
|
{
|
|
name = "swu_status";
|
|
value = "finish";
|
|
},
|
|
{
|
|
name = "swu_reboot";
|
|
value = "yes";
|
|
}
|
|
);
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|