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
RPI2 does not boot anymore (using latest 4.4 or 4.1) #1414
Comments
Did you build kernel using these instructions: https://www.raspberrypi.org/documentation/linux/kernel/building.md ? Including using mkknlimg? |
yes the kernel was built like shown in the CROSS-COMPILING section of these instructions. I did not use mkknlimg (lately) because the zImage was definitely working fine. I will try to convert it like mentioned- thanks for the hint |
YES! thank you so mutch popcornmix: after using mkknlimg the system boots (again). A little bit strange because RPi2 was booting fine with zImage 22 days ago. |
Does someone have an idea what could be wrong if I can boot 4.1.21 but not 4.4.7? I am using Uboot and I can see the device tree in Uboot and also pass it to the kernel. |
Can you post your config.txt to start with? |
In Uboot (tried 2016.01 and 2016.05-rc1) I can examine the device tree with the fdt command and the overlays also worked with older kernels. I use the RPi sources with Ubuntu patches and modify the default
to use btrfs as root fs and the vc4 module. The serial console shows me:
and then the RPi2 turns off after a few seconds (what it never did before). I admit that I was experimenting a lot with Uboot and the kernel config to learn but right now everything should be "vanilla". It's likely something stupid I did and I tried different things but without some sort of error message I'm a bit stuck right now. |
The problem is likely to be that the firmware thinks the device tree won't fit. The default value for device_tree_end is 0x4000 (because the Linux kernel or its decompressor uses the memory between 0x4000 and 0x8000, but the current dtbs are larger than that. Try setting device_tree_end=0x8000. |
You can remove |
Unfortunately, both changes did not help. I removed the |
You may also want to update to today's firmware release, since that made a few changes to the DT handling that may be significant. |
I started from scratch today and now it works if I set I guess this will work until uboot can dynamically calculate the address. Looks like swarren is already working on this: swarren/u-boot@94f80bc |
Hi,
thanks for this great kernel github, thanks for your time and work!
I created a debian-jessie rpi2 bootstrapping script that was running fine (on latest script release date) - 22 days ago. Yesterday I found out that the created Images (with compiled kernel) do not boot anymore. I tried to investigate whats the problem - but failed so far.
Uncompressing :Linux... done, booting the kernel.
After the "uncompressing kernel" message I don't get any more messages and I struggle to find out more about the problem. Is there any other debugging option except using JTAG to debug this early boot step? (the only general debugging options I found dtdebug=1 needs userland to see debugging logs)
The kernel compilation works fine without errors. I am using default bcm2709_defconfig (classic kernel make and install (zImage modules dtbs - modules_install, firmware_install, headers_install), finally the copy ./boot/dts and overlays to /boot/).
Of course I am using the latest boot binaries from firmware github - dts and overlays look very similar.
Is there any major change inside the /boot directory or the dtbs, overlays structure - that I miss - or I am to blind to see?
here is the bootstrapping script (I am not posting this as PR, lol):
https://github.com/drtyhlpr/rpi2-gen-image
(-> https://github.com/drtyhlpr/rpi2-gen-image/blob/master/bootstrap.d/13-kernel.sh)
Listing of my generated boot directory (compiled kernel, copied dtbs and overlays, latest rpi firmware files):
thanks for your help, If you need more output or maybe have ideas to generate more debugging output please tell me
ps. I also tried the 4.1.y kernel (fetching -b 4.1.y and using firmware "kernel: bump to 4.1.21") -> same problem
The text was updated successfully, but these errors were encountered: