<samueldr>
evening ends on a high note, kernel builds
<elvishjerricco>
samueldr: android kernel?
<bkchr[m]>
elvishjerricco: I think you will need libhybris, because you don't want to build everything with bionic and some part of your application will always need something that is build against bionic
<bkchr[m]>
elvishjerricco: you are planing to deploy your apks with nix on your phone? Any rom or do you wan to build your own rom?
<gchristensen>
I can't seem to remember how we got the grub UI to work on aarchh64
<gchristensen>
on this the t2a anyway
<samueldr>
yes, the specific lineageos fork of the specific manufacturer fork for the device family of my cellphone
<gchristensen>
Dezgeg: ^ do you remember what it took for the grub UI to show up?
<gchristensen>
also might need to figure out how to solve this:
<gchristensen>
Welcome to GRUB! error: file `/boot/grub/arm64-efi/efi_uga.mod' not found.
<Dezgeg>
maybe it was one of the insmods for graphics that had to be commented out
<Dezgeg>
or this font loading stuff... either of those
<gchristensen>
hmm yeah
<gchristensen>
ok I'll delete the font and the background files so it doesn't try to load them
<gchristensen>
and then try deleting other things
<gchristensen>
woo!
<gchristensen>
turns out you can't set boot.grub.font to null despite its type saying you can
<gchristensen>
just a small patch later and I think I sorted it ...
<gchristensen>
thanks Dezgeg!
<gchristensen>
I'm not sure I can get this patch backported though :/
<elvishjerricco>
bkchr[m]: I'm starting to look for a new phone (currently have an iPhone), and thought it'd be fun to see if it's not totally crazy to port NixOS to android :P APKs would be installed by acquiring them manually (from the play store I guess, if that's possible) and installing them via NixOS.
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 260 seconds]
<sphalerite>
elvishjerricco: personally I'm planning on getting a librem 5 https://puri.sm/shop/librem-5/ and seeing if I can get nixos working on that
<elvishjerricco>
sphalerite: Does the AOSP have privacy / tracking problems? I had thought that was mostly the gapps, which I may be able to avoid installing.
<sphalerite>
I haven't looked into it that closely. One thing I know it does is ping a google-owned connection test thing every time the network connectivity changes
<sphalerite>
the main reasons I want a librem 5 are that it's GNU/Linux and will run most of the software that my laptop runs too, and that it won't need any proprietary drivers or firmware
<sphalerite>
I'm currently on a oneplus one running lineageOS, but the librem 5 would be so much cooler :p
<samueldr>
while you would be in the armv7l domain again, my efforts should work for your device sphalerite
<samueldr>
I'm piggy backing off the efforts from postmarketos, and oneplus-bacon (oneplus one) is in there
<sphalerite>
neat
<sphalerite>
I didn't know about postmarketos at all, this is nice!
<samueldr>
I ported and validated my device could work with a non-android before starting
<sphalerite>
oh but no wifi support
<samueldr>
your device?
<sphalerite>
yeah
<samueldr>
it may be the porter stopped before even trying
<samueldr>
the reason is "blob needed"
<sphalerite>
yeah, not surprised
<samueldr>
same for my device
<samueldr>
and 99% sure it's the same solution, even though mine is aarch64
<samueldr>
it seems qualcomm-based device have the same solution for wifi across arches
<samueldr>
postmarketos would benefit greatly from nix, it was painful to work with APKBUILDs (works like archlinux PKGBUILDs) when used to nix
<sphalerite>
I don't think I've worked with any package manager other than nix that wasn't painful since discovering nix :p
<sphalerite>
(can't use it as a normal phone anymore because the screen is rather broken)
<samueldr>
I had one
<samueldr>
I miss it
<samueldr>
it seems to have an issue where it goes into thermal runoff?
<sphalerite>
aw
<samueldr>
one night it almost burned me
<samueldr>
and never turned on again
<samueldr>
changed battery as it had bulged greatly
<samueldr>
the area with the CPU gets quite hot quite quickly
<samueldr>
and doesn't want to turn on without unplugging the battery first
<sphalerite>
thanks for pointing me to postmarketos
<sphalerite>
I might just try getting it running on my nexus
<sphalerite>
Have you by any chance managed to get the postmarketos build system running on nixos? Or am I better off just setting up a debian chroot/VM?
<samueldr>
debian VM, chroot may not work
<samueldr>
(though I was going with LXC first)
<samueldr>
their build system makes use of chroots and qemu-user
<samueldr>
it will want to manipulate binfmt
<sphalerite>
aww
<sphalerite>
alright, I'll give it a shot. Thanks!
<samueldr>
while not nix, their build system is entirely CI-driven, so there's no mystery meat like many "here's a stock debian on an android device"
<sphalerite>
that's good
<samueldr>
for the record, I used qemu managed with virt-manager on nixos to build a debian vm for postmarketos
<makefu>
what is the current state of cross-compiling? i saw there is already a very brief subsection in the manual for cross-compiling,however i cannot find the armv6l-linux which seems to be in used on the raspi1 i want to cross-compile for