00:20
bennofs has joined #nixos-aarch64
00:21
<
bennofs >
How hardware-specific is stuff like serial out is on ttyS2? For my rock64 board, I needed to edit the extlinux.conf to console=ttyS2, will this be the same for all rock64 boards?
00:22
<
bennofs >
btw, who decides what ttyS2 is? is it dependent on the device tree?
00:23
<
samueldr >
specific often to the range of hardware
00:23
<
samueldr >
so like everything with that rockchip are likely to use that ttyS* for serial
00:23
<
samueldr >
(in my experience)
00:24
<
bennofs >
so I think it makes sense to mention that you need ttyS2 in the NixOS rock64 wiki article?
00:25
<
samueldr >
I think so too
00:25
<
samueldr >
though for some boards it's been known to change, I guess due to how the kernel names them and order of allocation
00:25
<
samueldr >
mainly, the raspberry pi 3 family
00:26
<
bennofs >
i would guess it changes if you change the device tree
00:33
<
bennofs >
is there a way to pass the serial console from uboot to the linux kernel?
00:33
<
bennofs >
because uboot already knows where the serial console is that it currently uses, should be possible to just use that
00:34
<
samueldr >
not that I know of
00:34
<
samueldr >
but that is an interesting thought
00:35
<
bennofs >
the console=uart8250,mmio32,0xff130000 setting might work if uboot can give use the address of the mmio mapping
00:36
<
bennofs >
has the added benefit of providing early uart
00:36
<
samueldr >
yeah, that's what I was thinking, though not looking into anything
00:36
<
bennofs >
but it might be hard to pass kernel options from uboot through extlinux?
00:36
<
samueldr >
though it would be good if the kernel also added predictable naming for serial interfaces
00:36
<
samueldr >
might be, not sure
00:36
<
samueldr >
though u-boot's source is relatively straightforward
00:37
<
bennofs >
wait, extlinux also knows the console. because the extlinux menu works, even if the console= setting is wrong
00:37
<
samueldr >
it's u-boot
00:37
<
samueldr >
not extlinux
00:37
<
samueldr >
it's simply the file format of
00:37
<
bennofs >
ah, I always forget. you are right of course
00:37
<
samueldr >
I try to be :)
00:38
* samueldr
is tracking down the source bits
00:39
<
samueldr >
while straightforward, woof sometimes it's ugly
00:40
<
samueldr >
interesting, it should be able to handle "bmp" backgrounds
00:40
<
samueldr >
(likely not only bmp)
00:45
<
samueldr >
looking at the source, it would be relatively trivial to add something that does an env_get() on a given environment variable to append to the extlinux bootargs
00:46
<
samueldr >
this is where APPEND is being consumed
00:46
<
samueldr >
it always overwrites the contents of bootargs
00:51
<
bennofs >
samueldr: it calls cli_simple_process_macros before that though
00:52
<
samueldr >
ooh, only quickly looked
00:52
<
bennofs >
and macros can be like ${uboot_var} if I understand correctly
00:52
<
samueldr >
that looks about right
02:05
<
samueldr >
tilpner: I don't remember, do you have your pinebook a64 config up somewhere?
02:05
<
samueldr >
I'm about to publish mine, and wanted to compare notes
02:05
<
samueldr >
though I already am using your wifi driver derivation
02:30
h0m1 has quit [Ping timeout: 245 seconds]
02:32
h0m1 has joined #nixos-aarch64
05:59
Acou_Bass has quit [Ping timeout: 250 seconds]
06:06
Acou_Bass has joined #nixos-aarch64
06:38
zupo has joined #nixos-aarch64
07:05
THFKA4 has quit [Ping timeout: 276 seconds]
07:05
zupo has quit [Ping timeout: 240 seconds]
07:05
THFKA4 has joined #nixos-aarch64
07:07
zupo has joined #nixos-aarch64
07:16
v0|d has quit [Ping timeout: 250 seconds]
07:29
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:35
Acou_Bass has joined #nixos-aarch64
08:06
zupo has joined #nixos-aarch64
08:28
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:00
zupo has joined #nixos-aarch64
09:40
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:42
zupo has joined #nixos-aarch64
09:45
zupo has quit [Client Quit]
09:51
zupo has joined #nixos-aarch64
10:04
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:05
zupo has joined #nixos-aarch64
10:27
bennofs has joined #nixos-aarch64
10:32
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:38
DigitalKiwi has quit [Quit: quite.]
10:47
DigitalKiwi has joined #nixos-aarch64
11:01
<
tilpner >
samueldr: Sorry, no, I never got it working perfectly :(
11:44
Piece_Maker has joined #nixos-aarch64
11:48
Piece_Maker is now known as Acou_Bass
12:08
orivej has quit [Ping timeout: 245 seconds]
12:39
ryantrinkle has quit [Ping timeout: 265 seconds]
12:47
<
bennofs >
does anyone know if SBC usually have hardware watchdogs?
12:48
<
gchristensen >
I know they often do
12:52
ryantrinkle has joined #nixos-aarch64
13:12
ryantrinkle has quit [Ping timeout: 245 seconds]
13:44
zupo has joined #nixos-aarch64
13:49
<
bennofs >
gchristensen: do you have some pointers how to enable them? I'd guess uboot needs support for that?
13:50
<
gchristensen >
not sure exactly, I know systemd supports using a watchdog
13:50
<
gchristensen >
it'd be specific to your board
13:50
<
clever >
bennofs: i know the rpi has a watchdog, and there is full linux support, and the daemon will only prod it when certain conditions are met
13:51
<
andi- >
systemd has some interface or watchdogs as long as they are "uniform" in terms of some kernel API IIRC
13:59
andi- has quit [Ping timeout: 276 seconds]
14:16
LnL has quit [Ping timeout: 240 seconds]
14:18
LnL has joined #nixos-aarch64
14:18
LnL has quit [Changing host]
14:18
LnL has joined #nixos-aarch64
14:42
andi- has joined #nixos-aarch64
14:55
orivej has joined #nixos-aarch64
14:58
ryantrinkle has joined #nixos-aarch64
15:30
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:37
zupo has joined #nixos-aarch64
15:42
zupo has quit [Ping timeout: 250 seconds]
16:54
ryantrinkle has quit [Ping timeout: 240 seconds]
17:07
ryantrinkle has joined #nixos-aarch64
18:19
orivej has quit [Ping timeout: 246 seconds]
19:04
THFKA4 has joined #nixos-aarch64
19:04
THFKA4 has quit [Changing host]
19:20
zupo has joined #nixos-aarch64
19:25
<
samueldr >
tilpner: no worries, I was just hoping for additional tricks I could have missed :)
19:28
<
tilpner >
samueldr: Did you push it yet?
19:28
<
samueldr >
soon will, dealing with Multi_Key → Super in a reproducible manner
19:39
orivej has joined #nixos-aarch64
20:15
<
DigitalKiwi >
so opencascade fails to build is it possible to fix you think?
20:15
<
DigitalKiwi >
(it's a dependency of at the least kicad)
20:15
<
samueldr >
dunno, depends on what the failure is
20:18
<
DigitalKiwi >
/nix/store/w2dbyz9m2dnk2x3hrf48y9hbmmn7hxg6-binutils-2.31.1/bin/ld: /nix/store/vqjhbbhr8kndl42k91fmxmqid6g1van9-freeimage-3.18.0/lib/libfreeimage.so: undefined reference to `png_init_filter_functions_neon'
20:20
<
samueldr >
a list of things I like to do when there is a failure on aarch64
20:20
<
samueldr >
0. check on x86_64
20:21
<
samueldr >
(last two rows show the right package)
20:21
<
samueldr >
[relatedly, it'd be nice to have more linkable pages in hydra, rather than use the xhr endpoints]
20:22
<
samueldr >
next step I do generally is look at if it passed previously
20:22
<
samueldr >
so I follow the link, use the More... link on the resulting page, and page through a couple pages
20:22
<
samueldr >
it did pass at some point
20:23
<
samueldr >
then, I choose the first failing build
20:23
<
samueldr >
check if it's the same issue
20:23
<
samueldr >
>> /nix/store/7k79xbwi86nidycbqk921xff5ff2yh7d-binutils-2.31.1/bin/ld: /nix/store/fhz7s8x7hmiqlcc9vza4ir9rxm679gsg-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `png_init_filter_functions_neon'
20:23
<
samueldr >
great, we have a range of Changes, right there on that build page!
20:24
<
samueldr >
within those commits, there's this PR merge... without even bisecting sometimes intuition is strong
20:25
<
samueldr >
let's revert to see if it's a red herring or not
20:26
* samueldr
waits on a build
20:30
<
DigitalKiwi >
see this is why i ask you i'd have taken much longer to figure it out :P
20:30
<
DigitalKiwi >
in fact i'd already spent much longer failing to ;(
20:31
<
samueldr >
whew! finally got that key wrangled up
20:37
<
samueldr >
I already have a strong intuition that it's an ARM specific bug
20:37
<
samueldr >
not only due to it failing on ARM only :)
20:37
<
samueldr >
but the fact that it refers to a *_neon function
20:38
<
DigitalKiwi >
yeah the research i did turned up a bunch of other projects that had to patch stuff
20:38
<
samueldr >
though it may be that the failure is in one of the new dependency from that PR
20:44
<
samueldr >
with the imported overlay for the kernel
20:44
<
samueldr >
the only issue I'm having with it is that
*sometimes* the display doesn't init on boot
20:44
<
samueldr >
that needs a reboot
20:44
<
samueldr >
(u-boot inited it, but the kernel could not)
20:45
<
samueldr >
and
*sometimes* it fails to wake the display, but having it go back to sleep, then try to wake it back will work
20:45
<
tilpner >
Aww, no graphics black-magic >.>
20:45
<
samueldr >
ah, LIMA doesn't work yet for me
20:45
<
samueldr >
but that might be due to me not knowing something to make it work fine
20:46
<
samueldr >
that's something to fix still
20:46
<
tilpner >
That, or the bootlin blobs, or video decoding
20:46
<
samueldr >
bootlin blobs?
20:46
<
tilpner >
The proprietary drivers
20:47
<
tilpner >
But don't waste your time on that
21:29
orivej has quit [Ping timeout: 240 seconds]
21:31
lopsided98 has quit [Remote host closed the connection]
21:32
lopsided98 has joined #nixos-aarch64
21:48
<
samueldr >
yeah, I really need to find some
*up to date* info about Lima and mainline
21:50
<
samueldr >
reading about it it may be that mesa needs to be updated?
21:50
<
samueldr >
after all, linux-side everything seemed fine, VTs worked with DRM_LIMA
21:50
<
samueldr >
only X11 (that I tried) failed
21:51
<
samueldr >
DigitalKiwi: building with that PR reverted builds
21:51
<
samueldr >
so there you have a starting point for intestigation
21:51
<
samueldr >
1. who uses that _neon function? opencascade or a dependency that was added with that PR
21:51
<
samueldr >
2. is it something that's been fixed upstream through detection? are we missing a feature flag?
22:00
<
DigitalKiwi >
the other bug reports i saw were related to libpng and stuff
22:00
<
DigitalKiwi >
which i guess is part of libfreeimage?
22:04
<
samueldr >
libfreeimage is likely to be using libpng
22:07
<
samueldr >
oof oof oof oof
22:07
<
samueldr >
it's seemingly embedding
_a_ libpng
22:08
<
samueldr >
at least it looks like they keep it updated
22:20
t184256 has left #nixos-aarch64 [#nixos-aarch64]
22:20
t184256 has joined #nixos-aarch64
23:06
ryantrinkle has quit [Ping timeout: 276 seconds]
23:32
tilpner has quit [Ping timeout: 252 seconds]
23:41
tilpner has joined #nixos-aarch64