orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-aarch64
<samueldr> hi!
<samueldr> "stuck in recovery mode" meaning what exactly?
<samueldr> it could be the Mobile NixOS recovery menu showing up at boot
<samueldr> or another recovery
<samueldr> or stuck at fastboot mode could be another possibility I guess
<samueldr> if it's the mobile nixos recovery, does selecting a generation continue booting? if so, something is "stuck" launching it in recovery mode
<samueldr> which, if it's been freshly built with some of the changes I merged today, maybe there's a tiny mistake with an assumption with boot as recovery and such
<samueldr> I kinda lost the ability to trivially test on the note 7 for the moment :/
<cript0nauta> i'm able to boot the Mobile NixOS Recovery Menu
<cript0nauta> and it has two available generations to boot from
<cript0nauta> but when I choose any of those generations the system is stuck (even the date freezes) and I need to reboot it
<cript0nauta> btw: I had to disable the mruby tests because they were failing when I built the images from a raspberry pi
kahiru has quit [Ping timeout: 265 seconds]
alp has quit [Ping timeout: 272 seconds]
kahiru has joined #nixos-aarch64
<cript0nauta> ok, just downloaded the prebuilt image at https://hydra.nixos.org/build/119736617 and now it booted ok :)
<samueldr> ah
<samueldr> I still need to figure out an alternative
<samueldr> it was actually successfully doing nothing!
<samueldr> the trouble is the defaut build (running nix-build) cannot interfere with a running system, e.g. your configured system
<samueldr> so it cannot trivially just start an app that says "success!" with e.g. a poweroff button
<samueldr> that wouldn't be convenient for your running system!
<samueldr> the default image is extremely minimal, basically like an unconfigured nixos system
<samueldr> but qualcomm android devices cannot use the VT terminal
<samueldr> (with OEM kernels)
<samueldr> so you're stuck with whatever was last shown
<samueldr> if you were using e.g. asus-dumo or a pinephone, you would have seen the VT
orivej has quit [Ping timeout: 256 seconds]
h0m1 has quit [Ping timeout: 272 seconds]
<cript0nauta> oh ok, that makes sense!
h0m1 has joined #nixos-aarch64
Darkmatter66 has joined #nixos-aarch64
Darkmatter66_ has quit [Ping timeout: 260 seconds]
<cript0nauta> now i'm struggling to get wifi working :(
<samueldr> I don't have it working yet
<samueldr> newer devices, with the oem kernel, uses a daemon to configure the wireless stuff, this is work to be done
<samueldr> I have to do a couple tasks before working on that one, so that it becomes easier
<cript0nauta> oh ok
<cript0nauta> what would you recommend to communicate between the phone and my machine?
<samueldr> the easy solution is to use a usb hub on the type-c connecor
<samueldr> I know that with lavender it should work with full on type-c hub with power delivery, including re-delivering power
<samueldr> then I use an ethernet adapter to usb-A on that hub
<samueldr> otherwise, rndis should work, if setup in stage-1, or if you set it up in stage-2 (no helper yet)
<samueldr> though you'll need to know how to route packets from your computer to the phone
<samueldr> that, I don't know how :)
<cript0nauta> ok, I'll see what can I do then
<cript0nauta> thanks a lot for helping!
cole-h has quit [Quit: Goodbye]
zupo has joined #nixos-aarch64
alp has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
ninjin has quit [Remote host closed the connection]
ninjin has joined #nixos-aarch64
ninjin has quit [Quit: WeeChat 2.7.1]
zupo has joined #nixos-aarch64
orivej has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alp has quit [Ping timeout: 260 seconds]
wavirc22 has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
<angerman> anyone got nixos on a rockpi (rk3399)? Looking for some image generation setup.
wavirc22 has joined #nixos-aarch64
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-aarch64
alp has joined #nixos-aarch64
orivej has quit [Read error: Connection reset by peer]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 272 seconds]
orivej_ has joined #nixos-aarch64
Darkmatter66_ has joined #nixos-aarch64
Darkmatter66 has quit [Ping timeout: 256 seconds]
<samueldr> looks like there's finally a beta for fully usb boot
<samueldr> for the pi4
orivej_ has quit [Ping timeout: 258 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-aarch64
zupo has joined #nixos-aarch64
wavirc22 has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
wavirc22 has joined #nixos-aarch64
<angerman> Yep. Haven’t had a chance to try it yet though.
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-aarch64
orivej_ has joined #nixos-aarch64
orivej has quit [Ping timeout: 264 seconds]
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #nixos-aarch64
t184256 has left #nixos-aarch64 [#nixos-aarch64]
orivej has joined #nixos-aarch64
orivej_ has quit [Ping timeout: 272 seconds]
t184256 has joined #nixos-aarch64
orivej_ has joined #nixos-aarch64
orivej has quit [Ping timeout: 265 seconds]
cole-h has joined #nixos-aarch64
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-aarch64
claudiii has quit [Ping timeout: 240 seconds]
TheNumb has quit [Ping timeout: 246 seconds]
pkral has quit [Ping timeout: 272 seconds]
angerman has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-aarch64
NekomimiScience has quit [Ping timeout: 265 seconds]
angerman has joined #nixos-aarch64
NekomimiScience has joined #nixos-aarch64
TheNumb has joined #nixos-aarch64
pkral has joined #nixos-aarch64
wavirc22_ has joined #nixos-aarch64
wavirc22 has quit [Ping timeout: 256 seconds]
claudiii has joined #nixos-aarch64
wavirc22 has joined #nixos-aarch64
orivej has quit [Read error: Connection reset by peer]
orivej_ has joined #nixos-aarch64
wavirc22_ has quit [Ping timeout: 265 seconds]
Thra11 has joined #nixos-aarch64
orivej_ has quit [Ping timeout: 265 seconds]
orivej has joined #nixos-aarch64
alp has quit [Ping timeout: 265 seconds]
orivej_ has joined #nixos-aarch64
orivej has quit [Ping timeout: 272 seconds]
orivej_ has quit [Ping timeout: 265 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-aarch64
alp has joined #nixos-aarch64
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-aarch64
zupo has joined #nixos-aarch64
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-aarch64
alp has quit [Ping timeout: 246 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
orivej has quit [Ping timeout: 272 seconds]
orivej has joined #nixos-aarch64
orivej_ has joined #nixos-aarch64
orivej has quit [Ping timeout: 265 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-aarch64
quinn has joined #nixos-aarch64
<quinn> i'm trying to test buildability and functionality of (non graphical) software for raspi on qemu, is experience in this respect likely to be similar between the VM and a raspi 3/4?
<clever> quinn: some of the hw peripherals will differ, and the firmware api is entirely lacking
<clever> quinn: it will depend on what the software is doing
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-aarch64
<quinn> clever: to be more specific, i'm trying to test asterisk (PBX software) it's basically just a complicated proxy for SIP and RTP. i don't think i need any peripherals besides an SD card
<clever> quinn: ah, if its just basic arm stuff, the difference shouldnt matter that much, as long as your not using optional arm things like crypto accel
<quinn> i don't even think i need crypto lol. that is great news!
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
alp has joined #nixos-aarch64
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-aarch64
Thra11 has quit [Quit: WeeChat 2.8]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Edes has joined #nixos-aarch64
<Edes> Hello, what's the best way to build a raspberry pi 3 image with a premade configuration? I need the wifi to be configured on the image
<cript0nauta> Edes maybe this will help you: https://rbf.dev/blog/2020/05/custom-nixos-build-for-raspberry-pis/
<cript0nauta> using binfmt_misc will be really slow, but it will probably work
<angerman> Yes that one works quite well. I’ve been building aarch64 images with it. Couldn’t get armv7l to work though.
<Edes> yeah, I used his guide and it worked, but for some reason I can't change the configuration and rebuild, it runs with no errors (even when I change something) but it doesn't change
<Edes> well, I used the docker image, so who knows how he did it
<Edes> the binfmt thing didn't work for me
<angerman> Edes: edit the config/sd-... file
<Edes> is the configuration not in /etc/nixos/configuration.nix?
<angerman> And then ./run.sh; it “just” worked for me 🤷
<angerman> Edes: not id you build the image.
<Edes> oh wait
<Edes> yeah
<Edes> that worked for me no problem
<Edes> the issue is that I can't change the config on the pi
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-aarch64
<angerman> copyConfiguration or so is set to false
<angerman> I’ve a nixops Setup ... maybe I should upstream that.
<Edes> I'm not sure what you mean by copyConfiguration
<angerman> Edes: it’s in the sd-config I think.
<angerman> Edes: the approach taken by that repo is to just regenerate the image each time, assuming you want some form of immutable image and system.
Edes has quit [Quit: Lost terminal]
Edes has joined #nixos-aarch64
<Edes> whoops my connection went down
<Edes> so is there no way to use the same docker image and being able to change the image in place?
t184256 has left #nixos-aarch64 ["Error from remote client"]
<cript0nauta> your problem is that "nixos-rebuild switch" inside the raspi doesn't work?
<Edes> yeah
<Edes> it runs, stays a while on the building the system configuration... message and then ends with no errors
<cript0nauta> your problem could be that your configuration doesn't properly configure the boot system
<colemickens> Edes: is this the rpi4?
<cript0nauta> for my raspi, I had to add <nixpkgs/nixos/modules/installer/cd-dvd/sd-image-aarch64-new-kernel.nix> to the imports in my configuration.nix
<Edes> but then none of the changes happen to the system, if you reboot it shows no new generations and none of the packages I added are in the nxi store
<samueldr> Edes: if your image is built using the sd_image thingy, it should use the extlinux configuration file and not the (confusing) raspberry pi options
<cript0nauta> (it's a raspberry pi 3)
<Edes> it's the raspberry pi 3
<colemickens> You have to fix the /boot mount
<colemickens> Oops
<samueldr> the other raspberry pi options are for instead relying on the raspberry pi's own bootloader infra, which will not allow selecting a generation
<samueldr> when using those other raspberry pi options, the FAT32 "boot" partition (named FIRMWARE on our sd image) would need to be mounted appropriately
<samueldr> for example, this is a raspberry pi configuration for one of mine https://gitlab.com/samueldr/nixos-configuration/-/blob/master/machines/bart/default.nix#L24-25
<samueldr> no boot.loader.raspberryPi in sight
<Edes> I don't think I used either on my config
<Edes> actually
<samueldr> that would cause it to not update any bootloader!
<Edes> hmm
<Edes> ok I'll add those options and build another image and flash it, give me a sec
<Edes> thanks
<samueldr> though if you started from sd_image, somehow, you're using u-boot
<samueldr> and I wholly recommend you use u-boot
<samueldr> selecting a generation is basically one of the great selling point of nixos :)