summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Palalau <alexandru.palalau@intel.com>2015-11-20 10:32:34 +0200
committerBruce Beare <bruce.j.beare@intel.com>2015-11-25 18:55:23 -0800
commit974803d1d0f189fee12f337514460b603bd4ec71 (patch)
tree5b82186ff55d778bbe5ebfbea740ebf4b047a8a2
parent451be9d638508c6a4df1c0c393da978aa30c0da1 (diff)
downloadedison-brillo-m8-release.tar.gz
Updated flashing scripts for Edisonbrillo-m8-releasebrillo-m8-dev
Added multiple flashing configurations. The default will flash ifwi and u-boot. BUG=25892372 Tracked-On: https://jira01.devtools.intel.com/browse/BP-87 Change-Id: I31d21e0c2943d50731364dc458ddbb1b0555ca86 Reviewed-on: https://android.intel.com/438316 Reviewed-by: Beare, Bruce J <bruce.j.beare@intel.com> Tested-by: Beare, Bruce J <bruce.j.beare@intel.com> Signed-off-by: Alexandru Palalau <alexandru.palalau@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
-rw-r--r--flash_tools/FlashEdison.json93
1 files changed, 83 insertions, 10 deletions
diff --git a/flash_tools/FlashEdison.json b/flash_tools/FlashEdison.json
index 968573e..1eeaeeb 100644
--- a/flash_tools/FlashEdison.json
+++ b/flash_tools/FlashEdison.json
@@ -11,7 +11,7 @@
"description": "notify"
},
{
- "restrict": ["full"],
+ "restrict": ["full", "non_os"],
"ifwi_dnx": "${fw_dnx_file}",
"os_dnx": "${os_dnx_file}",
"tool": "xfstkDownloader",
@@ -37,7 +37,7 @@
"args": "flash gpt ${gpt_file}"
},
{
- "restrict": ["full", "os"],
+ "restrict": ["full", "os", "non_os"],
"retry": 2,
"mandatory": true,
"description": "Flashing u-boot",
@@ -46,8 +46,53 @@
"args": "flash u-boot ${u-boot_file}"
},
{
+ "restrict": ["full", "os", "update"],
+ "retry": 2,
+ "mandatory": true,
+ "description": "Flashing boot",
+ "timeout": 60000,
+ "tool": "fastboot",
+ "args": "flash boot_a ${boot_file}"
+ },
+ {
+ "restrict": ["full", "os"],
+ "retry": 2,
+ "mandatory": true,
+ "description": "Flashing data",
+ "timeout": 60000,
+ "tool": "fastboot",
+ "args": "flash userdata ${userdata_file}"
+ },
+ {
+ "restrict": ["full", "os", "update"],
+ "retry": 2,
+ "mandatory": true,
+ "description": "Flashing system",
+ "timeout": 1200000,
+ "tool": "fastboot",
+ "args": "flash system_a ${system_file}"
+ },
+ {
+ "restrict": ["full", "os", "update"],
+ "retry": 2,
+ "mandatory": true,
+ "description": "Setting slot 0 active",
+ "timeout": 1200000,
+ "tool": "fastboot",
+ "args": "oem set_active 0"
+ },
+ {
+ "restrict": ["full", "os", "update"],
+ "retry": 2,
+ "mandatory": true,
+ "description": "Rebooting",
+ "timeout": 1200000,
+ "tool": "fastboot",
+ "args": "reboot"
+ },
+ {
"duration": 60000,
- "restrict": null,
+ "restrict": "non_os",
"tool": "notifier",
"source": "Run 'provision', then 'fastboot reboot' to boot the device.",
"description": "notify"
@@ -55,6 +100,18 @@
],
"groups": {},
"parameters": {
+ "system_file": {
+ "type": "file",
+ "description": "System",
+ "value": "system.img",
+ "name": "System"
+ },
+ "userdata_file": {
+ "type": "file",
+ "description": "data partition",
+ "value": "userdata.img",
+ "name": "Userdata"
+ },
"u-boot_file": {
"type": "file",
"description": "U-Boot",
@@ -91,6 +148,12 @@
"value": "edison_dnx_osr.bin",
"name": "OS DnX"
},
+ "boot_file": {
+ "type": "file",
+ "description": "Boot partition",
+ "value": "boot.img",
+ "name": "Boot partition"
+ },
"gpt_file": {
"type": "file",
"description": "Partition Table",
@@ -109,25 +172,35 @@
"startState": "dnx_fw",
"description": "full reflash"
},
+ "non_os": {
+ "name": "Non_OS",
+ "parameters": {},
+ "default": true,
+ "documentation": "",
+ "groupsState": {},
+ "brief": "firmware and u-boot flashing",
+ "startState": "dnx_fw",
+ "description": "ifwi and u-boot reflash"
+ },
"os": {
"name": "OS",
"parameters": {},
"default": false,
"documentation": "",
"groupsState": {},
- "brief": "Flash boot image and system image",
- "startState": "dnx_fw",
+ "brief": "Flash u-boot, boot, userdata and system images",
+ "startState": "pos",
"description": "os reflash"
},
- "system": {
- "name": "System",
+ "update": {
+ "name": "Update",
"parameters": {},
"default": false,
"documentation": "",
"groupsState": {},
- "brief": "Flash system image",
- "startState": "dnx_fw",
- "description": "system reflash"
+ "brief": "Flash boot and system images",
+ "startState": "pos",
+ "description": "update system"
}
}
}