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
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
|
%global _empty_manifest_terminate_build 0
Name: python-FlashGBX
Version: 3.29
Release: 1
Summary: Reads and writes Game Boy and Game Boy Advance cartridge data using the GBxCart RW by insideGadgets
License: GNU General Public License v3 (GPLv3)
URL: https://github.com/lesserkuma/FlashGBX
Source0: https://mirrors.nju.edu.cn/pypi/web/packages/de/a8/84a01a6d625fa6aac68ac36a0c147dc86cb992a29da96c1a6008f8fc4127/FlashGBX-3.29.tar.gz
BuildArch: noarch
Requires: python3-pyserial
Requires: python3-Pillow
Requires: python3-setuptools
Requires: python3-requests
Requires: python3-dateutil
Requires: python3-PySide2
Requires: python3-PySide6
%description
# FlashGBX (by Lesserkuma)
for [Windows](https://github.com/lesserkuma/FlashGBX/releases), [Linux](https://github.com/lesserkuma/FlashGBX#run-using-python-linux-macos-windows), [macOS](https://github.com/lesserkuma/FlashGBX#run-using-python-linux-macos-windows)
<img src="https://raw.githubusercontent.com/lesserkuma/FlashGBX/master/.github/01.png" alt="FlashGBX on Windows 11" width="500"><br><img src="https://raw.githubusercontent.com/lesserkuma/FlashGBX/master/.github/02.png" alt="GB Camera Album Viewer" width="500">
## Introduction
### Software features
- Backup, restore and erase save data from Game Boy and Game Boy Advance game cartridges including Real Time Clock registers
- Backup ROM data from Game Boy and Game Boy Advance game cartridges
- Write new ROMs to a wide variety of Game Boy and Game Boy Advance flash cartridges
- Many reproduction cartridges and flash cartridges can be auto-detected
- A flash chip query (including Common Flash Interface information) can be performed for flash cartridges
- Decode and extract Game Boy Camera photos from save data
- Generate ROM dump reports for game preservation purposes
- Update firmware of most insideGadgets GBxCart RW devices
- Delta flashing support, useful for development by writing only differences between two ROMs (if named `rom.gba` and `rom.delta.gba`)
### Compatible cartridge reader/writer hardware
- [insideGadgets GBxCart RW](https://www.gbxcart.com/) (tested with v1.3 and v1.4)
## Installing and running
### Windows Packages
Available in the GitHub [Releases](https://github.com/lesserkuma/FlashGBX/releases) section:
* Windows Setup: An installer that will add the application to the start menu and optionally create a desktop icon
* Windows Portable: Have everything in one place including the config files
These work for installing fresh and upgrading from an older version.
### Run using Python (Linux, macOS, Windows)
#### Installing
1. Download and install [Python](https://www.python.org/downloads/) (version 3.7 or newer)
2. Open a Terminal or Command Prompt window
3. Install FlashGBX with this command:<br>`pip3 install "FlashGBX[qt6]"`
* If installation fails, use this command instead:<br>`pip3 install "FlashGBX[qt5]"`
* If installation still fails, you can install the minimal version (command line interface) with this command:<br>`pip3 install FlashGBX`
* Pre-made Linux packages and instructions for select distributions are available [here](https://github.com/JJ-Fox/FlashGBX-Linux-builds/releases/latest).
#### Running
Use this command in a Terminal or Command Prompt window to launch the installed FlashGBX application:
`python3 -m FlashGBX`
*FlashGBX should work on pretty much any operating system that supports Qt-GUI applications built using [Python](https://www.python.org/downloads/) with [PySide2](https://pypi.org/project/PySide2/) or [PySide6](https://pypi.org/project/PySide6/), [pyserial](https://pypi.org/project/pyserial/), [Pillow](https://pypi.org/project/Pillow/), [setuptools](https://pypi.org/project/setuptools/), [requests](https://pypi.org/project/requests/) and [python-dateutil](https://pypi.org/project/python-dateutil/) packages. To run FlashGBX in portable mode without installing, you can also download the source code archive and call `python3 run.py` after installing the prerequisites yourself.*
*Note: On Linux systems, the `brltty` module may render GBxCart RW devices non-accessible. See the troubleshooting section for details.*
#### Upgrading from an older version
1. Open a Terminal or Command Prompt window
2. Enter this command:<br>`pip3 install -U FlashGBX`
## Cartridge Compatibility
### Supported cartridge memory mappers
- Game Boy
- All cartridges without memory mapping
- MBC1
- MBC2
- MBC3
- MBC30
- MBC5
- MBC6
- MBC7
- MBC1M
- MMM01
- MAC-GBD (Game Boy Camera)
- G-MMC1 (GB Memory)
- M161
- HuC-1
- HuC-3
- TAMA5
- Unlicensed 256M Mapper
- Unlicensed Wisdom Tree Mapper
- Unlicensed Xploder GB Mapper
- Unlicensed Sachen Mapper
- Unlicensed Datel Orbit V2 Mapper
- Game Boy Advance
- All cartridges without memory mapping
- 8M FLASH DACS
- 3D Memory (GBA Video)
- Unlicensed 2G Mapper
### Currently supported flash cartridges
- Game Boy
- 29LV Series Flash BOY with 29LV160DB
- BennVenn MBC3000 RTC cart
- BLAZE Xploder GB
- BUNG Doctor GB Card 64M
- Catskull 32k Gameboy Flash Cart
- DIY cart with AM29F010
- DIY cart with AM29F016/29F016
- DIY cart with AM29F032
- DIY cart with AM29F040
- DIY cart with AM29F080
- DIY cart with AT49F040
- DIY cart with HY29F800
- DIY cart with M29F032D
- DIY cart with MBM29F033C
- DIY cart with MX29LV640
- DIY cart with SST39SF040
- DMG-MBC5-32M-FLASH Development Cartridge, E201264
- Ferrante Crafts cart 32 KB
- Ferrante Crafts cart 64 KB
- Ferrante Crafts cart 512 KB
- GB-CART32K-A with SST39SF020A
- GB Smart 32M
- HDR Game Boy Camera Flashcart
- insideGadgets 32 KB
- insideGadgets 128 KB
- insideGadgets 256 KB
- insideGadgets 512 KB
- insideGadgets 1 MB, 128 KB SRAM
- insideGadgets 2 MB, 128 KB SRAM/32 KB FRAM
- insideGadgets 2 MB, 32 KB FRAM, v1.0
- insideGadgets 4 MB, 128 KB SRAM/FRAM
- insideGadgets 4 MB, 32 KB FRAM, MBC3+RTC
- insideGadgets 4 MB (2× 2 MB), 32 KB FRAM, MBC5
- Mr Flash 64M
- Squareboi 4 MB (2× 2 MB)
- Game Boy Advance
- Action Replay Ultimate Codes (with SST39VF800A)
- Development AGB Cartridge 64M Flash S, E201843
- Development AGB Cartridge 128M Flash S, E201850
- Development AGB Cartridge 256M Flash S, E201868
- Flash Advance Pro 256M
- Flash2Advance 128M (with 2× 28F640J3A120)
- Flash2Advance 256M (with 2× 28F128J3A150)
- Flash2Advance Ultra 2G (with 4× 4400L0Y0Q0)
- Flash2Advance Ultra 64M (with 2× 28F320C3B)
- Flash2Advance Ultra 256M (with 8× 3204C3B100)
- Flash Advance Card 64M (with 28F640J3A120)
- insideGadgets 16 MB, 64K EEPROM with Solar Sensor and RTC options
- insideGadgets 32 MB, 1M FLASH with RTC option
- insideGadgets 32 MB, 512K FLASH
- insideGadgets 32 MB, 4K/64K EEPROM
- insideGadgets 32 MB, 256K FRAM with Rumble option
### Currently supported and tested reproduction cartridges
- Game Boy
- 2006_TSOP_64BALL_QFP48 with AL016J55FFAR2
- 256M29EWH (no PCB text)
- 36VF3204 and ALTERA CPLD (no PCB text)
- DMG-DHCN-20 with MX29LV320ET
- DMG-GBRW-20 with 29LV320ETMI-70G
- DRV with AM29LV160DB and ALTERA CPLD
- DRV with AM29LV160DT and ALTERA CPLD
- ES29LV160_DRV with 29DL32TF-70
- GB-M968 with 29LV160DB
- GB-M968 with M29W160EB
- GB-M968 with MX29LV320ABTC
- S29GL032N90T and ALTERA CPLD configured for MBC1 or MBC5
- SD007_48BALL_64M with GL032M11BAIR4
- SD007_48BALL_64M with M29W640
- SD007_48BALL_64M_V2 with GL032M11BAIR4
- SD007_48BALL_64M_V2 with M29W160ET
- SD007_48BALL_64M_V3 with 29DL161TD-90
- SD007_48BALL_64M_V5 with 36VF3203
- SD007_48BALL_64M_V5 with 36VF3204
- SD007_48BALL_64M_V6 with 36VF3204
- SD007_48BALL_64M_V6 with 29DL163BD-90
- SD007_48BALL_64M_V8 with M29W160ET
- SD007_48BALL_SOP28 with M29W320ET
- SD007_BGA48_71TV_T28_DEEP with M29W640
- SD007_BV5 with 29LV160TE-70PFTN
- SD007_BV5_DRV with M29W320DT
- SD007_BV5_DRV with S29GL032M90TFIR4
- SD007_BV5_V2 with HY29LV160TT
- SD007_BV5_V2 with MX29LV320BTC
- SD007_BV5_V3 with 29LV160BE-90PFTN
- SD007_BV5_V3 with HY29LV160BT-70
- SD007_BV5_V3 with AM29LV160MB
- SD007_K8D3216_32M with MX29LV160CT
- SD007_T40_64BALL_S71_TV_TS28 with TC58FVB016FT-85
- SD007_T40_64BALL_SOJ28 with 29LV016T
- SD007_T40_64BALL_TSOP28 with 29LV016T
- SD007_T40_64BALL_TSOP28 with TC58FVB016FT-85¹
- SD007_TSOP_29LV017D with L017D70VC
- SD007_TSOP_29LV017D with S29GL032M90T
- SD007_TSOP_48BALL with 36VF3204
- SD007_TSOP_48BALL with AM29LV160DB
- SD007_TSOP_48BALL with K8D3216UTC
- SD007_TSOP_48BALL with M29W160ET
- SD007_TSOP_48BALL with L160DB12VI
- SD007_TSOP_48BALL_V9 with 29LV160CBTC-70G
- SD007_TSOP_48BALL_V9 with 32M29EWB
- SD007_TSOP_48BALL_V10 with 29DL164BE-70P
- SD007_TSOP_48BALL_V10 with 29DL32TF-70
- SD007_TSOP_48BALL_V10 with 29LV320CTXEI
- SD007_TSOP_48BALL_V10 with GL032M10BFIR3
- SD007_TSOP_48BALL_V10 with M29W320DT
- SD007_TSOP_64BALL_SOJ28 with 29DL164BE-70P
- SD007_TSOP_64BALL_SOJ28 with unlabeled flash chip
- SD007_TSOP_64BALL_SOP28 with EN29LV160AB-70TCP
- SD007_TSOP_64BALL_SOP28 with unlabeled flash chip
- SD007_TSOP_64BALL_SOP28_V2 with unlabeled flash chip
- SD008-6810-512S with MSP55LV512
- SD008-6810-V4 with MX29GL256EL
- SD008-6810-V5 with MX29CL256FH
- Game Boy Advance
- 0121 with 0121M0Y0BE
- 100BS6600_48BALL_V4 with 6600M0U0BE
- 100SOP with MSP55LV100S
- 2006_TSOP_64BALL_6106 with W29GL128SH9B
- 28F256L03B-DRV with 256L30B
- 29LV128DBT2C-90Q and ALTERA CPLD
- 36L0R8-39VF512 with M36L0R8060B
- 36L0R8-39VF512 with M36L0R8060T
- 4000L0ZBQ0 DRV with 3000L0YBQ0
- 4050M0Y0Q0-39VF512 with 4050M0Y0Q0
- 4050_4400_4000_4350_36L0R_V5 with 4050L0YTQ2
- 4050_4400_4000_4350_36L0R_V5 with M36L0R7050T
- 4050_4400_4000_4350_36L0R_V5 with M36L0T8060T
- 4050_4400_4000_4350_36L0R_V5 with M36L0R8060T
- 4350Q2 with 4050V0YBQ1
- 4350Q2 with 4350LLYBQ2
- 4400 with 4400L0ZDQ0
- 4444-39VF512 with 4444LLZBBO
- 4455_4400_4000_4350_36L0R_V3 with M36L0R7050T
- AA1030_TSOP88BALL with M36W0R603
- AGB-E05-01 with GL128S
- AGB-E05-01 with MSP55LV100G
- AGB-E05-01 with MSP55LV128M
- AGB-E05-01 with MX29GL128FHT2I-90G
- AGB-E05-01 with S29GL064
- AGB-E05-02 with JS28F128
- AGB-E05-02 with M29W128FH
- AGB-E05-02 with M29W128GH
- AGB-E05-02 with S29GL032
- AGB-E05-03H with M29W128GH
- AGB-E05-06L with 29LV128DBT2C-90Q
- AGB-E08-09 with 29LV128DTMC-90Q
- AGB-E20-30 with M29W128GH
- AGB-E20-30 with S29GL256N10TFI01
- AGB-SD-E05 with MSP55LV128
- B100 with MX29LV640ET
- B104 with MSP55LV128
- B11 with 26L6420MC-90
- B54 with MX29LV320ET
- BX2006_0106_NEW with S29GL128N10TFI01
- BX2006_TSOP_64BALL with GL128S
- BX2006_TSOP_64BALL with GL256S
- BX2006_TSOPBGA_0106 with M29W640
- BX2006_TSOPBGA_0106 with K8D6316UTM-PI07
- BX2006_TSOPBGA_6108 with M29W640
- DV15 with MSP55LV100G
- F864-3 with M36L0R7050B
- GA-07 with unlabeled flash chip
- GE28F128W30 with 128W30B0
- M5M29G130AN (no PCB text)
- M6MGJ927 (no PCB text)
- MSP54LV512 (no PCB text)
- MX29GL128EHT2I and ALTERA CPLD
- SUN100S_MSP54XXX with MSP54LV100
Many different reproduction cartridges share their flash chip command set, so even if yours is not on this list, it may still work fine or even be auto-detected as another one. Support for more cartridges can also be added by creating external config files that include the necessary flash chip commands.
*¹ = Cannot always be auto-detected, select cartridge type manually*
### Troubleshooting
* If something doesn’t work as expected, first try to clean the game cartridge contacts (best with IPA 99.9%+ on a cotton swab) and reconnect the device. An unstable cartridge connection is the most common reason for read or write errors.
* If your Game Boy Camera cartridge is not reading, make sure it’s connected the correct way around; screws go up.
* For save data backup/restore on Game Boy Advance reproduction cartridges, depending on how it was built, you may have to manually select the save type for it to work properly. However, the save data backup/restore feature may not work on certain reproduction cartridges with batteryless-patched ROMs. As those cartridges use the same flash chip for both ROM and save data storage, a full ROM backup will usually include the save data. Also, when flashing a new unpatched ROM to a cartridge like this, the game may not be able to save progress without soldering in a battery. See the [Flash Cart DB website](https://flashcartdb.com/index.php/Clone_and_Repo_Cart_Problems) for more information.
* Depending on your system configuration, you may have to use `pip` and `python` commands instead of `pip3` and `python3`.
* On Linux systems, you may run into a *Permission Error* problem when trying to connect to USB devices without *sudo* privileges. To grant yourself the necessary permissions temporarily, you can run `sudo chmod 0666 /dev/ttyUSB0` (replace with actual device path) before running the app. For a permanent solution, add yourself to the usergroup that has access to serial devices by default (e.g. *dialout* on Debian-based distros; `sudo adduser $USER dialout`) and then reboot the system.
* On some Linux systems, you may need the *XCB Xinerama package* if you see an error regarding failed Qt platform plugin initialization. You can install it with `sudo apt install libxcb-xinerama0` etc. It was reported that this additional command is required on MX Linux: `sudo ln -s /usr/lib/x86_64-linux-gnu/libxcb-util.so.0.0.0 /usr/lib/x86_64-linux-gnu/libxcb-util.so.1`
* On some Linux systems like Fedora, you may need to install the `python3-pillow-qt` package manually in order for the GUI mode to work.
* On some Linux systems you may see the message “No devices found.” even though you’re using a USB cable capable of data transfers. This may be caused by a module called `brltty` (a driver for refreshable braille displays) that is erroneously interfering and taking over control of any connected USB device that uses the CH340/341 chipset. The solution would be to uninstall or blacklist the `brltty` driver and then reboot the system.
* If you’re using macOS version 10.13 or older, there may be no driver for the *insideGadgets GBxCart RW* device installed on your system. You can either upgrade your macOS version to 10.14+ or manually install a driver which is available [here](https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver).
* Note that FlashGBX is not designed to be used with feature-stripped clone hardware such as the license-violating “FLASH BOY” series devices. These will not work as intended and have a considerable risk of causing damage as seen [here](https://flashboycyclone.online/).
## Miscellaneous
* To use your own frame around extracted Game Boy Camera pictures, place a file called `pc_frame.png` (must be at least 160×144 pixels) into the configuration directory. (GUI mode only)
## Thanks
The author would like to thank the following very kind people for their help, contributions or documentation (in alphabetical order):
2358, 90sFlav, AcoVanConis, AdmirtheSableye, AlexiG, ALXCO-Hardware, AndehX, antPL, bbsan, BennVenn, ccs21, ClassicOldSong, CodyWick13, Corborg, Cristóbal, crizzlycruz, Därk, Davidish, DevDavisNunez, Diddy_Kong, djedditt, Dr-InSide, dyf2007, easthighNerd, EchelonPrime, edo999, Ell, EmperorOfTigers, endrift, Erba Verde, ethanstrax, eveningmoose, Falknör, FerrantePescara, frarees, Frost Clock, gboh, gekkio, Godan, Grender, HDR, Herax, Hiccup, hiks, howie0210, iamevn, Icesythe7, ide, Jayro, Jenetrix, JFox, joyrider3774, JS7457, julgr, Kaede, KOOORAY, kscheel, kyokohunter, litlemoran, LovelyA72, Luca DS, LucentW, manuelcm1, marv17, Merkin, metroid-maniac, Mr_V, orangeglo, paarongiroux, Paradoxical, Rairch, Raphaël BOICHOT, redalchemy, RetroGorek, RevZ, s1cp, Satumox, Sgt.DoudouMiel, SH, Shinichi999, sillyhatday, Sithdown, skite2001, Smelly-Ghost, Stitch, Super Maker, t5b6_de, Tauwasser, Timville, twitnic, velipso, Veund, voltagex, Voultar, wickawack, Wkr, x7l7j8cc, xactoes, yosoo, Zeii, Zelante, zvxr
## DISCLAIMER
This software is being developed by Lesserkuma as a hobby project. There is no direct afflilation with insideGadgets or Nintendo. This software is provided as-is and the developer is not responsible for any damage that is caused by the use of it. Use at your own risk!
%package -n python3-FlashGBX
Summary: Reads and writes Game Boy and Game Boy Advance cartridge data using the GBxCart RW by insideGadgets
Provides: python-FlashGBX
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-FlashGBX
# FlashGBX (by Lesserkuma)
for [Windows](https://github.com/lesserkuma/FlashGBX/releases), [Linux](https://github.com/lesserkuma/FlashGBX#run-using-python-linux-macos-windows), [macOS](https://github.com/lesserkuma/FlashGBX#run-using-python-linux-macos-windows)
<img src="https://raw.githubusercontent.com/lesserkuma/FlashGBX/master/.github/01.png" alt="FlashGBX on Windows 11" width="500"><br><img src="https://raw.githubusercontent.com/lesserkuma/FlashGBX/master/.github/02.png" alt="GB Camera Album Viewer" width="500">
## Introduction
### Software features
- Backup, restore and erase save data from Game Boy and Game Boy Advance game cartridges including Real Time Clock registers
- Backup ROM data from Game Boy and Game Boy Advance game cartridges
- Write new ROMs to a wide variety of Game Boy and Game Boy Advance flash cartridges
- Many reproduction cartridges and flash cartridges can be auto-detected
- A flash chip query (including Common Flash Interface information) can be performed for flash cartridges
- Decode and extract Game Boy Camera photos from save data
- Generate ROM dump reports for game preservation purposes
- Update firmware of most insideGadgets GBxCart RW devices
- Delta flashing support, useful for development by writing only differences between two ROMs (if named `rom.gba` and `rom.delta.gba`)
### Compatible cartridge reader/writer hardware
- [insideGadgets GBxCart RW](https://www.gbxcart.com/) (tested with v1.3 and v1.4)
## Installing and running
### Windows Packages
Available in the GitHub [Releases](https://github.com/lesserkuma/FlashGBX/releases) section:
* Windows Setup: An installer that will add the application to the start menu and optionally create a desktop icon
* Windows Portable: Have everything in one place including the config files
These work for installing fresh and upgrading from an older version.
### Run using Python (Linux, macOS, Windows)
#### Installing
1. Download and install [Python](https://www.python.org/downloads/) (version 3.7 or newer)
2. Open a Terminal or Command Prompt window
3. Install FlashGBX with this command:<br>`pip3 install "FlashGBX[qt6]"`
* If installation fails, use this command instead:<br>`pip3 install "FlashGBX[qt5]"`
* If installation still fails, you can install the minimal version (command line interface) with this command:<br>`pip3 install FlashGBX`
* Pre-made Linux packages and instructions for select distributions are available [here](https://github.com/JJ-Fox/FlashGBX-Linux-builds/releases/latest).
#### Running
Use this command in a Terminal or Command Prompt window to launch the installed FlashGBX application:
`python3 -m FlashGBX`
*FlashGBX should work on pretty much any operating system that supports Qt-GUI applications built using [Python](https://www.python.org/downloads/) with [PySide2](https://pypi.org/project/PySide2/) or [PySide6](https://pypi.org/project/PySide6/), [pyserial](https://pypi.org/project/pyserial/), [Pillow](https://pypi.org/project/Pillow/), [setuptools](https://pypi.org/project/setuptools/), [requests](https://pypi.org/project/requests/) and [python-dateutil](https://pypi.org/project/python-dateutil/) packages. To run FlashGBX in portable mode without installing, you can also download the source code archive and call `python3 run.py` after installing the prerequisites yourself.*
*Note: On Linux systems, the `brltty` module may render GBxCart RW devices non-accessible. See the troubleshooting section for details.*
#### Upgrading from an older version
1. Open a Terminal or Command Prompt window
2. Enter this command:<br>`pip3 install -U FlashGBX`
## Cartridge Compatibility
### Supported cartridge memory mappers
- Game Boy
- All cartridges without memory mapping
- MBC1
- MBC2
- MBC3
- MBC30
- MBC5
- MBC6
- MBC7
- MBC1M
- MMM01
- MAC-GBD (Game Boy Camera)
- G-MMC1 (GB Memory)
- M161
- HuC-1
- HuC-3
- TAMA5
- Unlicensed 256M Mapper
- Unlicensed Wisdom Tree Mapper
- Unlicensed Xploder GB Mapper
- Unlicensed Sachen Mapper
- Unlicensed Datel Orbit V2 Mapper
- Game Boy Advance
- All cartridges without memory mapping
- 8M FLASH DACS
- 3D Memory (GBA Video)
- Unlicensed 2G Mapper
### Currently supported flash cartridges
- Game Boy
- 29LV Series Flash BOY with 29LV160DB
- BennVenn MBC3000 RTC cart
- BLAZE Xploder GB
- BUNG Doctor GB Card 64M
- Catskull 32k Gameboy Flash Cart
- DIY cart with AM29F010
- DIY cart with AM29F016/29F016
- DIY cart with AM29F032
- DIY cart with AM29F040
- DIY cart with AM29F080
- DIY cart with AT49F040
- DIY cart with HY29F800
- DIY cart with M29F032D
- DIY cart with MBM29F033C
- DIY cart with MX29LV640
- DIY cart with SST39SF040
- DMG-MBC5-32M-FLASH Development Cartridge, E201264
- Ferrante Crafts cart 32 KB
- Ferrante Crafts cart 64 KB
- Ferrante Crafts cart 512 KB
- GB-CART32K-A with SST39SF020A
- GB Smart 32M
- HDR Game Boy Camera Flashcart
- insideGadgets 32 KB
- insideGadgets 128 KB
- insideGadgets 256 KB
- insideGadgets 512 KB
- insideGadgets 1 MB, 128 KB SRAM
- insideGadgets 2 MB, 128 KB SRAM/32 KB FRAM
- insideGadgets 2 MB, 32 KB FRAM, v1.0
- insideGadgets 4 MB, 128 KB SRAM/FRAM
- insideGadgets 4 MB, 32 KB FRAM, MBC3+RTC
- insideGadgets 4 MB (2× 2 MB), 32 KB FRAM, MBC5
- Mr Flash 64M
- Squareboi 4 MB (2× 2 MB)
- Game Boy Advance
- Action Replay Ultimate Codes (with SST39VF800A)
- Development AGB Cartridge 64M Flash S, E201843
- Development AGB Cartridge 128M Flash S, E201850
- Development AGB Cartridge 256M Flash S, E201868
- Flash Advance Pro 256M
- Flash2Advance 128M (with 2× 28F640J3A120)
- Flash2Advance 256M (with 2× 28F128J3A150)
- Flash2Advance Ultra 2G (with 4× 4400L0Y0Q0)
- Flash2Advance Ultra 64M (with 2× 28F320C3B)
- Flash2Advance Ultra 256M (with 8× 3204C3B100)
- Flash Advance Card 64M (with 28F640J3A120)
- insideGadgets 16 MB, 64K EEPROM with Solar Sensor and RTC options
- insideGadgets 32 MB, 1M FLASH with RTC option
- insideGadgets 32 MB, 512K FLASH
- insideGadgets 32 MB, 4K/64K EEPROM
- insideGadgets 32 MB, 256K FRAM with Rumble option
### Currently supported and tested reproduction cartridges
- Game Boy
- 2006_TSOP_64BALL_QFP48 with AL016J55FFAR2
- 256M29EWH (no PCB text)
- 36VF3204 and ALTERA CPLD (no PCB text)
- DMG-DHCN-20 with MX29LV320ET
- DMG-GBRW-20 with 29LV320ETMI-70G
- DRV with AM29LV160DB and ALTERA CPLD
- DRV with AM29LV160DT and ALTERA CPLD
- ES29LV160_DRV with 29DL32TF-70
- GB-M968 with 29LV160DB
- GB-M968 with M29W160EB
- GB-M968 with MX29LV320ABTC
- S29GL032N90T and ALTERA CPLD configured for MBC1 or MBC5
- SD007_48BALL_64M with GL032M11BAIR4
- SD007_48BALL_64M with M29W640
- SD007_48BALL_64M_V2 with GL032M11BAIR4
- SD007_48BALL_64M_V2 with M29W160ET
- SD007_48BALL_64M_V3 with 29DL161TD-90
- SD007_48BALL_64M_V5 with 36VF3203
- SD007_48BALL_64M_V5 with 36VF3204
- SD007_48BALL_64M_V6 with 36VF3204
- SD007_48BALL_64M_V6 with 29DL163BD-90
- SD007_48BALL_64M_V8 with M29W160ET
- SD007_48BALL_SOP28 with M29W320ET
- SD007_BGA48_71TV_T28_DEEP with M29W640
- SD007_BV5 with 29LV160TE-70PFTN
- SD007_BV5_DRV with M29W320DT
- SD007_BV5_DRV with S29GL032M90TFIR4
- SD007_BV5_V2 with HY29LV160TT
- SD007_BV5_V2 with MX29LV320BTC
- SD007_BV5_V3 with 29LV160BE-90PFTN
- SD007_BV5_V3 with HY29LV160BT-70
- SD007_BV5_V3 with AM29LV160MB
- SD007_K8D3216_32M with MX29LV160CT
- SD007_T40_64BALL_S71_TV_TS28 with TC58FVB016FT-85
- SD007_T40_64BALL_SOJ28 with 29LV016T
- SD007_T40_64BALL_TSOP28 with 29LV016T
- SD007_T40_64BALL_TSOP28 with TC58FVB016FT-85¹
- SD007_TSOP_29LV017D with L017D70VC
- SD007_TSOP_29LV017D with S29GL032M90T
- SD007_TSOP_48BALL with 36VF3204
- SD007_TSOP_48BALL with AM29LV160DB
- SD007_TSOP_48BALL with K8D3216UTC
- SD007_TSOP_48BALL with M29W160ET
- SD007_TSOP_48BALL with L160DB12VI
- SD007_TSOP_48BALL_V9 with 29LV160CBTC-70G
- SD007_TSOP_48BALL_V9 with 32M29EWB
- SD007_TSOP_48BALL_V10 with 29DL164BE-70P
- SD007_TSOP_48BALL_V10 with 29DL32TF-70
- SD007_TSOP_48BALL_V10 with 29LV320CTXEI
- SD007_TSOP_48BALL_V10 with GL032M10BFIR3
- SD007_TSOP_48BALL_V10 with M29W320DT
- SD007_TSOP_64BALL_SOJ28 with 29DL164BE-70P
- SD007_TSOP_64BALL_SOJ28 with unlabeled flash chip
- SD007_TSOP_64BALL_SOP28 with EN29LV160AB-70TCP
- SD007_TSOP_64BALL_SOP28 with unlabeled flash chip
- SD007_TSOP_64BALL_SOP28_V2 with unlabeled flash chip
- SD008-6810-512S with MSP55LV512
- SD008-6810-V4 with MX29GL256EL
- SD008-6810-V5 with MX29CL256FH
- Game Boy Advance
- 0121 with 0121M0Y0BE
- 100BS6600_48BALL_V4 with 6600M0U0BE
- 100SOP with MSP55LV100S
- 2006_TSOP_64BALL_6106 with W29GL128SH9B
- 28F256L03B-DRV with 256L30B
- 29LV128DBT2C-90Q and ALTERA CPLD
- 36L0R8-39VF512 with M36L0R8060B
- 36L0R8-39VF512 with M36L0R8060T
- 4000L0ZBQ0 DRV with 3000L0YBQ0
- 4050M0Y0Q0-39VF512 with 4050M0Y0Q0
- 4050_4400_4000_4350_36L0R_V5 with 4050L0YTQ2
- 4050_4400_4000_4350_36L0R_V5 with M36L0R7050T
- 4050_4400_4000_4350_36L0R_V5 with M36L0T8060T
- 4050_4400_4000_4350_36L0R_V5 with M36L0R8060T
- 4350Q2 with 4050V0YBQ1
- 4350Q2 with 4350LLYBQ2
- 4400 with 4400L0ZDQ0
- 4444-39VF512 with 4444LLZBBO
- 4455_4400_4000_4350_36L0R_V3 with M36L0R7050T
- AA1030_TSOP88BALL with M36W0R603
- AGB-E05-01 with GL128S
- AGB-E05-01 with MSP55LV100G
- AGB-E05-01 with MSP55LV128M
- AGB-E05-01 with MX29GL128FHT2I-90G
- AGB-E05-01 with S29GL064
- AGB-E05-02 with JS28F128
- AGB-E05-02 with M29W128FH
- AGB-E05-02 with M29W128GH
- AGB-E05-02 with S29GL032
- AGB-E05-03H with M29W128GH
- AGB-E05-06L with 29LV128DBT2C-90Q
- AGB-E08-09 with 29LV128DTMC-90Q
- AGB-E20-30 with M29W128GH
- AGB-E20-30 with S29GL256N10TFI01
- AGB-SD-E05 with MSP55LV128
- B100 with MX29LV640ET
- B104 with MSP55LV128
- B11 with 26L6420MC-90
- B54 with MX29LV320ET
- BX2006_0106_NEW with S29GL128N10TFI01
- BX2006_TSOP_64BALL with GL128S
- BX2006_TSOP_64BALL with GL256S
- BX2006_TSOPBGA_0106 with M29W640
- BX2006_TSOPBGA_0106 with K8D6316UTM-PI07
- BX2006_TSOPBGA_6108 with M29W640
- DV15 with MSP55LV100G
- F864-3 with M36L0R7050B
- GA-07 with unlabeled flash chip
- GE28F128W30 with 128W30B0
- M5M29G130AN (no PCB text)
- M6MGJ927 (no PCB text)
- MSP54LV512 (no PCB text)
- MX29GL128EHT2I and ALTERA CPLD
- SUN100S_MSP54XXX with MSP54LV100
Many different reproduction cartridges share their flash chip command set, so even if yours is not on this list, it may still work fine or even be auto-detected as another one. Support for more cartridges can also be added by creating external config files that include the necessary flash chip commands.
*¹ = Cannot always be auto-detected, select cartridge type manually*
### Troubleshooting
* If something doesn’t work as expected, first try to clean the game cartridge contacts (best with IPA 99.9%+ on a cotton swab) and reconnect the device. An unstable cartridge connection is the most common reason for read or write errors.
* If your Game Boy Camera cartridge is not reading, make sure it’s connected the correct way around; screws go up.
* For save data backup/restore on Game Boy Advance reproduction cartridges, depending on how it was built, you may have to manually select the save type for it to work properly. However, the save data backup/restore feature may not work on certain reproduction cartridges with batteryless-patched ROMs. As those cartridges use the same flash chip for both ROM and save data storage, a full ROM backup will usually include the save data. Also, when flashing a new unpatched ROM to a cartridge like this, the game may not be able to save progress without soldering in a battery. See the [Flash Cart DB website](https://flashcartdb.com/index.php/Clone_and_Repo_Cart_Problems) for more information.
* Depending on your system configuration, you may have to use `pip` and `python` commands instead of `pip3` and `python3`.
* On Linux systems, you may run into a *Permission Error* problem when trying to connect to USB devices without *sudo* privileges. To grant yourself the necessary permissions temporarily, you can run `sudo chmod 0666 /dev/ttyUSB0` (replace with actual device path) before running the app. For a permanent solution, add yourself to the usergroup that has access to serial devices by default (e.g. *dialout* on Debian-based distros; `sudo adduser $USER dialout`) and then reboot the system.
* On some Linux systems, you may need the *XCB Xinerama package* if you see an error regarding failed Qt platform plugin initialization. You can install it with `sudo apt install libxcb-xinerama0` etc. It was reported that this additional command is required on MX Linux: `sudo ln -s /usr/lib/x86_64-linux-gnu/libxcb-util.so.0.0.0 /usr/lib/x86_64-linux-gnu/libxcb-util.so.1`
* On some Linux systems like Fedora, you may need to install the `python3-pillow-qt` package manually in order for the GUI mode to work.
* On some Linux systems you may see the message “No devices found.” even though you’re using a USB cable capable of data transfers. This may be caused by a module called `brltty` (a driver for refreshable braille displays) that is erroneously interfering and taking over control of any connected USB device that uses the CH340/341 chipset. The solution would be to uninstall or blacklist the `brltty` driver and then reboot the system.
* If you’re using macOS version 10.13 or older, there may be no driver for the *insideGadgets GBxCart RW* device installed on your system. You can either upgrade your macOS version to 10.14+ or manually install a driver which is available [here](https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver).
* Note that FlashGBX is not designed to be used with feature-stripped clone hardware such as the license-violating “FLASH BOY” series devices. These will not work as intended and have a considerable risk of causing damage as seen [here](https://flashboycyclone.online/).
## Miscellaneous
* To use your own frame around extracted Game Boy Camera pictures, place a file called `pc_frame.png` (must be at least 160×144 pixels) into the configuration directory. (GUI mode only)
## Thanks
The author would like to thank the following very kind people for their help, contributions or documentation (in alphabetical order):
2358, 90sFlav, AcoVanConis, AdmirtheSableye, AlexiG, ALXCO-Hardware, AndehX, antPL, bbsan, BennVenn, ccs21, ClassicOldSong, CodyWick13, Corborg, Cristóbal, crizzlycruz, Därk, Davidish, DevDavisNunez, Diddy_Kong, djedditt, Dr-InSide, dyf2007, easthighNerd, EchelonPrime, edo999, Ell, EmperorOfTigers, endrift, Erba Verde, ethanstrax, eveningmoose, Falknör, FerrantePescara, frarees, Frost Clock, gboh, gekkio, Godan, Grender, HDR, Herax, Hiccup, hiks, howie0210, iamevn, Icesythe7, ide, Jayro, Jenetrix, JFox, joyrider3774, JS7457, julgr, Kaede, KOOORAY, kscheel, kyokohunter, litlemoran, LovelyA72, Luca DS, LucentW, manuelcm1, marv17, Merkin, metroid-maniac, Mr_V, orangeglo, paarongiroux, Paradoxical, Rairch, Raphaël BOICHOT, redalchemy, RetroGorek, RevZ, s1cp, Satumox, Sgt.DoudouMiel, SH, Shinichi999, sillyhatday, Sithdown, skite2001, Smelly-Ghost, Stitch, Super Maker, t5b6_de, Tauwasser, Timville, twitnic, velipso, Veund, voltagex, Voultar, wickawack, Wkr, x7l7j8cc, xactoes, yosoo, Zeii, Zelante, zvxr
## DISCLAIMER
This software is being developed by Lesserkuma as a hobby project. There is no direct afflilation with insideGadgets or Nintendo. This software is provided as-is and the developer is not responsible for any damage that is caused by the use of it. Use at your own risk!
%package help
Summary: Development documents and examples for FlashGBX
Provides: python3-FlashGBX-doc
%description help
# FlashGBX (by Lesserkuma)
for [Windows](https://github.com/lesserkuma/FlashGBX/releases), [Linux](https://github.com/lesserkuma/FlashGBX#run-using-python-linux-macos-windows), [macOS](https://github.com/lesserkuma/FlashGBX#run-using-python-linux-macos-windows)
<img src="https://raw.githubusercontent.com/lesserkuma/FlashGBX/master/.github/01.png" alt="FlashGBX on Windows 11" width="500"><br><img src="https://raw.githubusercontent.com/lesserkuma/FlashGBX/master/.github/02.png" alt="GB Camera Album Viewer" width="500">
## Introduction
### Software features
- Backup, restore and erase save data from Game Boy and Game Boy Advance game cartridges including Real Time Clock registers
- Backup ROM data from Game Boy and Game Boy Advance game cartridges
- Write new ROMs to a wide variety of Game Boy and Game Boy Advance flash cartridges
- Many reproduction cartridges and flash cartridges can be auto-detected
- A flash chip query (including Common Flash Interface information) can be performed for flash cartridges
- Decode and extract Game Boy Camera photos from save data
- Generate ROM dump reports for game preservation purposes
- Update firmware of most insideGadgets GBxCart RW devices
- Delta flashing support, useful for development by writing only differences between two ROMs (if named `rom.gba` and `rom.delta.gba`)
### Compatible cartridge reader/writer hardware
- [insideGadgets GBxCart RW](https://www.gbxcart.com/) (tested with v1.3 and v1.4)
## Installing and running
### Windows Packages
Available in the GitHub [Releases](https://github.com/lesserkuma/FlashGBX/releases) section:
* Windows Setup: An installer that will add the application to the start menu and optionally create a desktop icon
* Windows Portable: Have everything in one place including the config files
These work for installing fresh and upgrading from an older version.
### Run using Python (Linux, macOS, Windows)
#### Installing
1. Download and install [Python](https://www.python.org/downloads/) (version 3.7 or newer)
2. Open a Terminal or Command Prompt window
3. Install FlashGBX with this command:<br>`pip3 install "FlashGBX[qt6]"`
* If installation fails, use this command instead:<br>`pip3 install "FlashGBX[qt5]"`
* If installation still fails, you can install the minimal version (command line interface) with this command:<br>`pip3 install FlashGBX`
* Pre-made Linux packages and instructions for select distributions are available [here](https://github.com/JJ-Fox/FlashGBX-Linux-builds/releases/latest).
#### Running
Use this command in a Terminal or Command Prompt window to launch the installed FlashGBX application:
`python3 -m FlashGBX`
*FlashGBX should work on pretty much any operating system that supports Qt-GUI applications built using [Python](https://www.python.org/downloads/) with [PySide2](https://pypi.org/project/PySide2/) or [PySide6](https://pypi.org/project/PySide6/), [pyserial](https://pypi.org/project/pyserial/), [Pillow](https://pypi.org/project/Pillow/), [setuptools](https://pypi.org/project/setuptools/), [requests](https://pypi.org/project/requests/) and [python-dateutil](https://pypi.org/project/python-dateutil/) packages. To run FlashGBX in portable mode without installing, you can also download the source code archive and call `python3 run.py` after installing the prerequisites yourself.*
*Note: On Linux systems, the `brltty` module may render GBxCart RW devices non-accessible. See the troubleshooting section for details.*
#### Upgrading from an older version
1. Open a Terminal or Command Prompt window
2. Enter this command:<br>`pip3 install -U FlashGBX`
## Cartridge Compatibility
### Supported cartridge memory mappers
- Game Boy
- All cartridges without memory mapping
- MBC1
- MBC2
- MBC3
- MBC30
- MBC5
- MBC6
- MBC7
- MBC1M
- MMM01
- MAC-GBD (Game Boy Camera)
- G-MMC1 (GB Memory)
- M161
- HuC-1
- HuC-3
- TAMA5
- Unlicensed 256M Mapper
- Unlicensed Wisdom Tree Mapper
- Unlicensed Xploder GB Mapper
- Unlicensed Sachen Mapper
- Unlicensed Datel Orbit V2 Mapper
- Game Boy Advance
- All cartridges without memory mapping
- 8M FLASH DACS
- 3D Memory (GBA Video)
- Unlicensed 2G Mapper
### Currently supported flash cartridges
- Game Boy
- 29LV Series Flash BOY with 29LV160DB
- BennVenn MBC3000 RTC cart
- BLAZE Xploder GB
- BUNG Doctor GB Card 64M
- Catskull 32k Gameboy Flash Cart
- DIY cart with AM29F010
- DIY cart with AM29F016/29F016
- DIY cart with AM29F032
- DIY cart with AM29F040
- DIY cart with AM29F080
- DIY cart with AT49F040
- DIY cart with HY29F800
- DIY cart with M29F032D
- DIY cart with MBM29F033C
- DIY cart with MX29LV640
- DIY cart with SST39SF040
- DMG-MBC5-32M-FLASH Development Cartridge, E201264
- Ferrante Crafts cart 32 KB
- Ferrante Crafts cart 64 KB
- Ferrante Crafts cart 512 KB
- GB-CART32K-A with SST39SF020A
- GB Smart 32M
- HDR Game Boy Camera Flashcart
- insideGadgets 32 KB
- insideGadgets 128 KB
- insideGadgets 256 KB
- insideGadgets 512 KB
- insideGadgets 1 MB, 128 KB SRAM
- insideGadgets 2 MB, 128 KB SRAM/32 KB FRAM
- insideGadgets 2 MB, 32 KB FRAM, v1.0
- insideGadgets 4 MB, 128 KB SRAM/FRAM
- insideGadgets 4 MB, 32 KB FRAM, MBC3+RTC
- insideGadgets 4 MB (2× 2 MB), 32 KB FRAM, MBC5
- Mr Flash 64M
- Squareboi 4 MB (2× 2 MB)
- Game Boy Advance
- Action Replay Ultimate Codes (with SST39VF800A)
- Development AGB Cartridge 64M Flash S, E201843
- Development AGB Cartridge 128M Flash S, E201850
- Development AGB Cartridge 256M Flash S, E201868
- Flash Advance Pro 256M
- Flash2Advance 128M (with 2× 28F640J3A120)
- Flash2Advance 256M (with 2× 28F128J3A150)
- Flash2Advance Ultra 2G (with 4× 4400L0Y0Q0)
- Flash2Advance Ultra 64M (with 2× 28F320C3B)
- Flash2Advance Ultra 256M (with 8× 3204C3B100)
- Flash Advance Card 64M (with 28F640J3A120)
- insideGadgets 16 MB, 64K EEPROM with Solar Sensor and RTC options
- insideGadgets 32 MB, 1M FLASH with RTC option
- insideGadgets 32 MB, 512K FLASH
- insideGadgets 32 MB, 4K/64K EEPROM
- insideGadgets 32 MB, 256K FRAM with Rumble option
### Currently supported and tested reproduction cartridges
- Game Boy
- 2006_TSOP_64BALL_QFP48 with AL016J55FFAR2
- 256M29EWH (no PCB text)
- 36VF3204 and ALTERA CPLD (no PCB text)
- DMG-DHCN-20 with MX29LV320ET
- DMG-GBRW-20 with 29LV320ETMI-70G
- DRV with AM29LV160DB and ALTERA CPLD
- DRV with AM29LV160DT and ALTERA CPLD
- ES29LV160_DRV with 29DL32TF-70
- GB-M968 with 29LV160DB
- GB-M968 with M29W160EB
- GB-M968 with MX29LV320ABTC
- S29GL032N90T and ALTERA CPLD configured for MBC1 or MBC5
- SD007_48BALL_64M with GL032M11BAIR4
- SD007_48BALL_64M with M29W640
- SD007_48BALL_64M_V2 with GL032M11BAIR4
- SD007_48BALL_64M_V2 with M29W160ET
- SD007_48BALL_64M_V3 with 29DL161TD-90
- SD007_48BALL_64M_V5 with 36VF3203
- SD007_48BALL_64M_V5 with 36VF3204
- SD007_48BALL_64M_V6 with 36VF3204
- SD007_48BALL_64M_V6 with 29DL163BD-90
- SD007_48BALL_64M_V8 with M29W160ET
- SD007_48BALL_SOP28 with M29W320ET
- SD007_BGA48_71TV_T28_DEEP with M29W640
- SD007_BV5 with 29LV160TE-70PFTN
- SD007_BV5_DRV with M29W320DT
- SD007_BV5_DRV with S29GL032M90TFIR4
- SD007_BV5_V2 with HY29LV160TT
- SD007_BV5_V2 with MX29LV320BTC
- SD007_BV5_V3 with 29LV160BE-90PFTN
- SD007_BV5_V3 with HY29LV160BT-70
- SD007_BV5_V3 with AM29LV160MB
- SD007_K8D3216_32M with MX29LV160CT
- SD007_T40_64BALL_S71_TV_TS28 with TC58FVB016FT-85
- SD007_T40_64BALL_SOJ28 with 29LV016T
- SD007_T40_64BALL_TSOP28 with 29LV016T
- SD007_T40_64BALL_TSOP28 with TC58FVB016FT-85¹
- SD007_TSOP_29LV017D with L017D70VC
- SD007_TSOP_29LV017D with S29GL032M90T
- SD007_TSOP_48BALL with 36VF3204
- SD007_TSOP_48BALL with AM29LV160DB
- SD007_TSOP_48BALL with K8D3216UTC
- SD007_TSOP_48BALL with M29W160ET
- SD007_TSOP_48BALL with L160DB12VI
- SD007_TSOP_48BALL_V9 with 29LV160CBTC-70G
- SD007_TSOP_48BALL_V9 with 32M29EWB
- SD007_TSOP_48BALL_V10 with 29DL164BE-70P
- SD007_TSOP_48BALL_V10 with 29DL32TF-70
- SD007_TSOP_48BALL_V10 with 29LV320CTXEI
- SD007_TSOP_48BALL_V10 with GL032M10BFIR3
- SD007_TSOP_48BALL_V10 with M29W320DT
- SD007_TSOP_64BALL_SOJ28 with 29DL164BE-70P
- SD007_TSOP_64BALL_SOJ28 with unlabeled flash chip
- SD007_TSOP_64BALL_SOP28 with EN29LV160AB-70TCP
- SD007_TSOP_64BALL_SOP28 with unlabeled flash chip
- SD007_TSOP_64BALL_SOP28_V2 with unlabeled flash chip
- SD008-6810-512S with MSP55LV512
- SD008-6810-V4 with MX29GL256EL
- SD008-6810-V5 with MX29CL256FH
- Game Boy Advance
- 0121 with 0121M0Y0BE
- 100BS6600_48BALL_V4 with 6600M0U0BE
- 100SOP with MSP55LV100S
- 2006_TSOP_64BALL_6106 with W29GL128SH9B
- 28F256L03B-DRV with 256L30B
- 29LV128DBT2C-90Q and ALTERA CPLD
- 36L0R8-39VF512 with M36L0R8060B
- 36L0R8-39VF512 with M36L0R8060T
- 4000L0ZBQ0 DRV with 3000L0YBQ0
- 4050M0Y0Q0-39VF512 with 4050M0Y0Q0
- 4050_4400_4000_4350_36L0R_V5 with 4050L0YTQ2
- 4050_4400_4000_4350_36L0R_V5 with M36L0R7050T
- 4050_4400_4000_4350_36L0R_V5 with M36L0T8060T
- 4050_4400_4000_4350_36L0R_V5 with M36L0R8060T
- 4350Q2 with 4050V0YBQ1
- 4350Q2 with 4350LLYBQ2
- 4400 with 4400L0ZDQ0
- 4444-39VF512 with 4444LLZBBO
- 4455_4400_4000_4350_36L0R_V3 with M36L0R7050T
- AA1030_TSOP88BALL with M36W0R603
- AGB-E05-01 with GL128S
- AGB-E05-01 with MSP55LV100G
- AGB-E05-01 with MSP55LV128M
- AGB-E05-01 with MX29GL128FHT2I-90G
- AGB-E05-01 with S29GL064
- AGB-E05-02 with JS28F128
- AGB-E05-02 with M29W128FH
- AGB-E05-02 with M29W128GH
- AGB-E05-02 with S29GL032
- AGB-E05-03H with M29W128GH
- AGB-E05-06L with 29LV128DBT2C-90Q
- AGB-E08-09 with 29LV128DTMC-90Q
- AGB-E20-30 with M29W128GH
- AGB-E20-30 with S29GL256N10TFI01
- AGB-SD-E05 with MSP55LV128
- B100 with MX29LV640ET
- B104 with MSP55LV128
- B11 with 26L6420MC-90
- B54 with MX29LV320ET
- BX2006_0106_NEW with S29GL128N10TFI01
- BX2006_TSOP_64BALL with GL128S
- BX2006_TSOP_64BALL with GL256S
- BX2006_TSOPBGA_0106 with M29W640
- BX2006_TSOPBGA_0106 with K8D6316UTM-PI07
- BX2006_TSOPBGA_6108 with M29W640
- DV15 with MSP55LV100G
- F864-3 with M36L0R7050B
- GA-07 with unlabeled flash chip
- GE28F128W30 with 128W30B0
- M5M29G130AN (no PCB text)
- M6MGJ927 (no PCB text)
- MSP54LV512 (no PCB text)
- MX29GL128EHT2I and ALTERA CPLD
- SUN100S_MSP54XXX with MSP54LV100
Many different reproduction cartridges share their flash chip command set, so even if yours is not on this list, it may still work fine or even be auto-detected as another one. Support for more cartridges can also be added by creating external config files that include the necessary flash chip commands.
*¹ = Cannot always be auto-detected, select cartridge type manually*
### Troubleshooting
* If something doesn’t work as expected, first try to clean the game cartridge contacts (best with IPA 99.9%+ on a cotton swab) and reconnect the device. An unstable cartridge connection is the most common reason for read or write errors.
* If your Game Boy Camera cartridge is not reading, make sure it’s connected the correct way around; screws go up.
* For save data backup/restore on Game Boy Advance reproduction cartridges, depending on how it was built, you may have to manually select the save type for it to work properly. However, the save data backup/restore feature may not work on certain reproduction cartridges with batteryless-patched ROMs. As those cartridges use the same flash chip for both ROM and save data storage, a full ROM backup will usually include the save data. Also, when flashing a new unpatched ROM to a cartridge like this, the game may not be able to save progress without soldering in a battery. See the [Flash Cart DB website](https://flashcartdb.com/index.php/Clone_and_Repo_Cart_Problems) for more information.
* Depending on your system configuration, you may have to use `pip` and `python` commands instead of `pip3` and `python3`.
* On Linux systems, you may run into a *Permission Error* problem when trying to connect to USB devices without *sudo* privileges. To grant yourself the necessary permissions temporarily, you can run `sudo chmod 0666 /dev/ttyUSB0` (replace with actual device path) before running the app. For a permanent solution, add yourself to the usergroup that has access to serial devices by default (e.g. *dialout* on Debian-based distros; `sudo adduser $USER dialout`) and then reboot the system.
* On some Linux systems, you may need the *XCB Xinerama package* if you see an error regarding failed Qt platform plugin initialization. You can install it with `sudo apt install libxcb-xinerama0` etc. It was reported that this additional command is required on MX Linux: `sudo ln -s /usr/lib/x86_64-linux-gnu/libxcb-util.so.0.0.0 /usr/lib/x86_64-linux-gnu/libxcb-util.so.1`
* On some Linux systems like Fedora, you may need to install the `python3-pillow-qt` package manually in order for the GUI mode to work.
* On some Linux systems you may see the message “No devices found.” even though you’re using a USB cable capable of data transfers. This may be caused by a module called `brltty` (a driver for refreshable braille displays) that is erroneously interfering and taking over control of any connected USB device that uses the CH340/341 chipset. The solution would be to uninstall or blacklist the `brltty` driver and then reboot the system.
* If you’re using macOS version 10.13 or older, there may be no driver for the *insideGadgets GBxCart RW* device installed on your system. You can either upgrade your macOS version to 10.14+ or manually install a driver which is available [here](https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver).
* Note that FlashGBX is not designed to be used with feature-stripped clone hardware such as the license-violating “FLASH BOY” series devices. These will not work as intended and have a considerable risk of causing damage as seen [here](https://flashboycyclone.online/).
## Miscellaneous
* To use your own frame around extracted Game Boy Camera pictures, place a file called `pc_frame.png` (must be at least 160×144 pixels) into the configuration directory. (GUI mode only)
## Thanks
The author would like to thank the following very kind people for their help, contributions or documentation (in alphabetical order):
2358, 90sFlav, AcoVanConis, AdmirtheSableye, AlexiG, ALXCO-Hardware, AndehX, antPL, bbsan, BennVenn, ccs21, ClassicOldSong, CodyWick13, Corborg, Cristóbal, crizzlycruz, Därk, Davidish, DevDavisNunez, Diddy_Kong, djedditt, Dr-InSide, dyf2007, easthighNerd, EchelonPrime, edo999, Ell, EmperorOfTigers, endrift, Erba Verde, ethanstrax, eveningmoose, Falknör, FerrantePescara, frarees, Frost Clock, gboh, gekkio, Godan, Grender, HDR, Herax, Hiccup, hiks, howie0210, iamevn, Icesythe7, ide, Jayro, Jenetrix, JFox, joyrider3774, JS7457, julgr, Kaede, KOOORAY, kscheel, kyokohunter, litlemoran, LovelyA72, Luca DS, LucentW, manuelcm1, marv17, Merkin, metroid-maniac, Mr_V, orangeglo, paarongiroux, Paradoxical, Rairch, Raphaël BOICHOT, redalchemy, RetroGorek, RevZ, s1cp, Satumox, Sgt.DoudouMiel, SH, Shinichi999, sillyhatday, Sithdown, skite2001, Smelly-Ghost, Stitch, Super Maker, t5b6_de, Tauwasser, Timville, twitnic, velipso, Veund, voltagex, Voultar, wickawack, Wkr, x7l7j8cc, xactoes, yosoo, Zeii, Zelante, zvxr
## DISCLAIMER
This software is being developed by Lesserkuma as a hobby project. There is no direct afflilation with insideGadgets or Nintendo. This software is provided as-is and the developer is not responsible for any damage that is caused by the use of it. Use at your own risk!
%prep
%autosetup -n FlashGBX-3.29
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-FlashGBX -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue May 30 2023 Python_Bot <Python_Bot@openeuler.org> - 3.29-1
- Package Spec generated
|