-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raspberry Pi 4 build of NixOS appears to be broken (boots to console and then black screen; green LED flashes twice intermittently) #191095
Comments
My pi4 will not output to my 2560x1440 screen when using the official raspberry pi OS lite images. I figured it was just a hardware issue, but I tested today and indeed the official graphical images do work, just the cli-only ones break. There may be some sort of workaround baked into all of these other graphical images for high res screens that we're missing. I did diff the config.txt files from the two official images, but they are the same. One thing I did look at was whether or not 32 vs 64 bit makes a difference. It does not seem to. Both of the official cli-only images break while both of the GUI ones work. That's good news. |
So basically, anything CLI-only that uses the (is it the vendor kernel, or the linux one?) is broken on RPi, at least at these resolutions (2560x1440 or 3440x1440)? |
As far as i can tell, yes. Some settings from the default config file that look relevant but are commented by default:
I would be surprised if forcing the resolution down didn't make it work, not sure if that matters for people running CLI-only, thus:
|
I forgot to ask, are you using a x/wayland desktop, or just booting to TTY? |
@buckley310 |
Some users reported very similar issues in Matrix (boots until If possible it may be interesting to output to the HDMI that is actually plugged. If it's not possible, maybe write a warning message, or at least redirect to HDMI 0 (that sounds more logical). This bug may actually be related to #179701 |
Interesting. I will try switching HDMI outputs when things go black. |
tried these though still experiencing screen goes dark and monitor goes to sleep. I can confirm this did not help with a 4k display or wide screen display. Just FYI |
@ibootstrapper have you tried to use the second HDMI output as recommended above? |
@ibootstrapper @tobiasBora I've just checked and using HDMI-1 as a workaround doesn't work on a 4k monitor for me either |
Yes, both HDMI ports are taking the monitor for a nap :-) |
I only had to change the password to the nixos user and then I could ssh to the pi via Ethernet . So I'm wondering maybe we can put a default password for the image to allow ssh to work without HDMI needs or TTY? This anyhow will change once applying of the real configuration . Just a thought ... |
@ibootstrapper if I understand correctly you're taking about building a custom sd-image with Nix? This is indeed possible, see here for an example. You can build it with |
Perfect, thank you |
I have this same problem with 1400x1050 display. It is not exclusive to high resolutions then. |
I am getting exactly the same issue on a Full HD display. |
It's entirely NixOS's fault... that I want to use it on every one of my computers, even my raspi's. 😀 |
Anyway, I was able to boot nixos using the official uefi image with https://github.com/pftf/RPi4, so the bug is specific to the sd image somehow. |
|
@WizardUli when you say works, you mean it solves this problem? |
Well, if the problem is the black screen, then yes. It works for me on Pi4 on 1400x1050, on FHD, and on 1440p. The resolution is not correct though (no modesetting) but readable. If you want a correct resolution then you need to add kms dt overlay and currently both the default nixpkgs' algorithm for applying device tree overlays is broken as well as nixos-hardware's one NixOS/nixos-hardware#503 and you need to rewrite it (the nixos-hardware's one) slightly so it does not try to write to an output of another derivation 😂 |
@WizardUli can you maybe put here detailled instructions how you solve the issue? I'm sure it would be extremely helpful to many people. |
I can confirm adding |
It seems UART isn't enabled in the kernel either, I thought I was being clever. I get no output after uboot hands control over to the kernel. This might be a separate issue. |
Describe the bug
I downloaded build ID 190096830 from https://hydra.nixos.org/job/nixos/trunk-combined/nixos.sd_image.aarch64-linux and burned it to an SD card after updating the rpi4 firmware; it booted the console but at some point after stage 2, the whole screen goes black (there is a single "glitch" on screen before this) and the green LED flashes on-on-pause (red LED stays off) regularly and repeatedly. I tried googling "rpi4 flashes green LED twice continuously with red LED off" and such, but didn't find anything that seemed relevant. Not sure if relevant, but the screen is an UWQHD (3440x1440 native resolution); this screen has worked fine with every other OS I've tried, such as Ubuntu or Manjaro for ARM. I just tried the latest Manjaro ARM build on it and everything works fine, so it does look like an OS build issue/bug.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected to see a login screen
Screenshots
Blackness
Additional context
The display is an UWQHD (3440x1440) which has worked fine with other RPi4 OS'es (which were probably using the vendor kernel)
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.(I can't, because it never booted.)
The text was updated successfully, but these errors were encountered: