-
-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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 3 B+ can't boot with latest kernel 5.7.19 #97064
Comments
I can confirm this issue. My current workaround is to use:
or:
instead of:
Note that hdmi does not display the boot for |
Can also confirm this issue. My current workaround is to use:
then For anyone noobs like me, in the original issue after doing upgrade you lose access of the pi after upgrading to
Where I think for useful reason this notes can be included in the NixOS ARM wiki. It could be helpful for noobs like me out there. A better way to test new image would be to just use |
I fixed the wiki for the time being: https://nixos.wiki/wiki/NixOS_on_ARM#NixOS_installation_.26_configuration Maybe we should mark 5.7+ as broken on raspberry pi 4? |
confirming that |
@rjpcasalino |
Just a quick heads-up that I was able to boot Linux 5.10.2 on the Raspberry Pi 3 with the following patch: File rpi.nix
File 0001-configs-rpi-allow-for-bigger-kernels.patch
Build using nixpkgs be0b453 and write to sd:
|
I was able to boot using 'setenv' for each of the values in the last update and then using: This might help someone who just wants to boot up and go back to another kernel for now. |
@petabyteboy Do you plan to process your findings in a way they emerge out of this thread toward some sort of greater audience (upstreaming, PR to nixpkgs, etc.)? |
So the patch I posted was more of a temporary solution, but it could still be helpful for many people to package it in nixpkgs until a better way is known. |
For the third bullet point also see #108048 |
|
No, feel free to make a PR, but I would add it to the u-boot packaging instead of making it specific to the sd-image. |
Unfortunately, I don't think I can take the pass right now. So I'll mirror this to interested parties. But thanks for the discussion. I'm concluding: your patch is apt to be incorporated in principle in nixpkgs to make Rpi3 with latest kernel work out of the box until a better fix is found later. |
Thanks! I just learned something 😄 . |
For reference: If you are experiencing this issue on an existing installation, try to replace the files in your firmware partition with those from a recent sdImage. |
@petabyteboy thank you for merging that in! Should we be looking at 20.09 release sdimage or unstable? It looks like Hydra has not yet built either that include the diff, so those looking to update their firmware partition from an sdimage may need to wait a few hours. |
Looks like the patch failed to apply on Hydra: https://hydra.nixos.org/build/134735802/nixlog/10 |
Yes, it's already fixed. Just waiting for the next evaluation. |
I can confirm that on my RPi 3B (nonplussed I believe), the patch by @petabyteboy as built into the firmware partition of this image permits me to load kernel 5.9.16 whereas before I would have the OP symptoms of hanging at "Starting Kernel..." and no system services starting. I am confused though. "Starting Kernel..." is output by syslinux, which is started by u-boot. At the point of issue, control has transferred to syslinux. Isn't the kernel loaded by u-boot a sort of mini-kernel that is independent of the system kernel? Or is there a leaky abstraction that I don't fully understand? Once I better understand this, I'm happy to update the comments in |
This build includes u-boot 2021.01 and the patch to support the larger mainline kernels again: https://hydra.nixos.org/build/135056994 |
NixOS maintains a uboot patch for the raspberry pi which enables larger kernels to be loaded. (background: [1,2]) Prior to this commit, this patch was applied to all callers of buildUBoot, regardless of whether it was relevant for that specific board. buildUBoot already accepts an argument `extraPatches' for board-specific patches, so use this mechanism to patch the raspberry pi uboot builds instead. Without this change, passing a different `src' argument to buildUBoot (ie: pointing at upstream uboot or at a board-specific fork) becomes highly brittle as the patch will not usually apply cleanly. [1]: github.com/NixOS/pull/139825 [2]: github.com/NixOS/issues/97064 Signed-off-by: Nicholas Sielicki <nix@opensource.nslick.com>
NixOS maintains a uboot patch for the raspberry pi which enables larger kernels to be loaded. (background: [1,2]) Prior to this commit, this patch was applied to all callers of buildUBoot, regardless of whether it was relevant for that specific board. buildUBoot already accepts an argument `extraPatches' for board-specific patches, so use this mechanism to patch the raspberry pi uboot builds instead. Without this change, passing a different `src' argument to buildUBoot (ie: pointing at upstream uboot or at a board-specific fork) becomes highly brittle as the patch will not usually apply cleanly. [1]: github.com/NixOS/pull/139825 [2]: github.com/NixOS/issues/97064 Signed-off-by: Nicholas Sielicki <nix@opensource.nslick.com>
Describe the bug
Since my last kernel upgrade on the Raspberry Pi 3B+, I can't boot anymore (I lost ssh access). I tried to burn a new image from scrach, update the channel, and create the most basic configuration, and the problem persists.
To Reproduce
Steps to reproduce the behavior:
dd
on a sdcardconfig.txt
(enable_uart
is useful to boot with uart, andforce_turbo
was required to have less noise in the characters read by uart):screen
to boot with a serial console/etc/nixos/configuration.nix
:and then run:
Reboot: the OS stops booting at
Starting kernel ...
, even if you add in the kernel parametersconsole=ttyS1,115200n8
orconsole=ttyS0,115200n8 console=ttyAMA0,115200n8 console=tty0 loglevel=7
(via/boot/extlinux/extlinux.conf
):Moreover, I think it is not a problem with UART, because on my first system I couldn't ssh my system that was working fine during 2 years, and the green LED does not blink during the expected boot period.
Expected behavior
I would expect it to boot properly.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
I tried with the kernel 5.6 and it boots fine. I experienced issues with the kernel
5.7.18
and5.7.19
Maintainer information:
The text was updated successfully, but these errors were encountered: