<samueldr> the postmarketos porting guide will give a lot of good information and clues
<samueldr> in fact, if you have a lot of trouble with the initial porting and there is already a port for postmarketOS, it can help check assumptions
<samueldr> e.g. you could build their port, verify it boots
<samueldr> then take their kernel, "dirtily" use it, to see if it does any better
<samueldr> though you could also do this with e.g. a TWRP kernel, but generally the other way around
<samueldr> take a kernel built with mobile nixos, and boot twrp with it
<jmc-figueira> Alright, I'll start there then. Thanks for the info
<samueldr> don't hesitate to ask questions, here is fine
criptonauta__ has joined #nixos-aarch64
criptonauta_ has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bennofs__ has joined #nixos-aarch64
bennofs_ has quit [Ping timeout: 264 seconds]
jmc-figueira has quit [Quit: Connection closed]
rajivr has joined #nixos-aarch64
patagonicus5 has joined #nixos-aarch64
patagonicus has quit [Ping timeout: 265 seconds]
patagonicus5 is now known as patagonicus
h0m1 has quit [Ping timeout: 260 seconds]
h0m1 has joined #nixos-aarch64
davidak[m] has joined #nixos-aarch64
<davidak[m]> samueldr: do you think it would be a good idea to focus in the Getting Started guide for mobile NixOS on the uefi-x86_64 vm with demo example, so people see something working ASAP and can play around and create a config, before getting to hardware? they might be frustrated when they worked hours to get it flashed, just to see it's not ready for daily use or their favorite program is missing. for nixos, we usually
<davidak[m]> also recommend to try it out in a vm
<samueldr> maybe!
<samueldr> until this month I spent basically no time really working on the "final" product, e.g. stage-2
<samueldr> pretty much all the time was spent on the foundational things to boot to stage-2 in the most sturdy and trusted manner
<samueldr> so I haven't spent that much time thinking about users and their desired configs
<samueldr> I think though that there cannot be "a" getting started guide
<samueldr> it will be different guides for different uses
<davidak[m]> that seems resonable
<samueldr> for some people, getting started is getting started with a port
<samueldr> for others it will be getting started with installing one of the example configs
<samueldr> and then there's "getting started in making a new config"
<samueldr> which I think is what you were getting at
<davidak[m]> i just wanted to check out the current state. it took some time to find out that i can create a vm with
<davidak[m]> nix-build examples/demo --argstr device uefi-x86_64 -A build.vm
<davidak[m]> so it would be great if that would be more straight forward and documented
<samueldr> yeah, to be fair I still don't think there's much to really show yet :)
<samueldr> but since I'm packaging up plasma mobile, and I believe there's phosh work in Nixpkgs, soon there will be more "something" to show
<davidak[m]> so i can decide if it's worth to buy a supported device or wait...
<samueldr> (the examples/demo system is bound to go away)
<samueldr> davidak[m]: more importantly, there's no per-device features support matrix yet!
<samueldr> tell me, at a glance, which devices support wi-fi!
<davidak[m]> yes, i'm following https://github.com/NixOS/nixpkgs/pull/88767
<{^_^}> #88767 (by masipcat, 41 weeks ago, open): Librem 5 phone packages
<davidak[m]> i guess the best support will the pinephone have?
<samueldr> at first, yes, as it's trivial to get things working since it's meant to work with non-android linux
<samueldr> but hopefully there will be enough progress either with mainline qualcomm phone ports, or with my research with vendor kernels
<samueldr> that it will become much harder to make a choice!
<davidak[m]> they might have some in stock this month
<samueldr> I *really* want to make my razer phone 2 my "main" device
<samueldr> plop it in a docking station, get the eDP out + mouse/keyboar
<samueldr> mouse/keyboard*
<samueldr> and with a snapdragon 845, would be quite snappy
<davidak[m]> do you plan to have a roadmap when you get an overview about users needs?
<samueldr> to be fair, I have no idea what is going to happen once I'm "done" with the nlnet funding
<davidak[m]> like when phosh and plasma is generally working
<samueldr> (to recap, it's a list of milestones, paid on delivery of the features)
<samueldr> so I'm not even sure I can manage a roadmap once I'm "done"
<davidak[m]> what is the last milestone?
<samueldr> there is no real "last" milestone, but left, a couple for the stage-1 software to help with initial installation, then a lot of "hardware enablement"
<samueldr> e.g. making wifi work, making GPU accel work with vendor kernels, making sms/calls work with vendor kernels
<davidak[m]> i also thought about funding. since the github funding links to nixos opencollective, maybe the foundation could fund some more months? or you could setup liberapay or something yourself
<davidak[m]> there should be at least some people that care about further development, especially when they have SOMETHING working on their device
<samueldr> that's something I know I have to get in order soon~ish
<samueldr> yes
<davidak[m]> did you get funding from pine64?
<samueldr> figure out a way to make it my living wage
<samueldr> none
orivej has joined #nixos-aarch64
<davidak[m]> could you estimate what a specific port would cost? people could crowdfund them... for example i'm interested in fairphone2, but i'm not experienced with phones, so it would be more efficient when someone else does it https://wiki.postmarketos.org/wiki/Fairphone_2_(fairphone-fp2)
evils has quit [Ping timeout: 264 seconds]
<samueldr> speaking of vendor kernel ports
<davidak[m]> i guess it would be multiple hundred euros, so too much for a single person to pay
<samueldr> it really is variable, and depends on whether it can benefit from other work on the topic
<samueldr> e.g. if there is another snapdragon 801 device well supported, it's likely to be *trivial enough* to be mostly an issue of having access to the hardware
<samueldr> because generally my experience has been that on the same SoC, things generally are close enough
<samueldr> now, mainline ports, that's a whole other story
<samueldr> but still similar, if there are other devices with mainline ports on the same SoC, it starts you up real good
<samueldr> though, unrelated to your actual question, the snapdragon 801 is armv7, which is not a good experience with NixOS for the time being
<davidak[m]> i also own a https://wiki.postmarketos.org/wiki/Xiaomi_Redmi_Note_4_(xiaomi-mido) which has same SoC as Moto Z Play
<davidak[m]> it's a quiet affordable, but powerful device
<samueldr> yeah, the z play was my main phone for a bit
<samueldr> interesting, the xiaomi-mido port seems to imply usage of mainline
<davidak[m]> have you thought about adding a maintainer field to the ports? it's good when someone is responsible for it, so it's not abandoned
<samueldr> yes, thought about it
<samueldr> I really should add that
<davidak[m]> maybe create an issue :D
zhaofeng has joined #nixos-aarch64
<davidak[m]> >For running Phosh you'll need recent kernel with properly working DRM drivers (downstream kernels will probably not work).
<davidak[m]> good to know. not sure if that's up to date info
<zhaofeng> Ha, I was just about to ask about Phosh. I modified [1] archseer's expressions to build on the current master, but there is something wrong with the session (bear with me) and Phosh refuses to start.
<zhaofeng> I have a very naive question: Where can I find actually useful logs for "Oh no! Something has gone wrong"? journalctl gives me zero useful information ("Entering running state" then "Could not find the icon 'computer-fail-symbolic'" for the error screen)
<zhaofeng> However, if I start Phosh with `phoc -E /nix/store/xxxx-phosh/libexec/phosh`, I see the Phosh lock screen, but tapping it crashes Phosh, with logs indicating that some settings schema are not installed (understandable as the real session file includes a lot of dependencies).
<zhaofeng> The device is PinePhone (which had been collecting dust since September last year), with mobile-nixos master.
<samueldr> davidak[m]: in theory yes, in practice it's more subtle than that
<samueldr> the reason they state this is that "it needs wayland to be able to run"
<samueldr> and "wayland" not being a tangible thing
<samueldr> it really means "it needs the backend phoc is built on, wlroots, to be able to run"
<samueldr> and wlroots, for all practical purposes here, only supports DRM+KMS
<samueldr> zhaofeng: sounds like a good question for the upstream phosh/phoc project
<samueldr> davidak[m]: I have some notes around about 2-3 strategies to work around that, we'll see once I get plasma-mobile done if I have the time to try them
<samueldr> (some wayland people would get mad about even thinking those ideas)
<davidak[m]> :D
<samueldr> I learned a lot about the foundations of wayland compositors last week in preparation for all of this... because I didn't know much beforehand
<samueldr> zhaofeng: not that I'm brushing you off here, more that I don't know, and would be good things to learn I guess
<samueldr> so report back with an answer if possible!
<zhaofeng> Ah, no offense taken at all, I'm just waiting for my Matrix homeserver to join the phosh channel :P
<zhaofeng> Always fun to debug Matrix issues
<Ke> being slow is not debuggable issue
<Ke> afaik that's what it is
<zhaofeng> No, it's actually a timeout now that I see the log. I can't seem to reach https://talk.puri.sm:8088 from either my homeserver or my desktop :(
<Ke> also far from trivial one, I bet since it has been very prominently there for ages
<Ke> I'm on some puri.sm channels at least from kapsi matrix server, so definitely it federates
<zhaofeng> Yeah, every time I try to join a moderately large room on Matrix, it goes like this: M_UNKNOWN -> wait 5 minutes -> refresh -> works
<zhaofeng> If someone has an alias for the room, I think I can join through that
<davidak[m]> zhaofeng: i also get a timeout in browser. maybe they are down or it's the wrong URL?
<zhaofeng> My bad, it's the wrong URL (the server is delegated to https://talk.puri.sm/_matrix which works), and my homeserver is broken in a weird way *facepalm*
<davidak[m]> samueldr: here is a poll what desktop people use. just for perspective what to prioritize on https://fosstodon.org/@tuxdevices/105787176153563455
<samueldr> davidak[m]: for reasons, plasma mobile is in the milestones agreed upon
<davidak[m]> ok. it also don't look bad
<samueldr> it's not about deciding "an" interface for Mobile NixOS, it is only about work for porting
<samueldr> there is no "one" interface
<samueldr> I don't even know what I'll end up using
<samueldr> just like NixOS, it is designed so that you're free to use what you want
<davidak[m]> sure. the phosh pr seem to be close to merge
<samueldr> yeah
<Ke> I'd hope that all work be directed towards nixpkgs anyway as an end goal
<Ke> and use mobile only for staging
<Ke> but obviously people who do the work should make the call
<samueldr> any *packaging* work, except for extremely device-specific, happens in Nixpkgs
<samueldr> I won't be doing the Plasma Mobile things in the Mobile NixOS repo
<samueldr> anyway it'd be harder for no good reason
<davidak[m]> good
<samueldr> though you'll see tools for building Mobile NixOS things not in Nixpkgs... that's because it'd be more than inconvenient to have to sync with Nixpkgs
<samueldr> (e.g. mkbootimg things)
<samueldr> in a future, the goal would be that the mobile nixos repo is deleted, that all packaging happens in Nixpkgs outright, and mobile device descriptions are "just" more nixos hardware
<davidak[m]> perfect
<Ke> yes
<davidak[m]> samueldr: was Anbox integration discussed as a milestone? support for android apps would make it much more usable for daily use
<Ke> I saw some anbox discussions and it seem to me the project in upstream is orphan
<Ke> wrt. nixos
criptonauta__ has quit [Quit: Leaving]
<samueldr> davidak[m]: no, because anbox already works in NixOS proper
<davidak[m]> oh, nice
<samueldr> and I'm not working on developing... "generic" software
<samueldr> I'm working on integration
<samueldr> (well, except for the whole stage-1 stuff...)
<samueldr> but yeah, I'd say "works", rather than works
<samueldr> I think the nixos module is in need of some care and love
<samueldr> I guess it'll all depend on whether I end up needing android apps or not, whether I'll take a deeper look at anbox or not
<samueldr> but I did have some success on my x86_64 laptop
<samueldr> when I was looking to see if it worked
<samueldr> though I had to run scripts to fix networking
<davidak[m]> would it be possible to run osmAnd in Anbox and let it use the devices GPS? (in general, for example on pinephone)
<davidak[m]> or a corona tracing app that uses bluetooth to track people you meet
<Ke> corona tracing app is uses proprietary api and and newer api, almost certainly off limits
<Ke> I believe it would be more like months of work
<davidak[m]> a fork of the german app uses microG and works without google https://f-droid.org/packages/de.corona.tracing/
<Ke> at least I believe the api is prorietary, but definitely not part of android-7
<Ke> wow
<davidak[m]> the question is if it can access hardware (bluetoth in that case)
<Ke> does it run on older api?
<davidak[m]> > This version requires Android 5.0 or newer.
<{^_^}> error: syntax error, unexpected ')', expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):490:1
<Ke> amazing
<davidak[m]> yes :)
<Ke> no further questions
<davidak[m]> the developers of the official app introduced new features that use again proprietary apis :(
<davidak[m]> but the tracing works perfectly
jumper149 has joined #nixos-aarch64
<Ke> wow, pinephone patches seem nice, looks like I can maybe use same kernel for all the devices
<Ke> they barely touch anything non-allwinner
<Ke> except modversion????
<Ke> what is this
nicoo has quit [Ping timeout: 268 seconds]
<Ke> I guess wrong diff
<Ke> so it seems
<Ke> why does mobile nixos use orange-pi branch and not pinephone?
nicoo has joined #nixos-aarch64
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ke> well latter seems no-compile
zupo has joined #nixos-aarch64
cole-h has quit [Ping timeout: 245 seconds]
<Ke> not even orange-pi seems to work for me as patch, but fails completely silently seemingly
<Ke> right after patching build fails with messages from nix
<Ke> patching file tools/testing/selftests/wireguard/netns.sh
<Ke> builder for '/nix/store/6l6fx8hrcc2cy56fq91krd8jj8xlh0x6-linux-config-5.11.2.drv' failed with exit code 1y
<Ke> I guess I should make a hotkey for pastebinning backlog
<Ke> but then again I can sort this out, once the babby sleeps
superherointj has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<superherointj> Mic92 proposed a fix for aarch64 being broken on master. https://github.com/NixOS/nixpkgs/pull/116032
<{^_^}> #116032 (by Mic92, 1 hour ago, open): nix: fix aarch64 build
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ke> shouldn't that be stdenv.isx86_64 && is24
<Ke> not that having extra build inputs that are eventually consistent matters
<superherointj> Ke. Post on issue.
<superherointj> If you don't want to post on it. I'll. You make a good point. I don't understand the inner working of this. But I want this right. Because my RockPro64 are breaking in master. :o)
<Ke> well the harm it does, is it adds build time dep for x86 people that afaik will get omitted as runtime dep
<Ke> so build is like some milliseconds slower on hydra
<Ke> anyway, it's eventually correct so I won't bother complaining
<superherointj> Ke, too late. https://github.com/NixOS/nixpkgs/pull/116032
<{^_^}> #116032 (by Mic92, 2 hours ago, open): nix: fix aarch64 build
<Ke> ^^
<Ke> so patch exits with 1 without error messages I can find
<superherointj> Ke, i am building here the patch my build has not finished.
<superherointj> My aarch64 is slooow.
<superherointj> aarch64 build for patch (with your correction) is fine.
<Ke> no I mean pinephone patch
<Ke> I get some rename notices, maybe I'll do --no-renames
<Ke> yup, fails due to conflict with pbp patches
<Ke> does not print error
<Ke> yet another all the nice patches that maintainer ever wanted, tree
<Ke> pinebook tree does not build with familiar looking error
<Ke> ) pinephone tree
<Ke> wonder if nadia has nice patchset for pinephone
evils has joined #nixos-aarch64
orivej has quit [Ping timeout: 260 seconds]
dev_mohe has joined #nixos-aarch64
Fuseteam has joined #nixos-aarch64
<Fuseteam> hi guys, i was looking to set up nix on ubuntu touch on an armhf device
<Fuseteam> but for some reason it doesn't seem to hit the cache i set up at armhf.cachix.org
dev_mohe has quit [Quit: dev_mohe]
jmc-figueira has joined #nixos-aarch64
jmc-figueira has quit [Quit: Connection closed]
rmcgibbo[m] has joined #nixos-aarch64
<Fuseteam> so how can i troubleshoot why it isn't hitting my cache at armhf.cachix.org?
<leonardp> i am mighty confused.. i'm trying to build uboot with a patch applied but nix doesn't seem to be able to find it -.-
<leonardp> i have a clone of nixpkgs, put the patch into pkgs/misc/uboot and added it with the `extraPatches=["./asdf.patch"];`
<leonardp> even when using an absoloute path it tells me: `No such file or directory`
<leonardp> and 777 permissions
<Ke> drop the "s maybe
zupo has joined #nixos-aarch64
<leonardp> buildUboot has `extraPatches ? []` as an argument and sets `patch = extraPatches`
<Ke> babby and mobile, can't explain
<leonardp> * buildUboot has `extraPatches ? []` as an argument and sets `patches = extraPatches`
<leonardp> Emil Karlson: omg... the `"s`
<leonardp> thanks....
<leonardp> could've taken days to figure that out
<Fuseteam> any tips for troubleshooting if nix is trying to hit my cache at armhf.cachix.org?
<Fuseteam> actually now i wonder, am i pushing to any particular channel here? https://github.com/Fuseteam/thefloweringash/blob/master/.github/workflows/arm.yml
dev_mohe has joined #nixos-aarch64
rosariopulella[m has quit [Quit: Idle for 30+ days]
<Fuseteam> hey thefloweringash i've been trying to install packages via nix but it seems to keep trying to build it on the device
<Fuseteam> on an armv7 device that is
<Fuseteam> any tips how i can find out what is going on?
lopsided98 has quit [Quit: Disconnected]
lopsided98 has joined #nixos-aarch64
Mic92 has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<simpson> Mic92++ swag
<{^_^}> Mic92's karma got increased to 48
cole-h has joined #nixos-aarch64
rajivr has quit [Quit: Connection closed for inactivity]
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pbb has joined #nixos-aarch64
zupo has joined #nixos-aarch64
dev_mohe has quit [Quit: dev_mohe]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has joined #nixos-aarch64
dev_mohe has joined #nixos-aarch64
<samueldr> Ke: there's a README on the tip of megi's branches
<samueldr> the only branch that should be used is the orange-pi branch
<samueldr> hm, maybe not at the tip of every branches
<samueldr> or maybe they stopped?
<superherointj> Is it possible to trigger a new build in hydra for aarch64 image now that the aarch64 bug is fixed?
<samueldr> but each "topic" branch is strictly limited to the topic, while the orange-pi branch contains the aggregation of their work
<samueldr> found it on orange-pi-5.12; it's not at the tip, but at the top of their changes
<samueldr> in the commit message, near the end
<samueldr> >> My kernel's main integration branch is 'orange-pi-$VER' (this one). No other branch is supposed to work alone. My defconfigs are tested and work on the boards I support. Read the README.md for more info.
Thra11 has joined #nixos-aarch64
jumper149 has quit [Quit: WeeChat 3.0.1]
dev_mohe has quit [Quit: dev_mohe]
orivej has quit [Ping timeout: 276 seconds]
heywoodlh has left #nixos-aarch64 [#nixos-aarch64]
clever has quit [Ping timeout: 260 seconds]
clever has joined #nixos-aarch64
dev_mohe has joined #nixos-aarch64
dev_mohe has quit [Remote host closed the connection]
zhaofeng has quit [Changing host]
zhaofeng has joined #nixos-aarch64
zupo has joined #nixos-aarch64
zupo_ has joined #nixos-aarch64
zupo has quit [Ping timeout: 256 seconds]
<zhaofeng> Finally got Phosh to start. wlroots needed to be patched for phoc, and there were some oddities as to how gnome-session finds the session files as well.
<zhaofeng> I have a question regarding gnome-session. I'm trying to use the upstream's start script to launch phosh in a systemd service (no display manager). At the end of the script [1] it tries to run `gnome-session` in a new login shell to start Phosh itself.
<zhaofeng> In our wrapper script, the Phosh packages is indeed added to XDG_DATA_DIR (`export XDG_DATA_DIRS='/nix/store/yx653bdwrsccjk6mdmrljiqh0bv9k5vc-phosh-0.8.0/share'${XDG_DATA_DIRS:+':'}$XDG_DATA_DIRS`) so gnome-session should be able to find the session.
<zhaofeng> However, it isn't able to [2]. In the debug logs gnome-session tries to search some paths that are different from what XDG_DATA_DIRS should contain.
dev_mohe has joined #nixos-aarch64
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cole-h has quit [Ping timeout: 245 seconds]
justan0theruser is now known as justanotheruser
Thra11 has quit [Quit: WeeChat 3.0.1]
dev_mohe has quit [Quit: dev_mohe]
ceph3us has joined #nixos-aarch64
<ceph3us> hello, another dreaded rpi4 8gb user...
<ceph3us> is USB booting just completely broken currently? burning the image onto a USB stick (with appropriate firmware updates, boot order, etc already configured) just gives a bootloop with "No working controllers found"
<ceph3us> i've seen a couple of references on the appropriate issues/PRs that claim this issue was "fixed" for them by completely unplugging HDMI, but i can tell quite clearly that the device is still bootlooping even without monitors connected