Skip to content

Neotron-Compute/Neotron-OS

Repository files navigation

Neotron OS

This is the Neotron OS. It will run on any system which has an implementation of the Neotron BIOS.

Status

This OS is a work in progress. We intend to support:

  • Calling BIOS APIs
  • Text mode VGA console
  • Serial console
  • Running built-in commands from a shell
  • Executing applications from RAM
    • Applications can print to stdout
    • Applications can read from stdin
    • Applications can open/close/read/write files
  • MBR/FAT32 formatted block devices
    • Read blocks
    • Directory listing of /
    • Write to files
    • Delete files
    • Change directory
  • Load ELF binaries from disk
  • Changing text modes
  • Basic networking
  • Music playback
  • Various keyboard layouts
  • Ethernet / WiFi networking
  • Built-in scripting language

Build instructions

Your board will need an appropriate Neotron BIOS installed, and you need to have OpenOCD or some other programming tool running for your particular board. See your BIOS instructions for more details.

We compile one version of Neotron OS, but we link it three times to produce three different binaries:

  • flash0002 - is linked to run from address 0x0002_0000
  • flash1002 - is linked to run from address 0x1002_0000
  • flash0802 - is linked to run from address 0x0802_0000
$ git clone https://github.com/neotron-compute/Neotron-OS.git
$ cd Neotron-OS
$ cargo build --target thumbv6m-none-eabi --release --bins
$ ls ./target/thumbv6m-none-eabi/release/flash*02
./target/thumbv6m-none-eabi/release/flash0002 ./target/thumbv6m-none-eabi/release/flash0802 ./target/thumbv6m-none-eabi/release/flash1002

Your BIOS should tell you which one you want and how to load it onto your system.

You can also build a shared object to load into a Windows/Linux/macOS application.

$ cargo build --lib
$ ls ./target/debug/*.so
./target/debug/libneotron_os.so

Changelog

See CHANGELOG.md

Licence

Neotron-OS Copyright (c) Jonathan 'theJPster' Pallant and The Neotron Developers, 2023

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

See the full text in LICENSE.txt. Broadly, we (the developers) interpret this to mean (and note that we are not lawyers and this is not legal advice) that if you give someone a Neotron computer, you must also give them one of:

  • Complete and corresponding source code (e.g. on disk, or as a link to your own on-line Git repo) for any GPL components (e.g. the BIOS and the OS), as supplied on the Neotron computer.
  • A written offer to provide complete and corresponding source code on request.

If you are not offering a Neotron computer commercially (i.e. you are not selling a board for commercial gain), and you are using an unmodified upstream version of the source code, then the third option is to give them:

This is to ensure everyone always has the freedom to access the source code in their Neotron based computer.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.