-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathup-board.coffee
55 lines (44 loc) · 1.42 KB
/
up-board.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
deviceTypesCommon = require '@resin.io/device-types/common'
{ networkOptions, commonImg, instructions } = deviceTypesCommon
UPBOARD_FLASH = '''
Power up the <%= TYPE_NAME %>. Make sure you have a keyboard connected.
Press the F7 key while BIOS is loading in order to enter the boot menu. Next, select the "UEFI:" option.
'''
UPBOARD_POWERRESET = 'Unplug and plug power on your <%= TYPE_NAME %>.'
postProvisioningInstructions = [
instructions.BOARD_SHUTDOWN
instructions.REMOVE_INSTALL_MEDIA
UPBOARD_POWERRESET
]
module.exports =
version: 1
slug: 'up-board'
name: 'UP Board'
arch: 'amd64'
state: 'released'
stateInstructions:
postProvisioning: postProvisioningInstructions
instructions: [
instructions.ETCHER_USB
instructions.EJECT_USB
instructions.FLASHER_WARNING
UPBOARD_FLASH
].concat(postProvisioningInstructions)
gettingStartedLink:
windows: 'https://www.balena.io/docs/learn/getting-started/up-board/nodejs/'
osx: 'https://www.balena.io/docs/learn/getting-started/up-board/nodejs/'
linux: 'https://www.balena.io/docs/learn/getting-started/up-board/nodejs/'
yocto:
machine: 'up-board'
image: 'balena-image-flasher'
fstype: 'balenaos-img'
version: 'yocto-dunfell'
deployArtifact: 'balena-image-flasher-up-board.balenaos-img'
compressed: true
configuration:
config:
partition:
primary: 1
path: '/config.json'
options: [ networkOptions.group ]
initialization: commonImg.initialization