Skip to content

Commit

Permalink
add instruction partials to device contracts
Browse files Browse the repository at this point in the history
Change-type: minor
Signed-off-by: Micah Halter <[email protected]>
  • Loading branch information
mehalter committed Apr 5, 2021
1 parent 66efdfc commit 9476165
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contracts/hw.device-type/beaglebone-black/contract.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@
"media": {
"installation": "sdcard"
},
"installation": {
"method": "externalFlash"
},
"is_private": false
},
"partials": {
"bootDeviceExternal": ["Power up the {{name}} while holding down the small button near the SD slot. You need to keep it pressed until the blue LEDs start flashing wildly."],
"flashIndicator": ["all LEDs are off"],
"bootDevice": ["Remove and re-connect power to the {{name}}"]
}
}
11 changes: 11 additions & 0 deletions contracts/hw.device-type/fincm3/contract.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@
"media": {
"installation": "dfu"
},
"installation": {
"method": "internalFlash"
},
"is_private": false
},
"partials": {
"connectDevice": [
"While not having the {{name}} board powered, connect your system to the board's DBG/PRG port via a micro-USB cable.",
"<em>Note: for the {{name}} v1.1, only power the board from the PRG port for flashing. For the {{name}} v1.0, power on the board by attaching power to either the Barrel or the Phoenix connector.</em>"
],
"disconnectDevice": ["Power off the {{name}} by detaching the power if connected and unplug the DGB micro-USB cable."],
"bootDevice": ["Remove and re-connect power to the {{name}}"]
}
}
16 changes: 16 additions & 0 deletions contracts/hw.device-type/intel-edison/contract.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,22 @@
"media": {
"installation": "dfu"
},
"installation": {
"method": "other"
},
"is_private": false
},
"partials": {
"instructions": [
"Install <code>dfu-util</code> and <code>coreutils</code> from your distributions repos. For example, for Ubuntu: <code>apt-get install dfu-util coreutils</code>",
"Unplug the Intel Edison board from your system",
"Unzip the downloaded Device OS file.",
"Execute the following from the unzipped directory: <code>sudo ./flashall.sh</code>",
"If you have trouble executing, you may need to modify the file permissions first: <code> sudo chmod +x ./flashall.sh</code>"
],
"bootDevice": [
"Plug the Intel Edison as per the instructions on your terminal.",
"You can check the progress of the provisioning on your terminal."
]
}
}
6 changes: 6 additions & 0 deletions contracts/hw.device-type/raspberry-pi/contract.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
"media": {
"installation": "sdcard"
},
"installation": {
"method": "externalBoot"
},
"is_private": false
},
"partials": {
"bootDevice": ["Connect power to the {{name}}"]
}
}

0 comments on commit 9476165

Please sign in to comment.