guysoft / RealtimePi

An out-of-the-box raspebrrypi/raspbian distro with a realtime kernel
GNU General Public License v3.0
164 stars 25 forks source link

Boot Freeze on old RPi #13

Closed maurorappa closed 4 years ago

maurorappa commented 6 years ago

I have a 2011 RPi (Hardware : BCM2835 Revision : 000f) which freezes during boo after few blinks. It's no overclocked and work absolutely fine with a Debian on it. See picture. img_2869 is it simply too old?

Cheers

guysoft commented 6 years ago

What version of RealtimePi are you using? It should work, since both ARMv6 and ARMv7 kernels are available. At least according to the Rpi documentation. Does it run modern raspbian lite?

guysoft commented 6 years ago

Closing if no reply

bobtie commented 5 years ago

I have the same problem. RealtimePI Version 0.1 works fine but 0.3 and 0.4 (I didn't try with 0.2) freeze at boot. I've also tried 2018-11-13-raspbian-stretch-lite.zip and it works too.

The PI I'm using for these experiments is a Raspberry P1.

guysoft commented 5 years ago

There might be an issue with the armv6 kernel, can you post what you see on screen? Preferably for the 0.4 nightly. I am not sure how to fix this.You might want to report it in the Raspberrypi Kernel github but they will need more info first, perhaps also output from the TTY serial port. https://github.com/raspberrypi/linux

oxbown commented 5 years ago

Same issue with a raspberry pi 2 v1.2. Freezes during boo after few blinks, no code on screen only the pi logo on the corner...

oxbown commented 5 years ago

Tested all the versions: V0.1 and V0.2 works! V0.3 and current version of the V0.4 don't work!

My Raspberry Pi 2 is a ARMv6 BCM2835 (2014 model)

guysoft commented 5 years ago

@oxbown Thanks for reporting. How far did the boot fail on 0.4? Did you try the release candidate or the nightly?

oxbown commented 5 years ago

@oxbown Thanks for reporting. How far did the boot fail on 0.4? Did you try the release candidate or the nightly?

I used this version: http://unofficialpi.org/Distros/RealtimePi/nightly/2019-05-14_2019-04-08-realtimepi-stretch-lite-0.4.0.zip

Its freezes like v0.3 , 3 yellow blinks and in the screen only the raspberry logo.

guysoft commented 5 years ago

Ok, you can try if you like the last nightly: http://unofficialpi.org/Distros/RealtimePi/nightly/2019-06-29_2019-06-20-realtimepi-buster-lite-0.4.0.zip

But I am really just betting here, I have no way of debugging what is going wrong. You can try posting your results for the nightly I just posted here, because this issue has kernel developers who might help you debug what is going wrong: https://github.com/raspberrypi/linux/issues/2943

Also, you might be able to get more debug output if you use console=serial0,115200 kgdboc=ttyS0,115200 , it should give you more info, see what how it changes the output in my post in the issue above in this comment.

oxbown commented 5 years ago

Ok, you can try if you like the last nightly: http://unofficialpi.org/Distros/RealtimePi/nightly/2019-06-29_2019-06-20-realtimepi-buster-lite-0.4.0.zip

But I am really just betting here, I have no way of debugging what is going wrong. You can try posting your results for the nightly I just posted here, because this issue has kernel developers who might help you debug what is going wrong: raspberrypi/linux#2943

Also, you might be able to get more debug output if you use console=serial0,115200 kgdboc=ttyS0,115200 , it should give you more info, see what how it changes the output in my post in the issue above in this comment.

Hello! It seems to work! The raspberry boots... but ethernet and USB doesn't work. This weekend i´ll try to do more test.

guysoft commented 5 years ago

Ok, the usb and ethernet nto working is a known issue. You can try setting in /boot/cmdline.txt dwc_otg.lpm_enable=1 to dwc_otg.lpm_enable=0. If it boots you should have USB and ethernet.

oxbown commented 5 years ago

Well well well... I found something interesting. If I change the value of dwc_otg.lpm_enable to 0 the Realtimepi 0.4 not boots, it freezes like 0,3 version. I flashed back the version 0.3 on the SD card and them I changed the dwc_otg.lpm_enable to 1....and.....boom version 0.3 is running on my raspberry B v2... but without usb and ethernet. I think that the problem is with this parameter.

guysoft commented 5 years ago

It means that the usb-dwc_otg-fix patch is not working for the old Pi kernel on 0.3.

That setup came from this commit: https://github.com/raspberrypi/linux/issues/2943#issuecomment-506483290

Will report back there

nsf747 commented 5 years ago

Well well well... I found something interesting. If I change the value of dwc_otg.lpm_enable to 0 the Realtimepi 0.4 not boots, it freezes like 0,3 version. I flashed back the version 0.3 on the SD card and them I changed the dwc_otg.lpm_enable to 1....and.....boom version 0.3 is running on my raspberry B v2... but without usb and ethernet. I think that the problem is with this parameter.

Hey, I'm facing a similar issue with my RPi2B. I'm running 2019-08-07_2019-07-10-realtimepi-buster-lite-0.4.0.

When the value of dwc_otg.lpm_enable to 1 it boots but with USB and ethernet disabled.

When I set the value of dwc_otg.lpm_enable to 0 it hangs during boot if the ethernet cable is attached. But if I remove the ethernet cable it boots up and runs for a few minutes and then hangs.

guysoft commented 5 years ago

@nsf747 Try the latest nightly and report. If you get agait then it means usb-dwc_otg-fix might need an update. Reporting would help @TiejunChina know there is an issue that needs to be fixed.

guysoft commented 4 years ago

Closing due to no reply