ashkitten has joined #nixos-aarch64
Church- has joined #nixos-aarch64
wavirc22 has quit [Read error: Connection reset by peer]
wavirc22 has joined #nixos-aarch64
<ashkitten> samueldr: where do i need to put firmware blobs for nixos to load them?
<samueldr> good question
<samueldr> (I don't have an answer)
<samueldr> it should be the same as default nixos, but that means some nix-controlled path under /run/current-system
<ashkitten> hmmm
<samueldr> this is how it works for pixel 2, but that's because it uses a vendor partition
<clever> for firmware that a linux driver requests via standard means, /run/current-system/firmware via hardware.firmware
<samueldr> if you added firmware_class.path to the kernel cmdline to a path you control that's an option for now
<ashkitten> samueldr: this phone also has a vendor partition i believe
<ashkitten> maybe if i just add those lines then?
<samueldr> look at by-partlabel, and implement the change in marlin/default.nix
<samueldr> yes
<samueldr> I'm thinking that's going to be the way forward for vendor firmwarey bits for those devices with a vendor partition
<samueldr> not sure about those without a partition though
leonardp has quit [Ping timeout: 240 seconds]
h0m2 has joined #nixos-aarch64
h0m1 has quit [Ping timeout: 246 seconds]
<ashkitten> samueldr: does changing that need me to change the system image or just the boot image?
<samueldr> hmm
<samueldr> pretty sure just the boot image
<ashkitten> okay cool
<samueldr> yeah, it's setup during stage-1 as it may be required by stage-1
<samueldr> (for e.g. rndis to work)
<samueldr> there still is no configuration specific to stage-2 in mobile nixos, weirdly enough
<samueldr> I can boot the same image on the pinephone, all my android devices, and the chromeos based tablet
<ashkitten> huh nice
<samueldr> yes, since I realised it's possible it's been a side-goal to have a universal system image
<samueldr> that would mean we only need to publish one for people to bootstrap themselves
<ashkitten> samueldr: i added those lines but /vendor isn't getting mounted
<samueldr> hmmm
<samueldr> oh
<samueldr> I'm not sure I re-mount / move mounts after stage-1 is over
<samueldr> though, it may have been able to load the firmware during boot
<ashkitten> i'm not sure, since networkmanager is still not showing the device
<samueldr> >>
<samueldr> /sys/module/firmware_class/parameters/path
<samueldr> check in that file if /vendor is still there, if it is, mount manually and... I don't know how to kick firmware loading up
<samueldr> maybe look at dmesg output?
<ashkitten> `dmesg | grep -i firmware` is empty
logand`` has joined #nixos-aarch64
logand` has quit [Ping timeout: 250 seconds]
<ashkitten> wait, why don't i have modprobe
<ashkitten> samueldr: how do i get modprobe in the demo image? i believe that's what i need to load the firmware blob
<samueldr> not sure
<samueldr> try echo /nix/store/*/bin/modprobe
<samueldr> it should be in there, but not in PATH
<ashkitten> hmm i've got no idea
<ashkitten> there's no modules loaded, idk what i expected
<ashkitten> it's all compiled into the kernel
<ashkitten> samueldr: https://wiki.postmarketos.org/wiki/WiFi#Qualcomm_WiFi seems to indicate i should have some files in /vendor/firmware named wcnss.b00, wcnss.b01, etc
<ashkitten> which i don't
<samueldr> I think these instructions apply to older qualcomm wifi devices [citation needed]
<ashkitten> hmm
<samueldr> this is part of the unfun things I have yet to research
<samueldr> trying to figure out the ins and outs of those drivers
<ashkitten> should i ask in #postmarketos or do you think they'd not help since it's not their project
<samueldr> I don't think they won't help for the general question of wi-fi on pixel 1 devices (or snapdragon 8whatever)
<samueldr> but understandbly they can't help with specifics of mobile nixos
<ashkitten> fair enough
<samueldr> can't find the information
<samueldr> but there's something about recent kernels and wifi drivers sometimes not being part of the tree
<ashkitten> hmmm
<samueldr> WLAN-qacld
<samueldr> might be a search term
<samueldr> not sure about your vintage of SoC though
<samueldr> qcacld*
<ashkitten> can you make any sense of that?
<ashkitten> i can't
<samueldr> yes and no
<samueldr> that's immensely useful I think
<samueldr> but that's layering it thick
<ashkitten> hmm okay
<ashkitten> well i'm stepping out of this one, i'm way out of my depth
<samueldr> though this could be for mainline, I'm unsure now
<samueldr> still something useful I hadn't seen
<samueldr> oh, Dan//ct12[m] is right here
<samueldr> (looked at the issue text and not the linked comment)
<samueldr> and using halium seems to be working for 'em so I figure since halium might be the pragmatic solution for more devices that's going to be the way forward
<ashkitten> fair enough
<samueldr> when I said "right here" I meant "in this channel" :)
<ashkitten> we can worry about getting devices on mainline kernels and such later, getting it working is more important i think
<samueldr> though it would be nice if a non-halium solution existed too
<samueldr> yes!
<samueldr> make it trivial to port a non-mainline system so the distro is not used by only a handful, but maybe a couple handfuls of developers!
<ashkitten> yes hehe
<ashkitten> what is halium?
<samueldr> especially since getting a useful phone system (e.g. phone GUI), a good chunk of the work will be the same regardless of mainline or not
<ashkitten> right
<samueldr> brielfy said, and probably wrong, halium is a way to get a container based on android to run the blobby bits on non-android https://docs.halium.org/en/latest/
<ashkitten> ah i see
<ashkitten> how trivial is that going to be to incorporate into mobile nixos?
<ashkitten> (i said it the right way around this time!)
<samueldr> :)
<samueldr> unknown yet, but I will not make it harder on myself than it should, I'll compromise and dot the rootfs with some android-specific folders if it helps
<ashkitten> heh
<ashkitten> save cleanup for ourselves later
<ashkitten> i'm sure in a year or two when mobile nixos is getting support for more devices we'll be able to start making it more nix-y
<samueldr> that's part of the dream
<ashkitten> c:
<samueldr> invoking cunningham's law, doing it wrong so others can correct me ;)
<ashkitten> ahaha
* ashkitten clicks "reboot", phone shuts down
* ashkitten clicks "shut down", phone reboots
<ashkitten> :V
<ashkitten> i guess "reboot" means "reboot but slower" and "shutdown" means "reboot quickly" now
<samueldr> is it plugged into the power?
<ashkitten> yeah
<samueldr> most qualcomm phones will not shutdown when plugged
<ashkitten> hmph
<samueldr> yes hmph
<samueldr> pretty annoying
<samueldr> they do boot in a special "battery" os, but I think that OS may have been "broken" by bad assumptions by Mobile NixOS
<ashkitten> i shut it down from the bootloader
<ashkitten> and then it rebooted
<ashkitten> into the os
<samueldr> yep
<ashkitten> hnnnnn
<ashkitten> whatever, i'll just leave it unplugged
<samueldr> I believe the default initramfs has a way to detect that condition and uses it to stay in a special boot mode
<samueldr> probably a kernel commandline
<ashkitten> right
* samueldr notes to check the issue
<samueldr> it would be best if we could somehow handle it
<ashkitten> anyway i'm gonna make a pull request to make marlin match walleye a bit more, because it also has boot_as_recovery and vendor_partition
<ashkitten> and ab_partitions
<samueldr> great, thanks
<samueldr> it has boot as recovery?
<samueldr> it doesn't seem to need the skip_initramfs patch
orivej_ has quit [Ping timeout: 264 seconds]
<samueldr> oh no
<samueldr> it does
<samueldr> yes
<ashkitten> it does, all ab devices do i think
<samueldr> I didn't recognize the patch name
<samueldr> I'm not positive they all do, but I would assume it's more likely
<samueldr> there's some OEMs doing funky stuff
<ashkitten> as far as i know, all a/b devices lack a recovery partition
<samueldr> xiaomi redmi note 7 has boot as recovery like things, e.g. does skip_initramfs funkyness, but still has a recovery partition... but yeah that's not A/B
<samueldr> I don't have the docs page for it, but IIRC the android docs don't say that boot as recovery is dependent on A/B and A/B on boot as recovery
<samueldr> so I'm wrong, and I misinterpreted that
<samueldr> though I would assume OEMs could ship weird configurations
<samueldr> so I'll not default to boot_as_recovery when ab is defined
<ashkitten> if you think it's better to keep them separate i have no opposition to that
<samueldr> we also have to think about non-android devices
<ashkitten> right
<samueldr> depthcharge-based devices can technically be configured as A/B
<samueldr> but there's no boot as recovery there
<ashkitten> samueldr: can i just lump these changes together as "google-marlin: fix partitions" or do you want separate commits?
<samueldr> if you can do them as logical changes, please do, but since it's all in one file it's also not an issue
<ashkitten> alright
<samueldr> if it was concurrent changes in multiple files lumped in one commit then that wouldn't do
<ashkitten> pr made
<ashkitten> samueldr: btw, what does postmarketos use for the on-screen keyboard? is it part of plasma mobile?
<samueldr> no idea
<craige> IIRC, yes, ashkitten
<samueldr> I assume all of the PE (phone environment) will use their own
* craige ran PostmarketOS briefly.
<samueldr> so the right answer is probably "it depends which"
<ashkitten> hmm okay
<ashkitten> was wondering since it looks like onboard hasn't been developed since 2017
<ashkitten> and it has missing keys in some layouts
<ashkitten> "small" layout with dvorak is missing s, v, w, and z
<samueldr> btw, maybe it's not obvious, but this is not intended to be the final product
<ashkitten> i mean, yeah
<samueldr> that example/demo system is simply something I threw together in the two weeks leading to nixcon to have something spiffy to show :)
<samueldr> cut all the corners so round you won't believe it :)
<ashkitten> honestly though, as long as i can get internet and a web browser i will probably be using this as my phone os
<ashkitten> i'm so sick of android i would use literally anything else
<samueldr> hah :)
<samueldr> really what's expected is that the different more focused environments will be usable at some point
<ashkitten> though my relatives keep trying to call me and i might worry them if i don't answer my phone... shrug
<samueldr> I have time reserved for porting one of the phone environment in the future
<samueldr> porting meaning packaging in nixpkgs
<ashkitten> that would be great
<samueldr> (though, I must say I personally might actually end up using that hacked up thing even if there is a more focused PE in the future)
<samueldr> (I don't dislike it)
<ashkitten> it's not bad!
<ashkitten> except the keyboard, which is very bad
leonardp has joined #nixos-aarch64
wavirc22 has quit [Ping timeout: 264 seconds]
wavirc22 has joined #nixos-aarch64
lovesegfault has quit [Quit: WeeChat 2.7.1]
orivej has joined #nixos-aarch64
lovesegfault has joined #nixos-aarch64
<logand``> i have inherited xiaomi redmi a2 lite and would love to have nixos there, does nixos run on xiaomi redmi a2 lite?
<ashkitten> logand``: right now? it doesn't look like that device is in the mobile-nixos repo. it could be though, if you put it there.
lovesegfault has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 256 seconds]
<logand``> ashkitten: ok
<logand``> cloned the mobile-nixos repo now
<logand``> i wonder how hard would it be to port it to mi a2 lite
<ashkitten> i don't think it will be too hard, considering there are other xiaomi devices as well as devices with the same soc
orivej has joined #nixos-aarch64
<Valodim> samueldr: hdmi out works with 4.19 kernel on a 20.03
<Valodim> a fresh 20.03 sd image does *not* work, but hangs at "starting kernel..."
<Valodim> concretely, this image: nixos-sd-image-20.03beta733.d5661765539-aarch64-linux.img
orivej has quit [Ping timeout: 258 seconds]
zupo has joined #nixos-aarch64
lovesegfault has joined #nixos-aarch64
<Valodim> weird. I do believe I had an sd image from unstable (that I built myself) that did work. I'll check
<Valodim> yep, I had that. I'll check if it works with a fresh hydra-built unstable sd image for comparison
<Valodim> the one I had compiled myself had hdmi_force_hotplug=1 in it
<Valodim> ah, modifying hdmi_force_hotplug=1 on the firmware partition on the 20.03 image does fix it!
<leonardp> Valodim: you can also set: dtoverlay=disable-bt if you are experiencing issues with the serial console
<Valodim> I don't have serial console :)
<leonardp> oh, then enjoy your undisturbed bluetooth :)
FRidh has joined #nixos-aarch64
lovesegfault has quit [Quit: WeeChat 2.7.1]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has joined #nixos-aarch64
zupo has joined #nixos-aarch64
kai_w has quit [Quit: Konversation terminated!]
kai_w has joined #nixos-aarch64
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 250 seconds]
{`-`}_ has joined #nixos-aarch64
{`-`} has quit [Ping timeout: 246 seconds]
zupo has quit [Ping timeout: 265 seconds]
zupo has joined #nixos-aarch64
leonardp has quit [Remote host closed the connection]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 265 seconds]
WilliButz has quit [Remote host closed the connection]
WilliButz has joined #nixos-aarch64
zupo_ has joined #nixos-aarch64
zupo has quit [Ping timeout: 240 seconds]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
<thefloweringash> So can we get one of those 96C/384T arm boxes to play with? ;-)
<gchristensen> we have 96 core boxes, but what are these 384 thread ones? :)
<thefloweringash> They might only be in the “announced” phase, https://www.nextplatform.com/2020/03/16/marvell-cranks-up-cores-and-clocks-with-triton-thunderx3/
orivej has joined #nixos-aarch64
wavirc22 has quit [Read error: Connection reset by peer]
wavirc22 has joined #nixos-aarch64
zarel_ has quit [Ping timeout: 240 seconds]
zarel has joined #nixos-aarch64
wavirc22 has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 240 seconds]
zarel_ has joined #nixos-aarch64
zarel has quit [Ping timeout: 264 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
leonardp has joined #nixos-aarch64
orivej has joined #nixos-aarch64
craige has quit [Quit: ZNC - http://znc.in]
<samueldr> Valodim: noted, can you open an issue with what you know and tried with the issue, cc @samueldr ?
<samueldr> not sure though when I'll personally be able to get to that, but if it's on the github issue tracker, hopefully when others have the issue it'll centralise the reports
<Valodim> will do, thanks
orivej has quit [Ping timeout: 264 seconds]
zupo has quit [Ping timeout: 250 seconds]
<Valodim> I wonder if not having a working installation image might be a blocker for 20.03, since rpi3 is officially supported?
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
v0|d has quit [*.net *.split]
tilpner has quit [*.net *.split]
cptchaos83 has quit [*.net *.split]
v0|d has joined #nixos-aarch64
cptchaos83 has joined #nixos-aarch64
wavirc22 has joined #nixos-aarch64
FRidh has quit [Quit: Konversation terminated!]
tilpner has joined #nixos-aarch64
kai_w has quit [Quit: Konversation terminated!]
orivej has joined #nixos-aarch64
wavirc22 has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
wavirc22 has joined #nixos-aarch64
wavirc22 has quit [Client Quit]
wavirc22 has joined #nixos-aarch64
lovesegfault has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
logand`` has quit [Ping timeout: 256 seconds]
<ashkitten> samueldr: so it looks like from the halium documentation, it wants you to use its own stage-1?
<samueldr> I don't know yet
leonardp has quit [Remote host closed the connection]
craige has joined #nixos-aarch64