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

Unable to boot RealtimePi OS with Raspberry Pi 4b #26

Closed Chase1325 closed 3 years ago

Chase1325 commented 3 years ago

I am getting error messages such as 'recover4.elf not found(6)' 'recovery.elf not found(6)' This board requires newer software Error: 00000044 Insert SD-CARD

guysoft commented 3 years ago

Option 1: Its saying in its cryptic way that there is a hardware issue, either the card or power supply: https://github.com/raspberrypi/firmware/issues/1468

The significant error is the XHCI cmd error which might indicate a power issue e.g. try connecting to the SSD via a powered hub.

Version 0.4.0 supports Rpi4.

Option 2: It might be that there are new hardware rpi4 since release. I will try and run a nightly build so you can test

guysoft commented 3 years ago

Update, it seems like there was a commit that might address the issue, it will go the the nightly: https://github.com/raspberrypi/linux/commit/1c082fa78a09436ff22f30bfc82b9b7a127686d5

guysoft commented 3 years ago

This might also be relevant: https://github.com/raspberrypi/linux/issues/3625#issuecomment-747287384

Someone built it, but it seems the RT Rpi kernel maitnance keeps moving hands and I am not sure how to keep it steady. Its like someone gets it from time to time to work and they they push it somewhere.

Chase1325 commented 3 years ago

If I were to follow the instructions to do a 6 hr build myself (below commands in Ubuntu) would you expect it to make a working version? Or did you mean before that you were planning to upload a stable version to 'nightly'?

**sudo apt-get install realpath p7zip-full qemu-user-static

git clone https://github.com/guysoft/CustomPiOS.git git clone https://github.com/guysoft/RealtimePi.git cd RealtimePi/src/image wget -c --trust-server-names 'https://downloads.raspberrypi.org/raspbian_lite_latest' cd .. ../../CustomPiOS/src/update-custompios-paths sudo modprobe loop sudo bash -x ./build_dist**

guysoft commented 3 years ago

I am running it on my build system. The one on the main readme page. You are welcome to build it, but you don't have to.

guysoft commented 3 years ago

Build is ready, you can test it: http://unofficialpi.org/Distros/RealtimePi/nightly/2021-03-16_2021-01-11-realtimepi-buster-armhf-lite-0.5.0.zip

Md5: http://unofficialpi.org/Distros/RealtimePi/nightly/2021-03-16_2021-01-11-realtimepi-buster-armhf-lite-0.5.0.zip.md5

Chase1325 commented 3 years ago

Thanks for being so quick to do a new update! It seemed to fix some of the issues, but some are still present. It looks like its a clock issue and gpio:

bcm2835-cpufreq:bcm2835_get_clock:93: Failed to get clock (-12) cpufreq: cpufreq_online: ->get() failed

^That repeats 4 times. Then I get: raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 4 config (-12 84) gpio-regulator sd_io_1v8_reg: Could not obtain regulator setting GPIOs: -12

guysoft commented 3 years ago

Does it boot?

Chase1325 commented 3 years ago

No those are messages that come across in the boot sequence

Chase1325 commented 3 years ago

Also, I used the same microSD image on my 3B and it worked just fine and booted up... something specific to the 4b

wschilling commented 3 years ago

I am seeing a similar problem with my P 4B. Here is a screen shot of the boot messages I see: WIN_20210605_17_05_56_Pro

guysoft commented 3 years ago

I'd imagine its a new hardware configuration, the image needs to be updated to a newer kernel and firmware, and I didn't get any time to do that.

guysoft commented 3 years ago

Closing, use 0.5.0