<samueldr> and even with the unreleased tools, they may require an intrusive hardware manipulation to use :/
<craige> Android is not fun.
<samueldr> that's not android per se here
<samueldr> it's more about qualcomm's (and the usual) way android has been integrated
<samueldr> apparently with shiny new devices it's less of an issue
<samueldr> while they share the same emmc, they have reportedly been hardware partitioned in separate devices
<samueldr> so you probably (please don't) can nuke the block device with the system and userdata
<samueldr> and to be fair, it's part of their security layering
<samueldr> simply not the best way to do it imo
<samueldr> (the fact that you can't simply upload a program to the phone without having the aboot bootloader in fastboot mode
wildtrees has quit [Quit: Leaving]
ris has quit [Ping timeout: 240 seconds]
<kunstruktur> samueldr: it worked!
<kunstruktur> just had to add waitDevice /sys/class/net/eth0 with lib.mkBefore to preLVMCommands
<samueldr> nice!
<kunstruktur> and set up the nfs mount in fileSystems
<kunstruktur> and it worked without having to modify anything else
<kunstruktur> nixos is seriously awesome
<kunstruktur> now it dies with task systemd-journal blocked for more than 120 seconds
<kunstruktur> but i'll debug that later ... gotta sleep
kunstruktur is now known as kunstruktur`afk
ryantrinkle has joined #nixos-aarch64
SaboteurCZ has joined #nixos-aarch64
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 245 seconds]
<Ashy> lopsided98: where does self.forceCross come from in your nixos-config repo? https://github.com/lopsided98/nixos-config/blob/master/pkgs/default.nix#L12
<Ashy> lopsided98: i'm trying to adapt your rockpro64 config into an sd-image-aarch64-rockpro64.nix in my nixpkgs fork to try to build a bootable installer image for the rockpro64
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
zupo has joined #nixos-aarch64
marek has quit [Ping timeout: 276 seconds]
marek has joined #nixos-aarch64
<Ashy> lopsided98: ah right, found it in your nixpkgs master-custom branch
SaboteurCZ has quit [Remote host closed the connection]
SaboteurCZ has joined #nixos-aarch64
orivej has joined #nixos-aarch64
<Ashy> ok currently building this sd-image on a packet c2.large.arm instance; https://github.com/AshyIsMe/nixpkgs/blob/rockpro64/nixos/modules/installer/cd-dvd/sd-image-aarch64-rockpro64.nix#L40
<Ashy> if this works and actually boots i'll draft up some notes for the nixos.wiki page
<Ashy> ah kernel compile is failing because of zfs, can i exclude zfs support when building an sd-image?
orivej has quit [Ping timeout: 268 seconds]
SaboteurCZ has quit [Remote host closed the connection]
<Ashy> ok trying again with boot.zfs.enableUnstable=true;
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
zupo has joined #nixos-aarch64
roho has joined #nixos-aarch64
<roho> Is it possible to debug aarch64 build on x86_64 machine? Perhaps with qemu.
<makefu> roho: last time i checked there was no real good way to do it. however there is a nix community builder for aarch64. if you want to debug your build then you can request access to this machine https://github.com/nix-community/aarch64-build-box/
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…]
ryantrinkle has quit [Ping timeout: 240 seconds]
ryantrinkle has joined #nixos-aarch64
v0|d has quit [Ping timeout: 240 seconds]
<samueldr> I had that simmering for a few days and it was hard not to live update you all with "it's almost working" all the time
<MichaelEden[m]> Woohoo! 🎉🎉
wildtrees has joined #nixos-aarch64
<MichaelEden[m]> As someone who doesn't do a lot of kernel or Android hacking this is magic
<sphalerite> samueldr: the youtube embed doesn't display for me
<samueldr> sphalerite: weird
<samueldr> hmm
<sphalerite> says the console
* samueldr checks
<samueldr> there's still http:// stuff in the source from the time way back when I created the thing :/
<samueldr> before let's encrypt
<tilpner> samueldr: You could probably pipeline the download of the built image and the dd
<samueldr> tilpner: likely
<samueldr> but I want it locally :)
<samueldr> if/when I need to re-flash it I don't want to re-download it in addition
<samueldr> and I don't know how dd acts if it gets to the end of still-downloading image if I dd it to file, then the file to device
<samueldr> every time I was writing the image it was "likely the last time" I was
<samueldr> except it wasn't :)
<sphalerite> tee ftw :p
<samueldr> right
<sphalerite> and dd will behave sensibly and wait for the rest of the data if it's incomplete
<samueldr> yeah, I know when it's from a pipe, but don't know about to file, then that file to device
<samueldr> sphalerite: should be updated to https
<sphalerite> samueldr: for firefox, set the env var MOZ_USE_XINPUT2=1 for touch scrolling
<samueldr> sphalerite: I know
<samueldr> I use it on my desktops
<sphalerite> ah ok
<samueldr> I didn't care to rebuild at that time
<sphalerite> anyway, very exciting!!
<samueldr> and it was the third time I re-recorded the thing
<sphalerite> ha, fair enough :D
<samueldr> and the achievement is not in making it usable, but making it work at all :3
<samueldr> it's likely that your xiaomi-tissot will work if you get the kernel going
<sphalerite> sweet
<samueldr> there shouldn't be much z00t-specifics
<samueldr> though I still don't have another aarch64 android device to test with :)
<samueldr> working*
<samueldr> hmm, I think I'll be looking at the other aarch64 device I have now
<sphalerite> samueldr++ great blog post, and I like the quality of the video
<{^_^}> samueldr's karma got increased to 117
<samueldr> thanks
<samueldr> sphalerite: quality how?
<samueldr> for clarity I used a tripod, and you can clearly see a cheap ring light
<samueldr> and I used opencamera on android (can't dogfood mobile-nixos for vids yet)
<samueldr> opencamera was configured to lock exposure, white balance and focus
<samueldr> that's why there's no focus searching or up and down of brightness and such
<sphalerite> well mostly just that you did that stuff, plus no desk vibration or anything
<samueldr> (except me reducing the brightness of the LED)
<samueldr> well, I did bump the stand a couple times :)
<samueldr> I knew I wanted to record that kind of stuff a while back, so I got a cheap tripod and ring light, it helps
ris has joined #nixos-aarch64
orivej has joined #nixos-aarch64
zupo has joined #nixos-aarch64
<t184256> samueldr++ I did boot Linux on an unsupported WinMo device ages ago, and I think it's very impressive that you booted it blind
<{^_^}> samueldr's karma got increased to 118
<t184256> It's like I know it's doable, but dang
<samueldr> t184256: wasn't exactly blind, but figuring out the actual issue was harder than expected
<samueldr> the issue is not exaclyt not seeing, but not being able to *interact*
<samueldr> so all testing at that point was done through a full rebuild :/
<samueldr> I'm sure there are multiple things I could have done
<samueldr> especially thinking it back
<samueldr> I could have made the boot.img dump a script to the root that the stage-2 would blindly execute
<samueldr> so I would only have had to rebuild the boot.img which is trivially done locally
<samueldr> I could have also used the sd card on that specific device
<samueldr> but I was a bit reluctant to "manually fix the image"... I also though, a bunch of time, "this must be it, there's no way it's not" :)
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<t184256> I think everyone can relate to that one =)
zupo has joined #nixos-aarch64
wildtrees has left #nixos-aarch64 ["Leaving"]
kunstruktur`afk has quit [Quit: WeeChat 2.4]
<craige> Thanks for the blog post, samueldr - looking forward to the talk. :-D
<samueldr> I, too look forward to the talk :D
<craige> :-)
<samueldr> and it was hard yesterday not to say "I have something new and shiny coming up"
<craige> When I return home, I've got some armv7 devices idling, I'll git the build a go.
<samueldr> really wanted to push to the branch and make the post at the same time
<craige> :-D
<craige> s/git/give/
<samueldr> you'll also need to "port" a kernel to it
<samueldr> or uh, if you have a nexus 7 2013, it's already in there
* craige nods.
<craige> Might be worth picking one up second hand just to play with.
<samueldr> something I want to do before nixcon is make an asus-flo build, I just need to break out the armv7 stuff I have already playing around
<samueldr> I don't think it would
<samueldr> because of the lack of nixos binary cache :)
<samueldr> (for armv7)
<samueldr> it would be better to look for an aarch64 device imo
<craige> My current Android is the Oppo Find 7 - it's also my prod phone, so I'm not messing with that :-)
<samueldr> "one second hand" I thought it was specifically a nexus 7 2013
* craige is waiting on the pine phone release.
<samueldr> I too, am, in a way :)
<craige> heh
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryantrinkle has quit [Ping timeout: 265 seconds]