1{ 2 "flash": { 3 "version": "2.2", 4 "osplatform": "android", 5 "commands": [ 6 { 7 "duration": 42000, 8 "restrict": null, 9 "tool": "notifier", 10 "source": "Please reset the edison (with reset button)", 11 "description": "notify" 12 }, 13 { 14 "restrict": ["full", "non_os"], 15 "ifwi_dnx": "${fw_dnx_file}", 16 "os_dnx": "${os_dnx_file}", 17 "tool": "xfstkDownloader", 18 "os": "${os_file}", 19 "gpflag": "${gpflag}", 20 "ifwi": "${ifwi_file}", 21 "description": "flashing ifwi via xfstk" 22 }, 23 { 24 "restrict": null, 25 "state": "pos", 26 "tool": "waitForDevice", 27 "timeout": 120000, 28 "description": "Waiting for device" 29 }, 30 { 31 "restrict": ["full", "os"], 32 "retry": 2, 33 "mandatory": true, 34 "description": "Flashing gpt", 35 "timeout": 60000, 36 "tool": "fastboot", 37 "args": "flash gpt ${gpt_file}" 38 }, 39 { 40 "restrict": ["full", "os", "non_os"], 41 "retry": 2, 42 "mandatory": true, 43 "description": "Flashing u-boot", 44 "timeout": 60000, 45 "tool": "fastboot", 46 "args": "flash u-boot ${u-boot_file}" 47 }, 48 { 49 "restrict": ["full", "os", "update"], 50 "retry": 2, 51 "mandatory": true, 52 "description": "Flashing boot", 53 "timeout": 60000, 54 "tool": "fastboot", 55 "args": "flash boot_a ${boot_file}" 56 }, 57 { 58 "restrict": ["full", "os", "update"], 59 "retry": 2, 60 "mandatory": true, 61 "description": "Flashing system", 62 "timeout": 1200000, 63 "tool": "fastboot", 64 "args": "flash system_a ${system_file}" 65 }, 66 { 67 "restrict": ["full", "os", "update"], 68 "retry": 2, 69 "mandatory": true, 70 "description": "Flashing boot", 71 "timeout": 60000, 72 "tool": "fastboot", 73 "args": "flash boot_b ${boot_file}" 74 }, 75 { 76 "restrict": ["full", "os", "update"], 77 "retry": 2, 78 "mandatory": true, 79 "description": "Flashing system", 80 "timeout": 1200000, 81 "tool": "fastboot", 82 "args": "flash system_b ${system_file}" 83 }, 84 { 85 "restrict": ["full", "os"], 86 "retry": 2, 87 "mandatory": true, 88 "description": "Flashing data", 89 "timeout": 60000, 90 "tool": "fastboot", 91 "args": "flash userdata ${userdata_file}" 92 }, 93 { 94 "restrict": ["full", "os", "update"], 95 "retry": 2, 96 "mandatory": true, 97 "description": "Setting slot 0 active", 98 "timeout": 1200000, 99 "tool": "fastboot", 100 "args": "oem set_active 0" 101 }, 102 { 103 "restrict": ["full", "os", "update"], 104 "retry": 2, 105 "mandatory": true, 106 "description": "Rebooting", 107 "timeout": 1200000, 108 "tool": "fastboot", 109 "args": "reboot" 110 }, 111 { 112 "duration": 60000, 113 "restrict": "non_os", 114 "tool": "notifier", 115 "source": "Run 'provision', then 'fastboot reboot' to boot the device.", 116 "description": "notify" 117 } 118 ], 119 "groups": {}, 120 "parameters": { 121 "system_file": { 122 "type": "file", 123 "description": "System", 124 "value": "system.img", 125 "name": "System" 126 }, 127 "userdata_file": { 128 "type": "file", 129 "description": "data partition", 130 "value": "userdata.img", 131 "name": "Userdata" 132 }, 133 "u-boot_file": { 134 "type": "file", 135 "description": "U-Boot", 136 "value": "u-boot-edison.bin", 137 "name": "U-Boot primary" 138 }, 139 "os_file": { 140 "type": "file", 141 "description": "OS", 142 "value": "u-boot-edison.img", 143 "name": "OS" 144 }, 145 "gpflag": { 146 "type": "string", 147 "description": "GP flag", 148 "value": "0x80000007", 149 "name": "GP flag" 150 }, 151 "fw_dnx_file": { 152 "type": "file", 153 "description": "Firmware DnX", 154 "value": "edison_dnx_fwr.bin", 155 "name": "Firmware DnX" 156 }, 157 "ifwi_file": { 158 "type": "file", 159 "description": "Firmware", 160 "value": "edison_ifwi-dbg-00.bin", 161 "name": "Firmware" 162 }, 163 "os_dnx_file": { 164 "type": "file", 165 "description": "OS DnX", 166 "value": "edison_dnx_osr.bin", 167 "name": "OS DnX" 168 }, 169 "boot_file": { 170 "type": "file", 171 "description": "Boot partition", 172 "value": "boot.img", 173 "name": "Boot partition" 174 }, 175 "gpt_file": { 176 "type": "file", 177 "description": "Partition Table", 178 "value": "gpt.bin", 179 "name": "Partition Table" 180 } 181 }, 182 "configurations": { 183 "full": { 184 "name": "Full", 185 "parameters": {}, 186 "default": false, 187 "documentation": "", 188 "groupsState": {}, 189 "brief": "full recovery flashing", 190 "startState": "dnx_fw", 191 "description": "full reflash" 192 }, 193 "non_os": { 194 "name": "Non_OS", 195 "parameters": {}, 196 "default": true, 197 "documentation": "", 198 "groupsState": {}, 199 "brief": "firmware and u-boot flashing", 200 "startState": "dnx_fw", 201 "description": "ifwi and u-boot reflash" 202 }, 203 "os": { 204 "name": "OS", 205 "parameters": {}, 206 "default": false, 207 "documentation": "", 208 "groupsState": {}, 209 "brief": "Flash u-boot, boot, userdata and system images", 210 "startState": "pos", 211 "description": "os reflash" 212 }, 213 "update": { 214 "name": "Update", 215 "parameters": {}, 216 "default": false, 217 "documentation": "", 218 "groupsState": {}, 219 "brief": "Flash boot and system images", 220 "startState": "pos", 221 "description": "update system" 222 } 223 } 224 } 225} 226