<clever>
ive had trouble keeping nbd stable in the past
<gchristensen>
I'm trying to get off it as quick as puossible
<gchristensen>
but I can't manage to upload my kexec tarball
<clever>
upload it to a tmpfs?
<clever>
then it wont write to nbd?
<gchristensen>
not enough memory
<clever>
ack!
<clever>
kexec also has trouble in low-ram situations, just unpacking the initrd
<clever>
how little ram does it have?
<gchristensen>
2g
<clever>
thats not that bad
<clever>
should be plenty to put a kexec on tmpfs
<gchristensen>
fingers crossed :P
<gchristensen>
I might also try just `dd`ing to /dev/nbd0
ryantrinkle has joined #nixos-aarch64
<gchristensen>
3/3
h0m1 has quit [Ping timeout: 252 seconds]
h0m1 has joined #nixos-aarch64
orivej has quit [Ping timeout: 276 seconds]
<ornxka>
how do i do cross-compiling nixos-install?
<ornxka>
my board actually lets me flash uboot to spi so i dont need to install it in the sd card, so i think that means i can just install a normal extlinux bootloader to an ext4 partitioned usb drive
<ornxka>
ive got this nifty nix-shell command that cross-compiles an sd image, and i made a configuration.nix, but im not sure how to actually put them together
<ornxka>
ah, do i just set nixpkgs.crossSystem?
<ornxka>
wl5hjy5kzsrynik3qn32ymcqxb60hb17-cpio-2.12/bin/cpio: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /nix/store/hnp72ygssavd526rp7qk3yjylyc2klcw-glibc-2.27/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, not stripped
<ornxka>
apparently not
<clever>
ornxka: i think nixos-install needs the ability to execute the target arch, for the final steps
<ornxka>
why on earth would it be fetching firefox
<samueldr>
might be for the js engine
<ornxka>
the only package i have enabled though is wireguard
<clever>
ornxka: policykit depends on spidermonkey, which is in the firefox source
<ornxka>
oh god why
<clever>
the policy files are written in javascript, lol
* ornxka
screaming
<ornxka>
i dont like that one bit
<clever>
in theory, only root has permission to edit those policy files
<ornxka>
i dunno, "component for controlling system-wide privileges in unix" and "big javascript interpreter from firefox source" dont juxtapose very well in my mind
<clever>
yeah
<samueldr>
a bespoke custom parser for some custom file format is maybe not better than a battle-tested compiler and interpreter
<clever>
also, JS allows you to make up whatever fancy rules you want
<ornxka>
isnt it a JIT interpreter though?
<clever>
probably
<ornxka>
and doesnt that mean it has to have segments of memory that are both writeable and executable
<clever>
it likely toggles both at once
<clever>
thats what i would do
<ornxka>
its probably fine but in a "browser exploits are really expensive and youre probably not worth it" sense than a "its probably actually secure" sense
<samueldr>
and it's going to execute files that are shipped by the distro or handled by root
<ornxka>
but then i guess that applies to a lot of things
<samueldr>
meanwhile the same engine is running in your browsers
<samueldr>
running code from random origins
<ornxka>
also very spooky
<ornxka>
i have a small browser extension that calculates the script entropy and refuses to run it if its above a certain threshold, to prevent against js 0days
<ornxka>
(just kidding)
vika_nezrimaya has joined #nixos-aarch64
zupo has joined #nixos-aarch64
vika_nezrimaya has quit [Ping timeout: 240 seconds]
zupo_ has joined #nixos-aarch64
zupo has quit [Ping timeout: 250 seconds]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vika_nezrimaya has joined #nixos-aarch64
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
orivej has joined #nixos-aarch64
vika_nezrimaya has quit [Ping timeout: 265 seconds]
Thra11 has quit [Read error: Connection reset by peer]
thequux[m] has quit [Quit: killed]
timokau[m] has quit [Quit: killed]
dtz has quit [Quit: killed]
bennofs[m] has quit [Quit: killed]
danielrf[m] has quit [Quit: killed]
worldofpeace has quit [Quit: killed]
contrun[m] has quit [Quit: killed]
cornu has quit [Quit: killed]
Ox4A6F has quit [Quit: killed]
craige[m] has quit [Quit: killed]
balsoft has quit [Quit: killed]
atopuzov[m] has quit [Quit: killed]
marijan[m] has quit [Quit: killed]
thefloweringash has quit [Quit: killed]
alienpirate5 has quit [Quit: killed]
Ox4A6F has joined #nixos-aarch64
<gchristensen>
so I'm going to give up on scaleway for now
<gchristensen>
"
<gchristensen>
We have found 0 items that match "armv7l", the result below is for "armdual".
bdju has quit [Ping timeout: 265 seconds]
cornu has joined #nixos-aarch64
alienpirate5 has joined #nixos-aarch64
atopuzov[m] has joined #nixos-aarch64
balsoft has joined #nixos-aarch64
Ericson2314 has joined #nixos-aarch64
bennofs[m] has joined #nixos-aarch64
insep[m]1 has joined #nixos-aarch64
craige[m] has joined #nixos-aarch64
danielrf[m] has joined #nixos-aarch64
dtz has joined #nixos-aarch64
marijan[m] has joined #nixos-aarch64
thefloweringash has joined #nixos-aarch64
NickHu has joined #nixos-aarch64
timokau[m] has joined #nixos-aarch64
thequux[m] has joined #nixos-aarch64
contrun[m] has joined #nixos-aarch64
worldofpeace has joined #nixos-aarch64
marius851000[m] has joined #nixos-aarch64
<gchristensen>
I'm sort of thinking the next thing to try is getting several jetson nanos
<gchristensen>
oops no those are armv8
orivej has quit [Ping timeout: 250 seconds]
t184256 has left #nixos-aarch64 ["Error from remote client"]
t184256 has joined #nixos-aarch64
lirzhv has joined #nixos-aarch64
insep[m]1 has quit [Quit: User has been idle for 30+ days.]
bdju has joined #nixos-aarch64
grw has quit [Ping timeout: 244 seconds]
zupo has joined #nixos-aarch64
prusnak has joined #nixos-aarch64
ToxicFrog has quit [Quit: WeeChat 2.5]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
orivej has joined #nixos-aarch64
grw has joined #nixos-aarch64
<samueldr>
depends if they can boot in armv7 or not
<samueldr>
or dealt through a VM
kai_w has joined #nixos-aarch64
kai_w has quit [Client Quit]
<gchristensen>
I thought VMs were trouble because of the underlying CPU
kai_w has joined #nixos-aarch64
<gchristensen>
anyway, I guess the best thing to do here is go a VM route.
kai_w has quit [Read error: Connection reset by peer]
<clever>
gchristensen: a /dev/kvm based vm would have the same issues, but a tcg based vm (while slower) can execute armv7 on anything (even arm64)
kai_w has joined #nixos-aarch64
<gchristensen>
ah
<samueldr>
hm?
<clever>
i have used qemu-user-x86 (a tcg based cpu emulator) on an rpi before, lol
kai_w has quit [Client Quit]
<clever>
so i could run closed-source x86 apps, on an arm device
kai_w has joined #nixos-aarch64
<samueldr>
though I think qemu has the right params to actually make 32 bit work right
kai_w has quit [Client Quit]
<samueldr>
after all, I did check that an SD image was working right on a non-armv8 armv7 device
<clever>
v6 emulation might be a bit more tricky
<samueldr>
yeah, forget about armv6, it's not going to happen I thnk with VMs you're right :)
<gchristensen>
it would be great to get a nixos configuariotn which ran a VM like that
<clever>
for v6, you need the right -cpu flag i think, to restrict it further
<samueldr>
the issue is having a host where it can run, gchristensen
<samueldr>
that's one of the thing we tested the other day
<samueldr>
the community builder can
<samueldr>
the host you could get could not
<gchristensen>
ahh
kai_w has joined #nixos-aarch64
<samueldr>
my raspberry pi can
<gchristensen>
did we ever find out what the underlying problem was?
<samueldr>
nope
kai_w has quit [Read error: No route to host]
<gchristensen>
ack.
<samueldr>
it probably required some more investigating
<gchristensen>
OH
<gchristensen>
ED wanted to try debugging with us
<samueldr>
yes
<gchristensen>
should we schedule that?
<samueldr>
it could be a firmware issue
<samueldr>
we probably should
kai_w has joined #nixos-aarch64
<gchristensen>
he said 2 weeks out is easier than 1 or 0
<gchristensen>
2 weeks is close to christmas
kai_w has quit [Client Quit]
<gchristensen>
how does first or second week of January look to you?
<samueldr>
surely early january is a good solution
<samueldr>
yeah
<samueldr>
I can easily schedule that in my $work time considering it would expand the scope of Mobile NixOS
kai_w has joined #nixos-aarch64
kai_w has quit [Client Quit]
kai_w has joined #nixos-aarch64
kai_w has quit [Client Quit]
kai_w has joined #nixos-aarch64
<samueldr>
I would only need maybe a day beforehand to prep the known-to-work images
kai_w has quit [Client Quit]
<gchristensen>
okay
kai_w has joined #nixos-aarch64
kai_w has quit [Client Quit]
kai_w has joined #nixos-aarch64
kai_w has quit [Client Quit]
kai_w has joined #nixos-aarch64
kai_w has quit [Client Quit]
kai_w has joined #nixos-aarch64
kai_w has quit [Read error: Connection reset by peer]
kai_w has joined #nixos-aarch64
kai_w has quit [Client Quit]
kai_w has joined #nixos-aarch64
kai_w has quit [Client Quit]
kai_w has joined #nixos-aarch64
kai_w has quit [Read error: Connection reset by peer]
kai_w has joined #nixos-aarch64
kai_w has quit [Client Quit]
kai_w has joined #nixos-aarch64
kai_w has quit [Read error: No route to host]
kai_w has joined #nixos-aarch64
<gchristensen>
samueldr: we shoud probably just try again on ourown first to validate the problem still exists
kai_w has quit [Read error: No route to host]
kai_w has joined #nixos-aarch64
kai_w has quit [Client Quit]
kai_w has joined #nixos-aarch64
kai_w has quit [Read error: Connection reset by peer]
kai_w has joined #nixos-aarch64
kai_w has quit [Client Quit]
kai_w has joined #nixos-aarch64
kai_w has quit [Client Quit]
<samueldr>
definitely
kai_w has joined #nixos-aarch64
kai_w has quit [Read error: No route to host]
kai_w has joined #nixos-aarch64
<samueldr>
not only that, but streamline the problem into something that's easy to test
kai_w has quit [Client Quit]
kai_w has joined #nixos-aarch64
<gchristensen>
samueldr: can you prepare a new VM image ? I can get us a box to test with this afternoon or more likely evening
zupo has joined #nixos-aarch64
kai_w has quit [Client Quit]
<samueldr>
I could
kai_w has joined #nixos-aarch64
<gchristensen>
cool
kai_w has quit [Client Quit]
<gchristensen>
kai :(
kai_w has joined #nixos-aarch64
<gchristensen>
kai :(
kai_w has quit [Client Quit]
<gchristensen>
oops
<samueldr>
wrong window?
kai_w has joined #nixos-aarch64
<gchristensen>
samueldr: I would boot one now, but my internet is so bad I can barely chat here
kai_w has quit [Client Quit]
<samueldr>
I need to make the image first, so I'm not in a hurry
<gchristensen>
cool
kai_w has joined #nixos-aarch64
<gchristensen>
mosh is the only thing making this usable at all
<samueldr>
would be interesting to know if they removed the 32 bit support
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen>
ok samueldr I'm home now and can spin something up at your liesure
<tilpner>
"error while reading directory /nix/store: Cannot allocate memory"
<tilpner>
Huh, that's a new one
<tilpner>
I'm pretty sure I had enough memory, and the build succeeded anyway
<samueldr>
gchristensen: still building up _something_ with cross-system
<samueldr>
(from a cold cache)
<gchristensen>
ah
<gchristensen>
need a big machine? :)
<samueldr>
I don't think so, it's currently finishing the kernel build
<samueldr>
and I think that means it's going to pack it up next
<samueldr>
INSTALLing
<gchristensen>
ok
<samueldr>
while it's not an EPYC or anything, my 2012-era workstation with a xeon is quite fast
<gchristensen>
oh yes my yes it is
<samueldr>
hm?
<gchristensen>
I forgot you had that at home :)
<samueldr>
ah
<samueldr>
dang it, forgot to prepend `time` to the command
<samueldr>
it would have been nice knowing
<samueldr>
I also have like 4× the RAM needed for its use case
<gchristensen>
:D
<samueldr>
it was meant to run my desktop at the time, still had 2× the RAM needed when I actively pushed it to its limit
<gchristensen>
so just enough
<samueldr>
consider this: pushing its to its limit means using an unoptimized ruby script that ran in ram to pull all the github PR data set 2 years ago to generate graphs
<gchristensen>
hahaha
<samueldr>
"big data" (not really)
prusnak has quit [Quit: Connection closed for inactivity]
<samueldr>
I love how I'm likely going to need to dive into grub2's build system again to understand why it's using grub-mkfont even though it's explicitly disabled
<samueldr>
the configure script even tells me it is!