-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsupported_devices.py
More file actions
530 lines (516 loc) · 15.7 KB
/
Copy pathsupported_devices.py
File metadata and controls
530 lines (516 loc) · 15.7 KB
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
"""Local, developer-editable knowledge about device boards.
This list is the launcher's own opinion about which boards cerf.exe can
actually run, keyed on the ``board.id`` a bundle's cerf.json carries. Edit it
by hand when a new board lands in cerf.exe's BoardContext (see
``cerf/boards/board_context.h``) or when a board's quirks change.
compile_readme.py renders the same data into README.md's "Supported boards"
table, so the launcher and the README never drift apart.
Semantics (matched on ``board_id``):
* ``supported: True`` -> cerf.exe runs this board; shown by default.
* ``supported: False`` -> early WIP: cerf.exe has the board_id but it is
not user-ready; hidden by the "Hide unsupported"
filter and absent from the README.
* a board.id with no entry here -> unsupported; hidden by "Hide unsupported".
``notes`` here EXTEND (do not replace) the per-ROM ``meta.notes`` shown in
the side panel. Use them for board-wide quirks that apply to every ROM on
the board.
``DYNAMIC_NOTES`` (bottom of this file) extends the side panel further with
predicate-gated additional notes: each entry's lambda runs against the
selected ROM's cerf.json metadata plus the board's feature map, so a note
can target e.g. "any networked board running Windows Mobile 4+". Add an
entry there when a note applies to a ROM-metadata predicate rather than one
whole board; grow ``RomContext`` with more metadata fields as new
predicates need them.
``features`` is an optional dict of capability -> bool the side panel shows
as icons. Three states per capability:
* True -> hardware present and working (colour icon)
* False -> hardware present but unsupported in CERF (greyed icon)
* key absent -> the board has no such hardware (icon hidden entirely)
Recognised keys are the first column of ``FEATURE_SPECS``.
``storage`` names the ROM input the board boots from - what the New-device
wizard asks the user for. Absent means ``STORAGE_FLAT`` (a flat storage
container: NK/XIP/NB0/etc, the CERF default). ``STORAGE_SEC_CONTAINER`` is
the Ford SYNC 2 factory-recovery ``.sec`` package.
``configurable_screen: True`` marks a board whose OAL accepts a configurable
stock-video screen size (cerf.exe --screen-width/height without guest
additions). Absent means fixed-LCD.
Supported entries also carry the board's silicon + OS coverage, shown in
the README table (and available to the launcher):
* ``soc`` -> a ``Soc`` constant (family + microarchitecture).
* ``operating_systems`` -> list of ``OperatingSystem`` constants the board
boots in this cerf version.
"""
from __future__ import annotations
from board_catalog_schema import (
DynamicNote,
HANDHELD_PC_2000,
HANDHELD_PC_PRO,
PALM_SIZE_PC,
POCKET_PC_2000,
POCKET_PC_2002,
SOC_IMX31L,
SOC_IMX51,
SOC_ODO,
SOC_OMAP3530,
SOC_PR31500,
SOC_PR31700,
SOC_PXA255,
SOC_PXA270,
SOC_S3C2410,
SOC_SA1100,
SOC_SA1110,
SOC_VR4102,
SOC_VR4111,
SOC_VR4121,
SOC_VR4122,
SOC_VR5500,
STORAGE_SEC_CONTAINER,
WINDOWS_CE_1,
WINDOWS_CE_2,
WINDOWS_CE_211,
WINDOWS_CE_212,
WINDOWS_CE_3,
WINDOWS_CE_5,
WINDOWS_CE_6,
WINDOWS_CE_7,
WINDOWS_CE_8,
WINDOWS_CE_NET,
WINDOWS_MOBILE_2003SE,
WINDOWS_MOBILE_5,
WINDOWS_MOBILE_6,
ZUNE_OS_5,
LINUX_BASED_OS,
)
AUDIO_ARTIFACTS = "Audio has artifacts/glitches"
GUEST_ADDITIONS_BREAK_ROM = "Do NOT use guest additions - they break the ROM"
BOARDS_INFORMATION = [
{
"name": "Device Emulator",
"board_id": "devemu",
"supported": True,
"configurable_screen": True,
"soc": SOC_S3C2410,
"operating_systems": [
WINDOWS_CE_6,
WINDOWS_MOBILE_5,
WINDOWS_MOBILE_6,
WINDOWS_MOBILE_2003SE,
WINDOWS_CE_5,
],
"features": {
"display": True,
"sound": True,
"touch": True,
"keyboard": True,
"network": True,
"pcmcia": True,
"battery": True,
"suspend": True,
"guest_additions": True,
},
"notes": [
"Stock video: don't exceed 640x480 on Windows Mobile 6.5 or newer.",
"Stock video: don't exceed 800x600 on any OS.",
],
},
{
"name": "Falcon 4220",
"board_id": "falcon_4220",
"supported": True,
"soc": SOC_PXA255,
"operating_systems": [WINDOWS_CE_NET],
"features": {
"display": True,
"sound": True,
"touch": True,
"keyboard": False,
"network": True,
"pcmcia": True,
"battery": True,
"suspend": True,
"guest_additions": True,
},
"notes": [
"CERF badly emulates stock video, it renders with artifacts. You can use it with Guest Additions "
"insetad",
AUDIO_ARTIFACTS,
],
},
{
"name": "iPAQ H3100/H3600/H3700",
"board_id": "ipaq_gen1",
"supported": True,
"soc": SOC_SA1110,
"operating_systems": [POCKET_PC_2000, POCKET_PC_2002],
"features": {
"display": True,
"sound": True,
"touch": True,
"keyboard": False,
"network": True,
"pcmcia": True,
"battery": False,
"suspend": True,
"guest_additions": True,
"mic": True,
},
"notes": [AUDIO_ARTIFACTS],
},
{
"name": "HP Jornada 820",
"board_id": "jornada_820",
"supported": True,
"soc": SOC_SA1100,
"operating_systems": [HANDHELD_PC_PRO],
"features": {
"display": True,
"sound": True,
"keyboard": True,
"pcmcia": True,
"mouse": True,
"network": True,
"battery": True,
"suspend": True,
"guest_additions": True,
"mic": False,
"serial": False,
},
},
{
"name": "HP Jornada 720",
"board_id": "jornada_720",
"supported": True,
"soc": SOC_SA1110,
"operating_systems": [HANDHELD_PC_2000, LINUX_BASED_OS],
"features": {
"display": True,
"sound": True,
"touch": True,
"keyboard": True,
"network": True,
"pcmcia": True,
"battery": True,
"suspend": True,
"guest_additions": True,
"mic": False,
"serial": False,
},
},
{
"name": "Microsoft Windows CE Hardware Reference Platform",
"board_id": "odo",
"supported": True,
"soc": SOC_ODO,
"operating_systems": [WINDOWS_CE_211, WINDOWS_CE_3],
"features": {
"display": True,
"sound": True,
"touch": True,
"keyboard": True,
"battery": False,
"guest_additions": True,
},
"notes": [
AUDIO_ARTIFACTS,
"Guest additions keyboard causes OS to HANG - switch to stock!",
],
},
{
"name": "OMAP 3530 EVM",
"board_id": "omap_3530_evm",
"supported": True,
"soc": SOC_OMAP3530,
"operating_systems": [WINDOWS_CE_7, WINDOWS_CE_8],
"features": {
"display": True,
"sound": True,
"touch": True,
"suspend": False,
"guest_additions": True,
"network": False,
},
"notes": [
"ROMs with Compositor are slower",
],
},
{
"name": "Zune 30",
"board_id": "zune_30",
"supported": True,
"soc": SOC_IMX31L,
"operating_systems": [ZUNE_OS_5],
"features": {
"display": True,
"sound": True,
"keyboard": True,
"guest_additions": True,
"battery": False,
},
"notes": [
"CERF auto-generates HDD on first boot if there was no (hdd.img in device dir)",
"Guest additions: You can open apps through shared storage + task manager, "
"only extremely simple apps will run (like literally blank Win32 skeletons)",
],
},
{
"name": "Siemens SIMpad SL4",
"board_id": "simpad_sl4",
"supported": True,
"soc": SOC_SA1110,
"operating_systems": [HANDHELD_PC_2000, WINDOWS_CE_NET],
"features": {
"display": True,
"sound": True,
"touch": True,
"pcmcia": True,
"network": True,
"guest_additions": True,
"battery": True,
"mic": False,
},
},
{
"name": "NEC MobilePro 900",
"board_id": "nec_mobilepro_900",
"supported": True,
"soc": SOC_PXA255,
"operating_systems": [HANDHELD_PC_2000, WINDOWS_CE_NET],
"features": {
"display": True,
"sound": True,
"touch": True,
"keyboard": True,
"pcmcia": True,
"network": True,
"guest_additions": True,
"battery": False,
"mic": False,
"suspend": False,
},
"notes": [
"Emulated with serious lags / audio / visual issues",
],
},
{
"name": "NEC MobilePro 700",
"board_id": "nec_mobilepro_700",
"supported": True,
"soc": SOC_VR4102,
"operating_systems": [WINDOWS_CE_2],
"features": {
"display": True,
"touch": True,
"keyboard": True,
"sound": False,
"network": True,
"pcmcia": True,
"serial": True,
"battery": False,
"guest_additions": True,
"suspend": True,
},
},
{
"name": "Casio Cassiopeia E-55",
"board_id": "casio_cassiopeia_e55",
"supported": True,
"soc": SOC_VR4111,
"operating_systems": [PALM_SIZE_PC],
"features": {
"display": True,
"touch": True,
"keyboard": True,
"guest_additions": True,
"pcmcia": True,
"serial": True,
"network": True,
"sound": False,
"battery": False,
"suspend": False,
},
},
{
"name": "Casio Cassiopeia EM-500",
"board_id": "casio_cassiopeia_em500",
"supported": True,
"soc": SOC_VR4122,
"operating_systems": [POCKET_PC_2000],
"features": {
"display": True,
"touch": True,
"sound": True,
"guest_additions": True,
"suspend": False,
"keyboard": False,
"mic": False,
"network": False,
"serial": False,
"battery": False,
},
},
{
"name": "Casio Toricomail / Message-Cam / Pocket PostPet",
"board_id": "casio_toricomail",
"supported": True,
"soc": SOC_VR4121,
"operating_systems": [WINDOWS_CE_212],
"features": {
"display": True,
"touch": True,
"keyboard": True,
"guest_additions": True,
"sound": False,
"network": False,
"pcmcia": False,
"mic": False,
},
"notes": [
"Camera and microphone access crashes the emulator",
],
},
{
"name": "NEC Rockhopper SG2_VR5500",
"board_id": "nec_rockhopper",
"supported": True,
"soc": SOC_VR5500,
"operating_systems": [WINDOWS_CE_6],
"features": {
"display": True,
"mouse": True,
"keyboard": True,
"suspend": False,
"sound": False,
"guest_additions": True,
"pcmcia": True,
"network": True,
},
"notes": [
"MIPS IV ROM is incompatible with MIPS II apps. Prefer using MIPS II ROM."
],
},
{
"name": "Philips Nino 300",
"board_id": "philips_nino_300",
"supported": True,
"soc": SOC_PR31700,
"operating_systems": [PALM_SIZE_PC],
"features": {
"display": True,
"touch": True,
"keyboard": True,
"battery": True,
"suspend": True,
"guest_additions": True,
"pcmcia": True,
"sound": True,
"serial": True,
},
},
{
"name": "Philips Velo 1",
"board_id": "philips_velo_1",
"supported": True,
"soc": SOC_PR31500,
"operating_systems": [WINDOWS_CE_1],
"features": {
"display": True,
"touch": True,
"keyboard": True,
"battery": True,
"suspend": True,
"guest_additions": False,
"pcmcia": True,
"network": True,
"sound": True,
"serial": True,
},
},
{
"name": "Sharp Mobilon HC-4100",
"board_id": "sharp_mobilon_hc4100",
"supported": True,
"soc": SOC_PR31700,
"operating_systems": [WINDOWS_CE_2],
"features": {
"display": True,
"touch": True,
"keyboard": True,
"battery": True,
"suspend": False,
"guest_additions": True,
"pcmcia": True,
"network": True,
"sound": True,
"serial": True,
},
},
{
"name": "Siemens P177",
"board_id": "siemens_p177",
"supported": True,
"soc": SOC_S3C2410,
"operating_systems": [WINDOWS_CE_5],
"features": {
"display": True,
"touch": True,
"network": False,
"guest_additions": True,
},
"notes": [],
},
{
"name": "SmartBook G138",
"board_id": "smartbook_g138",
"supported": True,
"soc": SOC_SA1110,
"operating_systems": [WINDOWS_CE_NET],
"features": {
"display": True,
"touch": True,
"keyboard": True,
"pcmcia": True,
"network": True,
"guest_additions": True,
"battery": False,
"mic": False,
"suspend": True,
},
},
{
"name": "Ford SYNC 2",
"board_id": "ford_sync_2",
"supported": True,
"storage": STORAGE_SEC_CONTAINER,
"soc": SOC_IMX51,
"operating_systems": [WINDOWS_CE_6],
"features": {
"display": True,
"touch": True,
"guest_additions": True,
"sound": False,
},
"notes": [
"THIS BOARD IS NOT EMULATED WELL AT ALL! All it can do is a boot to a glitching home screen and that's it",
"On the first boot, guest flashes ~2GB NAND inside device dir from .sec file. It will take some time and x2 disk space. After first boot, you can remove .sec file if you are not going to re-flash.",
"GPU has severe visual artifacts.",
"A click on screen will likely crash CERF due to missing GPU implementation",
"Guest additions are launching if re-run with complete nand.img. Sync2UI is automatically hijacked and replaced with CE Explorer. OpenVG/Sync2 UI wont render.",
],
},
{
"name": "Symbol MK500",
"board_id": "symbol_mk500",
"supported": True,
"soc": SOC_PXA270,
"operating_systems": [WINDOWS_CE_5],
"features": {
"display": True,
"touch": True,
"keyboard": False,
"sound": True,
"network": False,
"guest_additions": True,
},
},
]
DYNAMIC_NOTES = []