aboutsummaryrefslogtreecommitdiffstats
path: root/BuildTests/BootloaderTest/BootloaderDeviceMap.cfg
blob: 383f10ecceec493e7c8365f69314f2edc059c7a7 (plain)
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
#
#             LUFA Library
#     Copyright (C) Dean Camera, 2018.
#
#  dean [at] fourwalledcubicle [dot] com
#           www.lufa-lib.org
#
#
# =============================================================================
# Bootloader configuration map script, processed with the "BootloaderTest"
# makefile. This script file defines the targets for each LUFA bootloader,
# which are then built as part of the build test to ensure that there are no
# failures on all standard configurations. To add a new build target for a
# bootloader to this script, use the format:
#
#    BOOTLOADER = {ARCH} : {MCU} : {BOARD} : {FLASH SIZE KB} : {BOOT SIZE KB} : {F_USB MHZ}
#
# And re-run the makefile.
# =============================================================================
#
#
# ------------ CDC Bootloader --------------------
CDC         = AVR8 : at90usb1287 : XPLAIN   : 128 : 8 :  8 :
CDC         = AVR8 : at90usb1287 : NONE     : 128 : 8 :  8 :
CDC         = AVR8 : at90usb1287 : NONE     : 128 : 4 :  8 :
CDC         = AVR8 : at90usb647  : NONE     :  64 : 4 :  8 :
CDC         = AVR8 : at90usb1286 : NONE     : 128 : 8 :  8 :
CDC         = AVR8 : at90usb1286 : NONE     : 128 : 4 :  8 :
CDC         = AVR8 : at90usb646  : NONE     :  64 : 4 :  8 :
CDC         = AVR8 : atmega32u4  : NONE     :  32 : 4 :  8 :
CDC         = AVR8 : atmega16u4  : NONE     :  16 : 4 :  8 :
CDC         = AVR8 : atmega32u2  : NONE     :  32 : 4 :  8 :
CDC         = AVR8 : atmega16u2  : NONE     :  16 : 4 :  8 :
CDC         = AVR8 : atmega8u2   : NONE     :   8 : 4 :  8 :
CDC         = AVR8 : at90usb162  : NONE     :  16 : 4 :  8 :
CDC         = AVR8 : at90usb82   : NONE     :   8 : 4 :  8 :
CDC         = AVR8 : at90usb1287 : NONE     : 128 : 8 : 16 :
CDC         = AVR8 : at90usb1287 : NONE     : 128 : 4 : 16 :
CDC         = AVR8 : at90usb647  : NONE     :  64 : 4 : 16 :
CDC         = AVR8 : at90usb1286 : NONE     : 128 : 8 : 16 :
CDC         = AVR8 : at90usb1286 : NONE     : 128 : 4 : 16 :
CDC         = AVR8 : at90usb646  : NONE     :  64 : 4 : 16 :
CDC         = AVR8 : atmega32u4  : NONE     :  32 : 4 : 16 :
CDC         = AVR8 : atmega16u4  : NONE     :  16 : 4 : 16 :
CDC         = AVR8 : atmega32u2  : NONE     :  32 : 4 : 16 :
CDC         = AVR8 : atmega16u2  : NONE     :  16 : 4 : 16 :
CDC         = AVR8 : atmega8u2   : NONE     :   8 : 4 : 16 :
CDC         = AVR8 : at90usb162  : NONE     :  16 : 4 : 16 :
CDC         = AVR8 : at90usb82   : NONE     :   8 : 4 : 16 :
#
# ------------ DFU Bootloader --------------------
DFU         = AVR8 : at90usb1287 : XPLAIN   : 128 : 8 :  8 :
DFU         = AVR8 : at90usb1287 : NONE     : 128 : 8 :  8 :
DFU         = AVR8 : at90usb1287 : NONE     : 128 : 4 :  8 :
DFU         = AVR8 : at90usb647  : NONE     :  64 : 4 :  8 :
DFU         = AVR8 : at90usb1286 : NONE     : 128 : 8 :  8 :
DFU         = AVR8 : at90usb1286 : NONE     : 128 : 4 :  8 :
DFU         = AVR8 : at90usb646  : NONE     :  64 : 4 :  8 :
DFU         = AVR8 : atmega32u4  : NONE     :  32 : 4 :  8 :
DFU         = AVR8 : atmega16u4  : NONE     :  16 : 4 :  8 :
DFU         = AVR8 : atmega32u2  : NONE     :  32 : 4 :  8 :
DFU         = AVR8 : atmega16u2  : NONE     :  16 : 4 :  8 :
DFU         = AVR8 : atmega8u2   : NONE     :   8 : 4 :  8 :
DFU         = AVR8 : at90usb162  : NONE     :  16 : 4 :  8 :
DFU         = AVR8 : at90usb82   : NONE     :   8 : 4 :  8 :
DFU         = AVR8 : at90usb1287 : NONE     : 128 : 8 : 16 :
DFU         = AVR8 : at90usb1287 : NONE     : 128 : 4 : 16 :
DFU         = AVR8 : at90usb647  : NONE     :  64 : 4 : 16 :
DFU         = AVR8 : at90usb1286 : NONE     : 128 : 8 : 16 :
DFU         = AVR8 : at90usb1286 : NONE     : 128 : 4 : 16 :
DFU         = AVR8 : at90usb646  : NONE     :  64 : 4 : 16 :
DFU         = AVR8 : atmega32u4  : NONE     :  32 : 4 : 16 :
DFU         = AVR8 : atmega16u4  : NONE     :  16 : 4 : 16 :
DFU         = AVR8 : atmega32u2  : NONE     :  32 : 4 : 16 :
DFU         = AVR8 : atmega16u2  : NONE     :  16 : 4 : 16 :
DFU         = AVR8 : atmega8u2   : NONE     :   8 : 4 : 16 :
DFU         = AVR8 : at90usb162  : NONE     :  16 : 4 : 16 :
DFU         = AVR8 : at90usb82   : NONE     :   8 : 4 : 16 :
#
# ------------ HID Bootloader --------------------
HID         = AVR8 : at90usb1287 : NONE     : 128 : 8 :  8 :
HID         = AVR8 : at90usb1287 : NONE     : 128 : 4 :  8 :
HID         = AVR8 : at90usb647  : NONE     :  64 : 4 :  8 :
HID         = AVR8 : at90usb1286 : NONE     : 128 : 8 :  8 :
HID         = AVR8 : at90usb1286 : NONE     : 128 : 4 :  8 :
HID         = AVR8 : at90usb646  : NONE     :  64 : 4 :  8 :
HID         = AVR8 : atmega32u4  : NONE     :  32 : 4 :  8 :
HID         = AVR8 : atmega16u4  : NONE     :  16 : 4 :  8 :
HID         = AVR8 : atmega32u2  : NONE     :  32 : 2 :  8 :
HID         = AVR8 : atmega32u2  : NONE     :  32 : 4 :  8 :
HID         = AVR8 : atmega16u2  : NONE     :  16 : 2 :  8 :
HID         = AVR8 : atmega16u2  : NONE     :  16 : 4 :  8 :
HID         = AVR8 : atmega8u2   : NONE     :   8 : 2 :  8 :
HID         = AVR8 : atmega8u2   : NONE     :   8 : 4 :  8 :
HID         = AVR8 : at90usb162  : NONE     :  16 : 2 :  8 :
HID         = AVR8 : at90usb162  : NONE     :  16 : 4 :  8 :
HID         = AVR8 : at90usb162  : NONE     :  16 : 2 :  8 :
HID         = AVR8 : at90usb162  : NONE     :  16 : 4 :  8 :
HID         = AVR8 : at90usb1287 : NONE     : 128 : 8 :  8 :
HID         = AVR8 : at90usb1287 : NONE     : 128 : 4 :  8 :
HID         = AVR8 : at90usb647  : NONE     :  64 : 4 :  8 :
HID         = AVR8 : at90usb1286 : NONE     : 128 : 8 : 16 :
HID         = AVR8 : at90usb1286 : NONE     : 128 : 4 : 16 :
HID         = AVR8 : at90usb646  : NONE     :  64 : 4 : 16 :
HID         = AVR8 : atmega32u4  : NONE     :  32 : 4 : 16 :
HID         = AVR8 : atmega16u4  : NONE     :  16 : 4 : 16 :
HID         = AVR8 : atmega32u2  : NONE     :  32 : 2 : 16 :
HID         = AVR8 : atmega32u2  : NONE     :  32 : 4 : 16 :
HID         = AVR8 : atmega16u2  : NONE     :  16 : 2 : 16 :
HID         = AVR8 : atmega16u2  : NONE     :  16 : 4 : 16 :
HID         = AVR8 : atmega8u2   : NONE     :   8 : 2 : 16 :
HID         = AVR8 : atmega8u2   : NONE     :   8 : 4 : 16 :
HID         = AVR8 : at90usb162  : NONE     :  16 : 2 : 16 :
HID         = AVR8 : at90usb162  : NONE     :  16 : 4 : 16 :
HID         = AVR8 : at90usb162  : NONE     :  16 : 2 : 16 :
HID         = AVR8 : at90usb162  : NONE     :  16 : 4 : 16 :
#
# ---------- Printer Bootloader ------------------
Printer     = AVR8 : at90usb1287 : NONE     : 128 : 8 :  8 :
Printer     = AVR8 : at90usb1287 : NONE     : 128 : 4 :  8 :
Printer     = AVR8 : at90usb647  : NONE     :  64 : 4 :  8 :
Printer     = AVR8 : at90usb1286 : NONE     : 128 : 8 :  8 :
Printer     = AVR8 : at90usb1286 : NONE     : 128 : 4 :  8 :
Printer     = AVR8 : at90usb646  : NONE     :  64 : 4 :  8 :
Printer     = AVR8 : atmega32u4  : NONE     :  32 : 4 :  8 :
Printer     = AVR8 : atmega16u4  : NONE     :  16 : 4 :  8 :
Printer     = AVR8 : atmega32u2  : NONE     :  32 : 4 :  8 :
Printer     = AVR8 : atmega16u2  : NONE     :  16 : 4 :  8 :
Printer     = AVR8 : atmega8u2   : NONE     :   8 : 4 :  8 :
Printer     = AVR8 : at90usb162  : NONE     :  16 : 4 :  8 :
Printer     = AVR8 : at90usb82   : NONE     :   8 : 4 :  8 :
Printer     = AVR8 : at90usb1287 : NONE     : 128 : 8 : 16 :
Printer     = AVR8 : at90usb1287 : NONE     : 128 : 4 : 16 :
Printer     = AVR8 : at90usb647  : NONE     :  64 : 4 : 16 :
Printer     = AVR8 : at90usb1286 : NONE     : 128 : 8 : 16 :
Printer     = AVR8 : at90usb1286 : NONE     : 128 : 4 : 16 :
Printer     = AVR8 : at90usb646  : NONE     :  64 : 4 : 16 :
Printer     = AVR8 : atmega32u4  : NONE     :  32 : 4 : 16 :
Printer     = AVR8 : atmega16u4  : NONE     :  16 : 4 : 16 :
Printer     = AVR8 : atmega32u2  : NONE     :  32 : 4 : 16 :
Printer     = AVR8 : atmega16u2  : NONE     :  16 : 4 : 16 :
Printer     = AVR8 : atmega8u2   : NONE     :   8 : 4 : 16 :
Printer     = AVR8 : at90usb162  : NONE     :  16 : 4 : 16 :
Printer     = AVR8 : at90usb82   : NONE     :   8 : 4 : 16 :
#
# ---------- Mass Storage Bootloader -----------------
MassStorage = AVR8 : at90usb1287 : XPLAIN   : 128 : 8 :  8 :
MassStorage = AVR8 : at90usb1287 : NONE     : 128 : 8 :  8 :
MassStorage = AVR8 : at90usb1287 : NONE     : 128 : 4 :  8 :
MassStorage = AVR8 : at90usb647  : NONE     :  64 : 4 :  8 :
MassStorage = AVR8 : at90usb1286 : NONE     : 128 : 8 :  8 :
MassStorage = AVR8 : at90usb1286 : NONE     : 128 : 4 :  8 :
MassStorage = AVR8 : at90usb646  : NONE     :  64 : 4 :  8 :
MassStorage = AVR8 : atmega32u4  : LEONARDO :  32 : 4 : 16 :
MassStorage = AVR8 : atmega32u4  : NONE     :  32 : 4 :  8 :
MassStorage = AVR8 : atmega16u4  : NONE     :  16 : 4 :  8 :
MassStorage = AVR8 : atmega32u2  : NONE     :  32 : 4 :  8 :
MassStorage = AVR8 : at90usb1287 : NONE     : 128 : 8 : 16 :
MassStorage = AVR8 : at90usb1287 : NONE     : 128 : 4 : 16 :
MassStorage = AVR8 : at90usb647  : NONE     :  64 : 4 : 16 :
MassStorage = AVR8 : at90usb1286 : NONE     : 128 : 8 : 16 :
MassStorage = AVR8 : at90usb1286 : NONE     : 128 : 4 : 16 :
MassStorage = AVR8 : at90usb646  : NONE     :  64 : 4 : 16 :
MassStorage = AVR8 : atmega32u4  : NONE     :  32 : 4 : 16 :
MassStorage = AVR8 : atmega16u4  : NONE     :  16 : 4 : 16 :
MassStorage = AVR8 : atmega32u2  : NONE     :  32 : 4 : 16 :
#
n_match_phrases); } loadData(dataUri); } private void loadData(Uri dataUri) { mDataUri = dataUri; Log.i(Constants.TAG, "mDataUri: " + mDataUri.toString()); // Prepare the loaders. Either re-connect with an existing ones, // or start new ones. getLoaderManager().initLoader(LOADER_ID_UNIFIED, null, this); } static final String[] UNIFIED_PROJECTION = new String[]{ KeyRings._ID, KeyRings.FINGERPRINT, }; static final int INDEX_UNIFIED_FINGERPRINT = 1; public Loader<Cursor> onCreateLoader(int id, Bundle args) { setContentShown(false); switch (id) { case LOADER_ID_UNIFIED: { Uri baseUri = KeyRings.buildUnifiedKeyRingUri(mDataUri); return new CursorLoader(getActivity(), baseUri, UNIFIED_PROJECTION, null, null, null); } default: return null; } } public void onLoadFinished(Loader<Cursor> loader, Cursor data) { /* TODO better error handling? May cause problems when a key is deleted, * because the notification triggers faster than the activity closes. */ // Avoid NullPointerExceptions... if (data.getCount() == 0) { return; } // Swap the new cursor in. (The framework will take care of closing the // old cursor once we return.) switch (loader.getId()) { case LOADER_ID_UNIFIED: { if (data.moveToFirst()) { byte[] fingerprintBlob = data.getBlob(INDEX_UNIFIED_FINGERPRINT); if (mEnablePhrasesConfirm) { displayWordConfirm(fingerprintBlob); } else { displayHexConfirm(fingerprintBlob); } break; } } } setContentShown(true); } private void displayHexConfirm(byte[] fingerprintBlob) { String fingerprint = KeyFormattingUtils.convertFingerprintToHex(fingerprintBlob); mFingerprint.setText(KeyFormattingUtils.colorizeFingerprint(fingerprint)); } private void displayWordConfirm(byte[] fingerprintBlob) { // String fingerprint = ExperimentalWordConfirm.getWords(getActivity(), fingerprintBlob); String fingerprint; try { fingerprint = new SentenceConfirm(getActivity()).fromBytes(fingerprintBlob, 16); } catch (IOException ioe) { fingerprint = "-"; } mFingerprint.setTextSize(18); mFingerprint.setTypeface(Typeface.DEFAULT, Typeface.BOLD); mFingerprint.setText(fingerprint); } /** * This is called when the last Cursor provided to onLoadFinished() above is about to be closed. * We need to make sure we are no longer using it. */ public void onLoaderReset(Loader<Cursor> loader) { } private void certify(Uri dataUri) { long keyId = 0; try { keyId = new ProviderHelper(getActivity()) .getCachedPublicKeyRing(dataUri) .extractOrGetMasterKeyId(); } catch (PgpKeyNotFoundException e) { Log.e(Constants.TAG, "key not found!", e); } Intent certifyIntent = new Intent(getActivity(), CertifyKeyActivity.class); certifyIntent.putExtras(getActivity().getIntent()); certifyIntent.putExtra(CertifyKeyActivity.EXTRA_KEY_IDS, new long[]{keyId}); startActivityForResult(certifyIntent, REQUEST_CERTIFY); } @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { // always just pass this one through if (requestCode == REQUEST_CERTIFY) { getActivity().setResult(resultCode, data); getActivity().finish(); return; } super.onActivityResult(requestCode, resultCode, data); } }