00:04
justanotheruser has joined #nixos-aarch64
00:05
apache801 has joined #nixos-aarch64
00:09
apache8080 has quit [Ping timeout: 276 seconds]
00:21
orivej has joined #nixos-aarch64
00:26
ib07 has joined #nixos-aarch64
00:30
ib07 has quit [Client Quit]
00:32
rajivr has joined #nixos-aarch64
01:05
cole-h has quit [Quit: Goodbye]
01:07
cole-h has joined #nixos-aarch64
01:09
pbb has joined #nixos-aarch64
01:19
cole-h has quit [Quit: Goodbye]
01:20
cole-h has joined #nixos-aarch64
01:23
cole-h has quit [Client Quit]
01:24
cole-h has joined #nixos-aarch64
01:30
apache801 has quit [Ping timeout: 276 seconds]
01:30
cole-h has quit [Quit: Goodbye]
01:41
tilpner_ has joined #nixos-aarch64
01:44
tilpner has quit [Ping timeout: 256 seconds]
01:44
tilpner_ is now known as tilpner
02:03
fps_ has quit [Ping timeout: 260 seconds]
02:15
fps has joined #nixos-aarch64
02:17
apache801 has joined #nixos-aarch64
02:28
h0m1 has quit [Ping timeout: 240 seconds]
02:30
h0m1 has joined #nixos-aarch64
02:44
<
andoriyu >
i'm so close to just switching rpi4 instead.
02:45
<
clever >
andoriyu: pi4 has 2 usb controllers, the old dwc (so it can do gadget mode like a 0), plus a new vl805
02:46
<
andoriyu >
pi4 seems to have better support in nixos. Like nix-generators for example.
02:48
<
clever >
pi0-pi2 are all 32bit, which hydra isnt building
02:48
<
clever >
pi4 is aarch64, which is being built by hydra
02:50
<
andoriyu >
yeah. I wish there is zero version of pi4. I guess compute module is almost that.
02:50
<
clever >
if you dont mind some soldering, you could use a naked cm4, i think
02:50
<
clever >
if you get a model with wifi and emmc, then i suspect you can run it with ONLY a 5v supply and nothing else
02:51
<
andoriyu >
Well, you need something to flash emcc tho?
02:51
<
clever >
temporarily, yes
02:52
<
clever >
but to then run it, maybe not?
02:52
<
andoriyu >
I guess.
02:53
<
andoriyu >
Sad part, what I'm doing now is just a device to collect samples. Actual thing will run on balenaOS.
02:57
justan0theruser has joined #nixos-aarch64
02:59
justanotheruser has quit [Ping timeout: 240 seconds]
03:06
<
andoriyu >
clever now I just see rainbow swirl when powered up
03:07
<
clever >
andoriyu: thats the firmware, just before it launched linux
03:07
<
clever >
youll need a uart adapter to get any meaningful logs out of it
03:07
<
andoriyu >
I think I'm missing some steps here. It's not booting linux
03:08
<
clever >
what are the contents of the config.txt on the fat32 partition?
03:09
<
andoriyu >
`avoid_warnings=1
03:09
<
andoriyu >
enable_uart=1`
03:09
<
clever >
and `file kernel.img` ?
03:10
<
andoriyu >
no such file
03:10
<
clever >
any kernel*.img files?
03:10
<
clever >
is the green led blinking?
03:10
<
clever >
how many times? 7?
03:10
<
andoriyu >
let me plug it in again
03:11
<
andoriyu >
Yes, 7 times.
03:12
<
clever >
thats the kernel.img not found error
03:12
<
clever >
i'm guessing you definitely need more in populateFirmwareCommands
03:12
<
clever >
to both copy the kernel/initrd to the fat32, and to tell config.txt to load the initrd
03:14
<
andoriyu >
okay, so I'm cross compiling from x86. How do I copy it?
03:14
<
clever >
andoriyu: this line is missing for example
03:14
<
clever >
andoriyu: did you set uboot.enable = false?
03:15
<
clever >
hmmm, i dont see any obvious way for sd-image to access this configTxt ...
03:15
<
clever >
which means sd-image is creating its own (wrong) config.txt
03:19
<
clever >
so we need to figure out how to reference that configTxt var, and the kernel/initrd from top-level, and get them all into /boot
03:19
<
andoriyu >
Well I over change populateFirmwireCommands to include overlays, I have to create my own config.txt
03:19
<
andoriyu >
because that's where it is created.
03:20
<
andoriyu >
I can just copy how that config.txt looks like into my file. But how do I get kernel and initrd
03:22
<
andoriyu >
also, I don't see my overlays copied
03:25
evils has joined #nixos-aarch64
03:33
<
andoriyu >
something is wrong
03:34
globin_ has quit [Ping timeout: 265 seconds]
03:34
<
andoriyu >
whatever happens in populateFirmwareCommands isn't getting into boot partition
03:35
<
clever >
andoriyu: if you add an `exit 1` does it fail?
03:35
<
andoriyu >
I had `../` instead of `./` in copy - it failed, so it's executed at some point.
03:35
<
clever >
add `pwd` and `ls -ltrh`, to confirm where you are, and what is around already
03:37
<
andoriyu >
what's weird - when I had command to save config.txt - it worked
03:37
<
clever >
add an `exit 1`, then run `nix show-derivation` on the .drv that fails
03:38
<
clever >
is something extra being appended?
03:39
<
clever >
once you know which attr of the drv it is, you can `nix-store --query --binding attrname /nix/store/foo.drv` to get it without the json escapes
03:39
<
andoriyu >
argh, I think i got it. I was supped to put everything into `firmware/` not `./`
03:39
<
clever >
bad directions on my part then
03:39
<
clever >
i just briefly skimmed a random example
03:40
<
andoriyu >
Well, I did have a perfectly good working like just above what I added
03:44
<
andoriyu >
now it's for sure copying because I ran out of disk space lol
03:45
globin_ has joined #nixos-aarch64
03:47
<
andoriyu >
okay, let's try booting this one up
03:58
<
clever >
31 (cd ${pkgs.raspberrypifw}/share/raspberrypi/boot && cp bootcode.bin fixup*.dat start*.elf $NIX_BUILD_TOP/firmware/)
03:59
<
andoriyu >
I have that line.
03:59
<
clever >
andoriyu: aha, thats the line i missed, which then led to the bad directions i gave you
03:59
<
andoriyu >
so it's not booting. But now it's either 3 or 4 blinks at startup and nothing after.
04:00
<
andoriyu >
3-4 because 4th has much much lower delay that 1-3.
04:00
<
clever >
4 is start.elf not found
04:00
<
clever >
double-check the fat32 partition?
04:00
<
andoriyu >
yeah it's fat32
04:01
<
clever >
is start.elf in it?
04:02
<
clever >
not sure then, would need a uart adapter to get logs
04:02
<
andoriyu >
All changed is set sdImage.firmwareSize o 128.
04:09
<
andoriyu >
taking a few step back, back u-boot since it was working-ish before.
04:15
<
clever >
andoriyu: if you run `dtc -I dtb -O dts /path/to/dtb`, it will convert the binary back to source
04:16
<
clever >
andoriyu: this is the source for the dwc2 overlay, which will be looking for a node called "usb" in the dtb its overlaying
04:16
<
clever >
does the mainline dtb have a usb node? because ive heard mainline has renamed a number of things and breaks overlays
04:17
<
andoriyu >
I'm using _rpi kernel
04:18
apache801 has quit [Ping timeout: 264 seconds]
04:20
<
andoriyu >
the same error, I take it's because it didn't find usb node like you said
04:22
<
clever >
using dtc to convert the dtb to dts, you can check if that usb node is present
04:22
<
clever >
but i suspect it may be complicated, by this being an overlay which can accept params
04:22
<
andoriyu >
I think i'm just going to give up on otg serial
04:24
<
andoriyu >
either that i use nixos from 2 years ago.
04:32
apache801 has joined #nixos-aarch64
04:34
<
andoriyu >
or maybe try to rebuild newer _rpi kernel.
04:35
<
samueldr >
I hadn't been following what you were doing
04:35
<
andoriyu >
suffering
04:35
<
samueldr >
but if you were building against mainline, it might be expected that things like otg-serial don't work?
04:35
<
andoriyu >
I was building against _rpi1.
04:36
<
samueldr >
ah, carry on as if I said nothing :)
04:36
<
andoriyu >
trying to build mainline right now just for lulz
04:36
<
samueldr >
oh, something to consider: is the 5.4-based kernel from the foundation "compatible" with the pi zero?
04:36
<
samueldr >
or are they still shipping their 4.19-based kernels for it?
04:40
<
andoriyu >
I think it's compatible. So I've just noticed that nix-on-arm used 5.0 mainline...
04:40
<
andoriyu >
aaand OTG serial worked there
04:40
<
andoriyu >
Maybe I should have build mainline kernel all this time instead.
04:55
apache801 has quit [Ping timeout: 245 seconds]
05:09
<
andoriyu >
it's working
05:09
<
andoriyu >
With mainline kernel
05:09
<
andoriyu >
clever samueldr problem solved
05:10
<
samueldr >
oh, good to know
05:28
orivej has quit [Ping timeout: 245 seconds]
05:54
orivej has joined #nixos-aarch64
06:07
apache801 has joined #nixos-aarch64
06:30
apache801 has quit [Ping timeout: 245 seconds]
07:06
cole-h has joined #nixos-aarch64
07:14
heywoodlh has quit [Ping timeout: 245 seconds]
07:17
orivej has quit [Ping timeout: 246 seconds]
07:40
cript0nauta has quit [Ping timeout: 245 seconds]
08:09
heywoodlh has joined #nixos-aarch64
08:23
zupo has joined #nixos-aarch64
08:28
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:29
illustris_ has joined #nixos-aarch64
08:31
steveeJ_ has joined #nixos-aarch64
08:31
lopsided98_ has joined #nixos-aarch64
08:31
nyaanotech has joined #nixos-aarch64
08:32
Xena has joined #nixos-aarch64
08:32
ashkitte1 has joined #nixos-aarch64
08:36
alpernebbi has joined #nixos-aarch64
08:43
lopsided98 has quit [*.net *.split]
08:43
illustris has quit [*.net *.split]
08:43
Cadey has quit [*.net *.split]
08:43
nyanotech has quit [*.net *.split]
08:43
steveeJ has quit [*.net *.split]
08:43
tdeo has quit [*.net *.split]
08:43
ashkitten has quit [*.net *.split]
08:43
illustris_ is now known as illustris
08:43
steveeJ_ is now known as steveeJ
08:44
tdeo has joined #nixos-aarch64
08:52
zupo has joined #nixos-aarch64
09:15
ashkitte1 is now known as ashkitten
09:48
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:21
zupo has joined #nixos-aarch64
10:32
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:49
cole-h has quit [Ping timeout: 256 seconds]
12:49
Xena is now known as Cadey
13:14
zupo has joined #nixos-aarch64
13:24
tilpner has quit [Quit: tilpner]
13:47
dev_mohe has joined #nixos-aarch64
14:24
orivej has joined #nixos-aarch64
14:25
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:28
dev_mohe has quit [Remote host closed the connection]
14:39
alpernebbi has quit [Quit: alpernebbi]
14:41
zupo has joined #nixos-aarch64
14:43
orivej has quit [Ping timeout: 256 seconds]
14:52
orivej has joined #nixos-aarch64
14:55
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:05
zupo has joined #nixos-aarch64
15:31
orivej has quit [Ping timeout: 245 seconds]
15:36
cript0nauta has joined #nixos-aarch64
15:40
orivej has joined #nixos-aarch64
15:58
orivej has quit [Ping timeout: 276 seconds]
16:02
pinkieval has quit [Quit: We're here, we're queer, connection reset by peer.]
16:09
pinkieval has joined #nixos-aarch64
16:10
dev_mohe has joined #nixos-aarch64
16:27
<
Ke >
someone mentioned someone had a nixos build of u-boot with the video patches and usb keyboard working on pbp
16:32
<
Ke >
at least nadia seems to have them
16:43
<
Ke >
maybe should try
16:43
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:47
dev_mohe has quit [Quit: dev_mohe]
16:52
zupo has joined #nixos-aarch64
17:07
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:36
Acou_Bass has joined #nixos-aarch64
17:53
feepo has quit [Ping timeout: 272 seconds]
17:55
feepo has joined #nixos-aarch64
17:56
cole-h has joined #nixos-aarch64
18:07
rajivr has quit [Quit: Connection closed for inactivity]
18:09
apache801 has joined #nixos-aarch64
18:11
<
samueldr >
Ke: I do
18:12
<
samueldr >
but not the most up to date patches
18:12
<
samueldr >
AFAIK the most up to date patches do not change the behaviour for graphics
18:12
<
samueldr >
USB they were already in u-boot 2020.11 IIRC, there may be changes and bug fixes in usb since
18:12
<
{^_^} >
samueldr/wip-pinebook-pro#13 (by samueldr, 33 weeks ago, open): Graphics for U-Boot
18:13
<
samueldr >
it require(d?) patches for mainline kernel that weren't in the usual set for a while
18:15
<
Ke >
let me check nadias patchset
18:16
<
samueldr >
initially it was based off of the ones I had from arnaud patard
18:17
<
samueldr >
ah, only that patch though
18:17
<
samueldr >
the other uses AFAICT the directly-from-the-mailing-list mbox
18:17
<
samueldr >
(with the updated patches)
18:24
<
Ke >
anyway, gotta love this repo, so much less messy then manjaros linux at least
18:24
<
Ke >
I guess that kernel is for all manjaro arm, not just one board though
18:26
<
samueldr >
manjaro's repo is terrible at attributing where things come from
18:27
<
samueldr >
or at least, it was last time I looked at it for the PBP a couple months back
18:27
<
samueldr >
(which is why I started adding `Origin:` tags to my patches)
18:27
<
samueldr >
manjaro's patches often end up losing the commit messages, and authorship
18:27
<
samueldr >
and are just a plain diff
18:31
<
Ke >
anyway, only seems to have altmode patches for kernel
19:07
evils has quit [Ping timeout: 245 seconds]
19:22
dev_mohe has joined #nixos-aarch64
19:45
orivej has joined #nixos-aarch64
19:54
<
sphalerite >
samueldr: who are they suing?
19:56
adamzivcak has joined #nixos-aarch64
19:58
<
adamzivcak >
colemickens: yes, I still heve. Last few days I tried to build your configuration using flakes, but no success :(
20:05
<
samueldr >
sphalerite: plain diff / plaintiff?
20:16
<
sphalerite >
yes, maybe it was a bit too far fetched.
20:34
<
artturin >
<Ke "artturin: can't find sway mobile"> yes
20:49
apache801 has quit [Ping timeout: 256 seconds]
20:55
dev_mohe has quit [Quit: dev_mohe]
21:15
<
colemickens >
adamzivcak: Hmm... `nix build github:colemickens/nixcfg#toplevels.rpifour1` should just work. That would produce a toplevel include an TFTP/NFS server that will netboot "rpifour2". The only other trick would be IP address harmony and making your router advertise the netboot option.
21:16
<
colemickens >
I may have to run errands this afternoon but I can try to answer questions if if it'd help. It is a good reminder that I need to start blogging this sort of thing, if nothing else for self promo
21:22
<
adamzivcak >
i've tried just `nix build github:colemickens/nixcfg#rpifour1`. And it falls into emrgency mode after 5hours of building with message "proc: Bad value for 'hidepid'".
21:22
apache801 has joined #nixos-aarch64
21:24
<
adamzivcak >
after reboot there is new configuration, but I am not able to log in, even after changing credentials in profiles/user.nix
21:28
<
adamzivcak >
oh, sorry, i tried `nixos-rebuild switch --flake path/to/repo#rpifour1`
21:35
zupo has joined #nixos-aarch64
21:43
<
colemickens >
Hm, not sure. rpifour1 should be cached on colemickens.cachix.org too, if it helps.
21:55
<
adamzivcak >
But I still need to update user.nix file to be able to log in. Am I right? And it requires to download git repo, edit file, commit it (beacause it reports dirty git tree without commiting), and then run build. Is my workflow correct?
21:56
dev_mohe has joined #nixos-aarch64
21:56
<
colemickens >
Yeah, you've got it figured out. The only thing would be adding in the cachix cache to get hits. Since I'm on `aarch64` and `nixos-unstable-small`, I wind up doing a lot of builds.
21:58
<
colemickens >
(that's obviously sensitive, it would be wise to cross-check the public keys that I have there to make sure I'm not doing something nefarious.)
22:00
<
colemickens >
And I think the hidepid thing is usually a misnomer
22:00
justan0theruser is now known as justanotheruser
22:02
<
colemickens >
I have no idea how easy it is to go from install media in place - > this configuration either.
22:02
<
colemickens >
This configuration has my ZFS config baked in, etc, it's not really built to be an easy transition, more of just something you could look at.
22:03
<
colemickens >
TBH, all you want is hosts/rpifour1/modules/netboot-server.nix anyway.
22:03
<
colemickens >
It just happens that it's easier if the netboot server is ALSO aarch64 because then you can do a single big build on a single aarch64 to build the host and netboot toplevels.
22:11
cript0nauta has quit [Remote host closed the connection]
22:24
<
adamzivcak >
yes, i've got two rpi, one should be netboot server, and second one boot using the first one - just like yours configuration
22:25
apache801 has quit [Ping timeout: 260 seconds]
22:25
apache8080 has joined #nixos-aarch64
22:25
<
adamzivcak >
i will try to parse config from modules/netboot-server and use together with my config
22:59
adamzivcak1 has joined #nixos-aarch64
23:03
adamzivcak has quit [Ping timeout: 245 seconds]
23:08
adamzivcak1 has left #nixos-aarch64 [#nixos-aarch64]
23:14
dev_mohe has quit [Remote host closed the connection]
23:17
zupo has quit [Ping timeout: 260 seconds]
23:18
zupo has joined #nixos-aarch64
23:35
cript0nauta has joined #nixos-aarch64