justanotheruser has quit [Ping timeout: 272 seconds]
justanotheruser has joined #nixos-aarch64
bennofs_ has joined #nixos-aarch64
bennofs__ has quit [Ping timeout: 246 seconds]
superherointj has quit [Quit: Leaving]
srk has quit [Remote host closed the connection]
srk has joined #nixos-aarch64
justanotheruser has quit [Ping timeout: 260 seconds]
rajivr has joined #nixos-aarch64
justanotheruser has joined #nixos-aarch64
justan0theruser has joined #nixos-aarch64
justanotheruser has quit [Ping timeout: 264 seconds]
justan0theruser has quit [Ping timeout: 264 seconds]
justan0theruser has joined #nixos-aarch64
justan0theruser has quit [Read error: Connection reset by peer]
justan0theruser has joined #nixos-aarch64
ceph3us has quit [Quit: Connection closed]
patagonicus5 has joined #nixos-aarch64
patagonicus has quit [Ping timeout: 246 seconds]
h0m1 has quit [Ping timeout: 260 seconds]
h0m1 has joined #nixos-aarch64
justan0theruser has quit [Ping timeout: 272 seconds]
justan0theruser has joined #nixos-aarch64
justan0theruser has quit [Ping timeout: 272 seconds]
justan0theruser has joined #nixos-aarch64
evils has quit [Ping timeout: 245 seconds]
orivej has joined #nixos-aarch64
cole-h has joined #nixos-aarch64
<Ke> cool stuff happening here
<samueldr> Ke: have you seen my previous note?
<Ke> nope
<Ke> at least I don't know, what is note
<samueldr> my last highlight on this channel
cole-h has quit [Ping timeout: 276 seconds]
<Ke> ah no I did not see, thanks
<Ke> had some babby time there
<Ke> anyway, I had compile failure due to unknown compiler flags, did not check, if I did something different from mobile-nixos
<Ke> I am very keen on keeping to one kernel for all the devices
<Ke> so I wanted to extract the works as patch
<Ke> the compiler flags had something to do with fpu and neon for some display code
<Ke> but thanks, good to know anyway
<samueldr> Ke: in aegis 128?
* samueldr looks up the known issue
<Ke> also nadia's u-boot code seems to work for her built binary, but not the one I patched with her patches
<samueldr> starting from the same base u-boot?
<Ke> so I am now using u-boot with video support
<samueldr> ah, you switched device on me!
<samueldr> I was about to say that the pinephone doesn't _require_ any patches IIRC
<samueldr> ah, it does still
<samueldr> (mainly for the 3GB variant)
<Ke> I switched device on the also line, I am aware of that initial topic was pinephone
<samueldr> (for pinephone still) I pick them all from the patchwork instance, for those that are needed
<samueldr> they may very well be part of master and upcoming 2020.04
<Ke> "also"-line
<samueldr> yeah :)
<samueldr> I haven't kept up much with the pinebook pro stuff
<Ke> yes, I'll probably use mobile-nixos u-boot verbatim
<samueldr> there's a new patchset on the patchwork from arnaud
<Ke> I already imported it to my module
<samueldr> which is AFAIK mainly a cleanup/rebase of the previous
<samueldr> hmm, I can't seem to surface the known issue for that isse you had with CONFIG_CRYPTO_AEGIS128
<Ke> I should really get a setup for testing the external display on pbp
<samueldr> (I just end up disabling it, personally)
<samueldr> oof, eDP type-c, always fun ;)
<Ke> but mostly my pbp setup is done to acceptable extent
<samueldr> note that something in the setup *may* have an orientation
<samueldr> so try the cable both ways, and both ways
<samueldr> meaning, turning the connector on the port 180°, and *also* swapping the ends
<Ke> hmm crypto aegis does not seem display code, but maybe I missread the compilation failure context due to -j16
<samueldr> (the latter it never happened to me, but I've seen it reported by trusted sources as a baffling issue)
<samueldr> Ke: if it's the issue I was thinking about, though if you search the exact error message you had, IIRC a nixpkgs issue by the//floweringash should surface
<samueldr> I might be off track, but from what you said that's what it sounded like
orivej has quit [Ping timeout: 276 seconds]
<Ke> thanks for the help, but I think I'll just ignore this issue and try to get other stuff working
patagonicus5 is now known as patagonicus
patagonicus has quit [Quit: The Lounge - https://thelounge.chat]
patagonicus has joined #nixos-aarch64
<elvishjerricco> Apparently the CM4 is gaining support for nvme boot. https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/nvme.md
<elvishjerricco> Cool
<ar> nice
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jumper149 has joined #nixos-aarch64
orivej has joined #nixos-aarch64
zupo has joined #nixos-aarch64
<Ke> u-boot built, now I could dd it to sd card
<Ke> maybe need that partitioning magic again
<Ke> with hackerman; partition sd { for = u-boot;};
zupo_ has joined #nixos-aarch64
zupo has quit [Ping timeout: 245 seconds]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FRidh has joined #nixos-aarch64
zupo has joined #nixos-aarch64
andi- has quit [*.net *.split]
samueldr has quit [*.net *.split]
pie_ has quit [*.net *.split]
Mirrexagon has quit [*.net *.split]
pie_ has joined #nixos-aarch64
Mirrexagon has joined #nixos-aarch64
andi- has joined #nixos-aarch64
samueldr has joined #nixos-aarch64
dev_mohe has joined #nixos-aarch64
dev_mohe has quit [Client Quit]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Thra11 has joined #nixos-aarch64
<Ke> does mobile-nixos not have working fde with Xorg?
<Ke> -not
<Ke> maybe that was supposed to be now
<Ke> at least some comments look like that
<Ke> mobian seems to use osk-sdl maybe on framebuffer or raw kms?
dev_mohe has joined #nixos-aarch64
evils has joined #nixos-aarch64
<jumper149> Can mobile nixos run any graphical environments at this point like plasma or phosh?
cole-h has joined #nixos-aarch64
<hexa-> źhaofeng got phosh working on his phone apparently
archseer has quit [Quit: Idle for 30+ days]
jumper149 has quit [Quit: WeeChat 3.0.1]
dev_mohe has quit [Remote host closed the connection]
cole-h has quit [Ping timeout: 256 seconds]
zupo has joined #nixos-aarch64
Acou_Bass has quit [Ping timeout: 260 seconds]
jumper149 has joined #nixos-aarch64
jumper149 has quit [Client Quit]
jumper149 has joined #nixos-aarch64
jumper149 has quit [Client Quit]
jumper149 has joined #nixos-aarch64
jumper149 has quit [Client Quit]
v0|d has joined #nixos-aarch64
jumper149 has joined #nixos-aarch64
jumper149 has quit [Client Quit]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leonardp> woohoo. i managed to boot a nanopi r4s with mainline kernel/uboot + patches only
jumper149 has joined #nixos-aarch64
jumper149 has quit [Client Quit]
jumper149 has joined #nixos-aarch64
jumper149 has quit [Quit: WeeChat 3.1]
jumper149 has joined #nixos-aarch64
zupo has joined #nixos-aarch64
jumper149 has quit [Client Quit]
rajivr has quit [Quit: Connection closed for inactivity]
jumper149 has joined #nixos-aarch64
jumper149 has quit [Client Quit]
jumper149 has joined #nixos-aarch64
jumper149 has quit [Quit: WeeChat 3.1]
jumper149 has joined #nixos-aarch64
jumper149 has quit [Client Quit]
jumper149 has joined #nixos-aarch64
dev_mohe has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jumper149 has quit [Quit: WeeChat 3.1]
jumper149 has joined #nixos-aarch64
jumper149 has quit [Client Quit]
jumper149 has joined #nixos-aarch64
jumper149 has quit [Client Quit]
pbb has quit [Remote host closed the connection]
pbb has joined #nixos-aarch64
orivej has quit [Ping timeout: 245 seconds]
orivej has joined #nixos-aarch64
<samueldr> Ke: it should have working FDE, all part of stage-1, so xorg is not in the picture
<samueldr> (jumper149 who left) it could, once booted, it's mostly a NixOS system with some specialized configurations
<samueldr> but "at this point" is extremely variable, is the software packaged (mostly not yet) can the specific device use the desired software (maybe)
<samueldr> e.g. phoc as it is right now probably wouldn't work on anything else than the mainline-based devices where DRM+KMS is supported
<samueldr> so basically generic uefi, and then pinephone and the chrometab
<Ke> samueldr: how does text input work before graphics?
<samueldr> custom implementation (based on standard libraries)
<samueldr> *for the time being* the different keyboard layouts haven't been implemented
<samueldr> but it's planned and known how to do it
<samueldr> using xkbcommon again, it should be quite solid
<samueldr> the idea here for FDE is that it had to be integrated into the graphical boot process seamlessly
<samueldr> since, for what I'm concerned about, that is the project: tight integration for the basic building blocks
srk has quit [Remote host closed the connection]
srk has joined #nixos-aarch64
<Ke> thanks, will look into it
<samueldr> but making it happen on your device is left as an exercise to the reader for the time being
<samueldr> (it's part of my milestones for work, so it will happen during this year)
<samueldr> the important part is that it's the same configuration as you would for NixOS
<samueldr> stage-1 knows it's LUKS, so it knows to unlock it to make the partition available for mounting
<samueldr> so you could, for example, boot a mobile nixos system from SD, flash the unencrypted image to the emmc to get the partitions right, resize them using something like cfdisk or cgdisk, maybe re-label the partname for the last partition, then do the usual luks dance to encrypt a partition
<samueldr> my pinephone is dogfooding luks, so it should stay working
rmcgibbo[m] has left #nixos-aarch64 ["User left"]
orivej has quit [Ping timeout: 246 seconds]
zupo has joined #nixos-aarch64
<gchristensen> I dragged my odroid c2 out today to play with
<gchristensen> ...right. this one has the serial port with the plug that I can't hook up my regular adapter to. hrm.
<gchristensen> I think I know why I put it in the bin :P
<samueldr> that's why the adafruit 954 and clones is quite nice
<samueldr> distinct cables rather than a forced interface
<gchristensen> that is what I have!
<gchristensen> but the header on the c2 is shielded in a way I can't hook up
* samueldr pulls up pictures
<samueldr> top right the white bit?
<gchristensen> yep
<samueldr> and the square pegs are too big?
<gchristensen> yep
<samueldr> you should be able to use /dev/ttyS1 (in linux) on the GPIO header
<gchristensen> yeah
<samueldr> but yeah, the CON5 connector (apparently the name they use) is rude!
<gchristensen> but I don't like to play guessing games on "is it booting?" while I'm trying to have fun with it
<gchristensen> maybe could pull off the plastic bits ...
<samueldr> that is what I would personally do
<samueldr> hoping the pins are not too big to plug the square pegs into
<samueldr> just in case, the pinout w
<gchristensen> a ifixit kit was such a good purchase
<gchristensen> it fits! it is a snug fit, but it fits
<gchristensen> (no forcing needed)
<gchristensen> I think a good and easy to use serial adapter is undervalued by casual hackers
<samueldr> yes
<gchristensen> w00t I'm logged in to NixOS 20.03pre :)
<samueldr> gchristensen: the next logical step is a "saleae logic analyzer clone"
<samueldr> (or a real one, for much more)
<gchristensen> I never managed to justify one but it was high on my wish list
<samueldr> the clones are much much much cheaper and will show you their value once you need it
<gchristensen> nice
<samueldr> I needed to identify something coming out of a pinout, which was most likely UART
<samueldr> plugged it into the analyzer, let it record on the software
<samueldr> and it was able to analyze the UART output and there it was: text serial console output!
<gchristensen> so cool!
<samueldr> I was able to confirm the breakout board brought up the proper RX/TX lines
<gchristensen> nice :D
<gchristensen> [root@elzar:~]# nixos-version
<gchristensen> 21.05pre276061.5e367ecef91 (Okapi)
<gchristensen> that's better.
<zhaofeng> Hi all, I'm trying to build the disk image for razer-cheryl2, and the build fails with `error: make_file: failed to allocate inode`. I definitely have enough space (>100G) in the directory. How would I go about debugging that?
<gchristensen> df -hai ?
<samueldr> zhaofeng: looks like it's happening when making the disk image
<gchristensen> ohthat is probably...yea
<samueldr> it would be good to know if it's inside the disk image, or on the system that it is erroring ou
<samueldr> out*
<samueldr> but yesh, inode exhaustion on your FS could be the cause
<zhaofeng> Hmm, let's see: `rpool/data/home 206M 4.0M 202M 2% /home`
<zhaofeng> IUse% is 2%, so probably not the culprit
<samueldr> zhaofeng: which image are you building?
<samueldr> can you validate against the `examples/hello` system without modifications?
<zhaofeng> `build.android-fastboot-images`
<zhaofeng> Let me try
<samueldr> (it could be that the parameters the ext4 system ends up using does not allow enough inodes for the system you are building for)
<zhaofeng> My configurations are much more bare-bones than examples/hello
<samueldr> (the calculations are not great)
<samueldr> yeah
<samueldr> especially in the low end
<samueldr> there is not much control for those settings
<gchristensen> do I take the "fun" and redo this thing to use ZFS, or do I just carry on with ext4
<samueldr> zhaofeng: tangentially, you do have a cheryl2, and not another variant of the razer phone 2, right?
<samueldr> (I'm not even sure how to verify)
<zhaofeng> No, I'm actually trying to port it to OnePlus 6, another sd845 device. I'm building the cheryl2 image just to test that it works.
<samueldr> there's bolt and linus too, maybe even aura, unclear really
<samueldr> oh, don't run a vendor kernel for another device on the wrong device!
<samueldr> it probably won't work
<zhaofeng> No, I'm not trying to actually flash the resulting image :P
<samueldr> you might want to only build the bootimg, rather than the "system" image too in that case
<samueldr> the system image is not strictly required to start porting
<zhaofeng> For examples/demo: X11 requires Polkit to be enabled (‘security.polkit.enable = true’)
<samueldr> and you can cheat and re-use the generic rootfs from hydra
<zhaofeng> The value is set in `cross-workarounds.nix`
<samueldr> cross-compiling the demo image is known not to work, and expected not to work
<samueldr> for a lot of stage-2 things, you need native compilation
<samueldr> e.g. for demo there is this line in its README
<samueldr> >> The stage-2 needs to be built natively on the target architecture (armv7 on armv7, aarch64 on aarch64).
<zhaofeng> Ah okay. I do a lot of the stuff with QEMU user mode just to avoid the cross compiling problem, but it's very slow :/
<samueldr> `hello` is the only example system expected to cross-compile, when things are healthy
<samueldr> but despair not!
<samueldr> we are building the system image for the demo already!
<samueldr> you can literally plonk that on your device and it will work*
<samueldr> * (your mileage may vary)
<samueldr> for every aarch64 devices this has worked, including pinephone, cheryl2, z00t, dumo, etc
<samueldr> so you can have a trusted (assuming you trust nixos.org) starting point for the stage-2 system
<zhaofeng> Oh great! I actually just want to use the device as a build machine for aarch64 stuff instead of getting graphics etc. to work, so my expectations are pretty low :P
<samueldr> I would expect the demo rootfs to work once you have a port going
<samueldr> so I assume you want to port to oneplus6
<samueldr> are you interested in starting first with the vendor kernel?
<samueldr> (I don't know how mainline will fare with anything)
<zhaofeng> Yeah, I'm starting with the kernel from LineageOS
<samueldr> good
<samueldr> tip: start with `autoport` rather than with the cheryl2 config
<samueldr> the autoporter will extract a known good vendor config from a vendor image
<zhaofeng> Oh, on the topic of autoport, the FBI has joined the game and git.rip doesn't exist anymore :P
<samueldr> :|
<samueldr> gosh darn it
<samueldr> the extracted android dumps project wasn't even close to being illegal
<samueldr> annoying that their choice of host caused them to be removed
<samueldr> but I *think* git.rip was... chaotic neutral aligned, in a way
<samueldr> so it doesn't really surprise me
<zhaofeng> Well yeah, I'm not entirely sure what dramatic stuff has git.rip done recently
<zhaofeng> except for the gab source code mirror, which is 100% legal as it's GPL
<samueldr> someone must have uploaded something bad to it
<samueldr> >> The most illegal user there is exconfidential. It hosts above 200 company leaks. Including highly illegal Apple, CDProjektRed, Nintendo, NISSAN, Intel, and other leaks
<samueldr> probably that
* samueldr sighs
<samueldr> hopefully the android dumps project figures out a less "hot" location to host their dumps
<samueldr> it's EXTREMELY invaluable
* zhaofeng shrugs
<samueldr> a somewhat normalized dump of vendor images of android systems really was helpful to guesstimate what devices had which features
<samueldr> I guess I'll have to take the time to work from actual OTA images and factory images rather than cheat
WilliButz has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aminechikhaoui has quit [Quit: The Lounge - https://thelounge.github.io]
<samueldr> those are the two most useful things from the autoport
<samueldr> you can use unpackbootimg to extract the boot image
WilliButz has joined #nixos-aarch64
<samueldr> which gives you a zImage, which you have to first uncompress with different tools https://github.com/mobile-nixos/autoport/blob/1dedddb0dcc55c0aa09036d24621e4f72a2d6083/lib/autoport/data/bootimg.rb#L48-L65
<samueldr> then you can use binwalk -e, which in turn should be able to find a file with the kernel config
<samueldr> OR
<samueldr> you can cat /proc/config.gz from linageOS if the kernel is built with it
<zhaofeng> Yeah, I can get the configs from the source, and I remember there being an "official" way to extract configs from kernel binaries
<zhaofeng> And thanks for the pointers!
<samueldr> yeah, the official method failed on some, where binwalk worked
dev_mohe has quit [Quit: dev_mohe]
<samueldr> I *think* you should be good to also use the defconfig from the lineageos repo
<samueldr> in **theory** when normalized it should match 1:1 with the config built into the kernel
<samueldr> in practice, ¯\_(ツ)_/¯
<zhaofeng> Hmm, does the aosp build system mess with the kernel configs or is there another problem?
FRidh has quit [Quit: Konversation terminated!]
<samueldr> I haven't checked, really
<samueldr> one time I tried to do it that way and things didn't line up with expectations
<samueldr> but maybe the vendor kernel (and not lineageOS) was built from another config than the defconfig
cole-h has joined #nixos-aarch64
dev_mohe has joined #nixos-aarch64
dev_mohe has quit [Client Quit]
heywoodlh has joined #nixos-aarch64
<gchristensen> I just pulled the emmc off my c2 to make it zfs instead of ext4 and I think I immediately lost interest lol
<samueldr> why?
<gchristensen> I'm just a bit low energy on things lately
<samueldr> yeah, but I was wondering if there was a specific detail
<samueldr> I can think of some
<gchristensen> anything specific, not sure
<samueldr> knowing what is a hurdle for others is interesting too
<gchristensen> I could explain exactly the things that made me go ??? and then I stopped
<samueldr> sire
<samueldr> sure*
<samueldr> sure sire*
<gchristensen> hehehe
<gchristensen> I mounted /dev/mmcblk0p1 and got [grahamc@Petunia:/mnt/mmcblk0p1]$ ls
<gchristensen> boot.ini Image meson64_odroidc2.dtb uInitrd
<gchristensen> I then wondered is Image nixos or some odroid provided thing? should I back it up?
<gchristensen> then:
<gchristensen> looking at boot.ini, I saw: setenv bootargs "root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro ${condev} no_console_suspend hdmimode=${m} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=${hpd}"
<samueldr> (most likely you were booting from SD, and the EMMC wasn't involved)
<gchristensen> and wondered is that UUID my UUID, or the Image UUID?
<gchristensen> I don't have a SD card
<samueldr> I uh
<samueldr> whew
<samueldr> yeah, that kind of goes with what I had in mind: the firmware is annoying to grasp
<gchristensen> yeah
<samueldr> firmware here is u-boot, which handles the boot process
<samueldr> and since it's part of the main storage, it really puts a big ol' wrench in the cogs
<gchristensen> so I'm not sure if I need to be super careful and back this up, or just completely ignore it and make my own /boot vfat boot partition or ...
<samueldr> I'm not fully confident with the amlogic stuff yet
<gchristensen> yeah
<gchristensen> so that is why I lost energy :P I think I'll just stick it back in and let it be ext4
<samueldr> and then AFAIUI each vendor *can* have some differences with amlogic
zhaofeng is now known as zhaofeng_ircclou
<samueldr> because, I'm not sure about this bit, but I believe each vendor may have their own signing keys in the boot process?
<samueldr> there's something funky going on with amlogic and the way it verifies boot
<samueldr> so some vendors (all?) have a custom tool to prepend their signed... things... at the start of the boot chain
<gchristensen> huh
sorki has joined #nixos-aarch64
<samueldr> it's part of why (sorry) I haven't even had the energy to look at https://github.com/NixOS/nixpkgs/pull/101454
<{^_^}> #101454 (by arapov, 20 weeks ago, open): uboot: init (firmwareOdroidC2/C4, ubootOdroidC4) Hardkernel's Odroid C4 board support, drop Armbian dependency
<gchristensen> ah ha!
<gchristensen> don't worry :P
<samueldr> nah, sorry for the individuals who tried to get in touch with me for that
srk has quit [Ping timeout: 268 seconds]