00:04
ajs124 has quit [Quit: Bridge terminating on SIGTERM]
00:06
ajs124 has joined #nixos-aarch64
00:53
apache8080 has quit [Ping timeout: 276 seconds]
01:00
srk has joined #nixos-aarch64
01:06
<
clever >
[root@pikiosk:~]# grep local-cmds /run/current-system/init
01:06
<
clever >
/nix/store/nqwkvgs0c6g35kk0zq9szwmh52w44vxx-bash-4.4-p23/bin/bash /nix/store/s0h61jiych1b13rjfz74ikr4r3nn20r1-local-cmds
01:06
<
clever >
# Figure out device names for the boot device and root filesystem.
01:07
<
clever >
samueldr: i dont know exactly why, but this script was failing on my pi4, when i booted the fresh disk image over usb
01:07
justanotheruser has joined #nixos-aarch64
01:07
<
clever >
as a result, the rootfs wasnt expanded, and db.sqlite wasnt initialized
01:07
apache8080 has joined #nixos-aarch64
01:07
<
clever >
i only realized it was broken, when all of that magically worked from an SD card
01:07
<
samueldr >
there were a few regressions last month about all that
01:07
Asmadeus has quit [Quit: brb... hopefully]
01:08
<
samueldr >
haven't had the time to look more, or even test in depth
01:08
<
clever >
u-boot also had other problems, if a usb keyboard dongle is inserted, it cant usb-boot at all
01:08
<
clever >
and attempting to resize the rootfs manually (either before boot, or live), breaks uboot as well
01:11
<
samueldr >
that's odd
01:11
<
samueldr >
ah, did you add back the "bootable" flag to the partition?
01:12
<
clever >
oh, thats needed, on the ext4??
01:12
<
samueldr >
on the partition where the ext4 fs lives, yes
01:12
<
clever >
that would explain it
01:12
<
samueldr >
u-boot looks for it to know whether it can boot from it or not
01:12
<
clever >
i'm used to the rpi firmware completely ignoring the bootable flag
01:12
<
samueldr >
that's why "fdisk delete recreate" for partitions are terrible
01:12
<
clever >
so i didnt bother preserving it
01:12
<
samueldr >
loses so much info!
01:12
<
clever >
i knew what info i had to preserve (under the closed firmware), and didnt copy anything extra
01:13
<
samueldr >
yeah, that is a u-boot thing
01:13
<
samueldr >
it scans only filesystems for which their partition have the "bootable" flag, OR are GPT EF00
01:13
Asmadeus has joined #nixos-aarch64
01:14
<
clever >
i'm also unable to produce a non-uboot disk image with the release.nix stuff
01:14
<
samueldr >
we're not producing raspberry pi images, at all
01:14
<
samueldr >
as supported images
01:15
<
samueldr >
the pi4 image will probably be removed entirely by the next release
01:15
<
samueldr >
I was told that mainline was enough to get you started
01:15
<
clever >
i'm trying to get the kms overlay to work
01:15
<
clever >
which needs very recent changes, from the rpi fork of linux, and a dt overlay
01:15
<
samueldr >
oh, yeah, not sure how the dt overlay will happen with u-boot
01:15
<
samueldr >
you'll probably have to use the things in nixos to pre-bake it
01:15
<
samueldr >
which I don't know much about
01:16
monk has left #nixos-aarch64 ["Error from remote client"]
01:27
monk has joined #nixos-aarch64
02:08
rajivr has joined #nixos-aarch64
02:11
apache8080 has quit [Ping timeout: 264 seconds]
02:13
patagonicus2 has joined #nixos-aarch64
02:15
patagonicus has quit [Ping timeout: 272 seconds]
02:15
patagonicus2 is now known as patagonicus
02:33
h0m1 has quit [Ping timeout: 240 seconds]
02:36
h0m1 has joined #nixos-aarch64
02:40
pinkieval has quit [Ping timeout: 240 seconds]
02:49
pinkieval has joined #nixos-aarch64
02:55
apache8080 has joined #nixos-aarch64
03:01
orivej has quit [Ping timeout: 272 seconds]
03:17
jumper149 has joined #nixos-aarch64
03:18
justanotheruser has quit [Ping timeout: 264 seconds]
03:21
apache8080 has quit [Ping timeout: 272 seconds]
03:24
apache8080 has joined #nixos-aarch64
03:42
awmv has quit [Quit: Connection closed for inactivity]
04:06
justanotheruser has joined #nixos-aarch64
04:11
<
clever >
samueldr: i'm having trouble getting hardware.deviceTree.overlays to actually do anything, the dtb coming out of it lacks the overlay...
04:12
<
samueldr >
I don't know much about, never dealt with it
04:12
<
samueldr >
but I've heard of similar experiences here
04:12
<
samueldr >
not sure there was any clear resolution, or at least I don't remember of one
04:12
<
clever >
the overlay also fails to apply until you add `filter = "*rpi*.dtb";`
04:12
<
samueldr >
mainline dtbs IIRC won't work by default as they are compiled without symbols
04:12
<
samueldr >
or something along the line
04:13
<
clever >
i decompiled the mainline blob, and the
__symbols__ is present
04:13
<
clever >
i also confirmed the symbols have the right names for the overlay
04:14
<
clever >
samueldr: what about specifying a custom u-boot script?
04:14
<
samueldr >
I haven't had to deal with overlays yet, so I couldn't say
04:16
<
clever >
fdt addr ${fdt_addr}
04:16
<
clever >
fdt resize 1024
04:16
<
clever >
samueldr: if you add this to the u-boot script, and DONT load a dtb file, then you can run on the DTB the firmware passed in
04:16
<
clever >
so you will respect whatever dtoverlay= was present in config.txt
04:17
<
clever >
but then how do i set such a u-boot script on nixos...
04:17
<
samueldr >
but then there's the issue where mainline really assumes you're using
_their_ view of the hardware :(
04:17
<
clever >
i plan to use the rpi fork of linux
04:17
<
clever >
since it has newer drivers for the hw i want to drive
04:17
<
samueldr >
yeah, then in that case it should work fine
04:18
<
clever >
but which file is u-boot going to expect that script in?
04:18
<
clever >
[root@pikiosk:~]# cat /boot/extlinux/extlinux.conf
04:18
<
clever >
TIMEOUT 50
04:18
<
clever >
because this doesnt look like a u-boot script
04:19
<
samueldr >
a boot "script" is compiled
04:19
jumper149 has quit [Quit: WeeChat 3.0.1]
04:19
<
clever >
and can that still interface with the extlinux.conf style stuff, or will i need to write a new bootloader for nixos?
04:19
<
samueldr >
and following the generic distro boot rules for looking at partitions, it will look for {,/boot}/boot.scr
04:19
<
samueldr >
I think you can
04:19
<
samueldr >
but you have to drop the DTB lins
04:19
<
samueldr >
(or FDT?)
04:19
<
samueldr >
FDTDIR I think
04:19
<
clever >
FDTDIR ../nixos/vw8c6pmm21rqyi78zmrb9r00x493n6a2-linux-5.4.79-1.20201201-dtbs
04:20
<
samueldr >
yeah that
04:20
<
samueldr >
u-boot will load (and fail if dtb file is missing from the dir) if FDTDIR is given
04:20
<
clever >
the overlays are already in that dir!!
04:20
<
samueldr >
but yeah, your script won't interface well with generations :/
04:20
<
clever >
what if i just wanted to ditch u-boot entirely?
04:21
<
samueldr >
left as an exercise to the reader
04:21
* clever
jumps on the hamster wheel
04:21
<
samueldr >
you could look at the raspberry pi 4 sd image generator from before u-boot was introduced
04:21
<
samueldr >
or you could conjure something better that re-uses the existing nixos modules for raspberry pi boot
04:24
<
clever >
> linux_rpi4.src.urls
04:24
<
clever >
yep, thats the one i want
04:25
<
clever >
that may also explain why i wasnt seeing the mainline issues in the dtb
04:26
<
clever >
now, will it still boot? ...
04:26
<
clever >
yep, stage-2!
04:27
<
clever >
ah, /boot/overlays is missing
04:27
mvnetbiz_ has joined #nixos-aarch64
04:27
mvnetbiz_ has quit [Changing host]
04:28
Asmadeus has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
04:29
<
clever >
nixos/modules/system/boot/loader/raspberrypi/raspberrypi-builder.sh
04:29
<
clever >
this script is copying everything except the overlays dir
04:30
Asmadeus has joined #nixos-aarch64
04:34
<
clever >
samueldr: and i now have overlays working once more!
05:15
justan0theruser has joined #nixos-aarch64
05:18
justanotheruser has quit [Ping timeout: 272 seconds]
05:28
apache8080 has quit [Ping timeout: 276 seconds]
05:52
apache8080 has joined #nixos-aarch64
06:17
apache8080 has quit [Ping timeout: 265 seconds]
06:52
Darkmatter66 has joined #nixos-aarch64
07:26
quinn has joined #nixos-aarch64
07:27
JJJollyjim has joined #nixos-aarch64
07:27
JJJollyjim is now known as Guest67960
07:35
<
thefloweringash >
pleased to report that the nixos aarch64 iso image JustWorks™ on the utm app for macos
07:46
Guest67960 has quit [Quit: authenticating]
07:46
Guest67960 has joined #nixos-aarch64
07:46
Guest67960 has quit [Client Quit]
07:46
Guest67960 has joined #nixos-aarch64
07:47
<
Guest67960 >
if only hardware could be as simple as qemu haha
07:47
<
Ke >
virtualization
07:49
<
Guest67960 >
utm is qemu frontend
08:20
cole-h has quit [Ping timeout: 272 seconds]
08:22
sphalerite_ is now known as sphalerite
08:53
zupo has joined #nixos-aarch64
08:57
adamzivcak has joined #nixos-aarch64
09:01
adamzivcak has left #nixos-aarch64 [#nixos-aarch64]
09:12
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:13
adamzivcak1 has joined #nixos-aarch64
09:16
adamzivcak1 has left #nixos-aarch64 [#nixos-aarch64]
09:44
Guest67960 has quit [Quit: authenticating]
09:45
Guest67960 has joined #nixos-aarch64
09:45
Guest67960 is now known as JJJollyjim
09:45
JJJollyjim has quit [Client Quit]
09:45
Guest26650 has joined #nixos-aarch64
09:47
Guest26650 has quit [Client Quit]
09:47
Guest26650 has joined #nixos-aarch64
09:47
Guest26650 has quit [Client Quit]
09:47
Guest26650 has joined #nixos-aarch64
09:47
Guest26650 has quit [Client Quit]
10:18
alpernebbi has joined #nixos-aarch64
10:56
adamzivcak has joined #nixos-aarch64
10:56
adamzivcak has left #nixos-aarch64 [#nixos-aarch64]
10:57
adamzivcak1 has joined #nixos-aarch64
10:57
adamzivcak1 has left #nixos-aarch64 [#nixos-aarch64]
11:02
luxemboye has quit [Ping timeout: 268 seconds]
11:05
adamzivcak has joined #nixos-aarch64
11:05
luxemboye has joined #nixos-aarch64
11:06
adamzivcak has left #nixos-aarch64 [#nixos-aarch64]
11:32
orivej has joined #nixos-aarch64
11:35
dev_mohe has joined #nixos-aarch64
11:56
dev_mohe has quit [Quit: dev_mohe]
11:58
Asmadeus has quit [Quit: boo]
12:02
adamzivcak1 has joined #nixos-aarch64
12:12
adamzivcak1 has left #nixos-aarch64 [#nixos-aarch64]
12:39
adamzivcak1 has joined #nixos-aarch64
12:40
<
adamzivcak1 >
Hello, has anyone experience with tmpfs as root on Raspberry Pi 4?
12:43
dev_mohe has joined #nixos-aarch64
12:48
adamzivcak1 has left #nixos-aarch64 [#nixos-aarch64]
13:22
orivej has quit [Ping timeout: 276 seconds]
13:31
zupo has joined #nixos-aarch64
13:33
dev_mohe has quit [Quit: dev_mohe]
13:41
bdju has quit [Read error: Connection reset by peer]
13:42
bdju has joined #nixos-aarch64
13:45
<
Ke >
adamzivcak1: I imagine it's absolutely the same as on x86
13:47
<
Ke >
is there something that does not wprk for you?
13:48
<
Ke >
* is there something that does not work for you?
13:50
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:01
adamzivcak has joined #nixos-aarch64
14:02
luxemboye has quit [Remote host closed the connection]
14:03
luxemboye has joined #nixos-aarch64
14:03
zupo has joined #nixos-aarch64
14:11
adamzivcak has left #nixos-aarch64 [#nixos-aarch64]
14:18
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:25
zupo has joined #nixos-aarch64
14:27
zupo has quit [Client Quit]
14:45
monk has left #nixos-aarch64 ["Error from remote client"]
14:45
monk has joined #nixos-aarch64
15:05
monk has left #nixos-aarch64 ["Error from remote client"]
15:05
monk has joined #nixos-aarch64
15:16
Asmadeus has joined #nixos-aarch64
15:16
dev_mohe has joined #nixos-aarch64
16:11
zupo has joined #nixos-aarch64
16:11
awmv has joined #nixos-aarch64
16:30
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:54
dev_mohe has quit [Quit: dev_mohe]
17:02
bennofs_ has joined #nixos-aarch64
17:03
srk has quit [Remote host closed the connection]
17:04
srk has joined #nixos-aarch64
17:18
AmandaC_ has quit [Ping timeout: 260 seconds]
17:21
AmandaC_ has joined #nixos-aarch64
17:25
alpernebbi has quit [Quit: alpernebbi]
17:31
AmandaC_ has quit [Ping timeout: 264 seconds]
17:32
cole-h has joined #nixos-aarch64
17:37
AmandaC_ has joined #nixos-aarch64
17:41
orivej has joined #nixos-aarch64
18:09
justanotheruser has joined #nixos-aarch64
18:09
justan0theruser has quit [Ping timeout: 272 seconds]
18:14
rajivr has quit [Quit: Connection closed for inactivity]
18:37
dev_mohe has joined #nixos-aarch64
18:48
dev_mohe has quit [Quit: dev_mohe]
18:56
apache8080 has joined #nixos-aarch64
20:30
zupo has joined #nixos-aarch64
20:48
apache8080 has quit [Ping timeout: 272 seconds]
20:51
jumper149 has joined #nixos-aarch64
21:03
<
samueldr >
artturin: here so I can answer your question more directly?
21:05
justan0theruser has joined #nixos-aarch64
21:06
<
samueldr >
(answering on github)
21:09
justanotheruser has quit [Ping timeout: 260 seconds]
21:18
<
artturin >
samueldr: okay
21:18
<
samueldr >
well, I already answered
21:19
<
samueldr >
I also invite you to directly open new issues if there are issues like those, or even PRs
21:19
<
samueldr >
but yes, you're most likely right that configs are missing
21:19
<
artturin >
i'll open pr's after testing
21:19
<
artturin >
rn im just trying to get the dock to work so that i can use the tty
21:19
<
artturin >
dock + a keyboard
21:21
<
samueldr >
would be nice to have confirmation it works :)
21:22
<
samueldr >
I think USB OTG doens't work as it is configured right now
21:22
<
samueldr >
I'll have to build a test system on my pine a64-lts to figure out what is wrong maybe
21:22
<
samueldr >
I'm assuming because it didn't seem to work on the pinebook a64
21:23
<
samueldr >
but I'm not even sure it should work that way on the pinebook a64
21:23
adamzivcak has joined #nixos-aarch64
21:23
adamzivcak has left #nixos-aarch64 [#nixos-aarch64]
21:26
<
artturin >
should i set mobile.quirks.supportsStage-0 to false for now since i want to compile the kernels on my computer since its faster
21:27
<
samueldr >
maybe yeah
21:27
<
samueldr >
that's what I do on the pinephone when hacking on kernel features
21:36
monk has left #nixos-aarch64 ["Error from remote client"]
21:36
monk has joined #nixos-aarch64
21:37
aleph- has quit [Quit: WeeChat info:version]
21:45
<
artturin >
which kernel config is the demo image using
21:48
<
samueldr >
the same kernel config
21:48
justanotheruser has joined #nixos-aarch64
21:50
<
samueldr >
let me rephrase
21:50
<
samueldr >
there is no kernel in it
21:51
justan0theruser has quit [Ping timeout: 272 seconds]
21:51
<
samueldr >
so there is no "kernel config the demo image is using", so if you were building the full demo system, it'd use the same kernel config as your device does
21:54
adamzivcak1 has joined #nixos-aarch64
21:54
adamzivcak1 has left #nixos-aarch64 [#nixos-aarch64]
22:05
aleph- has joined #nixos-aarch64
22:14
apache8080 has joined #nixos-aarch64
22:16
cole-h has quit [Ping timeout: 265 seconds]
23:01
monk has left #nixos-aarch64 ["Error from remote client"]
23:06
monk has joined #nixos-aarch64
23:16
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:45
Darkmatter66 has quit [Ping timeout: 240 seconds]
23:46
Darkmatter66 has joined #nixos-aarch64