Skip to content

Commit e54d3f9

Browse files
committed
Game Station Partition scheme
#248
1 parent 9a7a03a commit e54d3f9

File tree

3 files changed

+32
-3
lines changed

3 files changed

+32
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ Things that needs to be done in next updates
8989
* [x] Fixed Marauder V7 screen issues
9090
* [x] Enhanced M5-PaperS3 display, using Sprites now for better drawing resolution
9191
* [x] Fixed M5Stack Cardputer ADV keyboard not adding '*' and '('
92+
* [x] Add New Partition Scheme for [Cardputer Game Station](https://github.com/geo-tp/Cardputer-Game-Station-Emulators/), allowing 4.5Mb game ROMs
9293
* [ ] Port to [M5-Paper](https://shop.m5stack.com/products/m5paper-esp32-development-kit-v1-1-960x540-4-7-eink-display-235-ppi?ref=Pirata)
9394
* [ ] Port to [Arduino Nesso N1](https://docs.arduino.cc/hardware/nesso-n1), not building
9495

src/partitioner.cpp

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,21 @@ const uint8_t uiflow2[192] PROGMEM = {
5757
0xF0, 0x4F, 0xA2, 0x1D, 0x91, 0x76, 0x30, 0x87, 0x76, 0x59, 0xCC, 0x84, 0xED, 0x69, 0x02, 0xE3
5858
};
5959

60+
const uint8_t gamestation[192] PROGMEM = {
61+
// PArtition scheme for Cardputer Gamestation with 4,5Mb of SPIFFS
62+
0xAA, 0x50, 0x01, 0x02, 0x00, 0x90, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x6E, 0x76, 0x73, 0x00,
63+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
64+
0xAA, 0x50, 0x00, 0x20, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x16, 0x00, 0x61, 0x70, 0x70, 0x30,
65+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
66+
0xAA, 0x50, 0x00, 0x10, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x20, 0x00, 0x61, 0x70, 0x70, 0x31,
67+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
68+
0xAA, 0x50, 0x01, 0x82, 0x00, 0x00, 0x37, 0x00, 0x00, 0x00, 0x48, 0x00, 0x73, 0x70, 0x69, 0x66,
69+
0x66, 0x73, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
70+
0xAA, 0x50, 0x01, 0x03, 0x00, 0x00, 0x7F, 0x00, 0x00, 0x00, 0x01, 0x00, 0x63, 0x6F, 0x72, 0x65,
71+
0x64, 0x75, 0x6D, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
72+
0xEB, 0xEB, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
73+
0x48, 0xF3, 0xAB, 0xB2, 0x54, 0x6D, 0xCB, 0x5E, 0xF2, 0x78, 0x96, 0xD4, 0xF6, 0x64, 0x3C, 0x1F
74+
};
6075
#elif defined(PART_16MB)
6176

6277
const uint8_t def_part[288] PROGMEM = {
@@ -150,10 +165,11 @@ void partitioner() {
150165

151166
// Opções de partição
152167
options = {
153-
{"Default", [&]() { partition = 0; }},
168+
{"Default", [&]() { partition = 0; }},
154169
#if defined(PART_08MB)
155-
{"Doom", [&]() { partition = 1; }},
156-
{"UiFlow2", [&]() { partition = 2; }},
170+
{"Doom", [&]() { partition = 1; }},
171+
{"UiFlow2", [&]() { partition = 2; }},
172+
{"Game Station", [&]() { partition = 3; }},
157173
#elif defined(PART_04MB)
158174
{"Orca", [&]() { partition = 1; }},
159175
#elif defined(PART_16MB)
@@ -179,6 +195,10 @@ void partitioner() {
179195
data = uiflow2;
180196
data_size = sizeof(uiflow2);
181197
break;
198+
case 3:
199+
data = gamestation;
200+
data_size = sizeof(gamestation);
201+
break;
182202
#elif defined(PART_16MB)
183203
case 1:
184204
data = uiFlow1;

support_files/custom_8Mb.csv

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,11 @@ coredump, data, coredump,0x7F0000, 0x10000,
2121
#app1, app, ota_0, 0x170000, 0x4E0000,
2222
#sys, data, fat, 0x650000, 0x100000,
2323
#vfs, data, fat, 0x750000, 0xB0000,
24+
#
25+
# Game Station, , , , ,
26+
# Name, Type, SubType, Offset, Size, Flags
27+
# nvs, data, nvs, 0x9000, 0x6000,
28+
# app0, app, test, 0x10000, 0x160000,
29+
# app1, app, ota_0, 0x170000, 0x200000,
30+
# spiffs, data, spiffs, 0x370000, 0x480000,
31+
# coredump, data, coredump, 0x7F0000, 0x10000,

0 commit comments

Comments
 (0)