HP Forums
Project Muteki - Homebrew for Besta RTOS devices - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: Not HP Calculators (/forum-7.html)
+--- Forum: Not quite HP Calculators - but related (/forum-8.html)
+--- Thread: Project Muteki - Homebrew for Besta RTOS devices (/thread-18849.html)



Project Muteki - Homebrew for Besta RTOS devices - muteki - 09-19-2022 02:51 AM

I know it looks kinda dumb to post this here instead of some Besta translator user group but Besta's involvement in Prime probably made the G1 the most popular Besta RTOS device out there and ironically made the Prime community the best (both in terms of size and enthusiasm) Besta RTOS user group. So I figured that someone here might be interested in this.

So I have this project that studies how to make homebrews for Besta RTOS. So far there has been quite a lot of progress in uncovering the inner working of the OS and documenting syscalls. I have a working toolchain and a newlib port that is still a bit incomplete but functional. There's also a really bad MicroPython port that I just thrown together to see if it works.

I'm currently working on documenting the threading API and figuring out how to port over pthread-embedded so I can finally build GCC with --enable-threads=posix and hopefully have a less C C++ support. After that I might try to get SDL2 and friends working and finally write/port some games to Besta RTOS to show that it's not a giant waste of time (/s).

I don't really know what this will bring to Prime (specifically G1) since I'm more of a Casio guy but things that I can think of including dual booting (hard because armfir loads to a fixed address instead of using relocations, but not impossible with some trickery or MMU+syscall data proxy), native app loader within armfir (needs some modding to armfir but the OS machinery for loading a second binary should still be intact so we more or less just need a UI), and of course, native apps that are not bare-metal like **cough** ripem **cough**.

The project is here https://github.com/Project-Muteki if anyone is interested. Currently there's no instruction (still need time and motivation to write that!) so people who are curious still needs to figure out how to set it up by looking at code and the docs.

(Hint: the target name is arm-none-bestaeabi- and muteki-shims should be built with a bootstrap GCC before newlib)


RE: Project Muteki - Homebrew for Besta RTOS devices - vsharma - 11-11-2022 07:17 PM

This is great! I look forward to seeing what people will be able to do with this. Hopefully we'll get native applications on the HP Prime soon.


RE: Project Muteki - Homebrew for Besta RTOS devices - parisse - 07-16-2024 08:51 PM

It looks like very promising, I'd be very interested to know if it is possible to build KhiCAS for the Prime using your tools, like ExistOS for the hp39gii.
This would bring up some welcome enhancements on the G1 wrt the builtin CAS including:
* up to date Giac/Xcas version with all commands available
* inclusion of LGPL-ed libraries: GMP, MPFR, MPFI: faster bigint support, bigfloat library with arbitrary number of digits computation, interval arithmetic
* programming editor and shell with syntax coloration, parenthese match
* 3d geometry app
* javascript support
That way the Prime G1 would match other ports of KhiCAS on the Casio fxcg50, Numworks N0110/N0115/N0120 and TI Nspire.