ryantrinkle has quit [Ping timeout: 268 seconds]
ryantrinkle has joined #nixos-aarch64
orivej has quit [Ping timeout: 248 seconds]
pbb_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pbb has joined #nixos-aarch64
jackdk has quit [Ping timeout: 252 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 248 seconds]
jackdk has joined #nixos-aarch64
zupo has joined #nixos-aarch64
jackdk has quit [Ping timeout: 246 seconds]
lopsided98 has quit [Ping timeout: 248 seconds]
lopsided98 has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kranium has joined #nixos-aarch64
zupo has joined #nixos-aarch64
orivej has joined #nixos-aarch64
<kranium> Anyone have any tips on building firefox on armv7l? Compiling this OOMs on my tinkerboard with 2GB RAM and 8GB swap.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ashy> cross compiling might be possible
<Ashy> I've been meaning to dig into it more
<Ashy> might not have your board yet but could be a good start
orivej has quit [Ping timeout: 244 seconds]
<kranium> @Ashy: yeah crosscompiling could work but that loses the ability to nixos-rebuild on the machine.
<kranium> I've managed to build everything natively with a basic xfce setup
<kranium> Just not sure if it was ever possible to compile these with limited RAM
orivej has joined #nixos-aarch64
<tilpner> kranium: If you don't mind it taking a lot longer, you can try with qemu-user on a machine with more memory
<grw> kranium: u can also try to reduce buildCores (if >1) and enable zram
kranium has quit [Remote host closed the connection]
kranium has joined #nixos-aarch64
<kranium> grw, tilpner: cool thanks will definitely try these out
<tilpner> kranium: Just, uhh, don't be surprised if it takes a few days
<tilpner> Compiling linux to aarch64 with qemu-user takes 5 hours on a E3-1245V2 (and that was with SMT on, I think)
zupo has joined #nixos-aarch64
<kranium> right, i cant remember how long my kernel took, but llvm and gfortran was around 14hours+ on a tinkerboard with a usb mounted ssd as root.
grw has quit [Quit: WeeChat 1.4]
grw has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr> IIRC not only does it need more ram, but it might not be able to run in a 32 bit address space
<samueldr> so not sure if it can build outside of a PAE enabled kernel, and if it even can
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
orivej has quit [Ping timeout: 248 seconds]
kranium` has joined #nixos-aarch64
kranium has quit [Ping timeout: 244 seconds]
orivej 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…]
<sphalerite> kranium`: yep, as samueldr wrote, it will not compile natively on 32-bit.
<samueldr> sphalerite: do you know about PAE?
<samueldr> would it help?
<sphalerite> samueldr: no, because that only extends physical addresses, thus doesn't allow a single process to use more RAM than usual
<samueldr> right, kinda what I thought
<samueldr> so it's probably impossible through native compilation (non-cross) at all
<sphalerite> yep
<samueldr> since there is no equivalent to the i686 stuff in arm
<sphalerite> I don't think firefox will build natively on i686 either anymore
<samueldr> correct me if I'm wrong, but from x86_64 using pkgsi686Linux it works?
<sphalerite> it does?
<sphalerite> [1/2/4 built, 272 copied (2347.1/2348.2 MiB), 751.3 MiB DL] building firefox-unwrapped-67.0 (unpackPhase): unpacking sources
<sphalerite> that'll be fun :D
<samueldr> not sure, I was operating under the assumption
<samueldr> wondering if there is a firefox-bin from mozilla for armv7
<samueldr> we don't care if *they* cross-compile it I guess
<samueldr> could there be a patchelf+cross-compile approach for this?
<sphalerite> there isn't, I checked back when I had my 32-bit chromebook
<sphalerite> which led to #31281 :p
<{^_^}> https://github.com/NixOS/nixpkgs/pull/31281 (by lheckemann, 1 year ago, merged): firefox-bin: Fail on unsupported architectures
<samueldr> though thinking (outside nixpkgs) something could maybe be done to cross-compile (using nixpkgs) publish, then a nix derivation patchelf the result?
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite> samueldr: I can't make sense of that
<sphalerite> samueldr: or rather, I don't get why you'd need to patchelf it
<samueldr> so it'd respect the system's deps instead of using a whole copy of the cross-compiled deps
<samueldr> like treat it as if it wasn't even built with nix to start
<sphalerite> aah right
<sphalerite> yeah that would make sense
<sphalerite> if only cross-compilation worked for our firefox package :p
<samueldr> baby steps :)
<samueldr> we're almost able to, without patches, cross-compile sd-image-aarch64
<sphalerite> ooh nice
<sphalerite> what's missing?
<samueldr> tried with staging last week, an annoying change in the ssh module, and two misc packages to handle... have to continue checking that
<sphalerite> samueldr: LLVM ERROR: out of memory
<sphalerite> when trying to build firefox for i686
<samueldr> right, then I assumed wrongly
<samueldr> good to know
kranium` has quit [Remote host closed the connection]
zupo has joined #nixos-aarch64
<sphalerite> I really want the board you linked the other day, but I'm uncertain on whether I _should_ buy it
<samueldr> I really want it, know I would make use of it, most likely, but sheepish due to that cost... it's not including DDR4 ram
orivej has quit [Ping timeout: 258 seconds]
<samueldr> and I haven't thought to check video out
<samueldr> and the non-final board doesn't have the ouf of band mcu for flashing and debugging, but a standard FTDI
<samueldr> do it's less interesting
orivej has joined #nixos-aarch64
<lopsided98> Does anyone have mainline Linux 5.1 working on the RockPro64? It seems to be unable to load the initrd
<lopsided98> I was previously using ayufan's patched 5.0 kernel, which worked. Mainline 5.0 is also able to load the initrd, but it fails to initialize the eMMC. ayufan's patched 5.1 has the same issue as mainline 5.1
<lopsided98> The error is: "Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)"
<alienpirate5> how do I use a dtb?
tilpner has quit [Quit: WeeChat 2.4]
tilpner has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 248 seconds]
st4ll1_ has quit [Quit: ZNC 1.7.3 - https://znc.in]
st4ll1 has joined #nixos-aarch64
jackdk has joined #nixos-aarch64