orivej has joined #nixos-aarch64
h0m1 has quit [Ping timeout: 260 seconds]
h0m1 has joined #nixos-aarch64
Darkmatter66_ has joined #nixos-aarch64
Darkmatter66 has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 265 seconds]
jamii has joined #nixos-aarch64
<jamii> Hi, what's the expected state on the pinephone at the moment? The latest master cross-compiled successfully and the phone boots to a logo and a green led, but there is no ssh open.
<jamii> Maybe I need to write a nixos config that starts ssh over usb...
jamii has quit [Ping timeout: 240 seconds]
orivej has joined #nixos-aarch64
Darkmatter66_ has quit [Ping timeout: 250 seconds]
Darkmatter66 has joined #nixos-aarch64
zupo has joined #nixos-aarch64
zupo_ has joined #nixos-aarch64
zupo has quit [Ping timeout: 264 seconds]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
rtreffer has joined #nixos-aarch64
wavirc22 has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zarel has quit [Ping timeout: 264 seconds]
pbb has quit [Ping timeout: 265 seconds]
zarel has joined #nixos-aarch64
vika_nezrimaya is now known as kisik21
kisik21 is now known as vika_nezrimaya
pbb has joined #nixos-aarch64
pbb has quit [Remote host closed the connection]
zupo_ has joined #nixos-aarch64
pbb has joined #nixos-aarch64
pbb has quit [Quit: No Ping reply in 210 seconds.]
pbb has joined #nixos-aarch64
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zarel has quit [Ping timeout: 260 seconds]
zarel has joined #nixos-aarch64
zupo has joined #nixos-aarch64
zupo has quit [Ping timeout: 256 seconds]
zupo_ has joined #nixos-aarch64
zupo_ has quit [Client Quit]
zupo has joined #nixos-aarch64
t184256 has left #nixos-aarch64 ["Disconnected: Replaced by new connection"]
t184256 has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
zupo_ has joined #nixos-aarch64
bennofs has quit [Ping timeout: 256 seconds]
zupo has quit [Ping timeout: 264 seconds]
pbb has quit [Remote host closed the connection]
Thra11 has joined #nixos-aarch64
rtreffer has quit [Quit: Leaving]
pbb has joined #nixos-aarch64
pbb has quit [Ping timeout: 246 seconds]
pbb has joined #nixos-aarch64
pbb has quit [Ping timeout: 265 seconds]
pbb_ has joined #nixos-aarch64
<samueldr> aww, I was AFK
pbb_ has quit [Ping timeout: 246 seconds]
jamii has joined #nixos-aarch64
<jamii> Oh, I got booted overnight :S. Second time lucky:
<jamii> What's the expected state on the pinephone at the moment? The latest master cross-compiled successfully and the phone boots to a logo and a green led, but there is no ssh open.
<samueldr> hi, sorry I was AFK :)
<samueldr> do you have the serial cable?
<samueldr> I am not sure if it was shipped with all braveheart units
<jamii> I don't
<samueldr> alright
<jamii> Might take a while to ship atm :S
<samueldr> you burned that to an SD card, right?
<jamii> Yep
<samueldr> no worries, it's not required
<samueldr> power off the pinephone, hard power off is fine
<samueldr> take the card out and `dd` the system.img (once extracted) to the second partition of that SD card https://hydra.nixos.org/job/mobile-nixos/unstable/examples-demo.aarch64-linux.rootfs
<samueldr> I had in mind to write a detailed step-by-step guide on my blog explaining what is going on, as it's not obvious
<samueldr> the default configuration, what's built by just building it from the mobile-nixos repo, or from the hydra builds, cannot set things like passwords, users or services in the built system, as it would interfere with the configuration for a system a user would setup
<samueldr> so the built system.img is, for now, completely useless, so it looks like it's hung, but it's basically successfully doing nothing
<samueldr> (now that I have figured out how users will use the mobile-nixos repo in a built system, I think I have a way out)
<samueldr> once you have a running system, you'll be able to add it to your configuration.nix https://mobile.nixos.org/getting-started.html#_using_in_your_system_configuration
jamii23 has joined #nixos-aarch64
jamii23 has quit [Remote host closed the connection]
jamii59 has joined #nixos-aarch64
jamii has quit [Disconnected by services]
jamii59 is now known as jamii
jamii has left #nixos-aarch64 [#nixos-aarch64]
jamii has joined #nixos-aarch64
<jamii> Sorry, firefox crashed and I had to remember how to ghost my old login. Joys of irc :S
<jamii> Thanks
<jamii> Ok, it's downloading. Will let you know how it goes.
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wavirc22 has quit [Ping timeout: 258 seconds]
wavirc22 has joined #nixos-aarch64
{`-`} has joined #nixos-aarch64
<jamii> Do the rest of the dd settings matter?
<jamii> dd if=Downloads/NIXOS_SYSTEM.img of=/dev/mmcblk0p2 bs=8M oflag=sync,direct status=progress
<gchristensen> you can ignore all but `if` and `of` if you want, and actually you can even `cp Downloads/NIXOS_SYSTEM.img /dev/mmcblk0p2` -> though I'm not sure you shoudl be writing it ot a partition
<clever> jamii: what does `file` and `blkid` say about the file?
<samueldr> gchristensen: yes, to a partition for Mobile NixOS
<gchristensen> ah
<samueldr> this is only the rootfs
<samueldr> the first partition is stage-1 + kernel
<gchristensen> ah
<samueldr> as it tries to make all system types work about the same way, it works with a level of abstraction in mind
* samueldr notes to write a docs section about that
<jamii> Is it ok to just resize that partition?
<jamii> There's plenty of space.
lovesegfault is now known as lovejobsecurity
lovejobsecurity is now known as lovesegfault
<samueldr> yes it would be, I assumed it would have been resized from a successful boot
<samueldr> another option is to build a new image file that uses that pre-built rootfs https://mobile.nixos.org/getting-started.html#_using_a_pre_built_system_img
<samueldr> that way you don't have to do gnarly manual manipulations
<jamii> samueldr: Ok, I resized the second partition and wrote the img. It looks like it's booting.
<jamii> Sweet, it works!
<samueldr> note that the configuration.nix is empty, if you rebuild without ssh, network configuration, or anything special you will boot in a "broken" system again
<samueldr> though you can get to the mobile nixos generation selection menu by holding a volume key (any) during boot
<jamii> Thanks
<jamii> Oh, what's the password for this image?
<jamii> Thanks. This is really exiting :)
<jamii> *exciting
zupo_ has joined #nixos-aarch64
<jamii> There seems to be some issue with ssl certs:
<jamii> [nixos@nixos:~/focus]$ nix-shell -p opensslwarning: unable to download 'https://cache.nixos.org/nix-cache-info': SSL peer certificate or SSH remote key was not OK (60); retrying in 333 ms
<samueldr> look at your date :)
<samueldr> not much the operating system can do
<samueldr> it should be fixed soon, though
<jamii> Oh hah
<samueldr> mobile nixos was (ab)using isContainer to disable the nixos stage-1 generation
<samueldr> and I *think* it affected its ability to recover the date, and ntp itself
<clever> samueldr: that sounds likely
<samueldr> once I rebuilt a system with a WIP branch with that gone, it set itself via ntp
<samueldr> clever: yeah
<samueldr> clever: since it works
<samueldr> I just didn't check :)
<clever> samueldr: did you see my recent gist on how to disable stage-2 instead?
<samueldr> so in a couple days, depending on how my next work day goes, it shouldn't be as much of an issue, but might still be for the first boot
<samueldr> clever: ??
<clever> let me find it...
<samueldr> though now there is a way to disable stage-1 in nixpkgs, thanks to a user I don't remember the spelling of rmnjojnjhn something like that :)
<samueldr> rnhmjoj it was
<clever> stage-2 is now stage-1, lol
<samueldr> ah, that's not "disabling" stage-2 ;)
<samueldr> incredibly simple though
<clever> the entire rootfs is just natively in the initrd
<clever> and it never does pivot_root
<clever> only thing missing, is initializing db.sqlite
<clever> it thinks everything in /nix/store is trash
<samueldr> haha
<clever> i did try a gc, and it literally deleted every single storepath
<clever> the tricky part, is confirming that, when you now lack ls!
<samueldr> echo *
<samueldr> assuming you still have a shell
<clever> exactly
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
zupo has quit [Ping timeout: 264 seconds]
zupo has joined #nixos-aarch64
jamii has quit [Remote host closed the connection]
tilpner has quit [Quit: tilpner]
tilpner has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
zupo has quit [Ping timeout: 256 seconds]
tilpner has quit [Quit: tilpner]
zupo has joined #nixos-aarch64
tilpner has joined #nixos-aarch64
jamii has joined #nixos-aarch64
<jamii> I managed to compile the app I was working on locally on the pinephone, and I think I have a working cross-compile as well but I'll need to pin both to the same nixos version to find out.
<jamii> I'll try writing a config tomorrow.
<jamii> samueldr: Thanks for the help
Thra11 has quit [Quit: WeeChat 2.7.1]
<samueldr> nice
<samueldr> curious about the app
<samueldr> almost no work of mine has been on the userspace for now
t184256 has left #nixos-aarch64 ["Error from remote client"]
zupo has quit [Quit: Textual IRC Client: www.textualapp.com]
zupo has joined #nixos-aarch64
t184256 has joined #nixos-aarch64
jamii has quit [Quit: Ping timeout (120 seconds)]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Darkmatter66 has quit [Ping timeout: 250 seconds]
t184256 has left #nixos-aarch64 ["Disconnected: Replaced by new connection"]
Darkmatter66 has joined #nixos-aarch64
t184256 has joined #nixos-aarch64