zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has joined #nixos-aarch64
ryantrinkle has joined #nixos-aarch64
bennofs_ has quit [Ping timeout: 250 seconds]
zupo has joined #nixos-aarch64
<samueldr>
your spoon^W SPI flash is too big
<clever>
samueldr: i can confirm that my own recovery.bin is ignored
<clever>
samueldr: but, the official recovery.bin, is also ignored!
<samueldr>
good, there was still a shred of doubt that I could have goofed up
<clever>
i must be doing something wrong
<samueldr>
hmmm
<samueldr>
that's weird!
<samueldr>
maybe it needs the SPI to be actually broken?
<samueldr>
though that doesn't make sense
<clever>
yeah
<clever>
i could brick a pi by just writing a valid blink binary to spi
<samueldr>
boot code in SPI broken to a while true; do nothing; loop would brick the device
<clever>
and then it would never boot again
<clever>
given that even the official recovery.bin doesnt work, we must be doing something wrong
<clever>
samueldr: i have also made decent progress figuring out the PLL stuff in the pi's
<clever>
samueldr: which is a requirement, to fix the clocks on the pi4
<clever>
the pi3 has a few 2ghz clocks floating around within it
<clever>
but those are mostly divided down, to make other clocks
ZoomZoomZoom has joined #nixos-aarch64
ryantrinkle has quit [Ping timeout: 268 seconds]
ryantrinkle has joined #nixos-aarch64
orivej has quit [Ping timeout: 268 seconds]
Irenes[m] is now known as Guest13147
Irenes has joined #nixos-aarch64
Irenes has quit [Quit: WeeChat 2.6]
Guest13147 has left #nixos-aarch64 ["Kicked by @appservice-irc:matrix.org : issued !quit command"]
orivej has joined #nixos-aarch64
Irenes[m] has joined #nixos-aarch64
<bennofs[m]>
my pi 3b suddenly doesn't boot anymore. earlycon works, but switching to the full console appears to fail with `bcm2835-aux-uart 3f215040.serial: unable to register 8250 port - -28` (no serial output after that). I use earlycon=uart8250,mmio32,0x3f215040, console=serial0,115200 as kernel cmd. Any idea how to get a working serial output?
<bennofs[m]>
also, how do I apply device tree overlays in NixOS on RPi 3? does dt-overlay in config.txt work?
* clever
looks
<clever>
0x3e21_5000 AUX_IO_BASE
<samueldr>
using the generic images, u-boot loads a device tree, which I assume overrides anything config.txt does
<clever>
bennofs[m]: 0x3f215040 is the mini/aux-uart...
<clever>
this shows an example of the clock stuff the docs mention
<clever>
the primary uart is fed from the 500mhz PLLD_PER clock, with a divisor to cut it down to 47,999,625hz i think
<clever>
while the aux uart is fed from the 250mhz VPU clock, and has no divisor, so it runs at the full 250mhz
<clever>
each uart, then divides that clock down further, to get the baud rate
pbb has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 260 seconds]
pbb has joined #nixos-aarch64
<clever>
disable-bt disables the Bluetooth device and restores UART0/ttyAMA0 to GPIOs 14 and 15. It is also necessary to disable the system service that initialises the modem so it doesn't use the UART: sudo systemctl disable hciuart.
<clever>
bennofs[m]: from the uart page you linked
<bennofs[m]>
clever: not sure if the config.txt command to load that overlay works on my setup? Also, what happens to the existing miniuart on that port when this option is enabled?
<clever>
bennofs[m]: the command does 2 different things
<clever>
bennofs[m]: first, it tells the firmware to mess with the ALT modes on the pins, to match the expected setup
lovesegfault has joined #nixos-aarch64
<clever>
bennofs[m]: second, it tells the firmware to load a given overlay when executing kernel.img (which may be u-boot?)
<clever>
given that ttyAMA0 is already routed to linux (for bluetooth), you dont need to worry much about the DT area
* clever
heads off to bed
pbb has quit [Ping timeout: 246 seconds]
pbb has joined #nixos-aarch64
ZoomZoomZoom has quit [Ping timeout: 260 seconds]
lovesegfault has quit [Ping timeout: 265 seconds]
lovesegfault has joined #nixos-aarch64
orivej has joined #nixos-aarch64
<bennofs[m]>
i finally managed to get a serial con by copying kernel & initramfs from an old aarch64 nixos install image i had lying around
<bennofs[m]>
now I can see why my system failed to boot, unexpected inconsistency during ext4 fsck which requires manually intervention. Reminder to self: run fsck on SDCARD when trying to debug boot fails
<bennofs[m]>
actually, it's a newer version (4.19.80) which works. whatever
<samueldr>
mainline vs. foundation I presume
lovesegfault has quit [Quit: WeeChat 2.7]
lovesegfault has joined #nixos-aarch64
pbb has quit [Read error: Connection reset by peer]