<elvishjerricco> Dezgeg, samueldr, makefu: https://github.com/ElvishJerricco/cross-nixos-aarch64
<samueldr> tiny issue wrt/ how the readme says to run it:
<samueldr> -with import ../nixpkgs {};
<samueldr> +with import <nixpkgs> {};
<elvishjerricco> samueldr: Whoops
<elvishjerricco> samueldr: Fixed
<samueldr> :)
<elvishjerricco> I can open a PR to nixpkgs with most of the changes, but 36236fa4b5b1cbec05fda6ac817d01f2c814b6d1 isn't really upstream-able. Not sure what to do about it though
* samueldr started the build with `time`, after letting it download all packages, from a fresh nix garbage collection
<samueldr> let's see how long it'll take :)
<elvishjerricco> That ought to be good :P
<samueldr> why?
<elvishjerricco> Oh I just meant I'm curious how long it takes
<samueldr> I am too
<samueldr> luckily, it's cold tonight
<samueldr> 1h10
<samueldr> well, it sure ain't gonna boot if I put the wrong file instead of the kernel in the boot image :/
<samueldr> and the kernel won't boot :/ (using the initramfs from a known working build)
<elvishjerricco> samueldr: So the run-vm script didn't just work out of the box? Darn
<samueldr> oh, no
<samueldr> I'm talking about my android kernel build
<samueldr> the run-vm script didn't work, but didn't take a look
<samueldr> well, a quick peek
<samueldr> it checks $1, but you have it using `set -eu`
<samueldr> something about creating a qcow image I think
<elvishjerricco> samueldr: Yea, $1 should be the file you want to store the disk in
<samueldr> ah
<samueldr> that was it
<samueldr> (didn't look closely :) )
<elvishjerricco> I wish `set -eu` was the default :P
<samueldr> I do too
<samueldr> I often pair it with set -x, and PS4=" $ "
<samueldr> (when the script isn't meant as a end-user program, but as a kind of alias or shortcut)
<elvishjerricco> TIL about PS4, that's sweet.
<samueldr> oh, I should've looked at your README, the second line tells it all :)
<samueldr> well, I did, but stopped at the first command
<elvishjerricco> Hah, yea I was hoping that'd be enough :P
<samueldr> it is
<samueldr> hm, no it shouldn't be enough, but you did do more than most would :D
<elvishjerricco> I need to get into the habit of adding `usage` text by default when I write scripts
<samueldr> I was distracted
<samueldr> works wonderfully
<elvishjerricco> samueldr: Could you share the expression you used to build your android kernel?
<makefu> elvishjerricco: sorry for the late response it was 1:48 CET when i received your response :) yes i want to build a whole system so i only need to `nix copy` the closure to the raspi1
<elvishjerricco> makefu: My goal exactly :)
<makefu> the trick will be something like this: '(import <nixpkgs/nixos> { configuration = ./configuration.nix; })' (from your system.nix)
<elvishjerricco> The trick is the `nixpkgs.crossSystem` line
<makefu> yes exactly
<makefu> nix build -f '<nixpkgs>' --arg crossSystem '(import <nixpkgs> {}).lib.systems.examples.aarch64-multiplatform' '(import <nixpkgs/nixos> { configuration = <stockholm/krebs/1systems/onebutton/config.nix>; })'
efraim has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
efraim has joined #nixos-aarch64
<samueldr> elvishjerricco: I'll push the branch later tonight, or possibly later this week depending
<samueldr> though, it's a standard "manual-linux.nix" build with hacks for the woefully out of date 3.10 kernel branch
<samueldr> + specifics for the device as the tree cannot build in a generic way :|
<samueldr> finally, took the 15 minutes to get to the build machine, push the branch
<samueldr> (it's currently still pushing, somehow)
<samueldr> though, if someone's curious, here's my current issue https://gist.github.com/samueldr/16b0fabe83a890384f40a7b07aad19cb
<samueldr> at the total end of the kernel build, it should be combining the kernel + dtb
<samueldr> though weirdly it seems to think the dtb isn't built
<samueldr> 6 lines beforehand it built the needed dtb
<samueldr> at first I thought it could have been because of parallel build, let it build without parallelism during the night, it wasn't that
<samueldr> the same step did work under the postmarketos build system
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #nixos-aarch64
<elvishjerricco> samueldr: Thanks, that'll help me quite a bit I think.
<samueldr> I would advise doubting everything in there :) there are parts I'm sure could be handled better
<elvishjerricco> Question: ./config-asus-z00t.aarch64 says it's autogenerated. Could that have been done in a derivation rather than being checked in?
<samueldr> the linux build stuff in nixos paired with overriding is a bit much to grok
<samueldr> ah
<samueldr> it's autogenerated, but hand-auto-generated
<samueldr> it's the postmarketos way
<samueldr> the steps were: take the .config from the lineageos build, pass it through menuconfig and change some options needed for postmarketos
<samueldr> (my goal is eventually to make porting from postmarketos easy)
Sonarpulse has quit [Ping timeout: 248 seconds]