Official NixOS Support for Teres has been submitted!

Started by kreyren, July 04, 2023, 02:13:17 AM

Previous topic - Next topic

kreyren

* Community Lead Developer of TeresDevelopment
* Downstream Maintainer of Linux and BSD* compatibility for OLIMEX Teres-I
* World record holder in annoying Tsvetan with questions about OLIMEX Teres-I hacking

LubOlimex

Great news and amazing artwork! Hope it gets approved and accepted.
Technical support and documentation manager at Olimex

kreyren

People keep asking me to why was it not merged:

The arm on nixos is basically managed by one guy who has a political ideology and management to promote his alternative bootloader solution and tbh crazy ideas which would make teres to not really work well at the cost of code quality.

I am trying to find a common ground with him atm and worst case I provide an overlay. In the meantime you can use the merge request to build u-boot and follow the instructions from the wiki to get teres to some-what work on NixOS, but i currently wouldn't recommend it as it's very unstable.

To work on NixOS I need a stable distribution which is why i was mostly working on arbiam now and since it seems to be in a robust enough state it should allow me to work on NixOS support now. I will report back with any news
* Community Lead Developer of TeresDevelopment
* Downstream Maintainer of Linux and BSD* compatibility for OLIMEX Teres-I
* World record holder in annoying Tsvetan with questions about OLIMEX Teres-I hacking

kreyren

#3
The initial declaration for nixos-hardware has been merged https://github.com/NixOS/nixos-hardware/commit/93fcc5fb824833e2c8fb03768d8ffb915024dc6b and together with instructions in https://nixos.wiki/wiki/NixOS_on_ARM/OLIMEX_Teres-A64 should get you a working system.

Currently you either have to use the bootloader from a 3rd party or get them from this commit https://github.com/NixOS/nixpkgs/pull/240827 as it wasn't merged due to reviewer being too political

I am trying to get the bootloader merged with a different strategy now in https://github.com/NixOS/nixpkgs/pull/259077

Once the issue of bootloader is resolved i will submit an automatic sdcard build
* Community Lead Developer of TeresDevelopment
* Downstream Maintainer of Linux and BSD* compatibility for OLIMEX Teres-I
* World record holder in annoying Tsvetan with questions about OLIMEX Teres-I hacking

kreyren

The following patches should fix NixOS compatibility:
* https://github.com/NixOS/nixpkgs/pull/265740
* https://github.com/NixOS/nixpkgs/pull/258017

Becuase NixOS has a policy of not shipping .0 Mesa releases (due to instructions from mesa) and trying to hotfix this on nixos side felt like disaster waiting to happen so we had to wait for mesa update which should be merged next week for NixOS-Unstable to work without issues on teres.

Once that happens i will update nixos-hardware and set it up to auto-build sdimages and provide example configurations + updated wiki so that deploying nixos on teres is painless ^-^
* Community Lead Developer of TeresDevelopment
* Downstream Maintainer of Linux and BSD* compatibility for OLIMEX Teres-I
* World record holder in annoying Tsvetan with questions about OLIMEX Teres-I hacking