Thra11 has quit [Quit: WeeChat 2.7]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aditsachde has left #nixos-aarch64 ["User left"]
Acou_Bass has quit [Ping timeout: 260 seconds]
Acou_Bass has joined #nixos-aarch64
<DigitalKiwi> srk: a forum post i found suggests all i need to do is connect ground to reset and it'll be a usb<->serial but i haven't verified it yet
<DigitalKiwi> https://www.teachmemicro.com/arduino-usb-serial-converter/ that's how this is setup too soooo worth trying
t184256 has left #nixos-aarch64 ["Disconnected: Replaced by new connection"]
t184256 has joined #nixos-aarch64
h0m1 has quit [Ping timeout: 245 seconds]
h0m1 has joined #nixos-aarch64
ryantrinkle has quit [Ping timeout: 272 seconds]
zarel_ has joined #nixos-aarch64
zarel has quit [Ping timeout: 268 seconds]
<DigitalKiwi> samueldr: oh that looks slick! and it's rather affordable too
<DigitalKiwi> srk: yeah that worked. still not getting the console like i'm supposed to... :(
<DigitalKiwi> bonus: 1. the connections are better than it was. 2. there are RX/TX leds that show activity
orivej has quit [Ping timeout: 258 seconds]
h0m1 has quit [Quit: WeeChat 2.7]
h0m1 has joined #nixos-aarch64
h0m1 has quit [Client Quit]
h0m1 has joined #nixos-aarch64
orivej has joined #nixos-aarch64
zupo has joined #nixos-aarch64
orivej has quit [Ping timeout: 255 seconds]
orivej has joined #nixos-aarch64
ryantrinkle 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
<DigitalKiwi> Starting kernel ...
<DigitalKiwi> that's the last thing the serial shows me on nixos :(
<DigitalKiwi> and that's the nixos that boots! not the one that has the raspberry pi kernel and...is also the last message i saw when i had it on a tv
<gchristensen> DigitalKiwi: https://nixos.wiki/wiki/NixOS_on_ARM/Raspberry_Pi#Raspberry_Pi_3_.2F_3B.2B check the second para
<DigitalKiwi> oh
<DigitalKiwi> that file says it's a generated file it'll go away
ryantrinkle has quit [Ping timeout: 240 seconds]
* DigitalKiwi reads further
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<DigitalKiwi> mine already has that anyway :(
<DigitalKiwi> why are computers so hard
FRidh2 has joined #nixos-aarch64
Thra11 has joined #nixos-aarch64
<Thra11> Looks like llvm 3.9 has been removed from nixpkgs, but it's required for ghc-8.2.2-binary on aarch64 to work. ghc-8.2.2 is the start of the ghc bootstrap chain.
<Thra11> Should we resurrect llvm39, or try to find a new ghc binary version to start our chain?
jamii has joined #nixos-aarch64
<Thra11> (x86 uses ghc without llvm, so it isn't affected by having the wrong llvm version)
<jamii> Hi, I'm trying to crosscompile a gtk app for aarch64 and running into some compile errors in gdk-pixbuf. I might just be doing this completely wrong.
<samueldr> I don't know about ghc, so allow me dumb questions, Thra11
<samueldr> how is it different on x86_64 and aarch64, and why can't we do the same on both?
<samueldr> (if even desirable)
<jamii> Here is a simplified version of what I'm trying to build - https://gist.github.com/jamii/19c4d25bb7a9f350dfcc316cffe33b92 (the nix file is at the bottom)
<samueldr> jamii: cross-compilation using nix/nixpkgs is a work-in-progress, the further away from the root base system packages, the more likely it is to break...
<samueldr> ... but don't necessarily let this discourage you from trying
* samueldr looks at your log
<samueldr> >> FileNotFoundError: [Errno 2] No such file or directory: 'ldd': 'ldd'
<jamii> If using nix entire doesn't work, I would be content to just figure out how to get a crossplatform toolchain for gcc. I managed to build aarch64->aarrch64 gcc which means that there is presumably a x86->aarch64 somewhere on my laptop now :D
<samueldr> that's the root cause of the failure, though, it looks like it comes from g-ir-scanner
<jamii> I'm also happy to dig into the compiler error myself if there's a problem with crossbuilding gtk. I just wanted to make sure I wasn't cross-compiling wrong first.
<jamii> I'm not even sure why it's trying to build all of gtk. I think I only need the header files on this system.
<samueldr> from experience, sorry I don't have the knowledge to fix, all things gobject have been having issues with the nixpkgs cross-compilation harnesses
<DigitalKiwi> isn't ghc likely moving to use llvm toolchain anyway?
<jamii> samueldr: ok, fair enough, I'll avoid it
<DigitalKiwi> due to windows shenanigans
<Thra11> samueldr: GHC compiles Haskell code either directly to native code or using LLVM as a back-end. On x86, there is a choice of backends (native/llvm). On arm there's only one backend (llvm). However, most distros prefer the native backend where it exists (or at least they have in the past). So in theory you could go llvm-backend for all platforms, but I don't know if you might upset some x86
<Thra11> users...
<jamii> Do you happen to know how to refer to the x86->aarch64 gcc? If I can get the linker from that I can try the rust crosscompilation tools directly.
<samueldr> my gut feeling with the current issue is that gobject-introspection needs to be patched to know about the cross-compiler-ldd when used in cross-compilation environment
<DigitalKiwi> i don't even know if that's related; don't listen to me
<jamii> I wonder if it would be easier to just build an aarch64 qemu image and compile in there.
<DigitalKiwi> iiuc the llvm backend can often produce more optimized binaries at the cost of longer compile times
<Thra11> DigitalKiwi: Interesting. Presumably the native backend has its advantages, otherwise they'd switch to llvm everywhere and save some complexity/maintenance
<Thra11> While being homogenous across platforms might be nice, I suspect following upstream's lead (native on x86, llvm elsewhere) is probably less controversial.
<samueldr> right, I see
orivej has joined #nixos-aarch64
<Thra11> Also, I'm more interested in a relatively minor aarch64 fix that can go into 20.03 at this stage :)
<DigitalKiwi> i think maybe thefloweringash opened an issue about it a few days ago
<simpson> Thra11: "However, there is also one major disadvantage: @Phyx, our primary Windows contributor, is unable to contribute to LLD due to legal reasons. This is a very hard trade-off."
<Thra11> DigitalKiwi: Ah yes. Found it!
<Thra11> Looks like it's ok to use a later llvm, it just needed propagating
<samueldr> Thra11: llvm39 was used to bootstrap ghc, but the final ghc used another llvm, right?
<samueldr> ah
<samueldr> looks like that's what you almost just said
<samueldr> >> Unregisterised compilation
<samueldr> is this helpful here?
<Thra11> samueldr: Yes. That's it
misuzu has joined #nixos-aarch64
<Thra11> thefloweringash has a PR (#80355) should fix all this, so I'll give that a whirl
<{^_^}> https://github.com/NixOS/nixpkgs/pull/80355 (by thefloweringash, 5 days ago, open): haskell.compiler.ghc822Binary: propagate llvm dependency
orivej has quit [Ping timeout: 255 seconds]
jamii has quit [Remote host closed the connection]
ryantrinkle has joined #nixos-aarch64
<ryantrinkle> is there a repo where people are collecting nixos configurations for SoCs?
<simpson> There's https://github.com/cleverca22/nixos-configs and ISTR that there's another community-oriented one somewhere too.
<ryantrinkle> simpson: ah yeah, that looks useful
<ryantrinkle> in this case, i've got a working cross-compiled setup for pine64, and i'm looking for a place to put it
<ryantrinkle> i can make my own repo, of course, but if there's an existing place, i'd rather contribute
<samueldr> ryantrinkle: not yet, but I'm thinking we should use nixos-hardware for it
<samueldr> <nixos-hardware/$MFG/$BOARD/default.nix>
<samueldr> so e.g. <nixos-hardware/pine64/pinebook-pro>
<ryantrinkle> ah cool
<samueldr> <nixos-hardware/raspberrypi/raspberrypi4>
<ryantrinkle> yeah i'll send stuff there
<samueldr> though I haven't checked with the team there
<samueldr> maybe for some odd reason they wouldn't whant that (though unlikely)
<ryantrinkle> it looks like they already have a raspberry pi 2
<samueldr> yeah
<samueldr> if for some reason it's not desired, I was strongly thinking about having such a repo earmarked for sbcs
<ryantrinkle> cool :)
<ryantrinkle> well in any case the code will be somewhere
<ryantrinkle> we can always shuffle it around
zupo has joined #nixos-aarch64
stiell has joined #nixos-aarch64
<stiell> Hello. I'm trying to install NixOS on Raspberry Pi 4. Downloaded nixos-sd-image-19.09.2144.85548f2a131-aarch64-linux.img from Hydra, dd'd to a 16GB SD card, inserted into R-Pi and powered up. Not getting any output on serial, HDMI1 only shows the GPU firmware coloured splash screen. Tried boot_delay=1 in config.txt, same results. The same R-Pi boots Raspbian fine, and I can get serial output from it
<stiell> through its /dev/ttyS0 once this has been enabled in raspi-config. Anything I'm missing?
<samueldr> the raspberry pi 4 is not supported by the generic mainline-using aarch64 image yet
<samueldr> while mainline support is being worked on, in the kernel, we have a temporary pi4-specific image that can be used, https://hydra.nixos.org/job/nixos/trunk-combined/nixos.sd_image_raspberrypi4.aarch64-linux
<samueldr> though note that this is not made like the generic images; this one uses the raspberry pi loader, rather than u-boot
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<stiell> Thanks, that seems to boot fine, getting a console on HDMI. No serial, though.
<samueldr> it's highly probable you need to configure things for serial
<samueldr> since it's the raspberry pi foundation's kernel, albeit compiled as aarch64, following usual raspberry pi guides should work out fine here
* DigitalKiwi can't get serial to work after the "starting kernel..." did the things on the wiki
<samueldr> DigitalKiwi: console=console=ttyS1,115200n8 &
<samueldr> ?*
<DigitalKiwi> yeah it's there
<DigitalKiwi> is that console=console= a typo
<DigitalKiwi> boot.kernelParams = [
<DigitalKiwi> "console=ttyS1,115200n8"
<DigitalKiwi> (though i didn't even need that it was already there)
<samueldr> try ttyS0, though I think ttyS1 is supposed to be the right one for mainline
<samueldr> unless you selected a non-mainline kernel (e.g. _rpi3 package)
<samueldr> going mostly AFK for a long time though,
fooker has quit [Remote host closed the connection]
fooker has joined #nixos-aarch64
fooker has quit [Client Quit]
fooker has joined #nixos-aarch64
<DigitalKiwi> rpi3 wasn't booting for me :(
<DigitalKiwi> yay
<DigitalKiwi> i had to mkForce it to override the ones that were there that were wrong...
mehlon has joined #nixos-aarch64
FRidh2 has quit [Quit: Konversation terminated!]
mehlon has quit [Quit: Leaving]
zupo has joined #nixos-aarch64
wavirc22 has quit [Ping timeout: 240 seconds]
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…]
zupo has joined #nixos-aarch64
zupo has quit [Ping timeout: 265 seconds]
zupo 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…]