motioneyeos icon indicating copy to clipboard operation
motioneyeos copied to clipboard

Doesn't work for Pi4

Open Laz2516 opened this issue 3 years ago • 42 comments

Doesn't work for Pi4. Checked two images, 20200606 and 20201026. None starts on the new Pi4. Help, what should I do? (((

Laz2516 avatar Oct 18 '22 11:10 Laz2516

IMG_9469 1

Laz2516 avatar Oct 18 '22 11:10 Laz2516

Do you mean motionEyeOS? The firmware of the latest RPi motionEyeOS image is too old to support RPi indeed. Needs an update. See also: https://github.com/motioneye-project/motioneyeos/issues/2925

MichaIng avatar Oct 18 '22 12:10 MichaIng

I took the image here https://github.com/motioneye-project/motioneyeos/releases

Perhaps I was mistaken by the topic for the question?

Laz2516 avatar Oct 18 '22 13:10 Laz2516

All fine, just the wrong repository, I'll move the issue over.

MichaIng avatar Oct 18 '22 13:10 MichaIng

The last known good bootloader for dev20201026 for RPi4 was 04/29/2021. You can try to downgrade the bootloader, but it is hit or miss. Boot to RPiOS Buster Legacy run the command:

sudo rpi-eeprom-update -d -f /usr/lib/firmware/raspberrypi/bootloader/stable/pieeprom-2021-04-29.bin

When completed (after a reboot) the command

vcgencmd bootloader_version

should now show


Apr 29 2021 17:11:25 version c2f8c388c4ee37ad709ace403467d163e8dd91ce (release) timestamp 1619712685 update-time 1645126804


I don't have a Pi4-2GB, but it works with the Pi4-4GB and Pi4-8GB from an upgrade, but still sometimes fails when downgraded from a newer version...

starbasessd avatar Oct 18 '22 14:10 starbasessd

Ah thanks for clarification. So not the motionEyeOS image is too old for RPi 4, but the RPi 4 EEPROM bootloader can be too new for the image.

This really needs an update. I'll create a motionEye beta release PR tonight, to get a step further that end, after official beta/pre-release is out, having a closer look into how to update motionEyeOS based on it without too much other/unrelated changes at first.

MichaIng avatar Oct 18 '22 14:10 MichaIng

There are a number of CSI (ribbon cable) cameras that would benefit from a update to the kernel, too (especially the ultra-HD / Ultra High Rez that cams out around and just after 10/2020...

starbasessd avatar Oct 18 '22 15:10 starbasessd

Thank you Then please give a link to the correct repository with updates. I can wait and not update the bootloader to the old image file. (sorry, I'm from Russia and I have to use a translator, I'm also still a little experienced at Raspberry....))))

Laz2516 avatar Oct 19 '22 08:10 Laz2516

I'm getting the same issue, both dev20201026 and 20200606 won't boot up for Pi 4 Model B 2GB

Junaid0411 avatar Oct 19 '22 12:10 Junaid0411

@Junaid0411 It is a known issue (see my comments above) and the current solution is to downgrade the boot loader (also see instructions above). Downgrading to boot loader April 29 2021 should (but not guaranteed) allow dev20201026 to boot, at least until the new Devs can get a new updated version of motionEyeOS compiled.

starbasessd avatar Oct 19 '22 12:10 starbasessd

We are waiting for a change in the image, which will include a change in the bootloader (if possible). Still, the hardware is updated, and the image has not changed for 2 years....

Laz2516 avatar Oct 19 '22 12:10 Laz2516

@Laz2516: Unfortunately, real life interfered with CCrisan's ability to continue with the project, which is why he handed it over to some new Developers. As you where you should be able to find the new release, it should appear here

starbasessd avatar Oct 19 '22 12:10 starbasessd

@starbasessd Hello, I loaded up legacy OS and followed what you said, I installed rpi-eeprom-update -d -f /usr/lib/firmware/raspberrypi/bootloader/stable/pieeprom-2021-04-29.bin

My version lines up to yours now, what should I do after?

Junaid0411 avatar Oct 19 '22 13:10 Junaid0411

Now you should try using dev20201026 for the Pi4 from here

starbasessd avatar Oct 19 '22 13:10 starbasessd

Sorry, I'm quite new, just to clarify, I need to flash the image back onto the SD card correct and then bootup again

Junaid0411 avatar Oct 19 '22 13:10 Junaid0411

Yes, if you used the same SDCard to downgrade the boot loader...

starbasessd avatar Oct 19 '22 13:10 starbasessd

Forgive me too..) I'm not a very experienced Raspberry owner either...)) If I understand correctly, then I upload the image 20200606 to the map, launch it on the Pi4. I get a never-ending error. Next, I go to the SSH Pi4 (what is the login\password in this case?). I update the bootloader to the required version. Take the card out of the Pi4 without turning it off? Recording the image 20201026 on the map, inserting it into Pi4..... overloading the Pi4 and should it start normally motioneyeos?

Laz2516 avatar Oct 19 '22 15:10 Laz2516

You want to use dev20201026 on any RPi4. You want to image the SDCard with the image hereusing Etcher or Win32DiskImager (Raspberry Pi Imager breaks the file system) ALWAYS turn off the Pi before pulling the SD Card. ALWAYS. SSH User is "admin" and password is just enter. If you get a continuous reboot where the last line says 'panic' then that means you don't have an active network connection. There are ways around it but that involves a lot more work for a new user. After re-imaging the SDCard, you then put in in the turned OFF Pi4, then turn it on. It should boot to motionEyeOS.

starbasessd avatar Oct 19 '22 15:10 starbasessd

Yes. I understand about you. Indeed, I have a continuous update of messages on the screen, but the LAN indicator is not active. And I don't see Pi4 in the IP scanner. So I will not be able to enter it via SSH (I forgot about it when I wrote the text here). But the board itself is healthy, from the other SD card I run MagicMirror2 on this board.

So I will not be able to boot from any motioneyeos image and install a new bootloader, then boot from the desired image and work... (( How do I start the LAN?

Laz2516 avatar Oct 19 '22 15:10 Laz2516

The process is: Install RaspberryPiOS preferably Buster Legacy, on an SDCard Boot the Pi 4 from the RPiOS SDCard Log in and run the following command:

sudo rpi-eeprom-update -d -f /usr/lib/firmware/raspberrypi/bootloader/stable/pieeprom-2021-04-29.bin

When it is complete, reboot with the RPiOS SDCard, and run the following command:

vcgencmd bootloader_version

should now show


Apr 29 2021 17:11:25 version c2f8c388c4ee37ad709ace403467d163e8dd91ce (release) timestamp 1619712685 update-time 1645126804


Then you would image a SDCard with motionEyeOS here but do NOT use Raspberry Pi Imager, it breaks it, Use Etcher or Win32Disk Imager. You can use several methods to disable networking, or if you have WiFi you can use the same wpa_supplicant.conf file in the /boot partition that any other Pi uses.

If there is someone else who wants to assist with this, feel free to jump in, I am going to be a bit busy to get too involved today or tomorrow...

starbasessd avatar Oct 19 '22 15:10 starbasessd

I've tried these steps but I'm getting the same error again...

Junaid0411 avatar Oct 19 '22 16:10 Junaid0411

@Laz2516 Hello. I got it to work in the end 😄

Basically, what you have to do is

  1. Go to https://github.com/raspberrypi/firmware/tree/master/boot

  2. Then download and copy these files to the bootloader: start.elf start4.elf start_x.elf start4x.elf fixup.dat fixup4.dat fixup_x.dat fixup4x.dat

  3. Add "start_x=1" to the config.txt file.

Source: https://github.com/motioneye-project/motioneyeos/issues/2892

Hope this helps!

Junaid0411 avatar Oct 22 '22 12:10 Junaid0411

You may (probably will) have issues with USB attached or CSI attached cameras, though as you are not updating the kernal and dtb files that are needed.

starbasessd avatar Oct 22 '22 12:10 starbasessd

I'm having issues with connecting to WiFi at the moment, it keeps giving me the panic error... CSI camera is working well at the moment, haven't tested USB camera.

Junaid0411 avatar Oct 22 '22 12:10 Junaid0411

Yep. Need a full update, not just the boot files. According to Michal Ng it's coming...

starbasessd avatar Oct 22 '22 12:10 starbasessd

@Laz2516 Hello. I got it to work in the end 😄

Basically, what you have to do is

  1. Go to https://github.com/raspberrypi/firmware/tree/master/boot
  2. Then download and copy these files to the bootloader: start.elf start4.elf start_x.elf start4x.elf fixup.dat fixup4.dat fixup_x.dat fixup4x.dat
  3. Add "start_x=1" to the config.txt file.

Source: #2892

Hope this helps!

Hi, when I follow these steps (including using the older bootloader version)- I still get an error stating "Invalid ELF header" for files start4x.elf and start_x.elf. I am on a 8gb Pi 4 plugged into ethernet cable for networking, and using a USB mouse/keyboard. Do we have any idea when motioneyeOS will become compatible for the Pi 4 8gb? Thank you.

GamingTechRides avatar Oct 22 '22 21:10 GamingTechRides

@Laz2516 Hello. I got it to work in the end 😄 Basically, what you have to do is

  1. Go to https://github.com/raspberrypi/firmware/tree/master/boot
  2. Then download and copy these files to the bootloader: start.elf start4.elf start_x.elf start4x.elf fixup.dat fixup4.dat fixup_x.dat fixup4x.dat
  3. Add "start_x=1" to the config.txt file.

Source: #2892 Hope this helps!

Hi, when I follow these steps (including using the older bootloader version)- I still get an error stating "Invalid ELF header" for files start4x.elf and start_x.elf. I am on a 8gb Pi 4 plugged into ethernet cable for networking, and using a USB mouse/keyboard. Do we have any idea when motioneyeOS will become compatible for the Pi 4 8gb? Thank you.

Did you replace all the old start and fixup files with the latest ones? And did you edit the config file?

Also WiFi seems to be working too, just had to mess around with the settings.

Junaid0411 avatar Oct 23 '22 09:10 Junaid0411

Good afternoon! I performed the specified steps (wrote the necessary new files to the root of the map and added a line to the config.txt file. Everything works on the Raspberry Pi 4, 2 Gb. In a browser on a PC at ip adress raspberry, I launched motionEye. I did not check and configure the work of wifi, I have enough LAN connection.

I still have a question now. I need to display the image of IP cameras not on a PC or tablet in a browser, but need to display the cameras on a monitor connected directly to Raspberry via HDMI. How to do this? Can I install motionEye on Raspberry Pi OS Full (with desktop and applications) so that I can run motionEye in a browser on the same Raspberry???

Laz2516 avatar Oct 28 '22 11:10 Laz2516

You can, instructions here Use Buster (legacy) Desktop.

starbasessd avatar Oct 28 '22 12:10 starbasessd

Thanks a bunch! Everything worked out on Pi4\2 Gb. It works

I have two questions, help or tell me where to find or ask a question about help-

  1. How to make the browser start automatically (so that when the Pi reboots with the connected monitor to it via HDMI, the browser with the Raspberry IP address will immediately start (to automatically launch on the motionEye monitor).
  2. How to connect and configure the operation of the PIR sensor in Raspberry so that the monitor turns off when there is no movement on the sensor (the monitor is connected to Raspberry via HDMI)? Please help....))))!

Laz2516 avatar Oct 29 '22 13:10 Laz2516