forked from balena-os/balena-intel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
intel-corei7-64.coffee
105 lines (86 loc) · 3.45 KB
/
intel-corei7-64.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
deviceTypesCommon = require 'resin-device-types/common'
{ networkOptions, commonImg, instructions } = deviceTypesCommon
NUC_WINDOWS_DISK_IMAGER = '''
Install <a href="http://sourceforge.net/projects/win32diskimager/">Win32 Disk Imager</a>.
<br>
Start Win32 Disk Imager and navigate to the Device OS <code>.img</code> in your downloads.
Select <OS-image-download>.img (<%= SUBSTITUTE_DOWNLOAD %>)
as your “Image File”.'
<br>
Insert your USB key. In Win32 Disk Imager, select your USB key in the drop down for “Device”
<br>
Make 100% sure it is the correct drive and click “Write”.
<br>
Wait until it's finished writing.
'''
NUC_SUBSTITUTE_DISK= 'where N is your USB key number'
NUC_DD_BURN_IMAGE = '''
Run <code>sudo dd bs=1m if=~/Downloads/<OS-image-download>.img of=/dev/rdiskN</code>
<%= SUBSTITUTE_DOWNLOAD %>
and replacing the <code>of=/dev/rdiskN</code> with the appropriate device name.
<br>
<strong>Warning!</strong> Please make sure you have backed-up your USB key first,
as this will completely erase its contents. You can see a full description of this process
<a href="<%= GETTING_STARTED_LINK %>">here</a>.
'''
NUC_EJECT = 'Safely eject the freshly burnt USB key and insert into the <%= TYPE_NAME %>.'
NUC_OSX_PLUG = 'Plug your USB key into your computer and in a terminal run <code>diskutil list</code>.
You should see your USB key as <code>/dev/diskN</code>, (N=1,2,3,4…)'
NUC_OSX_UNMOUNT = 'Unmount your USB key with <code>diskutil umountDisk /dev/diskN</code> <%= SUBSTITUTE_DISK %>.'
NUC_LINUX_DF = '''
Run <code>df -h</code> to see what devices are currently mounted.
<br>
Insert your USB key.
<br>
Run <code>df -h</code> again,the device that wasn\'t there last time is your USB key.
It will be listed as something like <code>/dev/sdd1</code>.
The last part ("1") is the partition number,
so the USB device name is without that suffix: "/dev/sdd"
<br>
Unmount your USB key with <code>umount /dev/sddN</code> <%= SUBSTITUTE_DISK %>.
'''
NUC_FLASH = '''
Power up the <%= TYPE_NAME %>. Make sure you have a keyboard connected.
Press the F10 key while BIOS is loading in order to enter the boot menu. Next, select the "UEFI : USB" option.
'''
NUC_POWERON = 'Press the power on button on your Intel NUC.'
NUC_BOOT_SETUP = 'Press F2 to enter Setup. Select the UEFI:SATA option under Boot Drive Order, save and exit Setup.'
postProvisioningInstructions = [
instructions.BOARD_SHUTDOWN
instructions.REMOVE_INSTALL_MEDIA
NUC_POWERON
NUC_BOOT_SETUP
]
module.exports =
slug: 'intel-nuc'
aliases: [ 'nuc' ]
name: 'Intel NUC'
arch: 'amd64'
state: 'released'
stateInstructions:
postProvisioning: postProvisioningInstructions
instructions: [
instructions.ETCHER_USB
instructions.EJECT_USB
instructions.FLASHER_WARNING
NUC_FLASH
].concat(postProvisioningInstructions)
gettingStartedLink:
windows: 'http://docs.resin.io/#/pages/installing/gettingStarted-NUC.md#windows'
osx: 'http://docs.resin.io/#/pages/installing/gettingStarted-NUC.md#on-mac-and-linux'
linux: 'http://docs.resin.io/#/pages/installing/gettingStarted-NUC.md#on-mac-and-linux'
yocto:
machine: 'intel-corei7-64'
image: 'resin-image-flasher'
fstype: 'resin-sdcard'
version: 'yocto-jethro'
deployArtifact: 'resin-image-flasher-intel-corei7-64.resin-sdcard'
compressed: true
configuration:
config:
partition:
primary: 4
logical: 1
path: '/config.json'
options: [ networkOptions.group ]
initialization: commonImg.initialization