02:24
{`-`} has joined #nixos-aarch64
02:29
disasm has quit [Ping timeout: 240 seconds]
05:31
orivej has quit [Ping timeout: 268 seconds]
06:56
gerschtli has quit [Quit: WeeChat 2.0]
10:51
orivej has joined #nixos-aarch64
11:16
orivej has quit [Ping timeout: 260 seconds]
11:29
disasm has joined #nixos-aarch64
12:31
orivej has joined #nixos-aarch64
15:41
duncan^ has quit [Ping timeout: 276 seconds]
17:00
Sonarpulse has joined #nixos-aarch64
17:05
disasm has quit [Ping timeout: 240 seconds]
18:04
disasm has joined #nixos-aarch64
18:14
duncan^ has joined #nixos-aarch64
18:32
Sonarpulse has quit [Ping timeout: 244 seconds]
19:05
Sonarpulse has joined #nixos-aarch64
19:32
orivej has quit [Ping timeout: 268 seconds]
20:51
orivej has joined #nixos-aarch64
21:31
srk has joined #nixos-aarch64
21:34
<
clever >
srk: i took the top half of the case off, and laid the naked pi ontop of a desk fan, and it can now boot once more
21:35
<
srk >
how is that even possible :)
21:35
<
clever >
srk: at one point, it crashed in linux, which booted kgdb, and it showed an overheat from the GPU overlay
21:36
<
clever >
"2018-07-10 18:35:49 bedroom temp: 27.44c(81.39f), kitchen: 26.38c(79.47f), living room: 26.56c(79.81f), outdoor: 21.25c(70.25f), server: 29.75c(85.55f) VCC: over 4.5 volts portb: 00000000"
21:36
<
clever >
srk: and it is about 85f where i was previously keeping the rpi
21:36
<
srk >
not that high, I'm running one lorawan gateway with pi3 on top of the roof where sun is shining on the box constantly
21:37
<
srk >
didn't notice any problems due to temperature
21:37
<
srk >
need to record that tho
21:37
<
clever >
srk: it was also sitting ontop of a cisco switch that lacked any of its original fans
21:37
<
srk >
ah, yeah, that might explain it
21:39
<
srk >
still wondering about that device tree overlay
21:39
<
clever >
23 cp -r ${./../../overlays} overlays
21:39
<
clever >
22 cp ${./../bcm2710-rpi-3-b.dtb} bcm2710-rpi-3-b.dtb
21:40
<
clever >
srk: both are just naked files i copied from
*somewhere*
21:40
<
clever >
i was naughty :P
21:40
<
clever >
now for the fun task of trying to reproduce what i did 2 years ago
21:40
<
srk >
you can get these from uboot or kernel
21:41
<
srk >
I think they are the same in both repos
21:41
<
srk >
but to make a proper image which can nixos-rebuild switch requires patching kernel
21:41
<
clever >
there are also utils to convert between binary and text
21:41
<
srk >
for just single dtc run :)
21:41
<
clever >
and you could make a custom derivation to just run those utils to make your own dtb's
21:41
<
srk >
so I'm thinking about creating a derivation that would just build dtbs from uboot or kernel
21:42
<
srk >
would be nice to be able to say which dtb to use, provide and so
21:42
<
clever >
dtoverlay=pi3-disable-bt
21:42
<
clever >
srk: this entry in config.txt tells it to load an overlay
21:42
<
clever >
Jul 10 21:30:04 router tftpd[31324]: tftpd: trying to get file: 9080d9b6/overlays/pi3-disable-bt.dtbo
21:43
<
clever >
srk: which is in the overlays directory of the "boot partition"
21:43
<
srk >
right but that's custom stuff done by rpi firmware, right?
21:43
<
srk >
afaik there's no support for overlays in uboot nor kernel
21:43
<
clever >
i believe you can just make your own overlays with any name you want
21:44
<
clever >
and the firmware will apply the overlays before passing the dtb to the kernel
21:44
<
srk >
but that again only works for rpi :)
21:45
<
clever >
for other systems, you may need to use the CLI tools to merge things yourself, before setting up /boot/
21:45
<
srk >
I'm all for standard way to do things (mainline linux + uboot) if possible, although quite painful at times
21:46
<
clever >
linux can also load overlays at runtime
21:46
<
srk >
managed to hit some fun issues - GPS connected to uart stopping uboot, then stopping extlinux.. :D
21:46
<
Dezgeg >
someone could write a nixos module for applying the overlays, I guess
21:46
<
clever >
Dezgeg: dynamicaly loading them at runtime works in a stack based system
21:46
<
clever >
Dezgeg: so you can only unload them in the reverse order they had been loaded
21:48
<
Dezgeg >
I mean you could compile the final .dtb from the base .dtb + overlays at system build time
21:48
<
clever >
yeah, thats still an option
21:48
<
Dezgeg >
but yeah, maybe this dynamic dtbo stuff works, haven't tried that myself
21:48
<
srk >
also recent kernel on pi3 exposes two gpiochips (one for the expander) and my tool that I wrote few years ago when struggling with this didn't pick the right one ..
https://github.com/sorki/ail_gpio/
21:50
<
srk >
Dezgeg: thanks for the armv7 and aarch64 images btw, managed to run them on bunch of boards now, my hydra is now crunching armv7l as well
21:51
<
Dezgeg >
I think nowadays there is some userspace tool to use the gpio ioctl interfaces
21:52
<
srk >
probably, mine is pure bash, from times we've managed to build first armv6 fedora images and there was no way to compile stuff on it :D
21:52
<
clever >
the rpi also has its own tools, that list off the pins, ordered by how they are laid out on the header
21:52
<
srk >
they just make it more confusing :)
21:52
<
srk >
with most of their added cruft sadly
21:53
<
srk >
Since linux 4.8 the GPIO sysfs interface is deprecated. oO :D
21:59
<
clever >
2018-04-28 22:41:18<@clever> bash-4.4# iscsiadm -m discovery -t sendtargets -p 192.168.2.61
21:59
<
clever >
2018-04-28 22:41:22<@clever> bash-4.4# iscsiadm -m node -T iqn.2015-10.com.c2d-swap1 -p 192.168.2.61 -l
21:59
<
clever >
srk: some notes i left myself, on how to enable swap on my not-os image
22:00
<
srk >
I'm taking notes of our conversations .. :D
22:00
<
Dezgeg >
swap on iscsi? hope you don't deadlock
22:00
<
clever >
that creates a /dev/sda, which maps to a file on the c2d machine
22:00
<
clever >
[ 1670.526918] Out of memory: Kill process 6563 (cc1) score 38 or sacrifice child
22:00
<
clever >
Dezgeg: its better then this :P
22:01
<
clever >
Dezgeg: and swap on iscsi is far more stable then swap on a zvol
22:49
duncan^ has quit [Ping timeout: 268 seconds]
22:52
duncan^ has joined #nixos-aarch64
23:19
orivej has quit [Ping timeout: 260 seconds]
23:32
duncan^ has quit [Ping timeout: 260 seconds]
23:33
orivej has joined #nixos-aarch64
23:35
duncan^ has joined #nixos-aarch64