New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross-compile configuration for reMarkable 2 tablet #105432
Conversation
@tadfisher Nice! I don't have an rM 2 to test but looks good to me.
What was your procedure for installing Nix on the tablet? Are you able to cross-compile Nix itself? Edit: I was able to cross-compile and install Nix on the tablet but some of its dependencies (e.g. |
I followed your instructions in https://discourse.nixos.org/t/done-remarkable1-cross-compile-toolchain-for-nix/9961/18 and installed the prebuilt Nix from https://github.com/DavHau/nix-on-armv7l. I'm building Nix now, we'll see what happens. |
Cross-compiled Nix appears to work:
|
@tadfisher Are you able to install it |
@Ericson2314 This is non-blocking, feel free to merge. |
Yes, I ran |
Thanks! |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/done-remarkable1-cross-compile-toolchain-for-nix/9961/19 |
Motivation for this change
Following in the footsteps of @siraben's work in #102503, add toolchain support for the reMarkable 2 tablet:
lib.systems.examples.remarkable2
lib.systems.platforms.zero-sugar
Where the platform differs from
zero-gravitas
is the target machine-specific options, which support the i.MX 7Dual in the reMarkable 2. In particular, imx7d gains the extra features of thearmv7ve
arch and an upgrade to the VFPv4 FPU. Otherwise, this is a copy-paste of the reMarkable 1 configuration.This has been tested by installing Nix on the tablet and using
nix-copy-closure
to install cross-compiled packages. Packages tested so far:Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)