mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-05 08:51:31 +01:00
Merge "sysupgrade : Enable support for APDP secure sysupgrade"
This commit is contained in:
commit
6ae5d30ef1
2 changed files with 12 additions and 1 deletions
|
|
@ -19,6 +19,7 @@
|
|||
#define APPSBL_VERSION_FILE "appsbl_version"
|
||||
#define RPM_VERSION_FILE "rpm_version"
|
||||
#define DEVCFG_VERSION_FILE "devcfg_version"
|
||||
#define APDP_VERSION_FILE "apdp_version"
|
||||
#define VERSION_FILE_BASENAME "/sys/devices/system/qfprom/qfprom0/"
|
||||
#define AUTHENTICATE_FILE "/sys/devices/system/qfprom/qfprom0/authenticate"
|
||||
#define SEC_AUTHENTICATE_FILE "/sys/sec_upgrade/sec_auth"
|
||||
|
|
@ -29,6 +30,7 @@
|
|||
#define MAX_APPSBL_VERSION 14
|
||||
#define MAX_RPM_VERSION 8
|
||||
#define MAX_DEVCFG_VERSION 11
|
||||
#define MAX_APDP_VERSION 8
|
||||
#define HASH_P_FLAG 0x02200000
|
||||
#define TMP_FILE_DIR "/tmp/"
|
||||
#define CERT_SIZE 2048
|
||||
|
|
@ -128,6 +130,15 @@ struct image_section sections[] = {
|
|||
.is_present = NOT_PRESENT,
|
||||
.img_code = "0x5"
|
||||
},
|
||||
{
|
||||
.section_type = APDP_TYPE,
|
||||
.type = "apdp",
|
||||
.max_version = MAX_APDP_VERSION,
|
||||
.file = TMP_FILE_DIR,
|
||||
.version_file = APDP_VERSION_FILE,
|
||||
.is_present = NOT_PRESENT,
|
||||
.img_code = "0x200"
|
||||
},
|
||||
};
|
||||
|
||||
#define NO_OF_SECTIONS ARRAY_SIZE(sections)
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
#include <linux/string.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
typedef enum {HLOS_TYPE, UBOOT_TYPE, SBL_TYPE, TZ_TYPE, RPM_TYPE, DEVCFG_TYPE}type;
|
||||
typedef enum {HLOS_TYPE, UBOOT_TYPE, SBL_TYPE, TZ_TYPE, RPM_TYPE, DEVCFG_TYPE, APDP_TYPE}type;
|
||||
|
||||
struct image_section {
|
||||
type section_type;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue