00:01
<
samueldr >
so, to quickly answer, there's no clear winner, and for everything existing RK3399-based devices are probably the best
00:02
<
samueldr >
unless you want Windows
00:07
<
flokli >
no windows ;-)
00:16
<
craige >
Hey clever++ - thanks for your ARM+Qemu nix files. HUGELY helpful. Have you seen the build fail due to a "bash: Exec format error"?
00:16
<
{^_^} >
clever's karma got increased to 318
00:17
<
clever >
craige: is binfmt-misc configured? and the qemu allowed into the nix sandbox?
00:24
<
craige >
I'm unsure (this was last night's work). I'll follow those leads next. Thanks clever :-)
00:25
<
clever >
craige: there is a qemu.nix module in my nixos-configs, that configures everything
00:29
<
craige >
I took that file and the overlays. I beleived I'd configured it correcty bit after being deployed when I build an image, it no longer complained about not being aarch64 but then failed on the bash error - so I suspect you're 100% right that I need to do something about binfmt
00:29
<
samueldr >
I'm curious how hard it would be to have qualcomm on-board with making a mainline-based linux laptop that runs its firmware in a safe manner
00:30
<
samueldr >
but from the few quips I've seen, they may be adverse to making it virtualization friendly :/
00:30
<
clever >
craige: that part configures binfmt-misc
01:10
<
cidkid >
samueldr: you said there was going to be eventual wcnss support, do most qualcomm devices work with wcnss or only some?
01:11
<
samueldr >
but from my experience, it's all "vintage"-based again
01:11
<
samueldr >
a swath of devices will have extremely similar quirks that apply
01:12
<
cidkid >
I don't think any msm8998 devices do wncnss then
01:12
<
cidkid >
which is kinda sad for me
01:13
<
samueldr >
I'll most likely have it figured out at one point since the pixel 2 is likely going to work the same
01:13
<
samueldr >
though obviously can't give an ETA
01:15
<
cidkid >
I have really no idea where to start with wifi on msm8998 without using halium
01:15
<
cidkid >
so I guess I'll wait
01:17
<
cidkid >
although libhybris itself might work
01:17
<
cidkid >
with enough configuring
02:14
h0m1 has quit [Ping timeout: 246 seconds]
02:16
h0m1 has joined #nixos-aarch64
03:22
<
cidkid >
samueldr: so currently, USB internet from computer -> phone isn't working?
03:23
<
samueldr >
networking can work, but nothing setup to forward internet from your computer to the phone
03:23
<
samueldr >
though it,s
03:23
<
samueldr >
though it's entirely feasible
03:26
<
clever >
cidkid: one min...
03:27
<
clever >
cidkid: line 76-100 spins up a dhcp server on the interface specified on line 77
03:27
<
clever >
cidkid: lines 105-108 spin up a dns cache, to serve dns to that interface
03:28
<
clever >
cidkid: 113 sets a static ip on the interface
03:28
<
clever >
cidkid: and line 116-121 sets up NAT, so anything on that interface can reach the web thru your machine
03:28
<
clever >
the tricky part, is that the interface wont exist if you unplug the phone, and some of those things may fail to start
03:29
<
clever >
it expects the interface to always exist (an ethernet card) and for the link to just come&go, but with g_ether, the whole network interface comes&goes
03:35
<
cidkid >
alright rootfs is flashing
03:40
<
cidkid >
samueldr: so rootfs is found but no generation was found to boot
03:41
<
cidkid >
eg the fuscia screen I get when booting with a pre new-init boot system
03:43
<
cidkid >
I don't know what I can really do from here
03:48
<
cidkid >
Invalid sparse file format at header magic
03:48
<
cidkid >
don't know if ^^ that has anything to do with it
03:51
<
cidkid >
ping me if you think of something please
03:56
<
cidkid >
I'll try dd ing through TWRP
04:05
cidkid has quit [Quit: Ping timeout (120 seconds)]
04:06
cidkid has joined #nixos-aarch64
04:08
<
DigitalKiwi >
clever: how do you use the linux_rpi3 kernel
04:08
<
clever >
DigitalKiwi:
*looks*
04:09
<
DigitalKiwi >
time nix-build ~/projects/nixpkgs/nixos/ -A config.system.build.sdImage -I nixos-config=/home/kiwi/projects/github/nix-configs/hosts/rpi-nixos/sd-image.nix --argstr system aarch64-linux
04:09
<
DigitalKiwi >
error: attribute 'extend' missing, at /home/kiwi/projects/nixpkgs/nixos/modules/system/boot/kernel.nix:40:31
04:09
<
clever >
DigitalKiwi: what did you set kernelPackages to?
04:10
<
DigitalKiwi >
boot.kernelPackages = pkgs.linux_rpi3;
04:10
<
cidkid >
You have to flash rootfs through TWRP though
04:10
<
clever >
DigitalKiwi: kernelPackages MUST always be set to a kernelPackages set, not a bare kernel
04:10
<
clever >
16576 linuxPackages_rpi3 = linuxPackagesFor pkgs.linux_rpi3;
04:10
<
DigitalKiwi >
boot.kernelPackages = pkgs.linuxPackages_rpi3;
04:10
<
clever >
yep, thats it
04:10
<
DigitalKiwi >
should that work?
04:10
<
DigitalKiwi >
thanks
04:11
<
DigitalKiwi >
i realized that after :<
04:11
<
clever >
that will re-run callPackage for every optional thing, aimed at the rpi kernel
04:11
<
DigitalKiwi >
it's just weird how the kernels don't show up right
04:11
<
clever >
so it will automagically build the modules against the right kernel
04:11
<
DigitalKiwi >
in nix search
04:11
<
DigitalKiwi >
i always forget
04:11
<
clever >
16579 linuxPackages_4_9 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_9);
04:11
<
DigitalKiwi >
this is probably why my pi does not work after i switch :P
04:11
<
clever >
only if recurseIntoAttrs gets involved, will nix-env -q recurse into it
04:13
<
DigitalKiwi >
ok so i lied
04:13
<
DigitalKiwi >
i had the correct line
04:14
<
DigitalKiwi >
so that's not why it doesn't work after switch :<
04:14
<
clever >
DigitalKiwi: any uart output?
04:15
<
DigitalKiwi >
when i connected it to the tv it goes to where it should start loading the kernel and just black screens
04:15
<
DigitalKiwi >
i'm probably missing something from my configuration.nix?
04:15
<
clever >
without the uart output, it can be hard to debug boot issues
04:16
<
DigitalKiwi >
does my serial cable give me uart
04:17
<
DigitalKiwi >
so what i'm doing right now is building a new sd-image with the linuxPackages_rpi3 and i'll see if that boots
04:17
<
DigitalKiwi >
and in the meantime...should i just be able to put most of what is in my sd-image.nix in the configuration.nix?
04:18
<
DigitalKiwi >
specifically i'm wondering if this would help <nixpkgs/nixos/modules/installer/cd-dvd/sd-image-aarch64.nix>
04:19
<
DigitalKiwi >
or maybe my hardware-configuration.nix is wrong
04:19
<
clever >
if the rootfs isnt defined properly, the initrd may fail to mount the rootfs
04:22
<
DigitalKiwi >
that's a weird uuid
04:23
<
DigitalKiwi >
it's real though
04:23
<
clever >
DigitalKiwi: after you flash the image to the card, does blkid say its right?
04:23
<
DigitalKiwi >
ls /dev/disk/by-uuid/
04:23
<
DigitalKiwi >
2178-694E 44444444-4444-4444-8888-888888888888
04:23
<
DigitalKiwi >
how do you mean
04:23
<
clever >
DigitalKiwi: run the blkid command on the partition
04:24
<
DigitalKiwi >
right now or do i have to flash a new one and from the pi or a different computer
04:25
<
DigitalKiwi >
sudo blkid /dev/disk/by-uuid/44444444-4444-4444-8888-888888888888
04:25
<
DigitalKiwi >
/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888: LABEL="NIXOS_SD" UUID="44444444-4444-4444-8888-888888888888" TYPE="ext4" PARTUUID="2178694e-02"
04:25
<
clever >
the partition, not that symlink
04:25
<
clever >
like, sda1
04:26
<
DigitalKiwi >
/dev/mmcblk0p2 on / type ext4 (rw,relatime) /dev/mmcblk0p2 on /nix/store type ext4 (ro,relatime)
04:26
<
DigitalKiwi >
that's weird innit?
04:26
<
clever >
totally normal
04:26
<
clever >
nixos bind-mounts /nix/store to /nix/store, so it can make it read-only
04:26
<
clever >
so root cant edit things in the store
04:27
<
clever >
DigitalKiwi: blkid /dev/mmcblk0p2
04:27
<
DigitalKiwi >
/dev/mmcblk0p2: LABEL="NIXOS_SD" UUID="44444444-4444-4444-8888-888888888888" TYPE="ext4" PARTUUID="2178694e-02"
04:28
<
clever >
looks like it should work
04:28
<
DigitalKiwi >
why doesn't the boot partition get a line in hardware-configuration
04:28
<
DigitalKiwi >
FIRMWARE
04:28
<
clever >
DigitalKiwi: nixos on the rpi doesnt use a "boot partition", /boot is just a dir on /
04:29
<
clever >
DigitalKiwi: the firmware partition is treated as read-only, and never gets mounted
04:29
<
clever >
the firmware partition has both the rpi firmware, and a copy of u-boot
04:29
<
clever >
and u-boot then just reads the /boot dir on /, i believe
04:33
<
clever >
its getting late here, i should get to bed
04:35
<
cidkid >
I get no boot with new init
04:43
<
cidkid >
although I am pretty sure If I could load firmware I can get audio working soon
05:11
<
cidkid >
Mm I got firmware working
05:11
<
cidkid >
and adsp has no dmesg firmware loading errors
05:17
cidkid has quit [Remote host closed the connection]
06:02
orivej has joined #nixos-aarch64
06:42
zupo has joined #nixos-aarch64
07:05
zarel_ has joined #nixos-aarch64
07:06
zarel has quit [Ping timeout: 268 seconds]
07:35
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:03
zupo has joined #nixos-aarch64
08:34
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:37
zupo has joined #nixos-aarch64
08:39
zupo has quit [Client Quit]
09:01
zupo has joined #nixos-aarch64
09:01
zupo has quit [Client Quit]
09:18
orivej has quit [Ping timeout: 260 seconds]
09:56
t184256 has left #nixos-aarch64 ["Error from remote client"]
10:00
t184256 has joined #nixos-aarch64
10:10
orivej has joined #nixos-aarch64
10:37
wavirc22 has joined #nixos-aarch64
11:52
zupo has joined #nixos-aarch64
11:53
<
srk >
DigitalKiwi: is there a reason for rpi specific kernel instead of mainline?
12:06
<
srk >
better grab esp8266 and nodemcu
12:07
<
srk >
with mainline you need some overlays to expose /dev/spidev(s) then it should work
12:08
<
srk >
not sure about PWM/PCM
12:09
<
DigitalKiwi >
is there documentation about the overlays somewhere
12:11
<
DigitalKiwi >
though i haven't confirmed i even have a working setup with mainline kernel ;_; i probably don't
12:24
<
srk >
wtf is that another rpi specific thing
12:25
<
srk >
Revision : 0000
12:25
<
srk >
Hardware : BCM2835
12:25
<
srk >
cpuinfo on pi2
12:25
<
srk >
are you running it on aarch64?
12:28
<
DigitalKiwi >
the only place i've gotten it to work is raspbian
12:32
<
srk >
yes because rpi foundation creates a lot of confusion with their patched kernel and special way of doing things
12:41
tilpner has joined #nixos-aarch64
13:04
ryantrinkle has joined #nixos-aarch64
13:05
<
DigitalKiwi >
ok so i got a nixos-rebuild switch and a reboot to work with the default nixos kernel
13:05
<
DigitalKiwi >
which is...progress i guess
13:08
ryantrinkle has quit [Ping timeout: 260 seconds]
13:39
wavirc22 has quit [Ping timeout: 272 seconds]
13:44
wavirc22 has joined #nixos-aarch64
13:45
cidkid has joined #nixos-aarch64
13:54
cidkid has quit [Ping timeout: 260 seconds]
13:56
cidkid has joined #nixos-aarch64
14:03
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:13
wavirc22 has quit [Ping timeout: 268 seconds]
14:18
wavirc22 has joined #nixos-aarch64
14:18
cidkid has quit [Ping timeout: 268 seconds]
14:37
zupo has joined #nixos-aarch64
14:51
<
clever >
srk: i suspect the literalExample might be wrong, it feels like it will still give a storepath
14:51
<
clever >
srk: and the example on line 33 is missing some indent
14:53
<
srk >
clever: not sure why I've had to do {./overlays/my.dts}, for some reason ./overlays/my.dts wasn't picked up correctly
14:55
<
clever >
srk: what if you just dont quote it?
14:55
<
srk >
think I've tried both ways, let me check again
14:59
ryantrinkle has joined #nixos-aarch64
15:05
orivej has quit [Ping timeout: 260 seconds]
15:17
<
srk >
novena decided I need a break and started compiling unrelated stuff :D
15:34
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:49
<
srk >
not sure if such long example is a good idea, will try something shorter like i2s status okay
15:49
<
srk >
also need to explain compatible as this queries both kernel dtb a dtbo for compatible strings and applies only if there's a match
16:12
zupo has joined #nixos-aarch64
16:27
cidkid has joined #nixos-aarch64
16:28
<
cidkid >
Hmm I can't fix the new init issue with my phone1
16:45
orivej has joined #nixos-aarch64
16:46
cidkid has quit [Ping timeout: 240 seconds]
17:20
zupo has quit [Ping timeout: 268 seconds]
18:31
ryantrinkle has quit [Ping timeout: 268 seconds]
18:41
cidkid has joined #nixos-aarch64
18:45
ryantrinkle has joined #nixos-aarch64
18:58
<
clever >
samueldr: ive learned a new tricky that is massively useful for arm debug
18:59
<
clever >
samueldr: just throw a bpkt opcode into the linux source, and boot!
18:59
<
clever >
samueldr: the cpu will automatically halt, and return control to gdb, if jtag is properly connected!
19:16
<
samueldr >
do not rely on this image existing
19:17
<
samueldr >
its SLA is "I can't wait to delete the derivation once mainline works for our generic image"
19:18
<
ar >
i don't plan to rely on it existing forever; all i care about is getting nixos on my rpi4 ~now-ish
19:18
<
{^_^} >
samueldr's karma got increased to 160
19:43
cidkid has quit [Ping timeout: 265 seconds]
19:56
zupo has joined #nixos-aarch64
20:00
lovesegfault has joined #nixos-aarch64
20:16
zupo has quit [Ping timeout: 252 seconds]
20:17
zupo has joined #nixos-aarch64
22:21
bennofs has quit [Remote host closed the connection]
22:22
bennofs has joined #nixos-aarch64
22:28
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:44
lovesegfault has quit [Quit: WeeChat 2.7]
22:49
lovesegfault has joined #nixos-aarch64
23:17
orivej has quit [Ping timeout: 272 seconds]
23:31
ryantrinkle has quit [Ping timeout: 260 seconds]