tilpner_ has joined #nixos-aarch64
tilpner has quit [Ping timeout: 260 seconds]
tilpner_ is now known as tilpner
sarcasticadmin has joined #nixos-aarch64
mschwaig has quit [Read error: Connection reset by peer]
mschwaig has joined #nixos-aarch64
sarcasticadmin has quit [Ping timeout: 246 seconds]
sarcasticadmin has joined #nixos-aarch64
sarcasticadmin has quit [Ping timeout: 256 seconds]
rajivr has joined #nixos-aarch64
hmpffff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ninjin_ has quit [Remote host closed the connection]
ninjin_ has joined #nixos-aarch64
qyliss has joined #nixos-aarch64
<danielrf[m]> Related to the earlier conversation: I've published my configuration for running nixos on the pincube dev kit: https://github.com/danielfullmer/pinecube-nixos
monk has left #nixos-aarch64 ["Error from remote client"]
ninjin_ has quit [Remote host closed the connection]
ninjin has joined #nixos-aarch64
monk has joined #nixos-aarch64
h0m1 has quit [Ping timeout: 272 seconds]
h0m1 has joined #nixos-aarch64
sarcasticadmin has joined #nixos-aarch64
<samueldr> (zstd could have been piped into dd)
<samueldr> nice!
sarcasticadmin has quit [Ping timeout: 260 seconds]
<samueldr> how many RTL* variants exist out there?
<samueldr> it seems every pine device gets a new variant!
<danielrf[m]> samueldr: haha seriously
<samueldr> I haven't actually _looked_ if they were all using different ones
<samueldr> but it feels like it
<danielrf[m]> There's currently nothing in the DTB for the pinecube about the rtl8189es. I'll have to look into what it takes to add support
<danielrf[m]> audio is missing as well (pinecube has a speaker/mic)
monk has left #nixos-aarch64 ["Error from remote client"]
monk has joined #nixos-aarch64
sarcasticadmin has joined #nixos-aarch64
cfinch has quit [Ping timeout: 272 seconds]
sarcasticadmin has quit [Ping timeout: 258 seconds]
hmpffff has joined #nixos-aarch64
hmpffff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cole-h has joined #nixos-aarch64
nschoe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
alp has joined #nixos-aarch64
alp has quit [Ping timeout: 272 seconds]
hmpffff has joined #nixos-aarch64
zupo has joined #nixos-aarch64
<samueldr> AFAIUI this is a rebase of the changes needed on top of the CAF (qualcomm's) tree
<samueldr> >> All these libraries and binaries have been compiled with an older GLIBC and all of them have been patched to not complain with glibc 2.37, as bundled with Yocto 3.1 release with patchelf.
<samueldr> heh
monk has left #nixos-aarch64 ["Error from remote client"]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cfinch has joined #nixos-aarch64
justanotheruser has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 265 seconds]
monk has joined #nixos-aarch64
zupo has joined #nixos-aarch64
orivej has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
zupo has joined #nixos-aarch64
zupo has quit [Ping timeout: 265 seconds]
orivej has quit [Ping timeout: 265 seconds]
zupo has joined #nixos-aarch64
cole-h has quit [Quit: Goodbye]
cole-h has joined #nixos-aarch64
alp has joined #nixos-aarch64
zupo has quit [Ping timeout: 260 seconds]
cole-h has quit [Ping timeout: 256 seconds]
monk has left #nixos-aarch64 ["Error from remote client"]
monk has joined #nixos-aarch64
zupo has joined #nixos-aarch64
cfinch has quit [Read error: Connection reset by peer]
monk has left #nixos-aarch64 ["Error from remote client"]
monk has joined #nixos-aarch64
<das_j> Does anyone know how the rpi firmware update works exactly? Is it enough to boot my pi with a pieeprom.upd in /boot?
<das_j> Asking because I need to update 60 pis to the latest firmware and it's kind of tedious
<das_j> Probably a question for clever
<das_j> Hmm, looks like I just need a FAT32 partition with recovery.bin, pieeprom.bin, pieeprom.sig?
orivej has joined #nixos-aarch64
Darkmatter66 has quit [Quit: ZNC 1.7.5 - https://znc.in]
Darkmatter66 has joined #nixos-aarch64
alp has quit [Ping timeout: 272 seconds]
alp has joined #nixos-aarch64
monk has left #nixos-aarch64 ["Error from remote client"]
zarel has joined #nixos-aarch64
monk has joined #nixos-aarch64
orivej has quit [Ping timeout: 260 seconds]
zarel_ has joined #nixos-aarch64
zarel has quit [Ping timeout: 265 seconds]
<patagonicus> My current cooling "solution" for my Odroid HC2s includes a book as an integral component. A stress test suggests it works, but maybe I'll need to think about some of my life choices.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hmpffff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hmpffff has joined #nixos-aarch64
zupo has joined #nixos-aarch64
hmpffff has quit [Ping timeout: 260 seconds]
<patagonicus> Huh. Turns out it's the board that's bad, not my cooling. Stacking them in reverse still has that board go >110°C. Guess I'll order a replacement and keep that as a backup or something.
<patagonicus> Weird thing is that I can't trigger it with `stress` or reading from the HDD/SD card. Apparently the synthetic load doesn't manage to make it get that hot.
monk has left #nixos-aarch64 ["Error from remote client"]
monk has joined #nixos-aarch64
<clever> samueldr: CM4 is out!
<clever> das_j: pieeprom.sig must contain the sha256 of the pieeprom file
<clever> das_j: pieeprom.bin will update and then freeze, so you have to remove it yourself, pieeprom.upd causes recovery.bin to rename itself then reboot, so it can be integrated into a systemd service
<das_j> yay, I'll try it once my HDMI adapter gets delivered
<das_j> thanks, maybe that'll do the trick
<clever> das_j: recovery.bin is also optional
<clever> if the eeprom is still working (and new enough), it can do a self-update
<clever> it will diff the pieeprom, flash itself, and reboot
<clever> and if there is no difference, it will just continue the boot
<das_j> I'll probably keep it since this is going to be a generic sd image that should run on any pi
<das_j> btw, is there anything missing from https://github.com/NixOS/nixpkgs/pull/88825 ?
<{^_^}> #88825 (by dasJ, 21 weeks ago, open): raspberrypi-eeprom: Init at 2020-10-05
<clever> not sure what was missing from that one
orivej has joined #nixos-aarch64
<das_j> It didn't build on x86 since it required raspberrypi-tools
<clever> ah, that should be made optional
<clever> since rpi-eeprom-config can work on x86
alp has quit [Ping timeout: 272 seconds]
<clever> rpi-eeprom-update should probably not exist on x86
<das_j> it is optinoal
<das_j> rpi-eeprom-update should work imo since it just places files in /boot
<clever> das_j: the flashrom mode will use flashrom to access the eeprom directly
<das_j> flashrom mode is deprecated it seems
<clever> and you need to convince it to use /mnt/boot/ instead of /boot/
<das_j> oof
<clever> as for why flashrom is deprecated, there are several
<clever> first, the spi pins are muxed with the pwm for audio
<clever> so you have to stop analog audio during flashing
<clever> 2nd, muxing the spi pins to there gets more complicated if the user enabled spi for other things
<clever> 3rd, a power failure can result it in being half-flashed, and non-booting
<clever> but if recovery.bin is on an sd card, and power fails, it will flash again on the next boot
<das_j> oohh nice I was about to ask that
<clever> and only if you named it pieeprom.upd, and the flashing worked 100%, will recovery.bin rename itself, and then boot linux again
<das_j> (why 3 is not an issue with the current method)
<clever> so it will re-try the flashing on every boot, until it works
<clever> if the eeprom fails, and recovery.bin isnt found, the pi4 does into usb-device mode
<clever> [root@amd-nixos:~]# lsusb -d 0a5c:2711
<clever> Bus 006 Device 074: ID 0a5c:2711 Broadcom Corp. BCM2711 Boot
<das_j> what the
<clever> it then shows up like so
<clever> das_j: you can then push recovery.bin over usb, and reflash it
<clever> i ported it from C/libusb, to JS/webusb
<clever> so i can now reflash a pi4 from the browser
<das_j> there is webusb… of course :D
<clever> webusb is basically just a wrapper over libusb
<clever> so udev still acts to protect your devices, and chrome will give its own permission prompt
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pbb has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hmpffff has joined #nixos-aarch64
<Mic92> clever: does uboot on pi4 also expose serial console over its gpios?
<clever> Mic92: i think it forces serial on gpio 14/15, even if you didnt try to enable it
<clever> which can cause some conflicts with things
hmpffff has quit [Ping timeout: 272 seconds]
<Mic92> clever: ok. are these the same pins that the kernel uses for its ttyS0? My pi is currently several hundrets KM away overseas, so I cannot check.
<clever> by default, yes
<clever> depending on config.txt entries, 14/15 might be ttyAMA0 instead
<Mic92> Interesting. Maybe I need to poke harder next time. I saw the last few lines of the boot screen and than the login prompt but not uboot
<clever> raspberrypi.org/documentation/configuration/uart.md
justanotheruser has joined #nixos-aarch64
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
sarcasticadmin has joined #nixos-aarch64
alp has joined #nixos-aarch64
<Mic92> clever: just saw that our rpi4 images don't install uboot at all. Hence no serial console support
<clever> Mic92: you can still add enable_uart=1 to config.txt, to get a serial console after linux boots
<das_j> Mic92: You can also console=ttyAMA0,115200
<das_j> in your cmdline.txt
<clever> das_j: ttyAMA0 might be bluetooth, causing conflicts, serial0 is the magic alias to avoid the problem
<das_j> TIL… I usually boot without bluetooth so that's not an issue
<clever> its all in the uart.md i linked above
<Mic92> das_j: yeah that works for getting some kernel output but no boot-loader output. But since right now it only seems to install one kernel at the time, I don't get rollback support this way anyway.
<clever> Mic92: for bootloader output, uart_2ndstage=1 in config.txt
<das_j> Mic92: You need to set BOOT_UART=1 in your eeprom image
<das_j> clever: Are we talking about the same thing?
<clever> das_j: BOOT_UART is for stage1(the eeprom), uart_2ndstage=1 is for stage2 (start4.elf)
<Mic92> clever: do I need dtoverlay=disable-bt for uart_2ndstage=1 ?
<das_j> ohh. So I will have to set both, nice to know that
<Mic92> das_j: how do I set BOOT_UART=1 in my eeprom image?
<clever> Mic92: pi4 or older?
<Mic92> clever: pi4
<clever> BOOT_UART=1 is only of use, if you want to debug problems where start4.elf cant be found
<clever> uart_2ndstage=1 is more for general config.txt problems, dtb loading issues, and errors finding kernel.img
<Mic92> clever: with our rpi4 image, do I set uart_2ndstage=1 via configuration.nix or edit the file directly?
<clever> i believe configuration.nix can control config.txt
<clever> system/boot/loader/raspberrypi/raspberrypi.nix: pkgs.writeText "config.txt" (''
<clever> system/boot/loader/raspberrypi/raspberrypi.nix: Extra options that will be appended to <literal>/boot/config.txt</literal> file.
<clever> 6 cfg = config.boot.loader.raspberryPi;
<clever> 42 '') + optional (cfg.firmwareConfig != null) cfg.firmwareConfig);
<clever> Mic92: that lets you inject any config.txt string you want
<Mic92> clever: thanks a lot
<clever> and both uboot and non-uboot should respect it
<clever> but i think the uboot path isnt aware of /firmware vs /boot, and config.txt lands in the wrong dir
sarcasticadmin has quit [Quit: WeeChat 2.8]
<Mic92> clever: thanks that works so far.
ninjin has quit [Ping timeout: 240 seconds]
ninjin has joined #nixos-aarch64
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
cole-h has joined #nixos-aarch64
zupo has joined #nixos-aarch64
hmpffff has joined #nixos-aarch64
hmpffff has quit [Client Quit]
hmpffff has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rajivr has quit [Quit: Connection closed for inactivity]
alp has quit [Ping timeout: 272 seconds]
cfinch has joined #nixos-aarch64
<Mic92> Should we mark 5.8 broken on rpi4?
<{^_^}> #97064 (by tobiasBora, 6 weeks ago, open): Raspberry Pi 3 B+ can't boot with latest kernel 5.7.19
alp has joined #nixos-aarch64
justanotheruser has quit [Ping timeout: 244 seconds]
zupo has joined #nixos-aarch64
justanotheruser has joined #nixos-aarch64
justanotheruser has quit [Quit: WeeChat 2.9]
<hexa-> Mic92: rpi4 is on the rpi kernel :)
<Mic92> hexa-: only the installer not the wiki suggestion
<hexa-> odd
<hexa-> I didn't know there was mainline support yet?
<Mic92> the wiki recommends to install _latest
<Mic92> but this breaks.
hmpffff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Orbstheorem has joined #nixos-aarch64
hmpffff has joined #nixos-aarch64
alp has quit [Ping timeout: 272 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
justanotheruser has joined #nixos-aarch64
zupo has joined #nixos-aarch64
Darkmatter66 has quit [Ping timeout: 265 seconds]
Darkmatter66_ has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Darkmatter66_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
Darkmatter66 has joined #nixos-aarch64
alp has joined #nixos-aarch64
hmpffff has quit [Ping timeout: 260 seconds]
zupo has joined #nixos-aarch64
hmpffff has joined #nixos-aarch64
zupo has quit [Ping timeout: 258 seconds]
cfinch has quit [Ping timeout: 272 seconds]
cfinch has joined #nixos-aarch64
hmpffff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]