Les membres ayant 30 points peuvent parler sur les canaux annonces, projets et hs du chat.
La shoutbox n'est pas chargée par défaut pour des raisons de performances. Cliquez pour charger.

Forum Casio - Projets de programmation


Index du Forum » Projets de programmation » Linux on the Casio's graphing calculator hardware
cacioandpepe Hors ligne Membre Points: 39 Défis: 0 Message

Linux on the Casio's graphing calculator hardware

Posté le 18/10/2026 00:08

FX-9750GIII running Linux 7.3 (OOMed)






Bonjour, everyone!

This is a development thread on Linux, including both the Casio graphing calculators and x86_64 compatibility issues.

So far, I've managed to get the Linux kernel loading through a .g1a application on the FX-9750GIII. Development has been focused on SH7305 support, memory mapping, startup code, Device Tree support, and getting the necessary platform infrastructure ready for a proper Linux contribution.

This project is still under active development. The goal is to bring proper upstream Linux support to Casio graphing calculators, rather than simply maintaining a collection of device-specific hacks.

Important notice: I'm not looking to target or replace the original ROM system on newer models. This is not intended to risk the life of your device, and experimenting with firmware or hardware can potentially void your warranty or leave your calculator unrecoverable. Please refer to the licenses included in the projects, as well as Casio's own terms.

========================================================================
SUPPORT
========================================================================

Currently supported: FX-9750GIII only.

The FX-9760GIII family has not been tested yet. If you own one, you could be the person to help test it! Reply on this thread.

========================================================================
DEVELOPMENT UPDATES / NEWS THREAD
========================================================================

10 November 2026 — Linux SH7305 / FX-9750GIII / FX-CG20

- Kernel startup and entry-point work has been updated.
- Memory initialization and mapping fixes have been committed.
- Device Tree support for the SH7305 platform is under development.
- TMU support has been developed, including SH7305 module clock-gate handling.
- SH7305-related patches have been prepared for upstream Linux development.
- The current development snapshot is based on Linux v7.4-rc2.
- Added a FX-CG20 config support node (active development)

10 November 2026 — Repository maintenance

The repository has been reorganized to reduce unnecessary Git history and storage overhead. The published repository is being transitioned to a clean snapshot containing the current development tree, rather than carrying the entire upstream Linux history.

The original development history remains available locally, but eventually gets rebased whenever I have changes.
(Follow Pull Requests)

CFX-9800G — Reverse engineering

The CFX-9800G reverse-engineering work is currently under development. Some of the work overlaps with the FX-9750GIII platform research, but not all of it has been deployed to this repository.

I'm also interested in collecting hardware information, documentation, and testing results from people who own these calculators.

Updates on application side:

I'm pretty close to release a v1 application. Version 1 (v7.4) will only include a simple shell, but expanding later on.. will include BusyBox and all essential commands that users of Linux have (us?).

Full Mainline Linux Development Mirror!

A Linux mainline development mirror hosted on a Raspberry Pi server, providing public access to the repository through the rsync protocol.

The original full mirror hosted on Forgejo was approximately 4.3 GB and impractical to maintain there. The current mirror provides a considerably lighter development repository containing changes that have actually been implemented and tested.

Rsync address:
rsync://rsync.cacioandpepe.ca/

Fetch the repository:

rsync -avP rsync://rsync.cacioandpepe.ca/linux.git/ linux.git/

Clone with Git:

Install git-remote-rsync. It provides Git's remote-helper interface for accessing repositories over rsync.
Link to that project: https://codeberg.org/cacioandpepe/git-remote-rsync, it is also available on COPR, later will be on AUR.

git clone "rsync::rsync://rsync.cacioandpepe.ca/linux.git"

Optional integrity check:

git -C linux.git fsck --full

Unpack Git packfiles into loose objects:

for pack in linux.git/objects/pack/*.pack; do
    git -C linux.git unpack-objects -r < "$pack"
done


12 November 2026 — Update:
git-remote-rsync has reached its first release, v0.1.0.

The rsync interface provides direct access to the bare Git repository, including its existing packfiles. This avoids the overhead of dynamically generating Git packs on the Raspberry Pi and makes large transfers considerably more practical.
The full mirror is intended for people who want access to the complete upstream history, while the smaller Forgejo repository remains the primary place for active development, patches, and contributions.

The full mirror is updated weekly. The Forgejo development repository receives updates more frequently, as patches and contributions are made.

========================================================================
CONTRIBUTION
========================================================================

Regarding contributions :

You can open a PR on the Forge Git repository. Contributions are appreciated!

Please do not submit patches to upstream Linux with my name attached to code that I have not personally reviewed or approved. Upstream submissions should follow the normal Linux development process, and anything that has not been tested should be clearly identified as unverified.

Regarding LLMs / AI-assisted contributions:

If you're using an LLM or other AI tool to prepare a contribution, YOU are responsible for reviewing, testing, and verifying the resulting code. If something breaks, responsibility still lies with the contributor.

Please be honest about AI assistance if I ask questions regarding it.

Follow the official kernel documentation:

Linux kernel documentation — Coding assistants

For contributions on Forge Git, please also refer to:

Linux kernel documentation — Submitting patches

========================================================================
HARDWARE TESTERS WANTED!
========================================================================

The main reason I'm opening this project to the community is that I'm looking for volunteers who own Casio graphing calculators and would be willing to test Linux builds.

Hardware testing is important. It helps verify that each calculator's development branch actually works on real hardware before patches are submitted to Linux kernel maintainers.

If you're interested in helping, please let me know which calculator model you own .

Project repository:

Forge Git — linux-casio

Upstream development and patch discussions:

Linux Kernel Mailing List archives

Specifically on SuperH and Casio Graphing Calculators Devices

Subthreads:
https://www.planet-casio.com/Fr/forums/topic19768-1-hitachi-hd62119a02-looking-for-technical-info.html

Thanks for reading and contributing!

Fichier joint


1, 2 – Suivante
Mb88 Hors ligne Rédacteur ★ Points: 1375 Défis: 3 Message
LDA Hors ligne Membre Points: 249 Défis: 6 Message

Citer : Posté le 18/10/2026 00:41 | #


Finally a cool project, in a heck of a long time!

I've been wondering if this could be doable considering how RAM-constrained those models tend to be...

(BTW, don't really have any monochrome calcs on hand, so I can't do a first-hand test, but I guess I could lend a hand on some SH7305 modules, also try putting an [at]RDP on news you put so that the forum editors can put you on the next review [à quand la prochaine RDP? ])

Fairies! In Lockstep!
Sous la régence de trois.
cacioandpepe Hors ligne Membre Points: 39 Défis: 0 Message

Citer : Posté le 18/10/2026 00:51 | #


LDA,

Thanks,
RAM is so tight, but once figured out it would be a sigh of a relief.
Although that's expected, 512kb's of RAM cmon.

RDP, is a good thing I will take that into my account.

Also I'm looking forward to reverse engineer a CFX-9800G
sometime..

GPG : F747 7C61 CC79 5021 E060 6117 1E55 9E70 DF46 E38B
My formula for greatness in a human being is amor fati: that one wants nothing to be different, not forward, not backward, not in all eternity. ----- Friederich Nietzsche (Ecce Homo)
https://cacioandpepe.ca/
cacioandpepe Hors ligne Membre Points: 39 Défis: 0 Message

Citer : Posté le 18/10/2026 04:56 | #


Also LDA, I did boot Linux couple days ago with 36kb ram left out,
so I proved that it can boot, but maintainer on Linux they plan to move on to
Device Trees currently working on them. I'm still onto this RAM debt trying to fix it.
Mailing list "hyperlinked"

GPG : F747 7C61 CC79 5021 E060 6117 1E55 9E70 DF46 E38B
My formula for greatness in a human being is amor fati: that one wants nothing to be different, not forward, not backward, not in all eternity. ----- Friederich Nietzsche (Ecce Homo)
https://cacioandpepe.ca/
Calcloverhk Hors ligne Membre Points: 466 Défis: 10 Message

Citer : Posté le 18/10/2026 20:08 | #


Per my G-III memory map, you can take 24 kB of unused RAM at 0x8802A000 and the first 24 kB of OS stack at 0x88040000.
C.Basic Wiki Project progress as of 2024/2/12
   30%
Ptune4 (Submit SDRAM test result) | C.Basic developer
The reptile will say "Planète" and then "Casio".

Lephenixnoir Hors ligne Cuties gang Points: 26038 Défis: 174 Message

Citer : Posté le 18/10/2026 20:29 | #


Not to dampen any hopes, but a custom OS is not something we want to see. We are riding a very fine line with CASIO regarding exam mode security. It's been clear than if anything happens all native programming is gone. Modded OSes is a big no-no because for reasons I think you can picture.

Very cool otherwise!
Mon graphe (28 Juin): (MPM ; v5 ; Azur ; passe gint 3 ; ...) || Rogue Life
cacioandpepe Hors ligne Membre Points: 39 Défis: 0 Message

Citer : Posté le 18/10/2026 21:24 | #


Thanks, Lephe

GPG : F747 7C61 CC79 5021 E060 6117 1E55 9E70 DF46 E38B
My formula for greatness in a human being is amor fati: that one wants nothing to be different, not forward, not backward, not in all eternity. ----- Friederich Nietzsche (Ecce Homo)
https://cacioandpepe.ca/
Phoebe Hors ligne Cuties gang Points: 50 Défis: 0 Message

Citer : Posté le 19/10/2026 21:46 | #


Pretty cool attempt, nice to see it ! If you want to consider color models like the ClassPad 400, I'd love to help you test your builds. Also, as a side note, there exist a small community of fan of the Casio EXWords, and their older (dataplus 5, 6) are the same SH73050 CPU as the calculator... And a pretty similar (although more complex) hardware, that would love to receive some Linux support... I look forward seeing process in your project, and maybe helping contributing with obscure devices support! Feel free to reach me if ClassPad is an interesting target !
cacioandpepe Hors ligne Membre Points: 39 Défis: 0 Message

Citer : Posté le 19/10/2026 21:49 | #


Phoebe, thats not an attempt anymore, it's something thats real now, just not wrapped up.

GPG : F747 7C61 CC79 5021 E060 6117 1E55 9E70 DF46 E38B
My formula for greatness in a human being is amor fati: that one wants nothing to be different, not forward, not backward, not in all eternity. ----- Friederich Nietzsche (Ecce Homo)
https://cacioandpepe.ca/
Eragon Hors ligne Gardienne des robots Points: 520 Défis: 0 Message

Citer : Posté le 19/10/2026 21:53 | #


I really wanted to do that on my hardware modded casio but since I never got the sd card in it I never started that project. It's nice to see someone try to get the kernel on some graphing calc
cacioandpepe Hors ligne Membre Points: 39 Défis: 0 Message

Citer : Posté le 11/11/2026 05:06 | #


upd: news update and new device support development!

GPG : F747 7C61 CC79 5021 E060 6117 1E55 9E70 DF46 E38B
My formula for greatness in a human being is amor fati: that one wants nothing to be different, not forward, not backward, not in all eternity. ----- Friederich Nietzsche (Ecce Homo)
https://cacioandpepe.ca/
Tuper4 Hors ligne Membre Points: 1034 Défis: 26 Message

Citer : Posté le 14/11/2026 16:16 | # | Fichier joint


Following the DMs I had with cacioandpepe, here's the output of the program he gave me (in PJ) on my Graph 35+E II:

Strange enough, the .g1a file is not recognised on my Graph 35+E thus does not appear on the main menu (of which I have no idea really, hope it'll get fixed soon).

SH7305
PVR  10300B00
PRR  00002C00
CVR  43440110
CPID 00000001
PVRm 10300B00

USER RAM
VA   08100000
PA   08048000
P1   88048000
MAP  32768 B
PAGE 4096

SH7305 CLOCKS
FRQ 0F112213
PLL 00005000
FLL 00004384
I 58982400
B29491200 P14745600

CODE MAP
VA 003004D8
PA 005074D8
P1 805074D8
PG 4096

P1 ROM TEST
VA 2F86E040
P1 2F86E040
MATCH YES

ROM MAP
00300000:
00507000
PG 4096
00301000 00508000

ROM SPAN
FIRST 00507000
LAST 00508000
PAGES 2
BAD 00302000

ROM SPAN FAIL
VA 00302000
PA 00502000

"La gravité explique le mouvement des planètes, mais elle ne peut pas expliquer qui a mis les planètes en mouvement. Dieu gouverne toutes choses" - Isaac Newton
cacioandpepe Hors ligne Membre Points: 39 Défis: 0 Message

Citer : Posté le 14/11/2026 21:23 | #


LGTM, But I have too much going on right now; can't verify if these values are good.

Thanks for testing!


The g1a application is hosted here:
https://codeberg.org/cacioandpepe/sh7305-probe

Under releases, you can download the v1 and submit a test here on this thread.

GPG : F747 7C61 CC79 5021 E060 6117 1E55 9E70 DF46 E38B
My formula for greatness in a human being is amor fati: that one wants nothing to be different, not forward, not backward, not in all eternity. ----- Friederich Nietzsche (Ecce Homo)
https://cacioandpepe.ca/
Phoebe Hors ligne Cuties gang Points: 50 Défis: 0 Message

Citer : Posté le 15/11/2026 04:46 | # | Fichier joint


Well, I'd like to take a few seconds to say a slur about codeberg blocking my browser and disabling zip downloads. Well, that was a bad time. Making it work on the EX wasn't fun either, and reading stuff from the 330+ screen was very bad too. But well, here we are !

So, I ported it to various devices that runs SH7305xx (attaching the ports, if you want to test, if you have any of them)
- SH730501 (330+, A8500)
- SH73050x (400, D6600)
Find attached the binaries and their results.

Note that 330+, EX (A8500, D6600) and HH3-EXE runs "jailed" behind MMU. HH3-pure and HH3-gint does not so you have to manually translate addresses, but you should be able to setup uTLB and get your little world to run behind kernel (see what HH3-WinCE and NTOS does, you have more control over the hardware).

I've yet to write a custom bootloader on EX that would load it "outside MMU jail" and see if gint with full hardware control and no OS block do, but I do expect it to be similar to HH3-pure results.

LMK if you need more testing. Looking forward to linux !
cacioandpepe Hors ligne Membre Points: 39 Défis: 0 Message

Citer : Posté le 15/11/2026 05:29 | #


Wow.
Thanks for taking the time to test all of this! Really appreciate it.

The MMU differences are especially interesting.
I have some familiarity with Windows Mobile internals too.
Ported WM2003 to SM-T350 (only the kernel),
so the WinCE references are useful.

Could you clarify the differences between SH730501 and SH73050x?
I'd like to understand how they relate to the SH73050 variant 0.

GPG : F747 7C61 CC79 5021 E060 6117 1E55 9E70 DF46 E38B
My formula for greatness in a human being is amor fati: that one wants nothing to be different, not forward, not backward, not in all eternity. ----- Friederich Nietzsche (Ecce Homo)
https://cacioandpepe.ca/
cacioandpepe Hors ligne Membre Points: 39 Défis: 0 Message

Citer : Posté le 15/11/2026 05:36 | #


Also, would you mind if I uploaded your probe code and results to my Codeberg repo?
I'd keep your original copyright notices and credit you, of course!

GPG : F747 7C61 CC79 5021 E060 6117 1E55 9E70 DF46 E38B
My formula for greatness in a human being is amor fati: that one wants nothing to be different, not forward, not backward, not in all eternity. ----- Friederich Nietzsche (Ecce Homo)
https://cacioandpepe.ca/
Phoebe Hors ligne Cuties gang Points: 50 Défis: 0 Message

Citer : Posté le 15/11/2026 06:52 | #


Cacioandpepe a écrit :
Also, would you mind if I uploaded your probe code and results to my Codeberg repo?
I'd keep your original copyright notices and credit you, of course!


Yes sure. Consider it yours, I don't really mind. I'd still have to maintain more on the gint side to be sure all future tests would pass for the EX, and this test is appreciated as it helped me troubleshoot a few bugs about path loading.

MMU config is quite different between 330 and EX, while they use the same hardware. What's even more interesting is that both share large chunks of codebase, yet they do not agree on the MMU config...

About WinCE and even NT kernel porting, the major issue is the toolchain. MSVC only support LE SuperH4, and binutils for COFF just invented their own SH4 BE header, whole GCC does not support the Microsoft Abi (and the Renesas abi of GCC is broken for things like Vargs)
So either you go SH4 LE and need to convert it to BE at runtime (slow, but compatible with the Dreamcast builds, and you can even get some noFPU build of IE4) or you decide to go GCC BE abi and break compatibility with existing app. The in-between choice (that I made) is to do trunk from GCC to Microsoft Abi for exported methods and to have a custom import logic to be compatible again with Microsoft Abi, while using the GCC one internally.
But well, none of that is really a problem in the Linux world !

The only known difference between SH730501 and the unknown (x) in SH73050x is the pinout on the board. Maybe in the near future we'd prove that the 01 is lacking a few coprocessor that the 02 (or whatever is the 0x) have. The value x might also be revelaea6 in a more distant future where we do decap on CPU and figure out what is the exact number engraved in it. But that's all I know, so far. The SH-Mobile CPU are quite mysterious and lack public documentations...
cacioandpepe Hors ligne Membre Points: 39 Défis: 0 Message

Citer : Posté le 15/11/2026 07:27 | #


Thanks, but I mean I still got to honor you somehow .

Anyway I still got questions about this compiler. Is it in these old SDK's like this?.

I've used these before for ARMv4, but I never noticed that Microsoft had any SuperH relation overall. Interesting.
Have you ever used one of these? If you did what that Development tool called?

And also, a guy from the Brain/EXWord community reached out to me and he mentioned that there might not actually be different variants of this CPU after all. The apparent differences could simply be down to board pinout, and the exact chip identification is still unclear. (My guess its a revision mark, because of the pinouts) I guess it is sort of proprietary information afterall.

GPG : F747 7C61 CC79 5021 E060 6117 1E55 9E70 DF46 E38B
My formula for greatness in a human being is amor fati: that one wants nothing to be different, not forward, not backward, not in all eternity. ----- Friederich Nietzsche (Ecce Homo)
https://cacioandpepe.ca/
Tuper4 Hors ligne Membre Points: 1034 Défis: 26 Message

Citer : Posté le 15/11/2026 14:05 | #


update: I might have been blind but I managed to miss the add-in being on my 35+E, here's all the values (comparisons are from the 35+EII):
SH7305
PVR  10300B00    (Same)
PRR  00002C00    (Same)
CVR  43440110    (Same)
CPID 00000001    (Same)
PVRm 10300B00    (Same)

USER RAM
VA   08100000    (Same)
PA   0801C000    (Different)
P1   8801C000    (Different)
MAP  32768 B     (Same)
PAGE 4096        (Same)

SH7305 CLOCKS
FRQ 0F212213          (Different)
PLL 00005000          (Same)
FLL 00004384          (Same)
I 29491200            (Different)
B29491200 P14745600   (Same)

CODE MAP
VA 003004D8    (Same)
PA 002804D8    (Different)
P1 802804D8    (Different)
PG 4096        (Same)

P1 ROM TEST
VA 2F86E040    (Same)
P1 2F86E040    (Same)
MATCH YES

ROM MAP
00300000:           (Same)
00280000            (Different)
PG 4096             (Same)
00301000 00281000   (Different)

ROM SPAN
FIRST 00280000   (Different)
LAST 00287000    (Different)
PAGES 8         (Different)
BAD 00308000    (Different)

ROM SPAN FAIL
VA 00308000    (Different)
PA FFFFFFFF    (Different)

"La gravité explique le mouvement des planètes, mais elle ne peut pas expliquer qui a mis les planètes en mouvement. Dieu gouverne toutes choses" - Isaac Newton
Phoebe Hors ligne Cuties gang Points: 50 Défis: 0 Message

Citer : Posté le 15/11/2026 14:28 | #


Cacioandpepe a écrit :
Thanks, but I mean I still got to honor you somehow .

Anyway I still got questions about this compiler. Is it in these old SDK's like this?.

I've used these before for ARMv4, but I never noticed that Microsoft had any SuperH relation overall. Interesting.
Have you ever used one of these? If you did what that Development tool called?

And also, a guy from the Brain/EXWord community reached out to me and he mentioned that there might not actually be different variants of this CPU after all. The apparent differences could simply be down to board pinout, and the exact chip identification is still unclear. (My guess its a revision mark, because of the pinouts) I guess it is sort of proprietary information afterall.


Indeed ! You have to look at WinCE toolkits and you'd find it. Check the Dreamcast wiki about Windows CE, as Microsoft did an effort to port some of their tooling to WinCE. The history is quite interesting, they wanted to get in the console business and partnered with Sega (one of the best manufacturer at the time) to port their windows (Windows CE) as a gaming operating system, pretending you'd get DirectX 6 working the "same" as in PC, so game porting would be easy (see, Dragon SDK). But there is even more to it, it's quite deep and at some point they planned SuperH 5 (yes, 5) support. WinCE later pivoted to Windows Mobile, and early windows mobile (to combat Symbian and more specifically Mobile ITRON) wanted a good chunk of that business.
My early assessment of the SH Mobile research shows that late SH Mobile seems to be 3 core: arm thumb plus two superH cores, and that windows CE was running on some of them. But this is yet to be confirmed.
Yes I kinda used it, not much still as I mostly borrowed sources online. See: https://archive.org/details/en_win_ce_net_cd1 (need all CD)

The brain wiki people are crazy, they did decap of the CPU (sadly the picture quality is not good). But I think we're close to do it too on our side

Infos are hard to get, apart from the few notes of SimLo, lephe and other legends not much is known about it. We are discovering new things on it every days (SPU, predictor cache, even ECC !) and we are still far from being done...
1, 2 – Suivante

LienAjouter une imageAjouter une vidéoAjouter un lien vers un profilAjouter du codeCiterAjouter un spoiler(texte affichable/masquable par un clic)Ajouter une barre de progressionItaliqueGrasSoulignéAfficher du texte barréCentréJustifiéPlus petitPlus grandPlus de smileys !
Cliquez pour épingler Cliquez pour détacher Cliquez pour fermer
Alignement de l'image: Redimensionnement de l'image (en pixel):
Afficher la liste des membres
:bow: :cool: :good: :love: ^^
:omg: :fusil: :aie: :argh: :mdr:
:boulet2: :thx: :champ: :whistle: :bounce:
valider
 :)  ;)  :D  :p
 :lol:  8)  :(  :@
 0_0  :oops:  :grr:  :E
 :O  :sry:  :mmm:  :waza:
 :'(  :here:  ^^  >:)

→ ⇒ √ Σ ∫ ≠ ≥ ≤ π θ ◢ ± α β γ δ Δ σ ≈ ∞ ∈ λ
captcha

Planète Casio v4.3 © créé par Neuronix et Muelsaco 2004 - 2026 | Il y a 179 connectés | Nous contacter | Qui sommes-nous ? | Licences et remerciements

Planète Casio est un site communautaire non affilié à Casio. Toute reproduction de Planète Casio, même partielle, est interdite.
Les programmes et autres publications présentes sur Planète Casio restent la propriété de leurs auteurs et peuvent être soumis à des licences ou copyrights.
CASIO est une marque déposée par CASIO Computer Co., Ltd