rpi-power-monitor icon indicating copy to clipboard operation
rpi-power-monitor copied to clipboard

Start4.elf is not compatible

Open sohyt95 opened this issue 3 years ago • 4 comments

photo_2022-06-13_12-44-59

Please do help me with this issue as per the photo has shown, i have tried multiple methods with the newest imager and even with the imager that was downloaded from the guide's link. I am still having the same issue over and over again.

sohyt95 avatar Jun 13 '22 04:06 sohyt95

Hi @sohyt95, this is a known issue with the latest bootloaders that are shipping on the newer Pi's.

Please try with the Pi OS Lite image here: https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2022-04-07/2022-04-04-raspios-bullseye-armhf-lite.img.xz

... and follow the manual setup instructions here: https://github.com/David00/rpi-power-monitor/wiki/Software-0.-Installation#manual-installation-steps

The main problem is the newer bootloader (and kernel) that's shipping with the newer Raspberry Pis. My custom Pi OS image is not compatible with this newer bootloader. This is a kernel issue with the latest Raspberry Pi units and we have not found a solution to this issue yet: https://github.com/raspberrypi/linux/issues/3381

Installing the software via the manual installation instructions will work, but you'll have half the sampling rate due to the issue mentioned above. I am investigating a way to downgrade the bootloader or fix the SPI issue, but both potential solutions are rather complicated.

David00 avatar Jun 13 '22 05:06 David00

thank you for the promptly reply, after I follow as per the instruction I am back to the same issue again

sohyt95 avatar Jun 13 '22 06:06 sohyt95

Whoops, I should have mentioned that you should skip step 14 of the manual install instructions (the sudo rpi-update command).
This command installs an older kernel that triggers the message in your screenshot.

David00 avatar Jun 13 '22 16:06 David00

I was able to identify a workaround for this issue which allows you to use my custom image with the newer Pi 4s.

The problem is actually not with the bootloader like I had thought at first. It's a compatibility issue with the GPU firmware that's packaged in my custom Pi OS image.

I have just tested this on a new Pi 4 rev 1.5 board that I just got this week.

After flashing my custom Pi OS image to your microSD card, keep the card connected to your computer that you used to flash it. We're going to manually replace two GPU firmware files. The microSD card's boot partition should be mounted to your computer (if not, you'll have to reconnect the microSD card to get it to mount). Open up the boot drive, and copy the two files from the attached zip into the root level directory of the boot drive. Yes, you want to overwrite the two files that are already there.

RPI 4 GPU Firmware.zip

If you don't like downloading zips from strangers on the internet, you can get the two GPU firmware files here:

  • https://github.com/raspberrypi/firmware/blob/274d0c8ac0ec0850193618dce55c005832f918ea/boot/start4.elf
  • https://github.com/raspberrypi/firmware/blob/274d0c8ac0ec0850193618dce55c005832f918ea/boot/fixup4.dat

Once you've overwritten the files on the boot partition of your microSD card, you should be able to boot the Pi from it now.

David00 avatar Jun 13 '22 19:06 David00

This is resolved in the version 0.2.0 release.

https://github.com/David00/rpi-power-monitor/releases/tag/v0.2.0

David00 avatar Nov 13 '22 18:11 David00